1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5243],{5010:function(e,n,t){"use strict";t.d(n,{Z:function(){return ne}});var r,a=t(59499),i=t(50029),o=t(17674),l=t(87794),s=t.n(l),u=t(67294),c=t(8145),d=t(45578),p=t(84289),f=t(98998),h=t(12312),m=t(39567),g=t(43306),v=t(66450),w=t(67052),j=t(64725),x=t.n(j),b=t(46897),_=t.n(b),C=t(59432),y=t(65731);!function(e){e[e.TRC20=0]="TRC20",e[e.ERC20=1]="ERC20",e[e.OMNI=2]="OMNI"}(r||(r={}));var N=[{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]+/}],O=[{label:"TRC20",reg:N.find((function(e){return"TRC20"===e.name})).reg,value:N.find((function(e){return"TRC20"===e.name})).value},{label:"ERC20",reg:N.find((function(e){return"ERC20"===e.name})).reg,value:N.find((function(e){return"ERC20"===e.name})).value},{label:"OMNI",reg:N.find((function(e){return"OMNI"===e.name})).reg,value:N.find((function(e){return"OMNI"===e.name})).value}],Z=t(26116),V=t(15186);function P(e){return S.apply(this,arguments)}function S(){return(S=(0,i.Z)(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=V.v_,e.next=3,(0,Z.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/alipay/add",e.t2));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var I=t(46799),A=t(55778),F=t(35935),k=t(50361),R=t.n(k),E=t(90116),B=t(95517),T=t.n(B),D=t(5152),z=t(65616),L=t.n(z),M=t(84551),q=t(85893);function G(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 H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var K=(0,D.default)((function(){return Promise.all([t.e(1691),t.e(995)]).then(t.bind(t,70995))}),{ssr:!1,loadableGenerated:{webpack:function(){return[70995]}}}),U=function(e){var n=(0,u.useState)(!1),t=n[0],r=n[1],a=(0,u.useState)([]),o=a[0],l=a[1],c=((0,u.useRef)(null),(0,u.useState)(0)),d=c[0],p=c[1],f=function(e){return m.Z.loading("\u4e0a\u4f20\u4e2d..."),w(e),new Promise((function(n){var t=new FormData;t.append("file",e),t.append("category",3),t.append("sensitive",1);var r=new FileReader;
1r.readAsDataURL(null===e||void 0===e?void 0:e.originFileObj),r.onload=function(){var e=(0,i.Z)(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(new Image).src=t.target.result,e.next=4,h(t.target.result);case 4:""==(r=e.sent)&&n(""),n({code:r,src:t.target.result});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}))},h=function(e){return new Promise((function(n,t){try{var r=document.createElement("canvas"),a=r.getContext("2d"),i=new Image;i.src=e,i.onload=function(){if(!a)return"";r.width=i.width,r.height=i.height,a.drawImage(i,0,0,i.width,i.height);var e,t=a.getImageData(0,0,i.width,i.height),o=L()(t.data,t.width,t.height,{inversionAttempts:"dontInvert"});o?n(null!==(e=null===o||void 0===o?void 0:o.data)&&void 0!==e?e:""):n("")}}catch(o){n("")}}))},g=function(){var n=(0,i.Z)(s().mark((function n(t){var r,a,i,u,c;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=[],a=0;case 2:if(!(a<t.length)){n.next=15;break}return i=t[a],n.next=6,f(i.originFileObj);case 6:if(null!==(u=n.sent)&&void 0!==u&&u.src){n.next=11;break}return m.Z.error("\u4e8c\u7ef4\u7801\u8bc6\u522b\u5931\u8d25"),v(a,!1),n.abrupt("continue",12);case 11:r.push(H({},u));case 12:a++,n.next=2;break;case 15:(c=[].concat((0,E.Z)(o),r)).length>e.num&&(m.Z.info("\u6700\u591a\u53ea\u652f\u6301\u4e0a\u4f20".concat(e.num,"\u5f20\u56fe\u7247")),c=c.slice(0,e.num)),e.setImgParamArr(c),l(c);case 20:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),v=function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=R()(o),a=R()(e.imgParamArr);r.splice(n,1),a.splice(n,1),e.setImgParamArr(a),l(r),t&&m.Z.success("\u5220\u9664\u6210\u529f",1)},w=function(e){return{png:!0,jpg:!0,jpeg:!0}[e.type.split("/")[1]]?!(e.size>15728640)||(m.Z.info("\u56fe\u7247\u8d85\u8fc715MB\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20",2),!1):(m.Z.info("\u4e0a\u4f20\u9519\u8bef\uff0c\u6587\u4ef6\u683c\u5f0f\u5fc5\u987b\u4e3a\uff1apng/jpg/jpeg",2),!1)},j=o.map((function(e){return e.src}))||[];return(0,q.jsxs)("div",{className:T().uploadContainer,children:[(0,q.jsx)("ul",{className:T().imgList,children:o.map((function(e,n){return(0,q.jsxs)("li",{children:[(0,q.jsx)("img",{className:T().imgListImg,width:64,height:64,onClick:function(){return e=n,r(!0),void p(e);var e},src:e.src,alt:""}),(0,q.jsx)("em",{className:T().delImg,onClick:function(){v(n)}})]},n)}))}),o.length<e.num?(0,q.jsx)(M.Z,{onChange:function(e){for(var n=e.fileList,t=[],r=0;r<n.length;r++)t.push({originFileObj:n[r]});g(t)},fileList:o,children:(0,q.jsx)("div",{className:T().uploadBtn,children:(0,q.jsx)("i",{className:T().uploadIcon})})}):null,t&&(0,q.jsx)(K,{visible:t,defaultIndex:d,onClose:function(){p(0),r(!1)},imgList:j})]})},Y=t(27929),Q=t(8026),X=t(94750),W=t(16678),J=t(11163);function $(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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=function(e){var n,r,a=e.userInfoData,l=e.onRefreshVirtualCards,j=null===(n=F.Z.preInfoData)||void 0===n?void 0:n.disablePhones,b=null===(r=F.Z.preInfoData)||void 0===r?void 0:r.globePhoneNumber,N=(0,u.useState)(X.CN),Z=N[0],V=N[1],S=c.Z.useForm(),k=(0,o.Z)(S,1)[0],R=(0,u.useState)("\u83b7\u53d6\u9a8c\u8bc1\u7801"),E=R[0],B=R[1],T=(0,u.useState)(""),D=T[0],z=T[1],L=(0,u.useState)(!1),M=L[0],G=L[1],H=(0,u.useState)(!1),K=H[0],$=H[1],ne=(0,u.useState)([]),te=ne[0],re=ne[1],ae=(0,J.useRouter)(),ie=(0,I.Z)(P,{manual:!0,onSuccess:function(){m.Z.info("\u6dfb\u52a0\u6210\u529f"),l(),(0,A.sE)(),k.resetFields(),ae.back()},onError:function(e){m.Z.error(e.message)}}),oe=ie.loading,le=ie.run,se=function(){var e=k.getFieldValue("address");if(k.getFieldValue("realName"))if(e){if(/^(1[3-9]\d{9}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/.test(e))return!0;m.Z.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u652f\u4ed8\u5b9d\u8d26\u6237")}else m.Z.info("\u8bf7\u8f93\u5165\u652f\u4ed8\u5b9d\u8d26\u6237");else m.Z.info("\u8bf7\u8f93\u5165\u59d3\u540d")},ue=function(){if(se())return null===k||void 0===k?void 0:k.validateFields().then(function(){var e=(0,i.Z)(s().mark((function e(n){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:le(ee(ee({},n),{},{realNameVersion:1,addressPic:null===te||void 0===te||null===(t=te[0])||void 0===t?void 0:t.code,phone:D||(0,W.ls)(k.getFieldValue("phone"),Z)}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())};return(0,q.jsxs)(c.Z,{form:k,className:x().editFormView,initialValues:{realName:"",address:"",name:"1",phone:null===a||void 0===a?void 0:a.phone,currency:"1",protocol:O[0].value},autoComplete:"off",children:[(0,q.jsx)(p.Z,{wrapperClassName:(0,Q.z)(x().formItemView,_().extraView),label:"\u59d3\u540d",name:"realName",noTipStyle:!0,rules:[(0,C.fl)("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u652f\u4ed8\u5b9d\u59d3\u540d","\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u652f\u4ed8\u5b9d\u59d3\u540d")],getValueFromEvent:y.v7,children:(0,q.jsx)(f.Z,{className:x().inputItem,maxLength:24,placeholder:"\u8bf7\u8f93\u5165\u652f\u4ed8\u5b9d\u8d26\u6237\u771f\u5b9e\u59d3\u540d",handleFormatValue:null})}),(0,q.jsx)(p.Z,{shouldUpdate:!0,label:"\u652f\u4ed8\u5b9d\u6536\u6b3e\u4e8c\u7ef4\u7801",name:"qrAddress",wrapperClassName:_().extraView,extra:(0,q.jsxs)("div",{children:["\u6587\u4ef6\u683c\u5f0f\u4e3apng\u3001jpg\u3001jpeg\uff0c\u4e14\u5927\u5c0f\u4e0d\u8d85\u8fc715MB",(0,q.jsx)("span",{className:x().btnShowBoxContainer,onClick:function(){w.default.alert({title:"\u6536\u6b3e\u7801\u793a\u4f8b",style:{textAlign:"center",width:"700px"},message:(0,q.jsxs)("div",{className:x().showBoxContainer,style:{padding:"0 80px",color:"#414655"},children:[(0,q.jsxs)("div",{className:x().tips,children:["\u8bf7\u52a1\u5fc5\u4e0a\u4f20\u6e05\u6670\u7684\u6536\u6b3e\u4e8c\u7ef4\u7801\u56fe\u7247\uff0c",(0,q.jsx)("br",{}),"\u5982\u679c\u56fe\u7247\u4e0d\u7b26\u5408\u8981\u6c42\u4f1a\u5f71\u54cd\u53d6\u6b3e\u3002"]}),(0,q.jsx)(Y.Z,{objectFit:"cover",className:x().imgview,src:t(55261)})]}),footer:[],handleClose:function(){}})},children:"\u6536\u6b3e\u7801\u793a\u4f8b"})]}),children:(0,q.jsx)(U,{isClear:!1,imgClass:x().imgClass,num:1,setImgParamArr:re,imgParamArr:te})}),(0,q.jsx)(p.Z,{shouldUpdate:!0,label:"\u652f\u4ed8\u5b9d\u8d26\u6237",name:"address",wrapperClassName:_().extraView,rules:[function(){return{validator:function(e,n){return n&&/^(1[3-9]\d{9}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/.test(n)?Promise.resolve():Promise.reject("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u652f\u4ed8\u5b9d\u8d26\u6237\uff01")}}}],children:(0,q.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u652f\u4ed8\u5b9d\u8d26\u6237",maxLength:100,onChange:function(){k.getFieldValue("address")&&(null===k||void 0===k||k.validateFields(["address"]))}})}),(0,q.jsx)(p.Z,{label:"\u624b\u673a\u53f7\u7801",name:"phone",wrapperClassName:(0,Q.z)(_().extraView,_().extraViewPhone),rules:null!==a&&void 0!==a&&a.phone?[]:[(0,C.P3)("\u624b\u673a\u53f7\u7801",j,Z)],children:null!==a&&void 0!==a&&a.phone?(0,q.
1jsx)("div",{className:x().phoneShow,children:(0,W.Xf)(null===a||void 0===a?void 0:a.phone)}):(0,q.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801",maxLength:11,width:256,disabledText:!(null===a||void 0===a||!a.phone),handleFormatValue:y.iI,prefix:b?(0,q.jsx)(X.Z,{phoneCode:Z,onSelect:function(e){null===k||void 0===k||k.validateFields(["phone"]),V(e)}}):"",onChange:function(e){if("CN"===Z.cCode&&(M&&G(!1),j)){var n=Object.keys(j);null!==n&&void 0!==n&&n.includes(e.slice(0,3))?$(!0):$(!1)}}})}),(0,q.jsx)(p.Z,{label:"\u9a8c\u8bc1\u7801",name:"imageCode",wrapperClassName:(0,Q.z)(_().extraView,_().extraViewCodeWechat),style:{marginBottom:0},noTipStyle:!0,tip:(0,q.jsx)(h.Z,{setBtnText:B,onButtonClick:function(e,n){!function(e,n){se()&&(null===k||void 0===k||k.validateFields().then((function(){if(null!==a&&void 0!==a&&a.phone)return w.default.info({title:"\u5b89\u5168\u6821\u9a8c",message:(0,q.jsx)(g.Z,{name:null===a||void 0===a?void 0:a.name,type:"4",phone:null===a||void 0===a?void 0:a.phone,callback:function(e,t){z(e),G(!0),n&&t?n(t):n()}})});e({version:0,cate:"0",sendCodeNum:(0,W.ls)(k.getFieldValue("phone"),Z),type:"4",sendName:null===a||void 0===a?void 0:a.name})})).then((function(){})))}(e,n)},handleSendSuccess:function(){G(!0),w.modalHelper.handleOpenScroll(),(0,w.handleClose)()},type:K?"noDrop":"",className:x().codeButtonStyle,children:E}),children:(0,q.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u9a8c\u8bc1\u7801",maxLength:6,handleFormatValue:y.iI})}),M&&(null!==a&&void 0!==a&&a.phone?(0,W.Gu)(null===a||void 0===a?void 0:a.phone).isCN:"CN"===Z.cCode)&&(0,q.jsx)(v.Z,{type:"4",sendCodeNum:D||k.getFieldValue("phone"),className:x().virtualCode}),(0,q.jsx)("div",{className:x().infoTips,children:"\u8bf7\u8ba4\u771f\u6821\u5bf9\u652f\u4ed8\u5b9d\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,q.jsx)(p.Z,{shouldUpdate:!0,wrapperClassName:(0,Q.z)(_().extraView,_().extraView2),children:function(){var e,n=["realName","address","protocol","imageCode"];return null!==a&&void 0!==a&&a.phone||n.push("phone"),(0,q.jsx)("div",{className:x().buttonGroupView,children:(0,q.jsx)(d.Z,{disabled:!k.isFieldsTouched(n)||!!k.getFieldsError().filter((function(e){return e.errors.length})).length||!k.getFieldValue("imageCode")||!(null!==te&&void 0!==te&&null!==(e=te[0])&&void 0!==e&&e.code),className:x().buttonView,onClick:ue,loading:oe,children:"\u786e\u5b9a"})})}})]})}},95517:function(e){e.exports={uploadContainer:"AEoR3QWav2PnawViryDWkQ__",uploadBtn:"__9SowXTCg1BKV0VYf2erSSg__",uploadFile:"DYPh_qNsRNJ_MqOAi0CPaA__",uploadIcon:"__lis4Y0wRUa3arDce2V7Q__",imgList:"__9TjPvaBRqKB8Y0ZO53hNpg__",imgListImg:"XfgOVi_X_jS99zoFl7WH_g__",delImg:"c_qqy32m4ywHNimc64_9Kw__"}},64725:function(e){e.exports={editFormView:"xcJVsOhw8APIxE4pHAjOjg__",buttonGroupView:"ug1BRcuZyTbcmunYqVB2Ig__",buttonView:"LXlAk7ynLKsZkXGKjKu8pA__",buttonView2:"BUwdeB0J2KbsQm27po_5Eg__",radioGroupView:"S5fhvt3jEr7J_1juoO4_7g__",inputShowView:"tzhvPcj0rBrHPAXoopS_hg__",phoneShow:"ezaNILM_kFvhjNbKhQp77Q__",usdtIcon:"A2RlU2138HjWMTfMGb4N_w__",virtualCode:"ihlO3hvbSdqN8nl6yp1Qbw__",infoTips:"__4csA1W2wygthHutdh0lTDg__",showBoxContainer:"iEeGPOi2OLEmkovl6g_wrw__",imgview:"SnfGzxaqnAn6i36CsT2n4g__",btnShowBoxContainer:"mjihIidDMyA2oTPYn0L_Hw__",codeButtonStyle:"YuV41YmAVZC6RwNqUwS9pA__"}},55261:function(e){e.exports="/_next/static/chunks/images/upload_example_alipay-34a826a38b65068c2aadb3ec6fa70334.png"}}]);
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.