1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9631],{81369:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});var r=t(59499),a=t(50029),i=t(17674),o=t(87794),l=t.n(o),u=t(67294),s=t(8145),d=t(45578),c=t(84289),f=t(98998),p=t(12312),h=t(39567),v=t(43306),m=t(66450),g=t(67052),w=t(94162),y=t.n(w),x=t(46897),C=t.n(x),b=t(59432),_=t(65731),Z=t(44244),j=t(26116),O=t(15186);function N(e){return V.apply(this,arguments)}function V(){return(V=(0,a.Z)(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=O.v_,e.next=3,(0,j.en)(JSON.stringify(n),"fd");case 3:return e.t1=e.sent,e.t2={body:e.t1},e.abrupt("return",(0,e.t0)("/page/fd/api/v1/vCurrency/eBPay/addV1",e.t2));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var E=t(46799),F=t(55778),P=t(35935),B=t(8026),R=t(94750),S=t(16678),T=t(11163),D=t(85893);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L=function(e){var n,t,r=e.userInfoData,o=e.onRefreshVirtualCards,w=null===(n=P.Z.preInfoData)||void 0===n?void 0:n.disablePhones,x=null===(t=P.Z.preInfoData)||void 0===t?void 0:t.globePhoneNumber,j=(0,u.useState)(R.CN),O=j[0],V=j[1],k=s.Z.useForm(),L=(0,i.Z)(k,1)[0],A=(0,u.useState)("\u83b7\u53d6\u9a8c\u8bc1\u7801"),U=A[0],z=A[1],G=(0,u.useState)(""),M=G[0],Q=G[1],W=(0,u.useState)(!1),X=W[0],K=W[1],H=(0,u.useState)(!1),J=H[0],Y=H[1],q=(0,T.useRouter)(),$=(0,E.Z)(N,{manual:!0,onSuccess:function(){h.Z.info("\u6dfb\u52a0\u6210\u529f"),o(),(0,F.sE)(),L.resetFields(),q.back()},onError:function(e){h.Z.error(e.message)}}),ee=$.loading,ne=$.run,te=function(){var e=L.getFieldValue("address"),n=L.getFieldValue("alias");if(n)if(n.length<2)h.Z.info("\u522b\u540d\u6700\u5c11\u9700\u8981\u8f93\u5165\u4e8c\u4e2a\u5b57\u7b26");else if(e){if(!(e.length<20))return!0;h.Z.info("EBpay\u5730\u5740\u6700\u5c11\u8f93\u516520\u4e2a\u5b57\u7b26")}else h.Z.info("\u8bf7\u8f93\u5165EBpay\u5730\u5740");else h.Z.info("\u8bf7\u8f93\u5165\u522b\u540d")},re=function(){if(te())return null===L||void 0===L?void 0:L.validateFields().then(function(){var e=(0,a.Z)(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne(I(I({},n),{},{phone:M||(0,S.ls)(L.getFieldValue("phone"),O)}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())};return(0,D.jsxs)(s.Z,{form:L,className:y().editFormView,initialValues:{alias:"",address:"",name:"1",phone:null===r||void 0===r?void 0:r.phone,currency:"1",protocol:Z.a_[0].value},autoComplete:"off",children:[(0,D.jsx)(c.Z,{wrapperClassName:C().extraView,label:"\u522b\u540d",name:"alias",rules:[function(){return(0,Z.wL)()}],extra:"\u522b\u540d\u80fd\u4fbf\u4e8e\u533a\u5206\u60a8\u540d\u4e0b\u7684EBpay\u8d26\u6237",children:(0,D.jsx)(f.Z,{maxLength:10,placeholder:"\u8bf7\u8f93\u5165\u522b\u540d",handleFormatValue:function(e){return(0,_.f2)(e,10)},onChange:function(){}})}),(0,D.jsx)(c.Z,{shouldUpdate:!0,label:"EBpay\u5730\u5740",name:"address",wrapperClassName:C().extraView,rules:[function(){return(0,Z.UR)()}],children:(0,D.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165EBpay\u5730\u5740",handleFormatValue:function(e){return(0,_.f2)(e,100)},maxLength:100,onChange:function(){L.getFieldValue("address")&&(null===L||void 0===L||L.validateFields(["address"]))}})}),(0,D.jsx)(c.Z,{label:"\u624b\u673a\u53f7\u7801",name:"phone",wrapperClassName:(0,B.z)(C().extraView,C().extraViewPhone),rules:null!==r&&void 0!==r&&r.phone?[]:[(0,b.P3)("\u624b\u673a\u53f7\u7801",w,O)],children:null!==r&&void 0!==r&&r.phone?(0,D.jsx)("div",{className:y().phoneShow,children:(0,S.Xf)(null===r||void 0===r?void 0:r.phone)}):(0,D.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801",maxLength:11,width:256,disabledText:!(null===r||void 0===r||!r.phone),handleFormatValue:_.iI,prefix:x?(0,D.jsx)(R.Z,{phoneCode:O,onSelect:function(e){null===L||void 0===L||L.validateFields(["phone"]),V(e)}}
1):"",onChange:function(e){if("CN"===O.cCode&&(X&&K(!1),w)){var n=Object.keys(w);null!==n&&void 0!==n&&n.includes(e.slice(0,3))?Y(!0):Y(!1)}}})}),(0,D.jsx)(c.Z,{label:"\u9a8c\u8bc1\u7801",name:"imageCode",wrapperClassName:(0,B.z)(C().extraView,C().extraViewCodeVirtual),style:{marginBottom:0},noTipStyle:!0,tip:(0,D.jsx)(p.Z,{setBtnText:z,onButtonClick:function(e,n){!function(e,n){te()&&(null===L||void 0===L||L.validateFields().then((function(){if(null!==r&&void 0!==r&&r.phone)return g.default.info({title:"\u5b89\u5168\u6821\u9a8c",message:(0,D.jsx)(v.Z,{name:null===r||void 0===r?void 0:r.name,type:"4",phone:null===r||void 0===r?void 0:r.phone,callback:function(e,t){Q(e),K(!0),n&&t?n(t):n()}})});e({version:0,cate:"0",sendCodeNum:(0,S.ls)(L.getFieldValue("phone"),O),type:"4",sendName:null===r||void 0===r?void 0:r.name})})).then((function(){})))}(e,n)},handleSendSuccess:function(){K(!0),g.modalHelper.handleOpenScroll(),(0,g.handleClose)()},type:J?"noDrop":"",className:y().codeButtonStyle,children:U}),children:(0,D.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u9a8c\u8bc1\u7801",maxLength:6,handleFormatValue:_.iI})}),X&&(null!==r&&void 0!==r&&r.phone?(0,S.Gu)(null===r||void 0===r?void 0:r.phone).isCN:"CN"===O.cCode)&&(0,D.jsx)(m.Z,{type:"4",sendCodeNum:M||L.getFieldValue("phone"),className:y().virtualCode}),(0,D.jsx)("div",{className:y().infoTips,style:{paddingLeft:"84px"},children:"\u8bf7\u8ba4\u771f\u6821\u5bf9EBpay\u8d26\u6237\u5730\u5740\uff0c\u8d26\u6237\u9519\u8bef\u8d44\u91d1\u5c06\u65e0\u6cd5\u5230\u8d26\u3002\u57fa\u4e8e\u591a\u91cd\u4fdd\u62a4\u6280\u672f\u4fdd\u969c\u60a8\u7684\u6570\u5b57\u8d44\u4ea7\u5b89\u5168\u3002"}),(0,D.jsx)(c.Z,{shouldUpdate:!0,wrapperClassName:C().extraView,children:function(){var e,n=["alias","address","protocol","imageCode"];return null!==r&&void 0!==r&&r.phone||n.push("phone"),(0,D.jsx)("div",{className:y().buttonGroupView,children:(0,D.jsx)(d.Z,{disabled:!L.isFieldsTouched(n)||!!L.getFieldsError().filter((function(e){return e.errors.length})).length||!L.getFieldValue("imageCode")||(null===(e=L.getFieldValue("address"))||void 0===e?void 0:e.length)<20,className:y().buttonView,onClick:re,loading:ee,children:"\u786e\u5b9a"})})}})]})}},69265:function(e,n,t){"use strict";t.r(n);t(67294);var r=t(33320),a=t(78574),i=t(79378),o=t(64937),l=t(26931),u=t(81369),s=t(65498),d=t.n(s),c=t(55778),f=t(85379),p=t(11163),h=t(85893);n.default=function(){var e=(0,c.Pc)({ready:!!(0,f.r)()}).data;return(0,h.jsx)(r.Z,{children:(0,h.jsx)(a.Z,{rightList:[(0,h.jsx)(o.Z,{}),(0,h.jsx)(l.Z,{})],children:(0,h.jsxs)("div",{className:d().addEBpayAcountView,children:[(0,h.jsx)(i.Z,{title:"\u6dfb\u52a0EBpay\u8d26\u6237"}),(0,h.jsx)(u.Z,{onRefreshVirtualCards:function(){p.default.back()},userInfoData:e})]})})})}},44244:function(e,n,t){"use strict";var r;t.d(n,{a_:function(){return i},wL:function(){return o},UR:function(){return l}}),function(e){e[e.TRC20=0]="TRC20",e[e.ERC20=1]="ERC20",e[e.OMNI=2]="OMNI"}(r||(r={}));var a=[{name:r[1],value:r.ERC20,tip:"\u4e2d\u7b49\u989d\u5ea6\u5e38\u89c4\u4ea4\u6613\u63a8\u8350",reg:/^0x[0-9a-zA-Z]+/},{name:r[2],value:r.OMNI,tip:"\u5927\u989d\u4f4e\u9891\u4ea4\u6613\u63a8\u8350",reg:/^(1|3)[0-9a-zA-Z]+/},{name:r[0],value:r.TRC20,tip:"\u5c0f\u989d\u9ad8\u9891\u4ea4\u6613\u63a8\u8350",reg:/^T[0-9a-zA-Z]+/}
1],i=[{label:"TRC20",reg:a.find((function(e){return"TRC20"===e.name})).reg,value:a.find((function(e){return"TRC20"===e.name})).value},{label:"ERC20",reg:a.find((function(e){return"ERC20"===e.name})).reg,value:a.find((function(e){return"ERC20"===e.name})).value},{label:"OMNI",reg:a.find((function(e){return"OMNI"===e.name})).reg,value:a.find((function(e){return"OMNI"===e.name})).value}],o=function(){return{validator:function(e,n){return n&&/^[a-zA-Z0-9]{2,10}$/.test(n)?Promise.resolve():Promise.reject("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u522b\u540d\uff01")}}},l=function(){return{validator:function(e,n){return n&&/^[e][b]\w{19,}$/.test(n)?Promise.resolve():Promise.reject("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684EBpay\u5730\u5740\uff01")}}}},74580:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mine/addEBpayCard",function(){return t(69265)}])},94162:function(e){e.exports={editFormView:"__0euN_2aODuHtb2ayt4rv0Q__",buttonGroupView:"cYUDrosYtBhVO6tBJ6cZ5A__",buttonView:"rJDk0fWrAsiVy6olHyX0EQ__",buttonView2:"SRFO7d4IxtPWGenDkFM8zw__",radioGroupView:"w24OFQh8EAtvuBOqpoElsw__",phoneShow:"g0QK2BlDDW8b4OCFObyUDw__",usdtIcon:"pKLYfthwmdkqce7O8KmGkg__",virtualCode:"YDejalUHDT8ObstbRyqWSg__",infoTips:"__8BKPPT2KALXyWehyvyhNtQ__",codeButtonStyle:"__15QTRTJWeBgUpwG_zLiXUw__"}}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[9606,9586,9620,7331,7028,9534,1609,1169,9926,2872,8145,2649,7929,5086,7044,5926,981,2888,179],(function(){return n(33505),n(74580)}));var t=e.O();_N_E=t}]);
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.