PageSourceSearch

https://www.93ph9i.vip/_next/static/chunks/pages/mine/addDigitalCard-fac6400efad97113.js

js 93ph9i.vip collected 2026-10-09 22:43:44 UTC 9,686 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2398],{80773:function(e,n,t){"use strict";t.d(n,{Z:function(){return Q}});var r,a=t(59499),i=t(50029),l=t(17674),o=t(87794),u=t.n(o),s=t(67294),d=t(8145),c=t(45578),p=t(84289),f=t(98998),v=t(12312),h=t(39567),m=t(43306),g=t(66450),w=t(67052),x=t(79248),N=t.n(x),b=t(46897),j=t.n(b),C=t(59432),V=t(65731);!function(e){e[e.TRC20=0]="TRC20",e[e.ERC20=1]="ERC20",e[e.OMNI=2]="OMNI"}(r||(r={}));var Z=[{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]+/}],_=[{label:"TRC20",reg:Z.find((function(e){return"TRC20"===e.name})).reg,value:Z.find((function(e){return"TRC20"===e.name})).value},{label:"ERC20",reg:Z.find((function(e){return"ERC20"===e.name})).reg,value:Z.find((function(e){return"ERC20"===e.name})).value},{label:"OMNI",reg:Z.find((function(e){return"OMNI"===e.name})).reg,value:Z.find((function(e){return"OMNI"===e.name})).value}],y=t(26116),O=t(15186);function F(e){return I.apply(this,arguments)}function I(){return(I=(0,i.Z)(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=O.v_,e.next=3,(0,y.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/digital/add",e.t2));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var S=t(46799),T=t(55778),E=t(35935),P=t(8026),k=t(94750),R=t(16678),A=t(11163),z=t(85893);function D(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 G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=function(e){var n,t,r=e.userInfoData,a=e.onRefreshVirtualCards,o=null===(n=E.Z.preInfoData)||void 0===n?void 0:n.disablePhones,x=null===(t=E.Z.preInfoData)||void 0===t?void 0:t.globePhoneNumber,b=(0,s.useState)(k.CN),Z=b[0],y=b[1],O=d.Z.useForm(),I=(0,l.Z)(O,1)[0],D=(0,s.useState)("\u83b7\u53d6\u9a8c\u8bc1\u7801"),Q=D[0],B=D[1],M=(0,s.useState)(""),U=M[0],X=M[1],H=(0,s.useState)(!1),J=H[0],L=H[1],Y=(0,s.useState)(!1),K=Y[0],W=Y[1],q=(0,A.useRouter)(),$=(0,S.Z)(F,{manual:!0,onSuccess:function(){h.Z.info("\u6dfb\u52a0\u6210\u529f"),a(),(0,T.sE)(),I.resetFields(),q.back()},onError:function(e){h.Z.error(e.message)}}),ee=$.loading,ne=$.run;(0,s.useEffect)((function(){var e;I.setFieldsValue({realName:null!==(e=null===r||void 0===r?void 0:r.realN
1ame)&&void 0!==e?e:""})}),[]);var te=function(){var e=I.getFieldValue("address");if(I.getFieldValue("realName"))if(e){if(/^[A-Za-z0-9]{15,24}$/.test(e))return!0;h.Z.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57\u4eba\u6c11\u5e01\u8d26\u53f7")}else h.Z.info("\u8bf7\u8f93\u5165\u6570\u5b57\u4eba\u6c11\u5e01\u8d26\u53f7");else h.Z.info("\u8bf7\u8f93\u5165\u59d3\u540d")},re=function(){if(te())return null===I||void 0===I?void 0:I.validateFields().then(function(){var e=(0,i.Z)(u().mark((function e(n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne(G(G({},n),{},{phone:U||(0,R.ls)(I.getFieldValue("phone"),Z)}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())};return(0,z.jsxs)(d.Z,{form:I,className:N().editFormView,initialValues:{realName:"",address:"",name:"1",phone:null===r||void 0===r?void 0:r.phone,currency:"1",protocol:_[0].value},autoComplete:"off",children:[(0,z.jsx)(p.Z,{wrapperClassName:(0,P.z)(N().formItemView,j().extraView),label:"\u59d3\u540d",name:"realName",noTipStyle:!0,rules:null!==r&&void 0!==r&&r.realName?[]:[(0,C.fl)("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57\u4eba\u6c11\u5e01\u522b\u540d","\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u6570\u5b57\u4eba\u6c11\u5e01\u522b\u540d")],getValueFromEvent:V.v7,children:null!==r&&void 0!==r&&r.realName?(0,z.jsx)("div",{className:N().inputShowView,children:(0,V.ZR)(null===r||void 0===r?void 0:r.realN
1ame)}):(0,z.jsx)(f.Z,{className:N().inputItem,maxLength:24,placeholder:"\u8bf7\u8f93\u5165\u6570\u5b57\u4eba\u6c11\u5e01\u8d26\u6237\u771f\u5b9e\u59d3\u540d",disabledText:!(null===r||void 0===r||!r.realName),handleFormatValue:null})}),(0,z.jsx)(p.Z,{shouldUpdate:!0,label:"\u6570\u5b57\u4eba\u6c11\u5e01ID",name:"address",getValueFromEvent:function(e){return null===e||void 0===e?void 0:e.replace(/[^0-9a-z@.]/g,"").substring(0,24)},wrapperClassName:j().extraView,rules:[function(){return{validator:function(e,n){return n&&/^[A-Za-z0-9]{16,24}$/.test(n)?Promise.resolve():Promise.reject("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u6570\u5b57\u4eba\u6c11\u5e01\u8d26\u6237\uff01")}}}],children:(0,z.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u6570\u5b57\u4eba\u6c11\u5e01ID",handleFormatValue:function(e){return(0,V.f2)(e,100)},maxLength:100,onChange:function(){I.getFieldValue("address")&&(null===I||void 0===I||I.validateFields(["address"]))}})}),(0,z.jsx)(p.Z,{label:"\u624b\u673a\u53f7\u7801",name:"phone",wrapperClassName:(0,P.z)(j().extraView,j().extraViewPhone),rules:null!==r&&void 0!==r&&r.phone?[]:[(0,C.P3)("\u624b\u673a\u53f7\u7801",o,Z)],children:null!==r&&void 0!==r&&r.phone?(0,z.jsx)("div",{className:N().phoneShow,children:(0,R.Xf)(null===r||void 0===r?void 0:r.phone)}):(0,z.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\u7801",maxLength:11,width:256,disabledText:!(null===r||void 0===r||!r.phone),handleFormatValue:V.iI,prefix:x?(0,z.jsx)(k.Z,{phoneCode:Z,onSelect:function(e){null===I||void 0===I||I.validateFields(["phone"]),y(e)}}):"",onChange:function(e){if("CN"===Z.cCode&&(J&&L(!1),o)){var n=Object.keys(o);null!==n&&void 0!==n&&n.includes(e.slice(0,3))?W(!0):W(!1)}}})}),(0,z.jsx)(p.Z,{label:"\u9a8c\u8bc1\u7801",name:"imageCode",wrapperClassName:(0,P.z)(j().extraView,j().extraViewCodeWechat),style:{marginBottom:0},noTipStyle:!0,tip:(0,z.jsx)(v.Z,{setBtnText:B,onButtonClick:function(e,n){!function(e,n){te()&&(null===I||void 0===I||I.validateFields().then((function(){if(null!==r&&void 0!==r&&r.phone)return w.default.info({title:"\u5b89\u5168\u6821\u9a8c",message:(0,z.jsx)(m.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){X(e),L(!0),n&&t?n(t):n()}})});e({version:0,cate:"0",sendCodeNum:(0,R.ls)(I.getFieldValue("phone"),Z),type:"4",sendName:null===r||void 0===r?void 0:r.name})})).then((function(){})))}(e,n)},handleSendSuccess:function(){L(!0),w.modalHelper.handleOpenScroll(),(0,w.handleClose)()},type:K?"noDrop":"",className:N().codeButtonStyle,children:Q}),children:(0,z.jsx)(f.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u9a8c\u8bc1\u7801",maxLength:6,handleFormatValue:V.iI,className:j().radius8})}),J&&(null!==r&&void 0!==r&&r.phone?(0,R.Gu)(null===r||void 0===r?void 0:r.phone).isCN:"CN"===Z.cCode)&&(0,z.jsx)(g.Z,{type:"4",sendCodeNum:U||I.getFieldValue("phone"),className:N().virtualCode}),(0,z.jsx)("div",{className:N().infoTips,children:"\u8bf7\u8ba4\u771f\u6821\u5bf9\u6570\u5b57\u4eba\u6c11\u5e01\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,z.jsx)(p.Z,{shouldUpdate:!0,wrapperClassName:(0,P.z)(j().extraView,j().extraView2),children:function(){var e=["realName","address","protocol","imageCode"];return null!==r&&void 0!==r&&r.phone||e.push("phone"),(0,z.jsx)("div",{className:N().buttonGroupView,children:(0,z.jsx)(c.Z,{disabled:!I.isFieldsTouched(e)||!!I.getFieldsError().filter((function(e){return e.errors.length})).length||!I.getFieldValue("imageCode")||!I.getFieldValue("realName")||!I.getFieldValue("address")||!I.getFieldValue("phone"),className:N().buttonView,onClick:re,loading:ee,children:"\u786e\u5b9a"})})}})]})}},4368:function(e,n,t){"use strict";t.r(n);t(67294);var r=t(33320),a=t(78574),i=t(79378),l=t(64937),o=t(26931),u=t(80773),s=t(65498),d=t.n(s),c=t(55778),p=t(85379),f=t(11163),v=t(85893);n.default=function(){var e=(0,c.Pc)({ready:!!(0,p.r)()}).data;return(0,v.jsx)(r.Z,{children:(0,v.jsx)(a.Z,{rightList:[(0,v.jsx)(l.Z,{}),(0,v.jsx)(o.Z,{})],children:(0,v.jsxs)("div",{className:d().addEBpayAcountView,children:[(0,v.jsx)(i.Z,{title:"\u6dfb\u52a0\u6570\u5b57\u4eba\u6c11\u5e01\u8d26\u6237"}),(0,v.jsx)(u.Z,{onRefreshVirtualCards:function(){f.default.back()},userInfoData:e})]})})})}},41979:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mine/addDigitalCard",function(){return t(4368)}])},79248:function(e){e.exports={editFormView:"u6Ttyj4qcB4p3lEjknidlw__",buttonGroupView:"I2uuyhqT7vYjK_0Ukx8nRQ__",buttonView:"Wd4M2pcTKlAIhJG9dDUXAA__",buttonView2:"IkYu_9HPZX_KyxQ4HF7HfA__",radioGroupView:"e90t5AOOTlyzNZiQ2Y3imw__",phoneShow:"__08kmsmagVArb6otanQRt2g__",inputShowView:"vwGsYvk5ubauw03J7zb6IA__",usdtIcon:"UPrX6A2WbvJQA3Srpe2j3g__",virtualCode:"PwjwIVJUiTqHb0O3vF5zKQ__",infoTips:"k8msUSynllh4sNcFI43Yug__",codeButtonStyle:"gX_ImWsRACVlhjQrTGE6GQ__"}}},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(41979)}));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.