top-block-game-cocos-demo/build/web-mobile-001/assets/main/index.js

74 lines
48 KiB
JavaScript

System.register("chunks:///_virtual/abi.ts",["cc"],(function(e){"use strict";var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"b0940sbvspGMZGVpUs1utrr","abi",void 0);e("default",[{inputs:[{internalType:"string",name:"tokenName",type:"string"},{internalType:"string",name:"tokenSymbol",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"}],name:"Mint",outputs:[],stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]);t._RF.pop()}}}));
System.register("chunks:///_virtual/ajax.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"5996a3xpdxGV52P28C8e5pq","ajax",void 0);t("default",{hosturl:"http://81.71.13.173:8080",sendAjax:function(t,e,a,s){var n=new XMLHttpRequest;n.open(a,this.hosturl+t,!0);var r=localStorage.getItem("token");r&&n.setRequestHeader("Authorization",r);var u=JSON.stringify(e);n.send(u),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var t=JSON.parse(n.responseText);s(t)}}}});e._RF.pop()}}}));
System.register("chunks:///_virtual/Btn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./TanChuang.ts"],(function(n){"use strict";var t,e,r,a,i,o,c,u;return{setters:[function(n){t=n.applyDecoratedDescriptor,e=n.inheritsLoose,r=n.initializerDefineProperty,a=n.assertThisInitialized},function(n){i=n.cclegacy,o=n._decorator,c=n.Component},function(n){u=n.tanchuan}],execute:function(){var s,l,p,h,f;i._RF.push({},"1d631zpvopGu6QN11mMr05g","Btn",void 0);var g=o.ccclass,y=o.property;n("TanChuangBtn",(s=g("TanChuangBtn"),l=y(u),s((f=t((h=function(n){function t(){for(var t,e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i))||this,r(t,"tanchuan",f,a(t)),t}e(t,n);var i=t.prototype;return i.start=function(){},i.close=function(){this.tanchuan.close()},i.update=function(n){},t}(c)).prototype,"tanchuan",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=h))||p));i._RF.pop()}}}));
System.register("chunks:///_virtual/close.ts",["./rollupPluginModLoBabelHelpers.js","cc","./rachageModel.ts","./RechageNum.ts","./Substitute.ts","./userdata.ts","./WithdrawalModal.ts","./WithdrawalData.ts","./TanChuang.ts","./main.ts"],(function(t){"use strict";var e,a,n,i,r,o,u,c,l,s,h,d,f,p,b,g;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.inheritsLoose,n=t.initializerDefineProperty,i=t.assertThisInitialized},function(t){r=t.cclegacy,o=t._decorator,u=t.director,c=t.Component},function(t){l=t.rachageModel},function(t){s=t.rechargeNum},function(t){h=t.Substitute},function(t){d=t.userdata},function(t){f=t.WithdrawalModal},function(t){p=t.WithdrawalData},function(t){b=t.tanchuan},function(t){g=t.main}],execute:function(){var m,w,v,y,M,W,z,D,R,S,P,_,A,C,F,L,N,O,T;r._RF.push({},"a949arMe05AOaRUaqeKP9PR","close",void 0);var U=o.ccclass,j=o.property;t("close",(m=U("close"),w=j(g),v=j(l),y=j(s),M=j(h),W=j(d),z=j(f),D=j(p),R=j(b),m((_=e((P=function(t){function e(){for(var e,a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return e=t.call.apply(t,[this].concat(r))||this,n(e,"main",_,i(e)),n(e,"rachagemodel",A,i(e)),n(e,"rechargenum",C,i(e)),n(e,"substitute",F,i(e)),n(e,"userdata",L,i(e)),n(e,"WithdrawalModal",N,i(e)),n(e,"WithdrawalData",O,i(e)),n(e,"tanchuan",T,i(e)),e}a(e,t);var r=e.prototype;return r.start=function(){},r.closerechageModel=function(){this.rachagemodel.node.active=!1},r.closeMain=function(){this.main.node.active=!1},r.closeRechargenum=function(){this.rechargenum.node.active=!1},r.closeSubstitute=function(){this.substitute.node.active=!1},r.closeUserdata=function(){this.userdata.node.active=!1},r.closeWithdrawalModal=function(){this.WithdrawalModal.node.active=!1},r.closeWithdrawalData=function(){this.WithdrawalData.node.active=!1},r.closetanchuan=function(){this.tanchuan.node.active=!1},r.gettanchuan=function(){this.tanchuan.node.active=!0},r.update=function(t){},r.getOut=function(){u.loadScene("login")},e}(c)).prototype,"main",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(P.prototype,"rachagemodel",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(P.prototype,"rechargenum",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=e(P.prototype,"substitute",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(P.prototype,"userdata",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(P.prototype,"WithdrawalModal",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=e(P.prototype,"WithdrawalData",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(P.prototype,"tanchuan",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=P))||S));r._RF.pop()}}}));
System.register("chunks:///_virtual/coinBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./RechageNum.ts","./ajax.ts","./rachageModel.ts"],(function(e){"use strict";var o,n,t,c,i,r,a,l,u,s,g;return{setters:[function(e){o=e.applyDecoratedDescriptor,n=e.inheritsLoose,t=e.initializerDefineProperty,c=e.assertThisInitialized},function(e){i=e.cclegacy,r=e._decorator,a=e.director,l=e.Component},function(e){u=e.rechargeNum},function(e){s=e.default},function(e){g=e.rachageModel}],execute:function(){var d,h,f,p,v,R,m;i._RF.push({},"e0f80zveGpGMKehbGHBUZ0y","coinBtn",void 0);var y=r.ccclass,b=r.property;e("coinBtn",(d=y("coinBtn"),h=b(u),f=b(g),d((R=o((v=function(e){function o(){for(var o,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return o=e.call.apply(e,[this].concat(i))||this,t(o,"RechargeNum",R,c(o)),t(o,"RachageModel",m,c(o)),o}n(o,e);var i=o.prototype;return i.start=function(){},i.choseCoin=function(){var e=this;s.sendAjax("/api/v1/recharge/get",{},"GET",(function(o){if(console.log(o),"200"==o.code)e.RechargeNum.init(o.data[0]),e.RechargeNum.node.active=!0,e.RachageModel.node.active=!1;else{if("10001"!=o.code)return void console.log(o);console.log("登录失效"),a.loadScene("login")}}))},i.choseDds=function(){var e=this;s.sendAjax("/api/v1/recharge/get",{},"GET",(function(o){if(console.log(o),"200"==o.code)e.RechargeNum.init(o.data[1]),e.RechargeNum.node.active=!0,e.RachageModel.node.active=!1;else{if("10001"!=o.code)return void console.log(o);console.log("登录失效"),a.loadScene("login")}}))},i.update=function(e){},o}(l)).prototype,"RechargeNum",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=o(v.prototype,"RachageModel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=v))||p));i._RF.pop()}}}));
System.register("chunks:///_virtual/eventBus.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"c8a86xBewJDqY1y753RSQuf","eventBus",void 0);var n;t({EventBus:n=function(){function t(){this.eventList=void 0,this.eventList={}}var e=t.prototype;return e.on=function(t,e){var n=this.eventList[t];n?n.push(e):this.eventList[t]=[e]},e.emit=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.eventList[t]&&this.eventList[t].forEach((function(t){t.apply(void 0,n)}))},t}(),default:n});e._RF.pop()}}}));
System.register("chunks:///_virtual/index.ts",["cc","./tbg.ts"],(function(t){"use strict";var e,c;return{setters:[function(t){e=t.cclegacy},function(t){c=t.TBG}],execute:function(){e._RF.push({},"31d33tY6VFFfowhvIKLru2t","index",void 0);t("default",c);e._RF.pop()}}}));
System.register("chunks:///_virtual/ItemList.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ajax.ts"],(function(e){"use strict";var t,r,i,n,a,o,c,u,s,l,p,f,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty,i=e.inheritsLoose,n=e.assertThisInitialized,a=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){c=e.cclegacy,u=e._decorator,s=e.Prefab,l=e.Component,p=e.director,f=e.instantiate},function(e){m=e.default}],execute:function(){var b,h,d,y,g,w,v,x,z,P,k,I,L;c._RF.push({},"27335xaDl9Jw5lK1s+Pnap/","ItemList",void 0);var D=u.ccclass,T=u.property,_=e("Item",D("Item")((d=t((h=function(){r(this,"bctype",d,this),r(this,"num",y,this),r(this,"type",g,this),r(this,"price",w,this),r(this,"time",v,this)}).prototype,"bctype",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),y=t(h.prototype,"num",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g=t(h.prototype,"type",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),w=t(h.prototype,"price",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v=t(h.prototype,"time",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=h))||b);e("ItemList",(x=T([_]),z=T(s),D((I=t((k=function(e){function t(){for(var t,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a))||this,r(t,"items",I,n(t)),r(t,"itemPrefab",L,n(t)),t}return i(t,e),t.prototype.onLoad=function(){var e=a(o().mark((function e(){var t,r=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},m.sendAjax("/api/v1/recharge",t,"POST",a(o().mark((function e(t){var i,n,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("200"!=t.code||!t.data.items){e.next=6;break}for(console.log("充值记录为",t.data.items),r.items=t.data.items,i=0;i<r.items.length;++i)n=f(r.itemPrefab),a=t.data.items[i],r.node.addChild(n),n.getComponent("ItemTemplate").init(a);e.next=13;break;case 6:if("10001"!=t.code){e.next=11;break}console.log("登录失效"),p.loadScene("login"),e.next=13;break;case 11:return console.log(t),e.abrupt("return");case 13:case"end":return e.stop()}}),e)}))));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t}(l)).prototype,"items",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=t(k.prototype,"itemPrefab",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=k))||P));c._RF.pop()}}}));
System.register("chunks:///_virtual/ItemTemplate.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,i,r,n,l,u,o,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,r=e.initializerDefineProperty,n=e.assertThisInitialized},function(e){l=e.cclegacy,u=e._decorator,o=e.Label,a=e.Component}],execute:function(){var c,p,s,b,m,f,y,g,h,v,z,d,w;l._RF.push({},"ea5b9FPPQ1LU6xgN2b46WGP","ItemTemplate",void 0);var I=u.ccclass,P=u.property;e("ItemTemplate",(c=I("ItemTemplate"),p=P(o),s=P(o),b=P(o),m=P(o),f=P(o),c((h=t((g=function(e){function t(){for(var t,i=arguments.length,l=new Array(i),u=0;u<i;u++)l[u]=arguments[u];return t=e.call.apply(e,[this].concat(l))||this,r(t,"bctype",h,n(t)),r(t,"num",v,n(t)),r(t,"type",z,n(t)),r(t,"price",d,n(t)),r(t,"time",w,n(t)),t}i(t,e);var l=t.prototype;return l.init=function(e){this.bctype.string=e.bctype,this.num.string=e.num,this.type.string=e.type,this.price.string=e.price,this.time.string=e.time},l.start=function(){},l.update=function(e){},t}(a)).prototype,"bctype",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(g.prototype,"num",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(g.prototype,"type",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=t(g.prototype,"price",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(g.prototype,"time",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=g))||y));l._RF.pop()}}}));
System.register("chunks:///_virtual/main",["./ItemList.ts","./ItemTemplate.ts","./NewComponent.ts","./RechageNum.ts","./Recharge.ts","./Substitute.ts","./TanChuang.ts","./WithdrawalBtn.ts","./WithdrawalData.ts","./WithdrawalModal.ts","./abi.ts","./ajax.ts","./close.ts","./main.ts","./rachageModel.ts","./coinBtn.ts","./rechageBtn.ts","./tableMain.ts","./Btn.ts","./test.ts","./eventBus.ts","./index.ts","./tbg.ts","./web3.ts","./userBtn.ts","./userLabel.ts","./userdata.ts"],(function(){"use strict";return{setters:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}}));
System.register("chunks:///_virtual/main.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.inheritsLoose},function(t){e=t.cclegacy,o=t._decorator,r=t.Component}],execute:function(){var i;e._RF.push({},"98770NY77pN7YzCEbi3wy42","main",void 0);var c=o.ccclass;o.property,t("main",c("main")(i=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var o=e.prototype;return o.start=function(){},o.close=function(){},o.update=function(t){},e}(r))||i);e._RF.pop()}}}));
System.register("chunks:///_virtual/NewComponent.ts",["./rollupPluginModLoBabelHelpers.js","cc","./rachageModel.ts","./RechageNum.ts","./ajax.ts","./index.ts","./abi.ts","./TanChuang.ts"],(function(e){"use strict";var n,t,r,a,o,c,i,u,s,l,f,p,g,h,d,b,m;return{setters:[function(e){n=e.applyDecoratedDescriptor,t=e.inheritsLoose,r=e.initializerDefineProperty,a=e.assertThisInitialized,o=e.asyncToGenerator,c=e.regeneratorRuntime},function(e){i=e.cclegacy,u=e._decorator,s=e.Prefab,l=e.director,f=e.Component},function(e){p=e.rachageModel},function(e){g=e.rechargeNum},function(e){h=e.default},function(e){d=e.default},function(e){b=e.default},function(e){m=e.tanchuan}],execute:function(){var v,x,w,k,y,T,N,S,C,P,z,j;i._RF.push({},"f1ef2cIlPRMf7DqznSUmC33","NewComponent",void 0);var A=u.ccclass,D=u.property;e("NewComponent",(v=A("NewComponent"),x=D(s),w=D(p),k=D(g),y=D(m),v((S=n((N=function(e){function n(){for(var n,t=arguments.length,o=new Array(t),c=0;c<t;c++)o[c]=arguments[c];return(n=e.call.apply(e,[this].concat(o))||this).username=null,r(n,"itemPrefab",S,a(n)),r(n,"model",C,a(n)),r(n,"bctype",P,a(n)),r(n,"rechargenum",z,a(n)),r(n,"Tanchuan",j,a(n)),n}t(n,e);var i=n.prototype;return i.start=function(){new d({}).on("accountChange",(function(){console.log("用户切换"),l.loadScene("login")}))},i.takeWhData=function(){var e=o(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n={},h.sendAjax("/api/v1/withdrawal/get",n,"POST",o(c().mark((function e(n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("200"!=n.code){e.next=4;break}console.log("提现记录为",n.data),e.next=11;break;case 4:if("10001"!=n.code){e.next=9;break}console.log("登录失效"),l.loadScene("login"),e.next=11;break;case 9:return console.log(n),e.abrupt("return");case 11:case"end":return e.stop()}}),e)}))));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i.onload=function(){},i.createNft=function(){var e=o(c().mark((function e(){var n,t,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new d({}),e.next=3,n.login();case 3:return t=e.sent,e.next=6,n.createNft({abi:b,contract:"0x3865194cD048f7b14b465a96907fB6546B888216",toAddress:t});case 6:r=e.sent,console.log(r);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i.recharge=function(){this.model.node.active=!0},i.rechargeNum=function(){(this.rechargenum.node.active=!0)?this.rechargenum.node.active=!1:this.rechargenum.node.active=!0},i.setTanChuang=function(){(this.Tanchuan.node.active=!0)?this.Tanchuan.node.active=!1:this.Tanchuan.node.active=!0},i.getRechargeNew=function(){var e=o(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,h.sendAjax("/api/v1/recharge",n,"POST",o(c().mark((function e(n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("200"!=n.code){e.next=4;break}console.log("充值记录为",n.data),e.next=11;break;case 4:if("10001"!=n.code){e.next=9;break}console.log("登录失效"),l.loadScene("login"),e.next=11;break;case 9:return console.log(n),e.abrupt("return");case 11:case"end":return e.stop()}}),e)}))));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i.login=function(){var e=o(c().mark((function e(){var n,t,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new d({}),t={},r=null,e.next=5,h.sendAjax("/api/v1/get/sign",t,"GET",o(c().mark((function e(a){var o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("200"!=a.code){e.next=17;break}return console.log(a),r=a.data,t.hash=r,e.next=6,n.login();case 6:return e.sent,e.next=9,n.sign({hash:r});case 9:return o=e.sent,d.sign,console.log(o),t.sign=o.sign,e.next=15,h.sendAjax("/api/v1/user/login",t,"POST",(function(e){if("200"==e.code){l.loadScene("main");var n=e.data.token;localStorage.setItem("token",n)}else console.log(e)}));case 15:e.next=19;break;case 17:return console.log(a),e.abrupt("return");case 19:case"end":return e.stop()}}),e)}))));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i.update=function(e){},n}(f)).prototype,"itemPrefab",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=n(N.prototype,"model",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=n(N.prototype,"bctype",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=n(N.prototype,"rechargenum",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=n(N.prototype,"Tanchuan",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=N))||T));i._RF.pop()}}}));
System.register("chunks:///_virtual/rachageModel.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,r,o,c;return{setters:[function(t){e=t.inheritsLoose},function(t){r=t.cclegacy,o=t._decorator,c=t.Component}],execute:function(){var n;r._RF.push({},"91737xikSpClJbxrtNJlG7v","rachageModel",void 0);var a=o.ccclass;o.property,t("rachageModel",a("rachageModel")(n=function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var o=r.prototype;return o.start=function(){},o.update=function(t){},r}(c))||n);r._RF.pop()}}}));
System.register("chunks:///_virtual/rechageBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./bignumber.mjs_cjs=&original=.js","./ajax.ts","./index.ts","./RechageNum.ts","./TanChuang.ts","./bignumber.js"],(function(e){"use strict";var t,n,r,i,a,o,c,u,s,l,h,g,f,p,d,m,b,v;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,r=e.initializerDefineProperty,i=e.assertThisInitialized,a=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){c=e.cclegacy,u=e._decorator,s=e.EditBox,l=e.Label,h=e.Component,g=e.log,f=e.director},null,function(e){p=e.default},function(e){d=e.default},function(e){m=e.rechargeNum},function(e){b=e.tanchuan},function(e){v=e.default}],execute:function(){var y,w,N,x,R,j,z,B,E,T,_,L,S;c._RF.push({},"d894bqQF01JYqH5sL9htC9/","rechageBtn",void 0);var C=u.ccclass,D=u.property;e("rechageBtn",(y=C("rechageBtn"),w=D(s),N=D(m),x=D(l),R=D(l),j=D(b),y((E=t((B=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a))||this,r(t,"RechageNum",E,i(t)),r(t,"rechargeNum",T,i(t)),r(t,"privateddress",_,i(t)),r(t,"Eth",L,i(t)),r(t,"tanchuan",S,i(t)),t}n(t,e);var c=t.prototype;return c.start=function(){},c.text=function(){var e=a(o().mark((function e(){var t,n,r,i,a,c,u,s,l=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new d({}),e.next=3,t.login();case 3:return n=e.sent,r={},console.log(this.Eth.string),i=localStorage.getItem("address"),console.log(i),a=new v(Number(this.RechageNum.string)),c=new v(Number(this.Eth.string)),u=new v(Math.pow(10,18)).times(a).times(c),console.log(u),e.next=14,t.sendTransaction({from:n,to:i,value:u});case 14:s=e.sent,g(s),this.rechargeNum.node.active=!1,this.tanchuan.init("充值中..."),this.tanchuan.node.active=!0,r.txhash=s.transactionHash,this.schedule((function(){p.sendAjax("/api/v1/select/hash",r,"POST",(function(e){if(console.log(e),"200"==e.code&&e.data)l.unschedule(l.schedule),l.tanchuan.init("充值成功");else{if("10001"!=e.code)return void console.log(e);console.log("登录失效"),f.loadScene("login")}}))}),5,6,0),this.RechageNum.node.active=!1;case 23:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t}(h)).prototype,"RechageNum",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=t(B.prototype,"rechargeNum",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(B.prototype,"privateddress",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(B.prototype,"Eth",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=t(B.prototype,"tanchuan",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=B))||z));c._RF.pop()}}}));
System.register("chunks:///_virtual/RechageNum.ts",["./rollupPluginModLoBabelHelpers.js","cc","./rachageModel.ts"],(function(e){"use strict";var t,r,n,i,a,o,l,u,c,s;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.inheritsLoose,n=e.initializerDefineProperty,i=e.assertThisInitialized},function(e){a=e.cclegacy,o=e._decorator,l=e.Label,u=e.EditBox,c=e.Component},function(e){s=e.rachageModel}],execute:function(){var p,d,g,h,m,f,b,y,v,N,_,C,w,z,B,P,R;a._RF.push({},"46eadJwItZJGYB5TfwbBK+G","RechageNum",void 0);var E=o.ccclass,M=o.property;e("rechargeNum",(p=E("rechargeNum"),d=M(l),g=M(l),h=M(l),m=M(s),f=M(u),b=M(l),y=M(l),p((_=t((N=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(t=e.call.apply(e,[this].concat(a))||this).data={},n(t,"Name",_,i(t)),n(t,"EthPrice",C,i(t)),n(t,"UsdtPrice",w,i(t)),n(t,"RachageModel",z,i(t)),n(t,"RechageNum",B,i(t)),n(t,"privateddress",P,i(t)),n(t,"Eth",R,i(t)),t.public_address=null,t.private_address=null,t.rechagenum=null,t}r(t,e);var a=t.prototype;return a.init=function(e){this.node.getChildByName("name").getComponent(l).string=e.name,this.node.getChildByName("usdtPrice").getComponent(l).string=e.usdt_price,this.node.getChildByName("ethPrice").getComponent(l).string=e.eth_price,this.node.getChildByName("privateddress").getComponent(l).string=e.private_address,localStorage.setItem("address",e.private_address)},a.start=function(){},a.initData=function(){var e={to_address:this.public_address.getComponent(l).string,number:this.rechagenum.getComponent(u).string};return console.log(e),e},a.update=function(e){},t}(c)).prototype,"Name",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=t(N.prototype,"EthPrice",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=t(N.prototype,"UsdtPrice",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(N.prototype,"RachageModel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(N.prototype,"RechageNum",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=t(N.prototype,"privateddress",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(N.prototype,"Eth",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=N))||v));a._RF.pop()}}}));
System.register("chunks:///_virtual/Recharge.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){"use strict";var t,r,n,c;return{setters:[function(e){t=e.inheritsLoose},function(e){r=e.cclegacy,n=e._decorator,c=e.Component}],execute:function(){var o;r._RF.push({},"8fb51upbQdJiqU00nTbGLrO","Recharge",void 0);var u=n.ccclass;n.property,e("Recharge",u("Recharge")(o=function(e){function r(){return e.apply(this,arguments)||this}t(r,e);var n=r.prototype;return n.start=function(){},n.update=function(e){},r}(c))||o);r._RF.pop()}}}));
System.register("chunks:///_virtual/Substitute.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var e,u,n,r;return{setters:[function(t){e=t.inheritsLoose},function(t){u=t.cclegacy,n=t._decorator,r=t.Component}],execute:function(){var o;u._RF.push({},"53397ECPZ5Kw6ELeIb9pG5d","Substitute",void 0);var s=n.ccclass;n.property,t("Substitute",s("Substitute")(o=function(t){function u(){return t.apply(this,arguments)||this}e(u,t);var n=u.prototype;return n.start=function(){},n.update=function(t){},u}(r))||o);u._RF.pop()}}}));
System.register("chunks:///_virtual/tableMain.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.inheritsLoose},function(t){e=t.cclegacy,r=t._decorator,o=t.Component}],execute:function(){var c;e._RF.push({},"f5c44RFSwxM7ZmfDnD6IzGk","tableMain",void 0);var i=r.ccclass;r.property,t("tableMain",i("tableMain")(c=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var r=e.prototype;return r.start=function(){},r.update=function(t){},e}(o))||c);e._RF.pop()}}}));
System.register("chunks:///_virtual/TanChuang.ts",["./rollupPluginModLoBabelHelpers.js","cc","./WithdrawalData.ts"],(function(t){"use strict";var n,e,i,a,r,o,c,u,l;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.inheritsLoose,i=t.initializerDefineProperty,a=t.assertThisInitialized},function(t){r=t.cclegacy,o=t._decorator,c=t.Label,u=t.Component},function(t){l=t.WithdrawalData}],execute:function(){var s,h,p,f,d,g,y;r._RF.push({},"d190enVzU5PqLcQzMU+1DD2","TanChuang",void 0);var v=o.ccclass,w=o.property,D=t("tanchuan",(s=v("tanchuan"),h=w(l),p=w(D),s((g=n((d=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n=t.call.apply(t,[this].concat(r))||this,i(n,"WithdrawalData",g,a(n)),i(n,"tanchuan",y,a(n)),n}e(n,t);var r=n.prototype;return r.init=function(t){this.node.getChildByName("news").getComponent(c).string=t},r.show=function(){this.node.active=!0},r.hide=function(){this.node.active=!1},r.start=function(){},r.close=function(){this.hide()},r.update=function(t){},n}(u)).prototype,"WithdrawalData",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=n(d.prototype,"tanchuan",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=d))||f));r._RF.pop()}}}));
System.register("chunks:///_virtual/tbg.ts",["./rollupPluginModLoBabelHelpers.js","cc","./eventBus.ts","./web3.ts"],(function(e){"use strict";var n,t,r,o,a,u,s;return{setters:[function(e){n=e.inheritsLoose,t=e.wrapNativeSuper,r=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){a=e.cclegacy},function(e){u=e.EventBus},function(e){s=e.web3}],execute:function(){function i(e){return e.hasOwnProperty("result")?e.result:e}a._RF.push({},"e3aeaE7l21OioLmOiYtZ4CG","tbg",void 0);var c,h=e("NoEthereumProviderError",function(e){function t(){var n;return(n=e.call(this)||this).name=n.constructor.name,n.message="No Ethereum provider was found on window.ethereum.",n}return n(t,e),t}(t(Error)));e({TBG:c=function(e){function t(n){var t;return(t=e.call(this)||this).handleAddListener(),t}n(t,e);var a=t.prototype;return a.handleAddListener=function(){window.ethereum.on&&(window.ethereum.on("chainChanged",this.handleChainChanged.bind(this)),window.ethereum.on("accountsChanged",this.handleAccountsChanged.bind(this)),window.ethereum.on("close",this.handleClose.bind(this)),window.ethereum.on("networkChanged",this.handleNetworkChanged.bind(this)))},a.login=function(){var e=r(o().mark((function e(){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.ethereum){e.next=2;break}throw new h;case 2:return window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1),e.prev=3,e.next=6,window.ethereum.request({method:"eth_requestAccounts"}).then((function(e){return i(e)[0]}));case 6:return n=e.sent,console.log(n),e.abrupt("return",n);case 11:e.prev=11,e.t0=e.catch(3),e.t0.code,console.warn(!1,"eth_requestAccounts was unsuccessful, falling back to enable");case 15:if(n){e.next=20;break}return e.next=18,window.ethereum.enable().then((function(e){return e&&i(e)[0]}));case 18:return n=e.sent,e.abrupt("return",n);case 20:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),a.logout=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},a.sign=function(){var e=r(o().mark((function e(n){var t,r,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.hash,r=s.utils.fromUtf8(t),e.next=4,window.ethereum.send("personal_sign",[r,window.ethereum.selectedAddress.toLowerCase()]);case 4:return a=e.sent,u=a.result,e.abrupt("return",{raw:t,sign:u});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),a.createNft=function(){var e=r(o().mark((function e(n){var t,r,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.abi,r=n.contract,a=n.toAddress,u=new s.eth.Contract(t,r),e.next=4,u.methods.Mint(a).send({from:a});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),a.sendTransaction=function(){var e=r(o().mark((function e(n){var t,r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.from,r=n.to,a=n.value,e.abrupt("return",s.eth.sendTransaction({from:t,to:r,value:a}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),a.handleNetworkChanged=function(){console.log("handleNetworkChanged")},a.handleChainChanged=function(){console.log("handleChainChanged")},a.handleAccountsChanged=function(e){console.log(e),e.length,this.emit("accountChange")},a.handleClose=function(){console.log("handleClose")},a.update=function(e){},t}(u),default:c});a._RF.pop()}}}));
System.register("chunks:///_virtual/test.ts",["./rollupPluginModLoBabelHelpers.js","cc","./index.ts"],(function(e){"use strict";var n,t,o,r,c,s,a,u;return{setters:[function(e){n=e.inheritsLoose,t=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){r=e.cclegacy,c=e._decorator,s=e.NodeEventType,a=e.Component},function(e){u=e.default}],execute:function(){var i;r._RF.push({},"06b37poAWdLVrBGe6wvcMRV","test",void 0);var p=c.ccclass;c.property,e("NewComponent",p("NewComponent")(i=function(e){function r(){return e.apply(this,arguments)||this}n(r,e);var c=r.prototype;return c.start=function(){var e=new u({});e.on("accountChange",(function(){console.log("hasChange")})),this.node.on(s.MOUSE_DOWN,t(o().mark((function n(){var t,r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.login();case 2:return t=n.sent,n.next=5,e.sign({});case 5:return n.sent,n.next=8,e.sendTransaction({from:t,to:"0x96216849c49358B10257cb55b28eA603c874b05E",value:"1000000000000000"});case 8:r=n.sent,console.log(r);case 10:case"end":return n.stop()}}),n)}))),this)},c.update=function(e){},r}(a))||i);r._RF.pop()}}}));
System.register("chunks:///_virtual/userBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./userLabel.ts","./ajax.ts","./userdata.ts"],(function(e){"use strict";var t,r,n,a,o,i,s,u,c,l,p,f,d;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.inheritsLoose,n=e.initializerDefineProperty,a=e.assertThisInitialized,o=e.asyncToGenerator,i=e.regeneratorRuntime},function(e){s=e.cclegacy,u=e._decorator,c=e.Component,l=e.director},function(e){p=e.userLabel},function(e){f=e.default},function(e){d=e.userdata}],execute:function(){var g,v,b,y,h,m,U;s._RF.push({},"2a9a84aVMpE2ZvMkbJqc0mU","userBtn",void 0);var L=u.ccclass,w=u.property;e("userBtn",(g=L("userBtn"),v=w(d),b=w(p),g((m=t((h=function(e){function t(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o))||this,n(t,"Userdata",m,a(t)),n(t,"UserLabel",U,a(t)),t}r(t,e);var s=t.prototype;return s.start=function(){},s.changeUserData=function(){var e=o(i().mark((function e(){var t,r=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,f.sendAjax("/api/v1/user/get",t,"POST",(function(e){if(console.log(e),"200"==e.code)console.log(e.data.address),r.Userdata.node.active=!0;else{if("10001"!=e.code)return void console.log(e);console.log("登录失效"),l.loadScene("login")}}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s.update=function(e){},t}(c)).prototype,"Userdata",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(h.prototype,"UserLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=h))||y));s._RF.pop()}}}));
System.register("chunks:///_virtual/userdata.ts",["./rollupPluginModLoBabelHelpers.js","cc","./userLabel.ts","./ajax.ts"],(function(e){"use strict";var t,r,a,n,i,s,o,u,l,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.inheritsLoose,a=e.initializerDefineProperty,n=e.assertThisInitialized},function(e){i=e.cclegacy,s=e._decorator,o=e.Label,u=e.Component},function(e){l=e.userLabel},function(e){c=e.default}],execute:function(){var d,f,p,b,g,y,h,v,L;i._RF.push({},"ccdd92lOQ1D9Yc5O5tzgafw","userdata",void 0);var z=s.ccclass,m=s.property;e("userdata",(d=z("userdata"),f=m(o),p=m(o),b=m(l),d((h=t((y=function(e){function t(){for(var t,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t=e.call.apply(e,[this].concat(i))||this,a(t,"Uuid",h,n(t)),a(t,"address",v,n(t)),a(t,"userLabel",L,n(t)),t}r(t,e);var i=t.prototype;return i.init=function(e){this.address=e.address},i.start=function(){},i.changeUserData=function(){var e=this;c.sendAjax("/api/v1/user/get",{},"POST",(function(t){if(console.log(t),"200"==t.code){console.log(t.data.address);var r=t.data.address;e.userLabel.setLabel(r)}else console.log(t)}))},i.update=function(e){},t}(u)).prototype,"Uuid",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=t(y.prototype,"address",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=t(y.prototype,"userLabel",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=y))||g));i._RF.pop()}}}));
System.register("chunks:///_virtual/userLabel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ajax.ts"],(function(e){"use strict";var t,n,r,i,o,a,s,l,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,r=e.initializerDefineProperty,i=e.assertThisInitialized},function(e){o=e.cclegacy,a=e._decorator,s=e.Label,l=e.Component},function(e){u=e.default}],execute:function(){var c,d,p,f,g,b,y,h,m;o._RF.push({},"69a53EuWypB1pE+/o5xP7Cb","userLabel",void 0);var v=a.ccclass,L=a.property;e("userLabel",(c=v("userLabel"),d=L(s),p=L(s),f=L(s),c((y=t((b=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o))||this,r(t,"address",y,i(t)),r(t,"coin",h,i(t)),r(t,"Diamonds",m,i(t)),t}n(t,e);var o=t.prototype;return o.setLabel=function(e){this.node.getChildByName("address").getComponent(s).string=e.address,this.node.getChildByName("coin").getComponent(s).string="2",this.node.getChildByName("Diamonds").getComponent(s).string="1"},o.start=function(){var e=this;u.sendAjax("/api/v1/user/get",{},"POST",(function(t){console.log(t),"200"==t.code?(console.log(t.data.address),e.setLabel(t.data)):console.log(t)}))},o.update=function(e){},t}(l)).prototype,"address",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=t(b.prototype,"coin",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=t(b.prototype,"Diamonds",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=b))||g));o._RF.pop()}}}));
System.register("chunks:///_virtual/web3.ts",["./rollupPluginModLoBabelHelpers.js","cc","./web3.min.mjs_cjs=&original=.js","./web3.min.js"],(function(exports){"use strict";var _asyncToGenerator,_regeneratorRuntime,cclegacy,_cjsExports;return{setters:[function(e){_asyncToGenerator=e.asyncToGenerator,_regeneratorRuntime=e.regeneratorRuntime},function(e){cclegacy=e.cclegacy},null,function(e){_cjsExports=e.default}],execute:function(){exports("createNft",createNft),cclegacy._RF.push({},"2741axHfMlDUbRCZMaHJZxs","web3",void 0);var web3=exports("web3",new _cjsExports(_cjsExports.givenProvider));function createNft(e){return _createNft.apply(this,arguments)}function _createNft(){return _createNft=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(params){var contract;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return""!==params.toAddress&&null!==params.toAddress&&void 0!==params.toAddress||(params.toAddress=web3.eth.defaultAccount),contract=new web3.eth.Contract(eval("("+params.abi+")"),params.address),_context.next=4,contract.methods.Mint(params.toAddress,params.token_id).send({from:web3.eth.defaultAccount});case 4:case 5:case"end":return _context.stop()}}),_callee)}))),_createNft.apply(this,arguments)}cclegacy._RF.pop()}}}));
System.register("chunks:///_virtual/WithdrawalBtn.ts",["./rollupPluginModLoBabelHelpers.js","cc","./WithdrawalModal.ts","./ajax.ts","./WithdrawalData.ts","./TanChuang.ts"],(function(t){"use strict";var a,e,n,i,o,r,l,c,u,s,d,h,f,w,p,g,b;return{setters:[function(t){a=t.applyDecoratedDescriptor,e=t.inheritsLoose,n=t.initializerDefineProperty,i=t.assertThisInitialized,o=t.asyncToGenerator,r=t.regeneratorRuntime},function(t){l=t.cclegacy,c=t._decorator,u=t.EditBox,s=t.Label,d=t.Toggle,h=t.director,f=t.Component},function(t){w=t.WithdrawalModal},function(t){p=t.default},function(t){g=t.WithdrawalData},function(t){b=t.tanchuan}],execute:function(){var v,m,y,W,D,T,M,x,z,S,B,N,j,A,E,_,k,C,P;l._RF.push({},"a068aX7dtJAv74XQag5FB9n","WithdrawalBtn",void 0);var F=c.ccclass,G=c.property;t("WithdrawalBtn",(v=F("WithdrawalBtn"),m=G(w),y=G(g),W=G(u),D=G(u),T=G(s),M=G(d),x=G(d),z=G(b),v((N=a((B=function(t){function a(){for(var a,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return a=t.call.apply(t,[this].concat(o))||this,n(a,"withdrawalModal",N,i(a)),n(a,"WithdrawalData",j,i(a)),n(a,"WithdrawalNum",A,i(a)),n(a,"Toaddress",E,i(a)),n(a,"Name",_,i(a)),n(a,"ETH",k,i(a)),n(a,"USDT",C,i(a)),n(a,"tanchuan",P,i(a)),a}e(a,t);var l=a.prototype;return l.start=function(){},l.choseCoin=function(){var t=this;this.withdrawalModal.node.active=!1,p.sendAjax("/api/v1/recharge/get",{},"GET",(function(a){if(console.log(a),"200"==a.code)t.WithdrawalData.init(a.data[0]),t.WithdrawalData.node.active=!0,t.withdrawalModal.node.active=!1;else{if("10001"!=a.code)return void console.log(a);console.log("登录失效"),h.loadScene("login")}}))},l.choseDds=function(){var t=this;this.withdrawalModal.node.active=!1,p.sendAjax("/api/v1/recharge/get",{},"GET",(function(a){if(console.log(a),"200"==a.code)t.WithdrawalData.init(a.data[1]),t.WithdrawalData.node.active=!0,t.withdrawalModal.node.active=!1;else{if("10001"!=a.code)return void console.log(a);console.log("登录失效"),h.loadScene("login")}}))},l.takecoin=function(){var t=o(r().mark((function t(){var a,e,n,i,o,l,c=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="eth",1==this.USDT.isChecked&&(a="usdt"),e=this.Toaddress.string,n=Number(this.WithdrawalNum.string),i=this.Name.string,console.log(i),o={name:i,number:n,to_address:e,type:a},console.log(o),t.next=10,p.sendAjax("/api/v1/withdrawal",o,"POST",(function(t){console.log(t),t.code,console.log(t)}));case 10:return t.sent,this.WithdrawalData.node.active=!1,this.tanchuan.init("提现审核中"),this.tanchuan.node.active=!0,(l={}).toaddress=e,t.next=18,p.sendAjax("/api/v1/select/hash",l,"POST",(function(t){console.log(t),"200"==t.code&&t.data?(console.log(t),c.tanchuan.init("提现成功")):console.log(t)}));case 18:t.sent;case 19:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),l.test=function(){},l.openWithdrawalModal=function(){this.withdrawalModal.node.active=!0},l.update=function(t){},a}(f)).prototype,"withdrawalModal",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=a(B.prototype,"WithdrawalData",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=a(B.prototype,"WithdrawalNum",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=a(B.prototype,"Toaddress",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=a(B.prototype,"Name",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=a(B.prototype,"ETH",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=a(B.prototype,"USDT",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=a(B.prototype,"tanchuan",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S=B))||S));l._RF.pop()}}}));
System.register("chunks:///_virtual/WithdrawalData.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ajax.ts","./index.ts"],(function(e){"use strict";var t,n,r,i,a,o,s,l,u,c,d,h,p,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,r=e.initializerDefineProperty,i=e.assertThisInitialized,a=e.asyncToGenerator,o=e.regeneratorRuntime},function(e){s=e.cclegacy,l=e._decorator,u=e.EditBox,c=e.Label,d=e.Toggle,h=e.Component},function(e){p=e.default},function(e){g=e.default}],execute:function(){var m,f,y,b,w,C,N,v,T,D,B,z,_;s._RF.push({},"490a9P8JcRBPZFNabzsmAAR","WithdrawalData",void 0);var x=l.ccclass,P=l.property;e("WithdrawalData",(m=x("WithdrawalData"),f=P(u),y=P(u),b=P(c),w=P(d),C=P(d),m((T=t((v=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a))||this,r(t,"WithdrawalNum",T,i(t)),r(t,"Toaddress",D,i(t)),r(t,"Name",B,i(t)),r(t,"ETH",z,i(t)),r(t,"USDT",_,i(t)),t}n(t,e);var s=t.prototype;return s.init=function(e){this.node.getChildByName("name").getComponent(c).string=e.name,this.node.getChildByName("usdtPrice").getComponent(c).string=e.usdt_price,this.node.getChildByName("ethPrice").getComponent(c).string=e.eth_price},s.getEdit=function(){var e=this.node.getChildByName("name").getComponent(c).string,t=this.node.getChildByName("withdrawalNum").getComponent(u).string;this.node.getChildByName("toAddress").getComponent(u).string;return{name:e,to_address:t}},s.start=function(){new g({}).on("accountChange",(function(){console.log("hasChange")}))},s.test=function(){var e=a(o().mark((function e(){var t,n,r,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="eth",1==this.USDT.isChecked&&(t="usdt"),n=this.Toaddress.string,r=Number(this.WithdrawalNum.string),i=this.Name.string,console.log(i),a={name:i,number:r,to_address:n,type:t},console.log(a),e.next=10,p.sendAjax("/api/v1/withdrawal",a,"POST",(function(e){console.log(e),e.code,console.log(e)}));case 10:e.sent;case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),s.update=function(e){},t}(h)).prototype,"WithdrawalNum",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(v.prototype,"Toaddress",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=t(v.prototype,"Name",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(v.prototype,"ETH",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=t(v.prototype,"USDT",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=v))||N));s._RF.pop()}}}));
System.register("chunks:///_virtual/WithdrawalModal.ts",["./rollupPluginModLoBabelHelpers.js","cc","./index.ts"],(function(t){"use strict";var n,o,e,a,r;return{setters:[function(t){n=t.inheritsLoose},function(t){o=t.cclegacy,e=t._decorator,a=t.Component},function(t){r=t.default}],execute:function(){var c;o._RF.push({},"6e410fe6ClCe4NyFsXqRtlO","WithdrawalModal",void 0);var i=e.ccclass;e.property,t("WithdrawalModal",i("WithdrawalModal")(c=function(t){function o(){return t.apply(this,arguments)||this}n(o,t);var e=o.prototype;return e.start=function(){new r({}).on("accountChange",(function(){console.log("hasChange")}))},e.update=function(t){},o}(a))||c);o._RF.pop()}}}));
(function(r) {
r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
})(function(mid, cid) {
System.register(mid, [cid], function (_export, _context) {
return {
setters: [function(_m) {
var _exportObj = {};
for (var _key in _m) {
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
}
_export(_exportObj);
}],
execute: function () { }
};
});
});