diff --git a/index.4d741c0a.js.download b/index.4d741c0a.js.download new file mode 100644 index 0000000..a471a93 --- /dev/null +++ b/index.4d741c0a.js.download @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkdefi_mode=self.webpackChunkdefi_mode||[]).push([[3555],{97282:(t,n,e)=>{e.d(n,{Z:()=>s});var r=e(45987),a=e(97505),o=e(85658),c=e(45271),i=["coinId","address"];const s={getUtxos:t=>((0,c.PN)("getUtxos",t),o.Z.post(a.Z.GET_UTXOS,t)),getTradeBuyByOrders:t=>o.Z.post(a.Z.TRADE_BUY_BY_ORDERS,t,{timeout:3e4}),getTradeAcceptOfferByOrders:t=>o.Z.post(a.Z.TRADE_ACCEPT_OFFER_BY_ORDERS,t,{timeout:3e4}),getTradeCancelByOrders:t=>o.Z.post(a.Z.TRADE_CANCEL_BY_ORDERS,t,{timeout:3e4}),getRpcSendPath:t=>o.Z.get(a.Z.RPC_SEND_PATH,t),getBTCNetworkFee(t){var n=t.coinId,e=t.address,c=(0,r.Z)(t,i),s=a.Z.GET_BTC_NETWORK_FEE.replace("{{coinId}}",n).replace("{{address}}",e);return o.Z.get(s,c)},getBtcTxStatus:t=>o.Z.get(a.Z.GET_BTC_TX_STATUS,t),brcMakeOrder:t=>o.Z.post(a.Z.BRC_MAKE_ORDER,t),btcMakeOrder:t=>o.Z.post(a.Z.BTC_MAKE_ORDER,t),getTradeCreateListing:t=>o.Z.post(a.Z.CREATE_LISTING,t,{timeout:3e4}),getTradeCreateCollectionOffer:t=>o.Z.post(a.Z.CREATE_COLLECTION_OFFER,t,{timeout:3e4}),getTradeCreateOffer:t=>o.Z.post(a.Z.CREATE_OFFER,t,{timeout:3e4}),getTradeSuiBuy:t=>o.Z.post(a.Z.TRADE_SUI_BUY,t,{timeout:6e4}),getTradeSuiCreateListing:t=>o.Z.post(a.Z.TRADE_SUI_CREATE_LISTING,t,{timeout:6e4}),getTradeSuiCancel:t=>o.Z.post(a.Z.TRADE_SUI_CANCEL,t,{timeout:6e4}),getTradeSuiTransfer:t=>o.Z.post(a.Z.TRADE_SUI_TRANSFER,t,{timeout:6e4}),checkBtcDust:t=>o.Z.post(a.Z.CHECK_BTC_DUST,t,{timeout:6e4}),preExecuteTrade:t=>o.Z.post(a.Z.PRE_EXECUTE_TRADE,t,{timeout:3e4}),getTradeTransfer:t=>o.Z.post(a.Z.TRADE_TRANSFER,t,{timeout:3e4}),btcBroadcastTrade:t=>o.Z.post(a.Z.BTC_BROADCAST_TRADE,t,{timeout:3e4}),broadcastTrade:t=>o.Z.post(a.Z.BROADCAST_TRADE,t,{timeout:3e4}),getTxResult:t=>o.Z.post(a.Z.GET_TX_RESULT,t)}},41283:(t,n,e)=>{e.d(n,{A:()=>l,a:()=>f});var r=e(74165),a=e(15861),o=e(1708),c=e(64037),i=e(40910),s=e(23781),_=e(97282),u=e(48903),l=function(){var t=(0,a.Z)((0,r.Z)().mark((function t(n){var i,_,u;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.chain,_=n.address,!(u={[c.Bv.SOLANA]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.e(3098).then(e.bind(e,73098));case 2:return n=t.sent,t.abrupt("return",n.default.isAddress(_));case 4:case"end":return t.stop()}}),t)}))),[c.Bv.APTOS]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.e(1282).then(e.bind(e,9023));case 2:return n=t.sent,t.abrupt("return",n.default.isAddress(_));case 4:case"end":return t.stop()}}),t)}))),[c.Bv.IMX]:(0,a.Z)((0,r.Z)().mark((function t(){var n,e;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.checkImxAddress({userAddress:_});case 2:return n=t.sent,e=n.data,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)}))),[c.Bv.BTC]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.e(7549),e.e(2743)]).then(e.bind(e,27549));case 2:return n=t.sent,t.abrupt("return",n.default.isAddress(_));case 4:case"end":return t.stop()}}),t)}))),[c.Bv.SUI]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.e(4553).then(e.bind(e,74553));case 2:return n=t.sent,t.abrupt("return",n.default.isAddress(_));case 4:case"end":return t.stop()}}),t)}))),[c.Bv.ETH]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getWeb3();case 2:return n=t.sent,t.abrupt("return",n.utils.isAddress(_.toLowerCase()));case 4:case"end":return t.stop()}}),t)}))),[c.Bv.STARKNET]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.e(6262),e.e(2464),e.e(5974),e.e(9042),e.e(5533)]).then(e.bind(e,85533));case 2:return n=t.sent,t.abrupt("return",n.default.isAddress(_));case 4:case"end":return t.stop()}}),t)})))})[i]){t.next=4;break}return t.abrupt("return",u[i]());case 4:return t.abrupt("return",u[c.Bv.ETH]());case 5:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),f=function(){var t=(0,a.Z)((0,r.Z)().mark((function t(n){var e,s,l,f,d,v,p;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.chain,s=n.txHash,l=n.batchId,t.next=3,o.Z.getWeb3();case 3:return f=t.sent,t.next=6,o.Z.getWalletAdapter();case 6:if(d=t.sent,p={[c.Bv.SOLANA]:(0,a.Z)((0,r.Z)().mark((function t(){var n,e,o,c,u,f,p,m,b,S,T,h;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!l){t.next=22;break}return t.next=3,_.Z.getTxResult({batchId:l});case 3:if(v=t.sent,!(o=null===(n=v)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.batchTxState)){t.next=20;break}if(!((c=(null===o||void 0===o?void 0:o.pendingTxHashs)||[]).length>0)){t.next=19;break}return t.next=10,d.getSolanaConnection();case 10:return u=t.sent,t.next=13,Promise.all(c.map(function(){var t=(0,a.Z)((0,r.Z)().mark((function t(n,e){var a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.getTransaction(n);case 2:return a=t.sent,t.abrupt("return",{txHash:n,status:!(null===a||void 0===a||!a.meta),orderId:o.pendingOrderIds[e]});case 4:case"end":return t.stop()}}),t)})));return function(n,e){return t.apply(this,arguments)}}()));case 13:f=t.sent,p=(null===o||void 0===o?void 0:o.txStateResultDtoList)||[],f.forEach((t=>{t.status?(o.success+=1,o.successTxHashs.push(t.txHash),o.successOrderIds.push(t.orderId)):(o.failed+=1,o.failedTxHashs.push(t.txHash),o.failOrderIds.push(t.orderId));var n=p.findIndex((n=>n.txHash==t.txHash));p[n].txStatus=t.status?i.pG.SUCCESS:i.pG.FAIL})),o.pending=0,o.pendingTxHashs=[],o.pendingOrderIds=[];case 19:v={batchTxState:o,status:0!=(null===o||void 0===o?void 0:o.success)};case 20:t.next=36;break;case 22:return t.next=24,_.Z.getTxResult({txHash:s});case 24:if(v=t.sent,!(S=null===(m=v)||void 0===m||null===(b=m.data)||void 0===b?void 0:b.singleTxState)){t.next=36;break}if((null===S||void 0===S?void 0:S.txStatus)!=i.pG.PENDING){t.next=35;break}return t.next=30,d.getSolanaConnection();case 30:return T=t.sent,t.next=33,T.getTransaction(s);case 33:h=t.sent,S.txStatus=null!==h&&void 0!==h&&h.meta?i.pG.SUCCESS:i.pG.FAIL;case 35:v={status:(null===S||void 0===S?void 0:S.txStatus)==i.pG.SUCCESS,errorMulMsg:null===S||void 0===S?void 0:S.errorMulMsg};case 36:case"end":return t.stop()}}),t)}))),[c.Bv.APTOS]:(0,a.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d.getAptosTransaction(s);case 2:v={status:v=t.sent};case 4:case"end":return t.stop()}}),t)}))),[c.Bv.BTC]:(0,a.Z)((0,r.Z)().mark((function t(){var n,e;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.Z.getOnChainInfoByRpc({chain:c.Bv.BTC,params:{jsonrpc:"1.0",id:"curltest",method:"getrawtransaction",params:[s,!0]}});case 2:null!==(e=t.sent)&&void 0!==e&&e.error?v={status:!1}:(null===e||void 0===e||null===(n=e.result)||void 0===n?void 0:n.confirmations)>0&&(v={status:!0});case 4:case"end":return t.stop()}}),t)}))),[c.Bv.SUI]:(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.Z.getOnChainInfoByRpc({chain:c.Bv.SUI,params:{jsonrpc:"2.0",id:1,method:"sui_getTransactionBlock",params:[s]}});case 2:null!==(n=t.sent)&&void 0!==n&&n.error?v={status:!1}:null!==n&&void 0!==n&&n.result&&(v={status:!0});case 4:case"end":return t.stop()}}),t)}))),[c.Bv.STARKNET]:(0,a.Z)((0,r.Z)().mark((function t(){var n,e,a,o,c;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=null===(n=window)||void 0===n||null===(e=n.okxwallet)||void 0===e||null===(a=e.starknet)||void 0===a?void 0:a.provider)){t.next=8;break}return t.next=4,o.waitForTransaction(s);case 4:c=t.sent,v={status:!0,gas:1e-18*parseInt((null===c||void 0===c?void 0:c.actual_fee)||"0",16)},t.next=9;break;case 8:throw new Error("Starknet provider not found");case 9:case"end":return t.stop()}}),t)}))),[c.Bv.ETH]:(0,a.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.eth.getTransactionReceipt(s);case 2:v=t.sent;case 3:case"end":return t.stop()}}),t)})))},!p[e]){t.next=13;break}return t.next=11,p[e]();case 11:t.next=15;break;case 13:return t.next=15,p[c.Bv.ETH]();case 15:return t.abrupt("return",v);case 16:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()},48635:(t,n,e)=>{e.r(n),e.d(n,{NFTOperateSubcribe:()=>S,SCENE_ENUM:()=>u.TY,SCENE_STATUS_ENUM:()=>u.jG,catchTxError:()=>k,submitOperationPayload:()=>T,subscribeBlurOrderResult:()=>C,subscribeTxResult:()=>h});var r=e(74165),a=e(1413),o=e(45987),c=e(15861),i=e(14300),s=e(35686),_=(e(92643),e(1708)),u=e(40910),l=e(97505),f=e(85658),d=e(16650),v=e(4241),p=e(61219),m=e(20776),b=["txnHash","txHashList"],S=v.Z,T=function(){var t=(0,c.Z)((0,r.Z)().mark((function t(n){var e,c,i,s,u,d,v;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_.Z.getWalletAccount();case 2:return e=t.sent,t.next=5,_.Z.getChainId();case 5:return c=t.sent,i=n.txnHash,s=n.txHashList,u=(0,o.Z)(n,b),d=(0,a.Z)({walletAddress:e,chain:c,txHash:i,txHashList:s,source:3},u),v=null!==s&&void 0!==s&&s.length?l.Z.NFT_OPERATE_LIST_SUBMIT:l.Z.NFT_OPERATE_SUBMIT,t.abrupt("return",f.Z.post(v,d));case 10:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),h=function(){var t=(0,c.Z)((0,r.Z)().mark((function t(n){var e,o,_,l,f,d,v=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=v.length>1&&void 0!==v[1]?v[1]:60,o=n.txnHash,l=function(){var t=(0,c.Z)((0,r.Z)().mark((function t(){var e,c,l;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,p.Z)({chain:n.chain,txHash:o,batchId:_,txHashList:n.txHashList,count:5,interval:1});case 2:if(!(e=t.sent)){t.next=12;break}if(!e.status){t.next=9;break}return c=(0,a.Z)((0,a.Z)((0,a.Z)({},e),n),{},{status:u.jG.SUCCESS,txHash:o}),S.emit(c.scene,c),t.abrupt("return",c);case 9:return l=(0,a.Z)((0,a.Z)((0,a.Z)({},e),n),{},{status:u.jG.FAIL,txHash:o}),S.emit(l.scene,l),t.abrupt("return",l);case 12:return s.Z.info({title:(0,i.O4)("nfthome_activity_toast_norecords"),duration:0}),t.abrupt("return",(0,a.Z)((0,a.Z)({},n),{},{status:u.jG.SUBMITED,txHash:n.txnHash}));case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=(0,c.Z)((0,r.Z)().mark((function t(){var e,a,c,i,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T(n);case 2:return a=t.sent,null!==n&&void 0!==n&&null!==(e=n.txHashList)&&void 0!==e&&e.length&&(o=null===a||void 0===a||null===(c=a.data)||void 0===c?void 0:c.batchId,_=null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.batchId),t.next=6,S.checkResult(n.scene,{txnHash:o});case 6:return s=t.sent,t.abrupt("return",s);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=6,Promise.race([f(),(0,m.Z)(e)]);case 6:if(!(d=t.sent)){t.next=9;break}return t.abrupt("return",d);case 9:return t.next=11,l();case 11:return d=t.sent,t.abrupt("return",d);case 13:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),C=function(){var t=(0,c.Z)((0,r.Z)().mark((function t(n){var e,a,o,s,_,l=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=l.length>1&&void 0!==l[1]?l[1]:15,a=()=>new Promise((t=>{S.on(n.scene,(n=>{t(n)}),{once:!0,status:[]})})),o=function(){var t=(0,c.Z)((0,r.Z)().mark((function t(){var e,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,p.S)(n);case 2:if(!(e=t.sent)){t.next=6;break}return S.emit(e.scene,e),t.abrupt("return",e);case 6:return a={scene:n.scene,status:u.jG.SUBMITED,txHash:n.txHash},S.emit(a.scene,a),t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.next=5,Promise.race([a(),(0,m.Z)(e)]);case 5:if(!(s=t.sent)){t.next=10;break}if(s.status!=u.jG.SUCCESS){t.next=9;break}return t.abrupt("return",s);case 9:case 15:throw{code:u.Bq.BLURWSERROR,error_message:(0,i.O4)("nftmarket_bulk_list_error_toast_blur_timeout")};case 10:return t.next=12,o();case 12:if((_=t.sent).status!=u.jG.SUCCESS){t.next=15;break}return t.abrupt("return",_);case 16:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),k=t=>{var n=t.scene,e=t.payload;(0,d.ZP)(n)({status:u.jG.FAIL,hideBtn:!0,payload:e})}},16650:(t,n,e)=>{e.d(n,{Fu:()=>S,ZP:()=>w});var r=e(46430),a=e(83168),o=e(14300),c=e(31864),i=e(84081),s=e(79501),_=e(9271),u=e(40910),l=e(57103),f=e(64037),d=e(72208);function v(){r.Z.set(l.u,l.N9.NFT)}function p(t){var n=t.urlPre,e=t.txnHash;return n&&e?"".concat(n,"/tx/").concat(e):""}function m(){var t=(0,c.ip)();return v(),"".concat(t.onchain.index)}function b(){var t=(0,c.ip)();return v(),r.Z.set(_.h7,{tabId:s.vp.ACTIVITY}),t.onchain.index}function S(){var t=(0,c.ip)();return v(),r.Z.set(_.h7,{tabId:s.vp.COLLECTED}),t.onchain.index}function T(){var t=(0,c.ip)();return v(),r.Z.set(_.h7,{tabId:s.vp.MORE,orderType:s.fu.LISTINGS}),t.onchain.index}function h(){var t=(0,c.ip)();return v(),r.Z.set(_.h7,{tabId:s.vp.MORE,orderType:s.fu.MADE}),t.onchain.index}function C(){var t=(0,c.ip)();return r.Z.set(l.u,l.N9.HISTORY),"".concat(t.onchain.index)}function k(t){var n=t.payload,e=void 0===n?{}:n,r=e.sourceName,a=e.tokenStandard,o=e.chain,c=r||d.qk[d.Qz.OKEX_SEAPORT];return a===u.jR.PUNK?c="Punk":o===f.Bv.IMX&&(c=d.qk[d.Qz.IMX]),c}var O=(0,a.Z)((t=>{(0,i.c)(t,{[u.jG.BROADCAST_SUCCESS]:{content:(0,o.Lg)("btcnft_buy_modal_title_success_submit")},[u.jG.FAIL]:{content:(0,o.Lg)("brc20_info_notification_unable_inscribe")}})}),3e3),Z=t=>{var n=t.data,e=t.btnContent,r=t.btnLink,a=t.newTab,o=void 0!==a&&a;return!(null===n||void 0===n||!n.errorMulMsg)&&((0,i.c)(n,{[u.jG.FAIL]:{content:null===n||void 0===n?void 0:n.errorMulMsg,btnContent:e,btnLink:r,newTab:o}}),!0)},E=t=>{var n=t.batchTxState,e=t.fallbackContent;if(n){var r=(null===n||void 0===n?void 0:n.txStateResultDtoList)||[],a=r[0]||{};if(1===r.length&&null!==a&&void 0!==a&&a.errorMulMsg)return null===a||void 0===a?void 0:a.errorMulMsg}return e},x={[u.TY.Create]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_creation_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_created_successfully"),btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m()},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_creation_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0}})},[u.TY.Mint]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_mint_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_minted_successfully"),btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m()},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_mint_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0}})},[u.TY.Bid]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_bid_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_bid_successfully"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_bid_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.Activity]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_rush_purchase_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_rush_purchased"),btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m()},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_rush_purchase_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.Transfer]:t=>{Z({data:t,btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()})||(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_transformation_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_transformation_successfully"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_transformation_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()},[u.jG.BROADCAST_SUCCESS]:{content:(0,o.Lg)("btcnft_buy_modal_title_success_submit")}})},[u.TY.Purchase]:t=>{Z({data:t,btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()})||(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_purchase_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_purchase_successfully"),btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m()},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_purchase_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()},[u.jG.BROADCAST_SUCCESS]:{content:(0,o.Lg)("btcnft_buy_modal_title_success_submit")}})},[u.TY.BatchPurchase]:t=>{var n=null===t||void 0===t?void 0:t.batchTxState,e=E({batchTxState:n,fallbackContent:(0,o.O4)("nftmarket_purchase_toast_failed_tobuy_batches")}),r=(null===n||void 0===n?void 0:n.success)>0&&(null===n||void 0===n?void 0:n.failed)>0?(0,o.O4)("nft_market_collection_toast_purchase_successfully_solana_cart",{amount:null===n||void 0===n?void 0:n.success,failedAmount:null===n||void 0===n?void 0:n.failed}):(0,o.O4)("nft_market_collection_toast_multipurchase_succeeded");(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_multipurchase_confirming")},[u.jG.SUCCESS]:{content:r,btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m()},[u.jG.BROADCAST_SUCCESS]:{content:(0,o.O4)("btcnft_buy_modal_title_success_submit")},[u.jG.FAIL]:{content:e,btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m()}})},[u.TY.BatchTransfer]:t=>{var n=t.batchTransferInfo,e=t.batchTxState,r=E({batchTxState:e,fallbackContent:(0,o.O4)("nft_market_collection_toast_transformation_failed")}),a=(null===e||void 0===e?void 0:e.success)||(null===n||void 0===n?void 0:n.successCount)||0,c=(null===e||void 0===e?void 0:e.failed)||(null===n||void 0===n?void 0:n.failedCount)||0,s=a>0&&c>0?(0,o.O4)("nftmarket_transfer_multi_toast_transfer_complete_var",{successNum:a,failureNum:c}):(0,o.O4)("nft_market_collection_toast_transformation_successfully");(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_transformation_confirming")},[u.jG.SUCCESS]:{content:s},[u.jG.BROADCAST_SUCCESS]:{content:(0,o.O4)("btcnft_buy_modal_title_success_submit")},[u.jG.FAIL]:{content:r}})},[u.TY.AcceptOffer]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_accept_offer_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_accepted_offer"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_accepting_offer_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.CancelSell]:t=>{if(!Z({data:t,btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0})){var n=k(t);(0,i.c)(t,{[u.jG.SUBMITED]:{content:"".concat((0,o.O4)("nft_market_collection_toast_cancel_listing_confirming"))},[u.jG.SUCCESS]:{content:(0,o.Lg)("nftmarket_list_success_toast_canceled_listing_on_platform",{platform:n}),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0},[u.jG.FAIL]:{content:(0,o.Lg)("nftmarket_list_failed_toast_cancel_listing_on_platform",{platform:n}),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0},[u.jG.BROADCAST_SUCCESS]:{content:(0,o.Lg)("btcnft_buy_modal_title_success_submit")}})}},[u.TY.CancellOffer]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_cancel_offer_confirming")},[u.jG.SUCCESS]:{content:"".concat((0,o.O4)("nft_market_collection_toast_canceled_offer")),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_canceling_offer_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.NFTApprove]:t=>{var n,e=null===t||void 0===t||null===(n=t.payload)||void 0===n?void 0:n.source,r=d.qk[e];(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_nft_approving")},[u.jG.SUCCESS]:{content:(0,o.Lg)("nftmarket_list_success_toast_approved_platform",{platform:r}),btnContent:(0,o.O4)("nfthome_activity_toast_viewhistory"),btnLink:C(),newTab:!0},[u.jG.FAIL]:{content:(0,o.Lg)("nftmarket_list_failed_toast_made_approval_on_platform",{platform:r}),btnContent:(0,o.O4)("nfthome_activity_toast_viewhistory"),btnLink:C(),newTab:!0}})},[u.TY.TokenApprove]:t=>{var n=(t.payload||{}).currency;(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nftmarket_general_btc_approving_currency_var",{currency:n})},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_btc_approved",{currency:n}),btnContent:(0,o.O4)("nfthome_activity_toast_viewhistory"),btnLink:C(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_btc_approval_failed",{currency:n}),btnContent:(0,o.O4)("nfthome_activity_toast_viewhistory"),btnLink:C(),newTab:!0}})},[u.TY.P2PTokenApprove]:t=>{var n=(t.payload||{}).currency;(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nftmarket_general_btc_approving_currency_var",{currency:n})},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_btc_approved",{currency:n}),btnContent:(0,o.O4)("nfthome_activity_toast_viewhistory"),btnLink:C(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_btc_approval_failed",{currency:n}),btnContent:(0,o.O4)("nfthome_activity_toast_viewhistory"),btnLink:C(),newTab:!0}})},[u.TY.MadeListing]:t=>{var n=k(t),e=t.batchTxState,r=E({batchTxState:e,fallbackContent:(0,o.Lg)("nftmarket_list_failed_toast_listing_on_platform",{platform:n})}),a=(null===e||void 0===e?void 0:e.success)>0&&(null===e||void 0===e?void 0:e.failed)>0?(0,o.O4)("nftmarket_bulk_list_error_toast_partly_success",{num1:null===e||void 0===e?void 0:e.success,num2:null===e||void 0===e?void 0:e.failed}):(0,o.Lg)("nftmarket_list_success_toast_listed_on_platform",{platform:n});(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_listing_confirming")},[u.jG.SUCCESS]:{content:a,btnContent:(0,o.O4)("nfthome_activity_toast_viewlisted"),btnLink:T()},[u.jG.FAIL]:{content:r,btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.MadeOffer]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_offer_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_offered_successfully"),btnContent:(0,o.O4)("nft_market_collection_toast_view_my_offers"),btnLink:h()},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_offer_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.PunksClaim]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_withdraw_confirming")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_withdrawn_successfully"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_withdraw_failed"),btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewexplorer"),btnLink:p(t)}})},[u.TY.UpdateListing]:t=>{if(!Z({data:t,btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()})){var n=k(t);(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_pricechange_confirming")},[u.jG.SUCCESS]:{content:(0,o.Lg)("nftmarket_list_success_toast_changed_price_on_platform",{platform:n}),btnContent:(0,o.O4)("nfthome_activity_toast_viewlisted"),btnLink:T()},[u.jG.FAIL]:{content:(0,o.Lg)("nftmarket_list_failed_toast_change_price_on_platform",{platform:n}),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})}},[u.TY.ClaimNft]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nfthome_tab_collected_toast_confirming_claim")},[u.jG.SUCCESS]:{content:(0,o.O4)("nfthome_tab_collected_toast_success_claim"),btnContent:(0,o.O4)("nft_market_collection_toast_creation_viewwallet"),btnLink:m(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nfthome_tab_collected_toast_failed_claim"),btnContent:(0,o.O4)("nfthome_activity_toast_vieworder"),btnLink:b()}})},[u.TY.BtcTrading]:t=>{(0,i.c)(t,{[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_btn_transaction_submitted")}})},[u.TY.Inscribing]:t=>{O(t)},[u.TY.P2PSell]:t=>{(0,i.c)(t,{[u.jG.SUCCESS]:{content:(0,o.Lg)("p2ptrading_notification_notif_success")},[u.jG.FAIL]:{content:(0,o.Lg)("p2ptrading_notification_notif_failure")}})},[u.TY.P2PBuy]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.Lg)("p2ptrading_notification_notif_confirming_transaction")},[u.jG.SUCCESS]:{content:(0,o.Lg)("nft_market_collection_toast_btn_transaction_succeeded")},[u.jG.FAIL]:{content:(0,o.Lg)("p2ptrading_notification_notif_transaction_fail")}})},[u.TY.P2PCancelSell]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.Lg)("p2ptrading_notification_notif_confirming_listing_cancel")},[u.jG.SUCCESS]:{content:(0,o.Lg)("p2ptrading_notification_notif_listing_successfully_canceled")},[u.jG.FAIL]:{content:(0,o.Lg)("p2ptrading_notification_notif_transaction_successful")}})},[u.TY.InitAccount]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_looksrare_account_set_up_inprogress")},[u.jG.SUCCESS]:{content:"".concat((0,o.O4)("nft_looksrare_account_set_up_sucess"))},[u.jG.FAIL]:{content:(0,o.O4)("nft_looksrare_account_set_up_failed")}})},[u.TY.BatchMint]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_create_notification_notification_nft_creating")},[u.jG.SUCCESS]:{content:"".concat((0,o.O4)("nft_create_notification_notification_create_successful"))},[u.jG.FAIL]:{content:(0,o.O4)("nft_create_notification_notification_create_fail")}})},[u.TY.CreateCollection]:t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_create_notification_notification_collection_depolying")},[u.jG.SUCCESS]:{content:"".concat((0,o.O4)("nft_create_notification_notification_create_successfully"))},[u.jG.FAIL]:{content:(0,o.O4)("nft_create_notification_notification_collection_failed")}})}},g=t=>{(0,i.c)(t,{[u.jG.SUBMITED]:{content:(0,o.O4)("nft_market_collection_toast_btn_transaction_submitted")},[u.jG.SUCCESS]:{content:(0,o.O4)("nft_market_collection_toast_btn_transaction_succeeded"),btnContent:(0,o.O4)("nfthome_activity_toast_viewinactivity"),btnLink:C(),newTab:!0},[u.jG.FAIL]:{content:(0,o.O4)("nft_market_collection_toast_btn_transaction_failed"),btnContent:(0,o.O4)("nfthome_activity_toast_viewinactivity"),btnLink:C()}})};function w(t){return x[t]||g}},50487:(t,n,e)=>{e.d(n,{Jx:()=>i});var r={"\uff06":"&","\uff1c":"<","\uff1e":">","\uff03":"#","\uff08":"(","\uff09":")","\u201c":'"',"\u201d":'"',"\u2018":"'","\u2019":"'"},a=/[\uff03\uff06\uff1c\uff1e\uff08\uff09]/g,o=t=>{try{return JSON.parse(t)}catch(n){return null}},c=t=>{if(null===t||"undefined"===typeof t)return"";try{return JSON.stringify(t)}catch(n){return""}},i=t=>{var n=(t=>null!==t&&void 0!==t&&t.length&&a.test(t)?t.replace(a,(t=>r[t])):t)(c(t));return o(n)}}}]); +//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/defi-mode/3555/index.4d741c0a.js.map \ No newline at end of file diff --git a/index.748564ed.js.download b/index.748564ed.js.download new file mode 100644 index 0000000..06d146c --- /dev/null +++ b/index.748564ed.js.download @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={1876:(e,o,t)=>{t.d(o,{Z:()=>a});var n=t(7363),r=t(9867),i=t(4829);const a=function(e){var o=e.nowCurrencyUnit,t=e.showTitle,a=e.currencyList,c=e.id,s=e.setUnit,u=o.currencyId,l=(0,n.useMemo)((function(){var e=[];return a.forEach((function(o){u===o.currencyId?e.unshift(o):e.push(o)})),e}),[u,a]);return 0===a.length?null:(0,i.jsxs)("div",{className:"ul-box currency-ul-box",id:c,children:[t&&(0,i.jsx)("div",{className:"ul-title",children:(0,r.Iu)("home_footersetting_text2_local_currency")}),(0,i.jsx)("ul",{className:"list-ul currency-list",children:l.map((function(e,o){var t=e.isoCode,n=0===o;return(0,i.jsxs)("li",{className:"item ".concat(n?"selected":""),onClick:function(){s({currencyId:e.currencyId,refresh:!0})},children:[t,n&&(0,i.jsx)("i",{className:"icon okx-header-footer-check select-icon"})]},"currency_id_".concat(e.currencyId))}))})]})}},8029:(e,o,t)=>{t.d(o,{Z:()=>l});var n=t(7363),r=t(1825),i=t(2838),a=t.n(i),c=t(9867),s=t(5351),u=t(4829);const l=function(e){var o=(r.Z||{}).locale,t=(0,s.Uh)(!1,!0),i=e.languageList,l=void 0===i?[]:i,d=e.showTitle,_=e.languageMap,f=e.id,m=e.setLanguage,h=e.route,v=(0,n.useMemo)((function(){var e=[];return l.forEach((function(t){o===t.language?e.unshift(t):e.push(t)})),e}),[l,o]);return 0===l.length?null:(0,u.jsxs)("div",{className:"ul-box language-ul",id:f,children:[d&&(0,u.jsx)("div",{className:"ul-title",children:(0,c.Iu)("home_header_language_dropdowntitle_language")}),(0,u.jsx)("div",{className:"list-ul language-li",children:v.map((function(e){var t=e.language,n=e.text,i=o===t,c=function(e,o,t){var n=(r.Z||{}).langPath,i=e[o]||{},c=t.pathname,s=t.search,u=t.hash,l=void 0===u?"":u,d=c.replace(/\/{2,}/g,"/"),_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=e;if(e&&e.includes("?")){var t=e.substring(e.indexOf("?")+1).split("&").filter((function(e){var o=e.toLowerCase();return!(o.startsWith("channelid")||o.startsWith("channelflag"))}));o=t.length>0?"?".concat(t.join("&")):""}return o}(s),f=i.langPath?"/".concat(i.langPath):"/";if(i.href)return a()(i.href);if("/"===d||d===n)return a()("".concat(f).concat(_).concat(l));var m="",h=d,v=/(\/help\/section\/[^/?#]+)\/page\/\d+/;v.test(d)&&(h=d.replace(v,"$1"));var b=/(\/learn\/.*)(\/page\/\d+)/;b.test(d)&&(h=d.replace(b,"$1"));var p="".concat(h).concat(_).concat(l);return m=n.length?p.replace(n,f):"".concat(f).concat(p),a()(m.replace("//","/"))}(_,t,h);return(0,u.jsxs)("a",{className:"item ".concat(i?"selected":""),href:c,onClick:function(e){e.preventDefault(),m(t)},children:[n,i&&(0,u.jsx)("i",{className:"icon okx-header-footer-check select-icon"})]},"language_".concat(t))}))},t)]})}},5037:(e,o,t)=>{t.d(o,{Dv:()=>n});var n={project:{id:160,token:"b32011805ecf66fdb148c22d63d2803d"}}},6110:(e,o,t)=>{t.d(o,{Z:()=>s});var n=t(9439),r=t(7363),i=t(8443),a=t(4627),c=t.n(a);const s=function(){var e=(0,r.useState)(""),o=(0,n.Z)(e,2),t=o[0],a=o[1],s=(0,r.useState)(""),u=(0,n.Z)(s,2),l=u[0],d=u[1];return(0,r.useEffect)((function(){c().getDownloadQrCode().then((function(e){a(e)})).catch((function(){})),d((0,i.zN)("/download"))}),[]),{url:t,downloadUrl:l}}},1181:(e,o,t)=>{t.d(o,{A:()=>u});var n=t(9439),r=t(7363),i=t(1825),a=t(2706),c=t(4627),s=t.n(c),u=function(){var e=s().getSeoLanguageList(window.location.pathname),o=Object.values(e),t=(0,r.useState)(e),c=(0,n.Z)(t,2),u=c[0],l=c[1],d=(0,r.useState)(o),_=(0,n.Z)(d,2),f=_[0],m=_[1],h=(0,r.useState)({}),v=(0,n.Z)(h,2),b=v[0],p=v[1],x=(0,r.useState)({}),g=(0,n.Z)(x,2),y=g[0],N=g[1],k=(0,r.useState)([]),w=(0,n.Z)(k,2),I=w[0],j=w[1],M=(0,r.useState)(!1),Z=(0,n.Z)(M,2),z=Z[0],C=Z[1],T=i.Z.locale;(0,r.useEffect)((function(){C(!0),s().preference.getLanguageList().then((function(e){if(e&&Object.keys(e).length>0){l(e),p(e[T]);var o=Object.values(e);m(o)}})).catch((function(){})),s().preference.getUnit().then((function(e){var o=e.nowCurrencyUnit,t=e.allCurrencyUnit;N(o),j(t)})).catch((function(){})),a.Z.listen("global_updated_currency",(function(e){N(e)}))}),[]);var S=(0,r.useCallback)((function(e){var o={nowLocale:e};s().preference.setLanguage(o)}),[]),L=(0,r.useCallback)((function(e){s().preference.setUnit(e)}),[]);return{languageList:f,nowLanguage:b,languageMap:u,nowCurrencyUnit:y,setNowCurrencyUnit:N,currencyList:I,setUnit:L,setLanguage:S,showTitle:z}}},6925:(e,o,t)=>{t.d(o,{g:()=>u});var n=t(1413),r=t(9439),i=t(7363),a=t(8361),c=t(4627),s=t.n(c),u=function(){if((0,a.y)())return{};var e=(0,i.useState)({}),o=(0,r.Z)(e,2),t=o[0],c=o[1];return(0,i.useEffect)((function(){(0,a.y)()||s().allAssociation&&s().allAssociation.then((function(e){c(e)}))}),[]),(0,n.Z)({},t)}},5351:(e,o,t)=>{t.d(o,{Uh:()=>i});var n=t(9439),r=t(7363);function i(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=(0,r.useState)(e),i=(0,n.Z)(t,2),a=i[0],c=i[1];return(0,r.useEffect)((function(){c(o)}),[]),a}},8839:(e,o,t)=>{t.d(o,{sM:()=>u});var n={act:function(){}};if("undefined"!==typeof window){var r=window.utils.monitor,i=(window._okGlobal||window.okGlobal).site,a=(void 0===i?{}:i).sign,c=void 0===a?"okex":a;n=r.newInstance({site:c.toLocaleLowerCase(),product:"app_web_homepage",commonParams:{}})}var s=n,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.button_name_tr,t=e.site,n=e.button_name;s.act({action:"HomePage_Footer_Url_Click",anchor:"HomePage_Footer_Url_Click",params:{button_name_tr:o,site:t,button_name:n},actionType:"",elementType:"",ampProject:"okx"})}},9867:(e,o,t)=>{t.d(o,{Iu:()=>u,bg:()=>d,tq:()=>l});var n=t(7e3),r=t(8361),i=t(5833),a=t.n(i),c=t(8562),s="undefined"!==typeof c?c:{},u=function(e,o){var t=s.javaUse;return void 0!==t&&t?"##".concat(e,"##"):(0,n.O4)(e,o)};function l(){return/android|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())}var d=function(){return!(0,r.y)()&&!(null===a()||void 0===a()||!a().isLogin())}},9716:(e,o,t)=>{var n=t(1413),r=t(7363),i=t(566),a=t(1825),c=t(7935),s=t(9439),u=t(8361),l=t(3504),d=t(9827),_=t(5037),f=t(6274),m=t(4829);const h=function(e){var o=e.title,t=e.className,n=void 0===t?"":t;return(0,m.jsxs)("div",{className:"footer-alert-container ".concat(n),children:[(0,m.jsx)("i",{className:"icon iconfont footer-alert-icon okx-header-footer-info"}),(0,m.jsx)("div",{className:"footer-alert-msg-box",children:(0,m.jsx)("div",{className:"footer-alert-title",children:o})})]})};var v=t(9867),b=t(4942),p=t(8443),x=t(8839);var g=function(){return((null===a.Z||void 0===a.Z?void 0:a.Z.getSiteInfo())||{}).entity},y=t(7482);const N=function(e){var o=e.ssr,t=e.columnIndex,n=e.list,r=e.title,i=e.handleActivity,a=e.activitiesData,c=(0,y.Z)().media;return(0,m.jsxs)("div",{className:"f-c-list ".concat(a[t]||""),children:[(0,m.jsxs)("div",{className:"title-box",onClick:function(){o||i(t)},children:[r,!o&&"sm"===c&&(0,m.jsx)("span",{className:"icon okx-header-footer-arrow-chevrons-down user-arrow"})]}),(0,m.jsx)("div",{className:"item-box",children:n.map((function(e,t){var n=e.href,r=e.text,i=e.monitorName,a=e.needHide,c=void 0!==a&&a,s=e.blank,u=void 0===s?"":s,l=e.hide,d=void 0===l?"":l;if(c||!r)return null;var _="footer_list_col".concat(t),f=function(){o||i&&i()},h=null!==n&&void 0!==n&&n.includes("http")||null!==n&&void 0!==n&&n.includes("https")?"_blank":void 0;return n?(0,m.jsx)("a",{className:"link",href:n,target:u||h,onClick:f,"data-hide":d||null,children:r},_):(0,m.jsx)("button",{className:"link",type:"button",onClick:f,children:r},_)}))})]},r)};var k=t(4627),w=t.n(k),I=function(e){var o,t,n,r,i,c,s=e.locale,u=e.isEEA,l=e.langPath,d=function(){var e=a.Z.locale,o={en_US:"usd",zh_CN:"cny",zh_TW:"hkd",zh_HK:"hkd",fr_FR:"eur",de_DE:"eur",it_IT:"eur",pt_PT:"eur",es_ES:"eur",ru_RU:"usd",th_TH:"thb",vi_VN:"vnd",in_ID:"idr",id_ID:"idr",tr_TR:"try",pl_PL:"usd",en_IN:"inr",pt_BR:"brl",es_419:"ars",cs_CZ:"usd",ro_RO:"usd",uk_UA:"uah",nl_NL:"eur"};return o[void 0===e?"en_US":e]||o.en_US}(),_=function(e){return["en_US","tr_TR","vi_VN","ru_RU","uk_UA","in_ID","id_ID","zh_CN","zh_TW","es_419"].includes(e)}(s),f=(null===(o=w().restriction.simpleEarn)||void 0===o?void 0:o.hidden)&&(null===(t=w().restriction.structuredEarn)||void 0===t?void 0:t.hidden)&&(null===(n=w().restriction.onChainPosStaking)||void 0===n?void 0:n.hidden)&&(null===(r=w().restriction.onChainDeFi)||void 0===r?void 0:r.hidden),m=w().restriction.tradingBot.hidden,h=w().restriction.spot.hidden,b=w().restriction.p2p.hidden,g=null===(i=w().restriction)||void 0===i||null===(c=i.affiliate)||void 0===c?void 0:c.hidden;return[{title:(0,v.Iu)("home_footer_colheader1_about"),columnIndex:0,list:[{href:(0,p.zN)("/about.html"),text:(0,v.Iu)("home_footer_colbody1_about_us"),monitorName:function(){(0,x.sM)({button_name:"about"})}},{text:(0,v.Iu)("home_footer_colbody1_careers"),href:(0,p.zN)("/join-us"),monitorName:function(){(0,x.sM)({button_name:"careers"})}},{href:(0,p.zN)("/contact-us.html"),text:(0,v.Iu)("home_footer_colbody1_contact_us"),monitorName:function(){(0,x.sM)({button_name:"contact_us"})}},{href:u?"https://support.okcoin.com/hc/en-us/articles/360059514492-Terms-of-Service":(0,p.zN)("".concat(l,"/help/terms-of-service")),text:(0,v.Iu)("home_footer_colbody2_terms_of_service"),monitorName:function(){(0,x.sM)({button_name:"terms_of_service"})},blank:u?"_blank":void 0},{text:(0,v.Iu)("home_footer_colbody2_privacy_policy"),href:u?"https://support.okcoin.com/hc/en-us/articles/360059514572-Privacy-Policy-Statement":(0,p.zN)("".concat(l,"/help/privacy-policy-statement")),monitorName:function(){(0,x.sM)({button_name:"privacy_policy"})},blank:u?"_blank":void 0},{href:u?"https://support.okcoin.com/hc/en-us/articles/360018829051-Risk-Compliance-Disclosure":(0,p.zN)("".concat(l,"/help/risk-compliance-disclosure")),text:(0,v.Iu)("home_footer_colbody2_disclosures"),monitorName:function(){(0,x.sM)({button_name:"disclosures"})},blank:u?"_blank":void 0},{href:(0,p.zN)("".concat(l,"/help/whistleblower-notice")),text:(0,v.Iu)("home_footer_colbody2_whistleblower_notice"),monitorName:function(){(0,x.sM)({button_name:"whistleblower"})}},{href:(0,p.zN)("".concat(l,"/help/okx-law-enforcement-request-guide")),text:(0,v.Iu)("home_footer_colbody2_law_enforcement"),monitorName:function(){(0,x.sM)({button_name:"law_enforcement"})}},{href:(0,p.zN)("/download"),text:(0,v.Iu)("home_footer_colbody_okx_download_app"),monitorName:function(){(0,x.sM)({button_name:"download"})}}]},{title:(0,v.Iu)("home_footer_colheader7_products"),columnIndex:1,list:[{text:(0,v.Iu)("home_footer_colbody7_buy_crypto"),href:(0,p.zN)("/buy-crypto"),monitorName:function(){(0,x.sM)({button_name:"buy_crypto"})}},b?{}:{text:(0,v.Iu)("home_footer_colbody7_p2p_trading"),href:(0,p.zN)("/p2p-markets"),monitorName:function(){(0,x.sM)({button_name:"p2p"})}},{text:(0,v.Iu)("home_footer_colbody7_convert"),href:(0,p.zN)("/trade-convert#from-page=footer&from-action=web_footer"),monitorName:function(){(0,x.sM)({button_name:"convert"})}},h?{}:{text:(0,v.Iu)("home_footer_colbody7_trading"),href:(0,p.zN)("/trade-spot/btc-usdt"),monitorName:function(){(0,x.sM)({button_name:"trade"})}},f?{}:{text:(0,v.Iu)("home_footer_colbody7_earn"),href:(0,p.zN)("/earn"),monitorName:function(){(0,x.sM)({button_name:"earn"})},hiddenName:"growth"},{text:(0,v.Iu)("home_footer_colbody7_okc"),href:(0,p.zN)("/oktc"),monitorName:function(){(0,x.sM)({button_name:"oktc"})}},{text:(0,v.Iu)("home_footer_colbody7_okx_wallet"),href:(0,p.zN)("/web3"),monitorName:function(){(0,x.sM)({button_name:"okx_wallet"})}},{text:(0,v.Iu)("home_footer_colbody7_nft_marketplace"),href:(0,p.zN)("/web3/marketplace/nft"),monitorName:function(){(0,x.sM)({button_name:"web3_marketplace"})}},{text:(0,v.Iu)("home_footer_colbody_crypto_calculator"),href:(0,p.zN)("/convert"),monitorName:function(){(0,x.sM)({button_name:"crypto_calculator"})}},m?{}:{text:(0,v.Iu)("home_footer_colbody_trading_bot"),href:(0,p.zN)("/trading-bot"),monitorName:function(){(0,x.sM)({button_name:"trading_bot"})},hiddenName:"tradingBot"},{text:(0,v.Iu)("home_footer_colbody_browse_all_coins"),href:(0,p.zN)("/price"),monitorName:function(){(0,x.sM)({button_name:"all_cryptocurrencies"})}},{text:(0,v.Iu)("home_header_nav_learn"),href:(0,p.zN)("/learn"),monitorName:function(){(0,x.sM)({button_name:"learn"})}},_?{text:(0,v.Iu)("home_footer_colbody_tradingview"),href:(0,p.zN)("/landingpage/tradingview"),monitorName:function(){(0,x.sM)({button_name:"tradingview"})}}:{}]},{isTwoColumn:!0,columnsList:[{title:(0,v.Iu)("home_footer_colheader3_service"),columnIndex:2,list:[g?{}:{href:(0,p.zN)("/affiliates"),text:(0,v.Iu)("home_footer_colbody_affiliate"),monitorName:function(){(0,x.sM)({button_name:"affiliates"})}},{href:(0,p.zN)("/okx-api"),text:(0,v.Iu)("home_footer_colbody3_apiv5"),monitorName:function(){(0,x.sM)({button_name:"okx_api"})}},{text:(0,v.Iu)("home_footer_colbody3_historical_market_data"),href:(0,p.zN)("/historical-data"),monitorName:function(){(0,x.sM)({button_name:"historical_data"})}},{href:(0,p.zN)("/fees"),text:(0,v.Iu)("home_footer_colbody3_fee_schedule"),monitorName:function(){(0,x.sM)({button_name:"fees"})}},{href:(0,p.zN)("/token-listing-apply"),text:(0,v.Iu)("home_footer_colbody3_token_listing"),monitorName:function(){(0,x.sM)({button_name:"listing_application"})},isZh:!0},b?{}:{href:(0,p.zN)("/p2p/advertiser"),text:(0,v.Iu)("home_footer_colbody3_p2p_merchant_application"),monitorName:function(){(0,x.sM)({button_name:"p2p_advertiser"})}}]},{title:(0,v.Iu)("home_footer_colheader4_support"),columnIndex:3,list:[{href:(0,p.zN)("/help"),text:(0,v.Iu)("home_footer_colbody4_support_center"),monitorName:function(){(0,x.sM)({button_name:"help"})}},{text:(0,v.Iu)("home_footer_colbody4_channel_verification"),href:(0,p.zN)("/support-center/channel-verification"),monitorName:function(){(0,x.sM)({button_name:"channel_verification"})}},{href:(0,p.zN)("".concat(l,"/help/category/announcements")),text:(0,v.Iu)("home_footer_colbody4_announcement"),monitorName:function(){(0,x.sM)({button_name:"announcements"})}},{href:(0,p.zN)("/community"),text:(0,v.Iu)("home_footer_colbody4_connect_with_okx"),monitorName:function(){(0,x.sM)({button_name:"community"})},needAutoHref:!0}]}]},{isTwoColumn:!0,columnsList:[{title:(0,v.Iu)("home_footer_colheader6_buy_crypto"),columnIndex:4,list:[{text:(0,v.Iu)("home_footer_colbody5_buy_usdc"),href:(0,p.zN)("/buy-usdc"),monitorName:function(){(0,x.sM)({button_name:"buy_usdc"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_usdt"),href:(0,p.zN)("/buy-usdt"),monitorName:function(){(0,x.sM)({button_name:"buy_usdt"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_bitcoin"),href:(0,p.zN)("/buy-btc"),monitorName:function(){(0,x.sM)({button_name:"buy_btc"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_eth"),href:(0,p.zN)("/buy-eth"),monitorName:function(){(0,x.sM)({button_name:"buy_eth"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_ada"),href:(0,p.zN)("/buy-ada"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"buy_ada"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_sol"),href:(0,p.zN)("/buy-sol"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"buy_sol"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_matic"),href:(0,p.zN)("/buy-matic"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"buy_matic"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_ltc"),href:(0,p.zN)("/buy-ltc"),monitorName:function(){(0,x.sM)({button_name:"buy_ltc"})}},{text:(0,v.Iu)("home_footer_colbody5_buy_xrp"),href:(0,p.zN)("/buy-xrp"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"buy_xrp"})}}]},{title:(0,v.Iu)("home_footer_colbody_crypto_calculator_header"),columnIndex:5,list:[{text:(0,v.Iu)("home_footer_colbody_btc_to_fiat"),href:(0,p.zN)("/convert/btc-to-".concat(d)),monitorName:function(){(0,x.sM)({button_name:"convert_btc"})}},{text:(0,v.Iu)("home_footer_colbody_eth_to_fiat"),href:(0,p.zN)("/convert/eth-to-".concat(d)),monitorName:function(){(0,x.sM)({button_name:"convert_eth"})}},{text:(0,v.Iu)("home_footer_colbody_usdt_to_fiat"),href:(0,p.zN)("/convert/usdt-to-".concat(d)),monitorName:function(){(0,x.sM)({button_name:"convert_usdt"})}},{text:(0,v.Iu)("home_footer_colbody_sol_to_fiat"),href:(0,p.zN)("/convert/sol-to-".concat(d)),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"convert_sol"})}},{text:(0,v.Iu)("home_footer_colbody_xrp_to_fiat"),href:(0,p.zN)("/convert/xrp-to-".concat(d)),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"convert_xrp"})}}]}]},{title:(0,v.Iu)("home_footer_colheader6_trade"),columnIndex:6,list:[{text:(0,v.Iu)("home_footer_colbody6_btc_usdc"),href:(0,p.zN)("/trade-spot/btc-usdc"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_btc_usdc"})}},{text:(0,v.Iu)("home_footer_colbody6_eth_usdc"),href:(0,p.zN)("/trade-spot/eth-usdc"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_eth_usdc"})}},{text:(0,v.Iu)("home_footer_colbody6_btc_usdt"),href:(0,p.zN)("/trade-spot/btc-usdt"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_btc"})}},{text:(0,v.Iu)("home_footer_colbody6_eth_usdt"),href:(0,p.zN)("/trade-spot/eth-usdt"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_eth"})}},{text:(0,v.Iu)("home_footer_colbody6_matic_usdt"),href:(0,p.zN)("/trade-spot/matic-usdt"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_matic"})}},{text:(0,v.Iu)("home_footer_colbody6_ltc_usdt"),href:(0,p.zN)("/trade-spot/ltc-usdt"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_ltc"})}},{text:(0,v.Iu)("home_footer_colbody6_sol_usdt"),href:(0,p.zN)("/trade-spot/sol-usdt"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_sol"})}},{text:(0,v.Iu)("home_footer_colbody6_xrp_usdt"),href:(0,p.zN)("/trade-spot/xrp-usdt"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"trade_xrp"})}},{text:(0,v.Iu)("home_footer_colbody6_btc_price"),href:(0,p.zN)("/price/bitcoin-btc"),monitorName:function(){(0,x.sM)({button_name:"btc_price"})}},{text:(0,v.Iu)("home_footer_colbody6_eth_price"),href:(0,p.zN)("/price/ethereum-eth"),monitorName:function(){(0,x.sM)({button_name:"eth_price"})}},{text:(0,v.Iu)("home_footer_colbody6_ada_price"),href:(0,p.zN)("/price/cardano-ada"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"ada_price"})}},{text:(0,v.Iu)("home_footer_colbody6_sol_price"),href:(0,p.zN)("/price/solana-sol"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"sol_price"})}},{text:(0,v.Iu)("home_footer_colbody6_xrp_price"),href:(0,p.zN)("/price/ripple-xrp"),hide:"sg",monitorName:function(){(0,x.sM)({button_name:"xrp_price"})}}]}]};const j=function(e){var o=e.ssr,t=e.data,i=e.isTR,a=e.enableFooterAuto,c=e.enableOnetrustScripts,u=(0,r.useState)(!1),l=(0,s.Z)(u,2),d=l[0],_=l[1];(0,r.useEffect)((function(){_(function(){var e=g();return e&&7===Number(e)}())}),[]);var f=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"button_name_tr";return e.map((function(e,t){var n,r=[],i=[];return null===e||void 0===e||null===(n=e.childComponentNodes)||void 0===n||n.forEach((function(e,n){var a,c=null===e||void 0===e||null===(a=e.childComponentNodes)||void 0===a?void 0:a.map((function(e,r){return{href:(0,p.zN)(e.link),text:(0,p.zN)(e.title),columnIndex:"".concat(t,"-").concat(n,"-").concat(r),monitorName:function(){(0,x.sM)((0,b.Z)({},o,e.eventTrackingKey))}}})),s={href:(0,p.zN)(e.link),text:e.title,title:e.title,columnIndex:"".concat(t,"-").concat(n),monitorName:function(){null!==c&&void 0!==c&&c.length||(0,x.sM)((0,b.Z)({},o,e.eventTrackingKey))},list:c};(null===c||void 0===c?void 0:c.length)>0?i.push(s):r.push(s)})),{title:e.title,columnIndex:t,list:r,columnsList:i,isTwoColumn:(null===i||void 0===i?void 0:i.length)>0}}))}((null===t||void 0===t?void 0:t.childComponentNodes)||[],i?"button_name_tr":"button_name"),h=(0,r.useMemo)((function(){return I((0,n.Z)((0,n.Z)({},e),{},{isEEA:d}))}),[d]),y=f;i||a||(y=h);var k=(0,r.useState)(y),w=(0,s.Z)(k,2),j=w[0],M=w[1],Z=(0,r.useState)({}),z=(0,s.Z)(Z,2),C=z[0],T=z[1],S=function(e){if(!o){var t=(0,n.Z)({},C);t[e]?t[e]="":t[e]="active",T(t)}},L=(0,r.useState)(!1),E=(0,s.Z)(L,2),U=E[0],R=E[1];return(0,r.useEffect)((function(){R(function(){var e=g();return e&&12===Number(e)}())}),[]),(0,r.useEffect)((function(){var e,o,t={text:(0,v.Iu)("home_footer_colbody1_cookie_preference"),rec:"cookie_preference",monitorName:function(){var e,o;null===(e=window)||void 0===e||null===(o=e.OneTrust)||void 0===o||o.ToggleInfoDisplay()}},n=(null===(e=y[0])||void 0===e?void 0:e.list)||[],r=n[n.length-1]||{};c&&!r.rec&&(null===(o=y[0])||void 0===o||o.list.push(t));M(y)}),[c]),(0,m.jsx)("div",{className:"f-c-main","data-sg":U||null,children:j.map((function(e,t){var n=e.title,r=e.list,i=e.isTwoColumn,a=void 0!==i&&i,c=e.columnIndex,s=e.columnsList;return a?(0,m.jsx)("div",{className:"f-c-list list-container ",children:s.map((function(e){return(0,m.jsx)(N,{title:e.title,list:e.list,columnIndex:e.columnIndex,ssr:o,handleActivity:S,activitiesData:C},"twoCol".concat(e.columnIndex))}))},"two_list_".concat(t)):(0,m.jsx)(N,{title:n,list:r,columnIndex:c,ssr:o,handleActivity:S,activitiesData:C},"col".concat(c))}))})};var M=t(6110);const Z=function(){var e=(0,r.useState)(!1),o=(0,s.Z)(e,2),t=o[0],n=o[1];return(0,r.useEffect)((function(){var e=(0,v.bg)();n(e)}),[]),{loginStatus:t}};const z=function(e){var o=w().restriction.spot.hidden,t=Z().loginStatus,n=e.isTR,r=void 0!==n&&n,i=(0,M.Z)().url;return(0,m.jsxs)("div",{className:"footer-download",children:[(0,m.jsx)("div",{className:"footer-download-title",children:r?(0,v.Iu)("tr_home_footer_slogan_trade_on_the_go"):(0,v.Iu)("home_footer_slogan_trade_with_okx")}),t&&!o&&(0,m.jsx)("a",{className:"footer-trade-link",href:(0,p.zN)("/trade-spot"),children:(0,v.Iu)("home_footer_btn_trade")}),!t&&(0,m.jsx)("a",{className:"footer-register-link",href:(0,p.zN)("/account/register"),children:(0,v.Iu)("home_footer_btn_register")}),(0,m.jsxs)("div",{className:"footer-scan-box",children:[(0,m.jsx)("img",{className:"footer-qrcode-img",src:i,alt:(0,v.Iu)("home_footer_qrcode_scan_to_download")}),(0,m.jsx)("div",{className:"footer-scan-desc",children:r?(0,v.Iu)("tr_home_footer_qrcode_scan_to_download"):(0,v.Iu)("home_footer_qrcode_scan_to_download")})]})]})};var C=t(1331),T=t(3465);const S=function(e){var o=e.locale,t=e.isTR,n=void 0!==t&&t,i=n?(0,v.Iu)("tr_home_footer_text_copyright",{currentYear:(0,C.Z)((new Date).getFullYear())}):(0,v.Iu)("exp_footer_text_copyright",{0:(0,C.Z)((new Date).getFullYear())}),c=(0,r.useState)(0),u=(0,s.Z)(c,2),l=u[0],d=u[1],_=(0,r.useRef)(),f=(0,r.useCallback)((function(){var e=a.Z.cdnBaseUrl,o=a.Z.envSign;if((0,v.tq)()){var t=l+1;1===t&&(_.startTime=(new Date).getTime());var n="prod"===o?"".concat(e,"/cdn/assets/okfe/okt/ok-helper-v3/content-script.js?t=").concat(_.startTime):"".concat(e,"/cdnpre/assets/okfe/okt/ok-helper-v3/content-script.js?t=").concat(_.startTime);if(d(t),6===t)(new Date).getTime()-_.startTime<=2e3&&(0,T.f)({url:n}).then().catch((function(e){})),d(0)}}),[l]),h="zh_CN"===o?"logo-c":"logo-e";return n&&(h="logo-tr"),(0,m.jsxs)("div",{className:"footer-section footer-top-box",children:[(0,m.jsx)("div",{className:"footer-top-logo ".concat(h)}),(0,m.jsx)("div",{className:"footer-copyright",onClick:f,children:i})]})};var L=t(9408),E=t(1181),U=t(8029),R=t(1876),D=function(e){var o=e.isSsr,t=e.locale,n=(0,E.A)(o),i=n.nowCurrencyUnit,a=n.languageMap,c=n.languageList,u=n.currencyList,l=n.setUnit,d=n.setLanguage,_=n.showTitle,f=window.location,h=f.search,v=f.pathname,b=f.hash,p=(0,r.useState)({search:h,pathname:v}),x=(0,s.Z)(p,2),g=x[0],y=x[1];return(0,r.useEffect)((function(){y({search:h,pathname:v,hash:b})}),[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(U.Z,{locale:t,showTitle:_,languageMap:a,languageList:c,setLanguage:d,route:g}),(0,m.jsx)(R.Z,{showTitle:_,nowCurrencyUnit:i,currencyList:u,setUnit:l,id:""})]})},O=function(e){var o=e.onActiveHandle,t=e.onHoverHandle,n=(0,r.useState)(""),i=(0,s.Z)(n,2),a=i[0],c=i[1],u=(0,E.A)(!1),l=u.nowLanguage,d=(u.nowCurrencyUnit||{}).isoCode,_=void 0===d?"":d;return(0,r.useEffect)((function(){var e=(l||{}).text,o=void 0===e?"":e,t=_?"".concat(o,"/").concat(_):o;c(t)}),[l,_]),(0,m.jsxs)("div",{id:"language",className:"now-language okx-header-footer-language",onClick:o,onMouseEnter:t,children:[(0,m.jsx)("span",{className:"text",children:a}),(0,m.jsx)("i",{className:"icon okx-header-footer-arrow-chevrons-down arrow-icon"})]})};const A=function(e){var o=e.ssr,t=(0,r.useState)(!1),n=(0,s.Z)(t,2),i=n[0],c=n[1],l=(0,r.useState)(!1),d=(0,s.Z)(l,2),_=d[0],f=d[1],h=a.Z.locale,v=void 0===h?"zh_CN":h,b=(0,r.useRef)(null),p=(0,r.useCallback)((function(){var e=(0,L.Z)().media;if("sm"===e||"md"===e){var o=!i;if(o){var t=b.current.getBoundingClientRect().top;f(t<370)}c(o)}}),[i]),x=(0,r.useCallback)((function(){var e=(0,L.Z)().media;if("sm"!==e&&"md"!==e){var o=b.current.getBoundingClientRect().top;f(o<322)}}),[]),g=(0,r.useMemo)((function(){var e="f-l ";return i&&(e+=" active"),e}),[i]);return(0,m.jsxs)("div",{className:g,ref:b,children:[!o&&(0,m.jsx)(O,{onActiveHandle:p,onHoverHandle:x}),(0,m.jsx)("div",{className:"language-list ".concat(o?"":"drop-animation"," ").concat(_?"placement-bottom":"placement-top"),children:(0,u.y)()?"HEADER_LANGUAGE_CONTENT_PLACEHOLDER":(0,m.jsx)(D,{locale:v,isSsr:!1})})]})};var P=t(9252),H=t(6925),F={"icon-biyong11":"okx-header-footer-biyong","icon-biyong1":"okx-header-footer-biyong","icon-biyong2":"okx-header-footer-biyong","icon-discord":"okx-header-footer-discord","icon-Discord":"okx-header-footer-discord","icon-Instagram":"okx-header-footer-instagram","icon-weibo":"okx-header-footer-weibo","icon-weibo2":"okx-header-footer-weibo","icon-weibo1":"okx-header-footer-weibo","icon-facebook2":"okx-header-footer-facebook","icon-facebook3":"okx-header-footer-facebook","icon-line1":"okx-header-footer-line","icon-Linkedin":"okx-header-footer-linkedin","icon-PressRoom":"okx-header-footer-press-room","icon-reddit":"okx-header-footer-reddit","icon-reddit1":"okx-header-footer-reddit","icon-twitter":"okx-header-footer-twitter-1","icon-twitter1":"okx-header-footer-twitter-1","icon-twitter2":"okx-header-footer-twitter-1","icon-youtube":"okx-header-footer-youtube","icon-youtube1":"okx-header-footer-youtube","icon-telegram":"okx-header-footer-telegram","icon-telegram1":"okx-header-footer-telegram","icon-Telegram":"okx-header-footer-telegram","icon-VK21":"okx-header-footer-vk","icon-a-VK21":"okx-header-footer-vk","okx-support-community-tradingview":"okx-header-footer-tradingview"};const B=function(e){var o=e.ssr,t=e.locale,n=e.javaUse,i=e.isTR,c=void 0!==i&&i,u=(0,r.useState)([]),l=(0,s.Z)(u,2),d=l[0],_=l[1],f=(0,H.g)().mediaInfo,h=void 0===f?[]:f;(0,r.useEffect)((function(){var e=Math.min(h.length,8),o=h.filter((function(e){return!0===e.isLink})).slice(0,e);_(o)}),[h.length]);var b="zh_CN"===t,x=(0,p.zN)("/community");return o||n?null:(0,m.jsxs)("div",{className:"f-m",children:[(0,m.jsx)("div",{className:"f-m-title",children:(0,v.Iu)("home_footer_bottom_community")}),(0,m.jsxs)("div",{className:"f-m-list",id:"footerMedia",children:[d.length>0&&d.map((function(e,o){var t=e.nameEn,n=e.linkUrl,r=e.iconName,i=t.replace(/\s/g,"").toLowerCase(),c=F[r]||r,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=a.Z.site,t=(void 0===o?{}:o).is,n=!!(void 0===t?{}:t).TR;if(e.includes("http")||e.includes("https"))return!n&&"www.okx.com"===e.replace(/^https?:\/\/(.*?)(:\d+)?\/.*$/,"$1");return!0}(n),u=s||"telegram"===i&&b;return(0,m.jsx)("a",{href:"telegram"===i&&b?x:n,className:"icon-some-chat icon footer-icon ".concat(c),target:u?"":"_blank",rel:u?"noreferrer":"nofollow noreferrer","aria-label":c,onClick:function(){(0,P.rQj)({footerCommunitychannels:t})}},"media_".concat(o))})),!c&&(0,m.jsx)("a",{href:x,className:"icon-some-chat footer-icon okx-header-footer-more","aria-label":"footerMediaMore",onClick:P.ypl})]})]})};var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.i18nData;a.Z.isRenderByNode||(o=window.okx_web_seo_tdk),!(0,u.y)()&&a.Z.isRenderByNode&&(o=window.__INIT_STATE__.headerContext.i18nData);var t=a.Z.locale,i=a.Z.langPath,b=a.Z.enableOnetrustScripts,p={locale:t,langPath:i,javaUse:!1,enableOnetrustScripts:void 0!==b&&b,ssr:!0},x=(0,r.useState)(p),g=(0,s.Z)(x,2),y=g[0],N=g[1],k=e.templateConfig,w=(null===k||void 0===k?void 0:k.body)||k,I=(null===k||void 0===k?void 0:k.notes)||{},M=!!k,Z=function(){var e=a.Z.locale,o=a.Z.ipRegion,t=(0,r.useState)(!1),n=(0,s.Z)(t,2),i=n[0],c=n[1],u=(0,r.useState)(!1),l=(0,s.Z)(u,2),d=l[0],_=l[1];return(0,r.useEffect)((function(){c("RU"===o&&["en_US","ru_RU"].includes(e)),_("FR"===o&&!(0,v.bg)())}),[]),i?{top:{title:(0,v.Iu)("home_footer_russia_riskwarning_top")},bottom:{title:(0,v.Iu)("home_footer_russia_riskwarning_bottom")}}:d?{top:{},bottom:{title:(0,v.Iu)("fr_core_seo_exch_home_footnote_company_info")}}:{top:{},bottom:{}}}(),C=M?I:Z,T=(null===C||void 0===C?void 0:C.top)||{},L=(null===C||void 0===C?void 0:C.bottom)||{};return(0,r.useEffect)((function(){N((0,n.Z)((0,n.Z)({},y),{},{ssr:!1}))}),[]),(0,r.useEffect)((function(){window.setTimeout((function(){if(["www.okx.com"].includes(window.location.host)){var e=(0,d.uR)({isDetector:!0});if(e){var o=document.querySelector(".hometpl"),t=null===o||void 0===o?void 0:o.innerHTML;c.k.info("global info error",{length:a.Z.dl,id:e,str:t,templateExist:!!o,customConfig:_.Dv})}}(0,d.Go)()}),6e3)}),[]),(0,m.jsx)(l.Z,{isDev:!0,localeData:o,noRemoteData:!0,fetchConfig:f.Q,children:(0,m.jsxs)("div",{className:"footer-wrap",children:[(0,m.jsxs)("div",{className:"f-b",children:[T.title?(0,m.jsxs)("div",{className:"footer-ru-container",children:[(0,m.jsx)(S,(0,n.Z)({},y)),(0,m.jsx)(h,{className:"footer-ru-tip",title:T.title,closable:!1})]}):(0,m.jsx)(S,(0,n.Z)({},y)),(0,m.jsx)(A,{ssr:y.ssr}),(0,m.jsxs)("div",{className:"f-c",children:[(0,m.jsx)(j,(0,n.Z)((0,n.Z)({},y),{},{data:w,enableFooterAuto:M})),(0,m.jsx)(z,(0,n.Z)({},y))]}),(0,m.jsx)(B,(0,n.Z)({},y))]}),L.title&&(0,m.jsx)(h,{className:"footer-ru-tip ru-tip-bottom",title:L.title,closable:!1})]})})};G.defaultProps={locale:"",langPath:"",i18nData:void 0};const q=G;!function(){var e,o,t,r=document.getElementById("footerContainer"),s=null===(e=window)||void 0===e||null===(o=e.__INIT_STATE__)||void 0===o||null===(t=o.footerContext)||void 0===t?void 0:t.templateConfig,u=a.Z.isRenderByNode,l=a.Z.isApp;if(u)r&&(0,i.hydrateRoot)(r,(0,m.jsx)(q,{templateConfig:s}),{onRecoverableError:function(e,o){var t;["prod"].includes(a.Z.envSign)&&!l&&e?(c.k.error("nav footer hydrate fail!",(0,n.Z)((0,n.Z)({},o),{},{error:e.message,customConfig:_.Dv})),null===(t=window.OkPerf)||void 0===t||t.customLog({type:"hydrate"})):console.error(e)}});else{var d=r&&(0,i.createRoot)(r);r&&d.render((0,m.jsx)(q,{templateConfig:s}))}}()},9252:(e,o,t)=>{t.d(o,{rQj:()=>l,ypl:()=>u});var n={act:function(){}};if("undefined"!==typeof window){var r=window.utils.monitor,i=(window._okGlobal||window.okGlobal).site,a=(void 0===i?{}:i).sign,c=void 0===a?"okex":a;n=r.newInstance({site:c.toLocaleLowerCase(),product:"seo",commonParams:{}})}var s=n,u=function(){s.act({action:"web_footer_navigation_support_community_more_click",anchor:"web_footer_navigation_support_community_more_click",params:{},actionType:"",elementType:""})},l=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).footerCommunitychannels;s.act({action:"web_footer_navigation_support_community_channels_click",anchor:"web_footer_navigation_support_community_channels_click",params:{footerCommunitychannels:e},actionType:"",elementType:""})}},7363:e=>{e.exports=React},1533:e=>{e.exports=ReactDOM},4627:e=>{e.exports=okxGlobal},5833:e=>{e.exports=utils.ont},6274:e=>{e.exports=JSON.parse('{"Q":{"project":"okx_web_seo_tdk","site":"okx"}}')}},o={};function t(n){var r=o[n];if(void 0!==r)return r.exports;var i=o[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}t.m=e,(()=>{var e=[];t.O=(o,n,r,i)=>{if(!n){var a=1/0;for(l=0;l=i)&&Object.keys(t.O).every((e=>t.O[e](n[s])))?n.splice(s--,1):(c=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,r,i]}})(),t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.j=348,(()=>{try{if(t.miniCssF){var e=t.miniCssF;t.miniCssF=function(o){var t=e(o);if("string"!==typeof t)return t;var n=window._okGlobal||window.okGlobal;return n&&n.isRTL&&/\.css$/.test(t)?t.replace(/\.css$/,".rtl.css"):t}}}catch(o){}})(),(()=>{var e={348:0};t.O.j=o=>0===e[o];var o=(o,n)=>{var r,i,[a,c,s]=n,u=0;if(a.some((o=>0!==e[o]))){for(r in c)t.o(c,r)&&(t.m[r]=c[r]);if(s)var l=s(t)}for(o&&o(n);ut(9716)));n=t.O(n)})(); +//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/okx-nav/footer/index.748564ed.js.map \ No newline at end of file diff --git a/index.b71f47ce.js.download b/index.b71f47ce.js.download new file mode 100644 index 0000000..990def1 --- /dev/null +++ b/index.b71f47ce.js.download @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={94595:(e,t,n)=>{n.d(t,{AO:()=>c,Fg:()=>i,ag:()=>a,o0:()=>s,uf:()=>o,wv:()=>l});var r=new(n(20348).R),a=r,s=r.formatDateTime,o=r.formatNumber,i=(r.formatRelativeTime,r.getNumberInfo),c=r.parseLocaleNumber,l=r.formatMessage},67303:(e,t,n)=>{n.d(t,{GxW:()=>p,HFb:()=>l,TMQ:()=>f,Ycj:()=>m,fQw:()=>u,kZf:()=>d,n6Q:()=>h,suG:()=>g});var r={act:function(){}};if("undefined"!==typeof window){var a=window.utils.monitor,s=(window._okGlobal||window.okGlobal).site,o=(void 0===s?{}:s).sign,i=void 0===o?"okex":o;r=a.newInstance({site:i.toLocaleLowerCase(),product:"onchain",commonParams:{}})}var c=r,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collectionname,n=e.address,r=e.contractaddress,a=e.tokenID;c.act({action:"web_nft_marekt_detail_refresh",anchor:"web_nft_marekt_detail_refresh",params:{collectionname:t,address:n,contractaddress:r,tokenID:a},actionType:"",elementType:"",ampProject:"okx"})},d=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).order_hash;c.act({action:"web_nft_market_detatil_sell_click",anchor:"web_nft_market_detatil_sell_click",params:{order_hash:e},actionType:"",elementType:"",ampProject:"okx"})},u=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).tx_hash;c.act({action:"web_nft_market_detatil_buynow_success",anchor:"web_nft_market_detatil_buynow_success",params:{tx_hash:e},actionType:"",elementType:"",ampProject:"okx"})},f=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).order_hash;c.act({action:"web_nft_market_detatil_offer_success",anchor:"web_nft_market_detatil_offer_success",params:{order_hash:e},actionType:"",elementType:"",ampProject:"okx"})},p=()=>{c.act({action:"web_metax_nft_shoppingcart_convert_click",anchor:"web_metax_nft_shoppingcart_convert_click",params:{},actionType:"",elementType:"",ampProject:"okx"})},m=()=>{c.act({action:"web_metax_nft_market_detatil_makeoffer_convert_click",anchor:"web_metax_nft_market_detatil_makeoffer_convert_click",params:{},actionType:"",elementType:"",ampProject:"okx"})},h=()=>{c.act({action:"web_metax_nft_market_detatil_buynow_convert_click",anchor:"web_metax_nft_market_detatil_buynow_convert_click",params:{},actionType:"",elementType:"",ampProject:"okx"})},g=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).tx_hash;c.act({action:"web_nft_market_detatil_offer_accept",anchor:"web_nft_market_detatil_offer_accept",params:{tx_hash:e},actionType:"",elementType:"",ampProject:"okx"})}},73571:(e,t,n)=>{n.d(t,{Z:()=>l});n(87363);var r=n(23364),a=(n(23502),n(95640)),s=n.n(a),o=n(26328),i=n(45263),c=e=>{var t=e.classNames,n=e.amount,a=e.hiddeAmount,c=e.hiddeIcon,l=e.currencyPaylod,d=e.currencyPayload,u=e.currencyIconCls,f=d||l,p=f.label,m=f.icon;return(0,i.jsxs)("div",{className:s()("flex flex-row items-center",t,o.Z.priceDisplay),children:[!c&&(0,i.jsx)(r.Z,{className:s()("shrink-0",u,o.Z.currencyIcon),src:m,width:1,height:1,alt:p}),!a&&(0,i.jsx)("div",{className:"truncate",children:n||0}),(0,i.jsx)("div",{className:s()("shrink-0",o.Z.currency),children:p})]})};c.defaultProps={classNames:"",currencyIconCls:"",amount:0};const l=c},83662:(e,t,n)=>{n.d(t,{Z:()=>s});n(87363);var r=n(31301),a=(n(27668),n(45263));const s=e=>{var t=e.className,n=e.size;return(0,a.jsx)(r.Z,{size:n||r.Z.SIZE.lg,type:r.Z.TYPE.neutral,className:t})}},81715:(e,t,n)=>{n.d(t,{ZP:()=>p});var r=n(1413),a=n(29439),s=n(87363),o=n(96833),i=(n(83295),n(926)),c=n(95640),l=n.n(c),d=n(30820),u=n(17906),f=n(45263);n(97699);const p=e=>{var t=e.src,n=e.thumbnailUrl,c=e.coverUrl,p=e.resourceUrl,m=e.projectUrl,h=e.className,g=e.imgClass,_=e.backgroundClassName,v=e.alt,b=e.greyFlag,y=void 0===b||b,A=t||c||p||m,C=(0,s.useState)(!1),T=(0,a.Z)(C,2),E=T[0],N=T[1];return(0,f.jsxs)("div",{className:l()(h,"nft-picture-img-loader","flex justify-center items-center"),children:[(0,f.jsx)("div",{className:l()(E&&u.Z.imgBgBlur,u.Z.srcBg,_),style:y?{background:"#dbdbdb",overflow:"hidden"}:{},children:(0,f.jsx)("img",{src:i.e9,className:u.Z.bgImg,alt:"".concat(v," background")})}),(0,f.jsx)(d.Z,(0,r.Z)((0,r.Z)({},e),{},{src:A,pictureClassName:u.Z.imgContainer,thumbnailUrl:n,defaultImg:(0,i.qH)(),className:l()(u.Z.img,g),layout:o.Z.LAYOUT.contain,onLoad:()=>{N(!0)}}))]})}},5465:(e,t,n)=>{n.d(t,{Z:()=>d});n(87363);var r=n(95640),a=n.n(r),s=n(14300),o=n(79130);n(82890);const i="index_nft-no-data__1JPVQ";var c=n(45263),l=e=>{var t=e.noDataTips,n=e.themeName,r=e.className,l=e.emptyType,d=void 0===l?o.Z.State.TYPE.noResult:l;return(0,c.jsx)("div",{className:a()(i,r),children:(0,c.jsx)(o.Z.State,{type:d,themeName:n,title:t||(0,s.O4)("nftranking_list_emptystatus_nodata")})})};l.defaultProps={noDataTips:"",className:""};const d=l},3275:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(1413),a=n(87363),s=n(86451),o=n(70991),i=n(14300),c=n(29439),l=n(40910),d=n(22333),u=n(14792),f=n(74165),p=n(15861),m=n(21401),h={getMakeOfferConfig:e=>{var t=e.stepActionInfoList,n=e.nftInfo;return m.tradeUtil.getStepActionInfoListByActionType({steps:t,actionType:l.tl.SIGN_ORDERS}).map((e=>({stepActionInfo:e,nftInfo:n})))},makeOffer:function(){var e=(0,p.Z)((0,f.Z)().mark((function e(t){var n,r;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.default[m.TRADE_TYPE.MAKE_OFFER](t);case 3:r=e.sent,n=l.Ez.SUCCESS,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n=l.Ez.WARNING;case 10:return e.abrupt("return",{processedResultStatus:n,processedResultPayload:{txResult:r}});case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),makeOfferExecutor:function(){var e=(0,p.Z)((0,f.Z)().mark((function e(t){var n,a,s,o,i,c,d,u;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processInfo,a=t.processedCallback,s=n.processConfig,o=s.stepActionInfo,i=s.nftInfo,n.status==l.Ez.SUCCESS){e.next=14;break}return a((0,r.Z)((0,r.Z)({},n),{},{status:l.Ez.EXECUTING})),e.next=8,h.makeOffer({stepActionInfo:o,nftInfo:i});case 8:c=e.sent,d=c.processedResultStatus,u=c.processedResultPayload,a((0,r.Z)((0,r.Z)({},n),{},{processedResultPayload:u,status:d})),e.next=15;break;case 14:a(n);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const g=h,_=class extends u.Z{constructor(e){var t=e.onProcessChange,n=e.stepActionInfoList,r=e.nftInfo;super();var a=g.getMakeOfferConfig({stepActionInfoList:n,nftInfo:r});this.init({processConfigList:a}),this.setProcessChangeHandler((function(){t&&t(...arguments)})),this.setProcessExecutor(g.makeOfferExecutor)}};var v=e=>{var t=e.stepActionInfoList,n=e.nftInfo,r=(0,a.useState)([]),s=(0,c.Z)(r,2),o=s[0],i=s[1],u=(0,d.jD)("useSign",o),f=u.processStatus,p=u.setStatusToFinished,m=u.setStatusToSuccess,h=u.setStatusToFailed,g=u.setStatusToRetry,v=(0,a.useRef)(),b=(0,a.useState)(!1),y=(0,c.Z)(b,2),A=y[0],C=y[1],T=(0,a.useMemo)((()=>[l.DZ.EXECUTING,l.DZ.RETRYING].includes(f)),[f]),E=e=>{var t=e.processInfoList;(e=>{e.some((e=>e.status===l.Ez.EXECUTING))||(e.some((e=>e.status!=l.Ez.SUCCESS))?e.some((e=>e.status===l.Ez.FAILED||e.status===l.Ez.WARNING))&&(h(),C(!0)):(m(),p(),C(!1)))})(t),i([...t])};return(0,a.useEffect)((()=>{var e=new _({stepActionInfoList:t,onProcessChange:E,nftInfo:n});v.current=e}),[t]),(0,a.useEffect)((()=>{[l.DZ.EXECUTING,l.DZ.RETRYING].includes(f)&&v.current.run(f)}),[f]),{retry:()=>{g()},showRetry:A,isLoading:T,processStatus:f,processInfoList:o}},b=n(36272),y=n(97230);const A={hash:"index_hash__yhi97","jump-icon":"index_jump-icon__dujto",jumpIcon:"index_jump-icon__dujto",currency:"index_currency__GPOde","currency-icon":"index_currency-icon__ybuty",currencyIcon:"index_currency-icon__ybuty",icon:"index_icon__C+1bR","loading-icon":"index_loading-icon__xv3-S",loadingIcon:"index_loading-icon__xv3-S",loader:"index_loader__V97Rs","success-icon":"index_success-icon__AlMDl",successIcon:"index_success-icon__AlMDl","icon-check":"index_icon-check__7pvNF",iconCheck:"index_icon-check__7pvNF","failed-icon":"index_failed-icon__RPQRD",failedIcon:"index_failed-icon__RPQRD","icon-close":"index_icon-close__6CKje",iconClose:"index_icon-close__6CKje","nft-img":"index_nft-img__LfEap",nftImg:"index_nft-img__LfEap","platform-img":"index_platform-img__JCMpx",platformImg:"index_platform-img__JCMpx","nft-name":"index_nft-name__1aTPP",nftName:"index_nft-name__1aTPP","nft-price":"index_nft-price__7Cp6V",nftPrice:"index_nft-price__7Cp6V","sub-title":"index_sub-title__B8BKx",subTitle:"index_sub-title__B8BKx","pay-label":"index_pay-label__3IV9B",payLabel:"index_pay-label__3IV9B","dash-line":"index_dash-line__wcNGZ",dashLine:"index_dash-line__wcNGZ",title:"index_title__uHmJV"};var C=n(45263);const T=e=>{var t=e.title,n=e.subTitle,a=e.collapseProps,c=e.nftInfo,l=e.orderInfo,d=e.stepActionInfoList,u=v({stepActionInfoList:d,nftInfo:c,orderInfo:l}),f=u.showRetry,p=u.isLoading,m=u.retry,h=u.processStatus,g=u.processInfoList;return(0,C.jsx)(s.Z,(0,r.Z)({title:t,className:A.container,notShowLine:!0,processInfos:g.map((e=>{var t,n,a,s={name:c.name||c.projectName,imageUrl:c.image||c.projectUrl,collectionImage:c.projectUrl,sourceIcon:null===(t=d[0])||void 0===t||null===(n=t.items[0])||void 0===n||null===(a=n.platform)||void 0===a?void 0:a.icon};return{content:(0,C.jsx)(o.Z,(0,r.Z)({},s)),status:null===e||void 0===e?void 0:e.status}})),processStatus:h,addAfterContent:f?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(y.Z,{subTitle:n}),(0,C.jsx)(b.Z,{isLoading:p,retry:m,errorTip:(0,i.O4)("nft_market_collection_offer_topup_refused")})]}):(0,C.jsx)(y.Z,{subTitle:n})},a))}},70991:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(74165),a=n(15861),s=(n(87363),n(95640)),o=n.n(s),i=n(23364),c=n(7562),l=(n(23502),n(10680)),d=n(14300),u=n(926),f=n(17825),p=n(45263);const m=e=>{var t=e.name,n=e.imageUrl,s=e.sourceIcon,m=e.collectionImage,h=e.txHash,g=e.chain;return(0,p.jsxs)("div",{className:o()(f.Z.container,"flex flex-row justify-between items-center"),children:[(0,p.jsxs)("div",{className:o()("flex flex-row items-center"),children:[(0,p.jsxs)("div",{className:o()("relative"),children:[(0,p.jsx)(i.Z,{useWebp:!1,className:f.Z.nftImg,src:n||m||(0,u.qH)(),errorImg:(0,u.qH)(),width:1,heigh:1,alt:"nftImg"}),(0,p.jsx)(i.Z,{useWebp:!1,className:f.Z.platformImg,src:s,width:1,heigh:1,alt:"platformImg"})]}),(0,p.jsx)("div",{className:f.Z.nftName,children:t})]}),h&&(0,p.jsxs)("div",{className:o()("shrink-0 flex items-center",f.Z.hash),onClick:(0,a.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,l.hl)({chain:g,txHash:h});case 1:case"end":return e.stop()}}),e)}))),children:[(0,d.O4)("nftmarket_orderbook_confirm_middle_label_hash"),(0,p.jsx)(c.Z,{className:o()("icon-a-openlink20",f.Z.jumpIcon)})]})]})}},79501:(e,t,n)=>{n.d(t,{fu:()=>a,vp:()=>r});n(926);var r={COLLECTED:1,CREATE:2,ACTIVITY:3,OFFERS:4,LISTINGS:5,HIDE:6,COLLECTION:7,CLAIM_NFT:8,FAVORITES:9,INVAILD:10,MORE:11},a={LISTINGS:1,MADE:2,RECEIVED:3,INVAILD:4}},64037:(e,t,n)=>{n.d(t,{AH:()=>m,Ay:()=>f,Bv:()=>l,Ey:()=>N,Gf:()=>_,P6:()=>E,YT:()=>p,c6:()=>u,dK:()=>y,ek:()=>T,fr:()=>d,gV:()=>g,gs:()=>A,i1:()=>v,iP:()=>b,nG:()=>C,xA:()=>h});var r=n(53949),a=n(71747),s=n(1708),o=e=>{var t=r.Z.cdnBaseUrl;return e&&"".concat(t).concat(e)},i=e=>(0,a.zN)("/explorer".concat(e)),c=function(e){return e[e.BTC=0]="BTC",e[e.ETH=1]="ETH",e[e.BSC=56]="BSC",e[e.TRON=86]="TRON",e[e.POLYGON=137]="POLYGON",e[e.IMX=99]="IMX",e[e.SOLANA=501]="SOLANA",e[e.AVALANCHE=43114]="AVALANCHE",e[e.ARBITURM=42161]="ARBITURM",e[e.ETHW=10001]="ETHW",e[e.APTOS=637]="APTOS",e[e.SUI=784]="SUI",e[e.OPTIMISM=10]="OPTIMISM",e[e.KLAYTN=8217]="KLAYTN",e[e.ARBITURM_NOVA=42170]="ARBITURM_NOVA",e[e.ZKSYNC_ERA=324]="ZKSYNC_ERA",e[e.BASE=8453]="BASE",e[e.LINEA=59144]="LINEA",e[e.OPBNB=204]="OPBNB",e[e.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",e[e.SCROLL=534352]="SCROLL",e[e.Manta_Pacific=169]="Manta_Pacific",e[e.STARKNET=9004]="STARKNET",e[e.OKC=66]="OKC",e}(c||{}),l=c,d=()=>({[l.BTC]:{name:"Bitcoin",icon:o("/cdn/assets/imgs/234/6179EEF50BCA4FC8.png"),greyIcon:o("/cdn/assets/imgs/234/8C07D11726A6A988.png"),nightIcon:o("/cdn/assets/imgs/234/41A28784830ACE1B.png"),coin:"BTC",key:"btc",browser:i("/btc"),swap:"",urlName:"btc"},[l.ETH]:{name:"Ethereum",icon:o("/cdn/assets/imgs/223/B40194FA87BFCD12.png"),greyIcon:o("/cdn/assets/imgs/223/323A14D08D92A382.png"),nightIcon:o("/cdn/assets/imgs/231/68706C0720DA3F28.png"),coin:"ETH",key:"eth",browser:i("/eth"),swap:"",urlName:"eth"},[l.OKC]:{name:"OKTC",icon:o("/cdn/assets/imgs/223/8B53EEC19248144F.png"),greyIcon:o("/cdn/assets/imgs/223/06DC8A5067338704.png"),nightIcon:o("/cdn/assets/imgs/231/3B69C9CB7029C0E3.png"),coin:"OKT",key:"okc",browser:i("/oktc"),swap:"https://app.sushi.com/en/swap",urlName:"okc"},[l.BSC]:{name:"BNB ".concat("Chain"),icon:o("/cdn/assets/imgs/223/FE9A863F3FC887C2.png"),coin:"BNB",greyIcon:o("/cdn/assets/imgs/223/6F80389C6D34BAD6.png"),nightIcon:o("/cdn/assets/imgs/231/CE5F0ED4B74660B5.png"),key:"bsc",browser:i("/bsc"),swap:"https://pancakeswap.finance/swap",urlName:"bsc"},[l.TRON]:{name:"Tron",key:"tron",coin:"TRX",icon:o("/cdn/assets/imgs/229/6742B7B70BA0C42C.png"),greyIcon:o("/cdn/assets/imgs/229/3AC236E97E8478D5.png"),nightIcon:o("/cdn/assets/imgs/231/C27CC2E80A6C8EC3.png"),urlName:"tron",swap:"",browser:"https://tronscan.io"},[l.POLYGON]:{name:"Polygon",icon:o("/cdn/assets/imgs/223/163242F5ED16A5FC.png"),coin:"Matic",greyIcon:o("/cdn/assets/imgs/223/EA2F7582FE6CA66B.png"),nightIcon:o("/cdn/assets/imgs/231/31D7296424E0EE4E.png"),key:"polygon",browser:i("/polygon"),swap:"https://quickswap.exchange/#/swap",urlName:"polygon"},[l.IMX]:{name:"Immutable ".concat("X"),icon:o("/cdn/assets/imgs/228/271155DA35AB4EA9.png"),greyIcon:o("/cdn/assets/imgs/223/0CDADA6EEF23D82F.png"),nightIcon:o("/cdn/assets/imgs/231/F6EADB1EDA54CE60.png"),coin:"IMX",key:"imx",browser:"https://immutascan.io",swap:"",urlName:"imx"},[l.SOLANA]:{name:"Solana",icon:o("/cdn/assets/imgs/226/2AEFA08F138EB5FA.png"),greyIcon:o("/cdn/assets/imgs/226/D4458F3F6DF9FCBC.png"),nightIcon:o("/cdn/assets/imgs/231/7C96246CD4A539F1.png"),coin:"SOL",key:"solana",browser:i("/sol"),swap:"",urlName:"sol"},[l.AVALANCHE]:{name:"Avalanche ".concat("C"),icon:o("/cdn/assets/imgs/228/F5ABEC58D1413DC0.png"),greyIcon:o("/cdn/assets/imgs/225/45D8A9A3A53FE680.png"),nightIcon:o("/cdn/assets/imgs/231/F1E38A39FFCBD9EF.png"),coin:"AVAX",key:"avalanche",browser:"https://snowtrace.io",swap:"https://traderjoexyz.com/trade#/",urlName:"avax"},[l.ARBITURM]:{name:"Arbitrum ".concat("One"),icon:o("/cdn/assets/imgs/228/355D089D17250CB5.png"),greyIcon:o("/cdn/assets/imgs/228/4D08E48980F34445.png"),nightIcon:o("/cdn/assets/imgs/231/C007B6178EC69D9D.png"),coin:"ETH",key:"arbitrum",browser:"https://arbiscan.io",swap:"",urlName:"arbi"},[l.ETHW]:{name:"ETHW",icon:o("/cdn/assets/imgs/229/A8E62C761650DE8D.png"),greyIcon:o("/cdn/assets/imgs/229/202A71A7A3729049.png"),nightIcon:o("/cdn/assets/imgs/231/28312C7EEDB6156A.png"),coin:"ETHW",browser:i("/ethw"),key:"ethw",swap:"",urlName:"ethw"},[l.APTOS]:{name:"Aptos",icon:o("/cdn/assets/imgs/2210/9F9FC0D8A4D8B4B3.png"),greyIcon:o("/cdn/assets/imgs/2210/3694F70776BBEF0E.png"),nightIcon:o("/cdn/assets/imgs/231/DBF00CD3EAAFBC1C.png"),coin:"APT",key:"aptos",browser:i("/aptos"),swap:"",urlName:"aptos"},[l.OPTIMISM]:{name:"Optimism",icon:o("/cdn/assets/imgs/2212/E990FA87D33837D7.png"),greyIcon:o("/cdn/assets/imgs/2212/553EC358E1FDF30D.png"),nightIcon:o("/cdn/assets/imgs/231/F6798775136F4C5D.png"),coin:"OP",key:"optimism",browser:i("/optimism"),swap:"",urlName:"optimism"},[l.KLAYTN]:{name:"Klaytn",icon:o("/cdn/assets/imgs/2212/0711A15AE9F1A55E.png"),greyIcon:o("/cdn/assets/imgs/2212/BC05B7E00730B589.png"),nightIcon:o("/cdn/assets/imgs/231/986CC3ACE572AF9E.png"),coin:"KLAY",key:"klaytn",browser:"https://scope.klaytn.com",swap:"",urlName:"klaytn"},[l.ARBITURM_NOVA]:{name:"Arbitrum ".concat("Nova"),icon:o("/cdn/assets/imgs/233/C61096B82E731100.png"),greyIcon:o("/cdn/assets/imgs/2310/CA96257B68A2A044.png"),nightIcon:o("/cdn/assets/imgs/233/AB31EB6C6B9FD0FA.png"),coin:"NOVA_ETH",key:"arbitrum ".concat("Nova"),browser:"https://nova.arbiscan.io",swap:"",urlName:"arbitrum-nova"},[l.ZKSYNC_ERA]:{name:"Zksync ".concat("Era"),icon:o("/cdn/assets/imgs/234/E1E59BAEDE51C11C.png"),greyIcon:o("/cdn/assets/imgs/234/70D0AB980E9198E8.png"),nightIcon:o("/cdn/assets/imgs/234/6ADFC476B0DFD65A.png"),coin:"ERA_ETH",key:"zksync ".concat("Era"),browser:i("/zksync"),swap:"",urlName:"zksync-era"},[l.SUI]:{name:"Sui",icon:o("/cdn/assets/imgs/237/29213B0030469AB4.png"),greyIcon:o("/cdn/assets/imgs/237/8B8F8EB8CA0FF9AD.png"),nightIcon:o("/cdn/assets/imgs/237/FEA76B305477941A.png"),coin:"SUI",key:"sui",browser:i("/sui"),swap:"",urlName:"sui"},[l.BASE]:{name:"Base",icon:o("/cdn/assets/imgs/238/0A12D6FFBD08EEA1.png"),greyIcon:o("/cdn/assets/imgs/238/C207ABA5D98B4E68.png"),nightIcon:o("/cdn/assets/imgs/238/EF7A440A84622DAC.png"),coin:"BASE_ETH",key:"base",browser:"https://basescan.org",swap:"",urlName:"base"},[l.LINEA]:{name:"linea",icon:o("/cdn/assets/imgs/238/9CE476E49E4515DC.png"),greyIcon:o("/cdn/assets/imgs/238/AB5A1E9FFB5F5131.png"),nightIcon:o("/cdn/assets/imgs/238/3AF581CA542105A1.png"),coin:"LINEA_ETH",key:"linea",browser:"https://lineascan.build/",swap:"",urlName:"linea"},[l.OPBNB]:{name:"opBNB",icon:o("/cdn/assets/imgs/2311/010625FBB6B450DB.png"),greyIcon:o("/cdn/assets/imgs/239/D446DF58102D2611.png"),nightIcon:o("/cdn/assets/imgs/239/A6218C94670509B9.png"),coin:"OP_BNB",key:"opBNB",browser:"https://opbnbscan.com",swap:"",urlName:"opbnb"},[l.POLYGON_ZKEVM]:{name:"Polygon ".concat("zkEVM"),icon:o("/cdn/assets/imgs/2312/488199003ED8F138.png"),greyIcon:o("/cdn/assets/imgs/2312/D290B4CA1CC6DFC1.png"),nightIcon:o("/cdn/assets/imgs/2312/D290B4CA1CC6DFC1.png"),coin:"POLYGON_ETH",key:"Polygon ".concat("zkEVM"),browser:i("/polygon-zkevm"),swap:"",urlName:"polygonzkevm"},[l.SCROLL]:{name:"scroll",icon:o("/cdn/assets/imgs/2310/23994EF4E77D309F.png"),greyIcon:o("/cdn/assets/imgs/2310/E860B767894F2331.png"),nightIcon:o("/cdn/assets/imgs/2310/23994EF4E77D309F.png"),coin:"SCROLL_ETH",key:"scroll",browser:"https://scrollscan.com",swap:"",urlName:"scroll"},[l.Manta_Pacific]:{name:"Manta ".concat("Pacific"),icon:o("/cdn/assets/imgs/2311/53CD36094814553D.png"),greyIcon:o("/cdn/assets/imgs/2311/9B252C83CD8744E4.png"),nightIcon:o("/cdn/assets/imgs/2311/1769F43FCFA46E96.png"),coin:"MANTA_ETH",key:"Manta ".concat("Pacific"),browser:"https://pacific-explorer.manta.network",swap:"",urlName:"manta-pacific"},[l.STARKNET]:{name:"Starknet",icon:o("/cdn/assets/imgs/2311/46B82DCE31C71857.png"),greyIcon:o("/cdn/assets/imgs/2311/4EE9E56374EFA4BB.png"),nightIcon:o("/cdn/assets/imgs/2311/099A513942DCA5B2.png"),coin:"STARKNET_ETH",key:"STARKNET",browser:"https://starkscan.co",swap:"",urlName:"starknet"}}),u=d(),f=[l.ETH,l.BSC,l.POLYGON,l.AVALANCHE,l.ARBITURM,l.OPTIMISM,l.KLAYTN,l.ARBITURM_NOVA,l.ZKSYNC_ERA,l.BASE,l.LINEA,l.OPBNB,l.POLYGON_ZKEVM,l.SCROLL,l.Manta_Pacific,l.STARKNET,l.OKC],p=(u[l.ETH].name,l.ETH,o("/cdn/assets/imgs/2310/CE36F94DCA419192.png"),u[l.BTC].name,l.BTC,o("/cdn/assets/imgs/2310/6179EEF50BCA4FC8.png"),u[l.POLYGON].name,l.POLYGON,o("/cdn/assets/imgs/2310/5823E03710EA664A.png"),l.ETH,l.BSC,l.POLYGON,l.OKC,[l.IMX,l.SOLANA,l.APTOS,l.SUI]),m=[l.SOLANA,l.SUI,l.BTC,l.APTOS,...f],h={[l.SOLANA]:1800,[l.APTOS]:16e3,[l.SUI]:17700,[l.BTC]:1,[l.ETH]:60},g=[s.Z.chainTypeEnum.EVM,s.Z.chainTypeEnum.SOLANA,s.Z.chainTypeEnum.APTOS,s.Z.chainTypeEnum.SUI,s.Z.chainTypeEnum.BTC,s.Z.chainTypeEnum.STARKNET],_={[s.Z.chainTypeEnum.SOLANA]:2,[s.Z.chainTypeEnum.APTOS]:2,[s.Z.chainTypeEnum.SUI]:4,[s.Z.chainTypeEnum.BTC]:5,[s.Z.chainTypeEnum.STARKNET]:6},v=[...f,l.BTC],b=[...f,l.APTOS],y=[l.APTOS,l.STARKNET],A=[...f,l.BTC,l.APTOS],C=(l.ETH,l.SOLANA,l.SUI,l.SOLANA,l.BTC,l.ETH,l.SOLANA,l.APTOS,l.IMX,l.SUI,f.filter((e=>e!=l.ETH)),l.SUI,l.SOLANA,l.APTOS,l.BTC,l.SUI,l.APTOS,l.ETH,l.BTC,l.SUI,l.BTC,l.SUI,l.APTOS,l.SOLANA,l.APTOS,l.IMX,l.APTOS,l.IMX,[l.SUI,l.APTOS,l.SOLANA]),T=(l.SOLANA,[l.SOLANA,l.BTC,l.SUI]),E=[l.APTOS,l.BTC,l.SUI],N=[l.APTOS,l.BTC,l.SUI];l.SOLANA,l.SOLANA},9271:(e,t,n)=>{n.d(t,{ZP:()=>o,h7:()=>s,yK:()=>a});var r=n(53949),a="0x0000000000000000000000000000000000000000",s="nft-account-tab";const o={baseHead:()=>{var e=r.Z.cdnBaseUrl;return"".concat(e,"/cdn/assets/imgs/218/C2D740CC81A7337A.png")},woktAddr:"0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15",wethAddr:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",zeroAddr:a,wmaticAddr:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",wavaxAddr:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",maxSellPrice:1e10,intersectionMaxPage:10}},40910:(e,t,n)=>{n.d(t,{$L:()=>A,Bq:()=>x,Bs:()=>N,DZ:()=>C,Ev:()=>s,Ez:()=>T,GE:()=>d,I6:()=>f,IX:()=>o,Is:()=>S,L6:()=>_,Lr:()=>w,Pi:()=>y,Pv:()=>m,QQ:()=>E,RJ:()=>I,TY:()=>p,VT:()=>u,W0:()=>O,Z1:()=>R,Zz:()=>k,gY:()=>b,jG:()=>h,jR:()=>i,k$:()=>D,mr:()=>l,pG:()=>g,pH:()=>v,s5:()=>c,tl:()=>Z,wr:()=>F,z5:()=>a});var r=n(39858),a={NO_AUDIT:0,AUDITING:1,SUCCESS:2,FAILD:3,BOSS_SUPPORT:4},s={IMG:1,VIDEO:2,AUDIO:3},o={FAILD:0,SUCC:1,INFO:2},i={ERC721:1,ERC1155:2,PUNK:3,SOLANA:4,ORDINALS:5,APTOS_V2:7,IMX:99},c={REVIEWING:1,REVIEW_FAILD:2,SOLD_OUT:3,LOAD_ERROR:4,DEFAULT_HEAD:5},l={BUYNOW:1,AUCTION:2,COLLECTION_OFFER:3},d={CERTIFY:1,NOT_CERTIFY:0},u={MAKER_OFFER:"makeOffer",SELL:"sell"},f={INVALID:0,VALID:1},p=(r.ZP.ethChainCurrenyItems,r.ZP.ethChainCurrenyItems,r.ZP.oecChainCurrenyItems,r.ZP.bscChainCurrenyItems,r.ZP.polygonChainCurrenyItems,r.ZP.tronChainCurrenyItems,r.ZP.imxChainCurrenyItems,r.ZP.solanaChainCurrenyItems,r.ZP.avalancheChainCurrenyItems,{Create:1,Mint:2,Bid:3,Activity:4,Transfer:5,Purchase:6,BatchPurchase:7,AcceptOffer:8,CancelSell:9,CancellOffer:10,NFTApprove:11,TokenApprove:12,MadeListing:13,MadeOffer:14,PunksClaim:15,UpdateListing:16,BatchTransfer:24,ClaimNft:25,BtcTrading:26,Inscribing:27,P2PBuy:301,P2PCancelSell:302,P2PSell:303,P2PTokenApprove:304,InitAccount:28,BatchMint:29,CreateCollection:30}),m={BlurListingRes:201},h={SUBMITED:1,SUCCESS:2,FAIL:3,BROADCAST_SUCCESS:5},g={PENDING:0,SUCCESS:1,FAIL:2},_={ERC721:0,ERC1155:1},v={collection:0,category:1},b={PART:1,ALL:2},y={WALLET_CONNECT:1,METAMASK:2,PHANTOM:3,KEPLR:4,OKX_WALLET:5,UNISAT:7,XVERSE:8},A={Both:1,Sell:2,Buy:3},C={INIT:0,EXECUTING:1,SUCCESS:2,FAILED:3,RETRYING:4,FINISHED:5,INTERRUPTED:6},T={INIT:0,EXECUTING:1,SUCCESS:2,FAILED:3,WARNING:6},E={WHITE:1,BLACK:2},N={WALLET_SIGN:2},I={SUSPICIOUS:1,PENDING:2},x={BLURWSERROR:499,BLURFLOOERROR:498},Z={VERIFY_WALLET_ADDRESS:"VerifyWalletAddress",APPROVE_NFT:"ApprovalItems",APPROVE_TOKEN:"ApprovalCurrency",SIGN_ORDERS:"SignOrders",CANCEL_ORDERS:"CancelOrders",TAKE_ORDERS:"TakeOrders",INITIALIZE_WALLET:"InitializeWallet",TRANSFER:"NftTransfer"},S={LAZY_LOADING:"lazyLoading",SIGNATURE:"signature",STARKNET_TRANSACTION:"starknet_transaction",STARKNET_MULTI_TRANSACYION:"starknet_multi_transaction"},O={BTC_NFT:"1",VALID_BRC20_NFT:"2",INVALID_BRC20_NFT:"3",VALID_BRC20S_NFT:"4",INVALID_BRC20S_NFT:"5"},k={LOADING:"1"},F={IN_COMPLETE:"incomplete",COMPLETE:"complete"},D={TRANSFER_NFT:20,BUY_NFT:22,SELL_NFT:23,CANCEL_NFT:26,BRC20_TRADE:52,BRC20_CANCEL:55,BRC20S_TRADE:59,BTC_BATCH_BUY:66},w=[20010003],R={NFT_LIST:1,NFT_CARD:2}},32131:(e,t,n)=>{n.d(t,{Bc:()=>s,E_:()=>o,zc:()=>i});var r=n(14300),a=n(926),s={MINT:1,MINT_OKC:11,OFFER:2,LOWER:3,SALE:5,TRANSFER:6,LIST:21,AIRDROP:12,LIST_CANCELED:22,OFFER_CANCELED:23,BURN:24,COLLECTION_OFFER:25,CHANGE_PRICE:31,APTOS_NFT_TRANSFER:32,APTOS_NFT_CLAIM:33,APTOS_NFT_CANCEL_TRANSFER:34,COLLECTION_OFFER_CANCELED:26,BIDDING_OFFER:41,RETURN_BIDDING_OFFER:42,AUCTION:51,FLASH_BUY:52,PURCHASE:53,TITLE_SALE:54,TRANSFER_FROM:61,TRANSFER_TO:62},o={MINT:"MINT",LIST:"LIST",OFFER:"OFFER",SALE:"SALE",TRANSFER:"TRANSFER",CANCEL:"CANCEL"},i=()=>({[s.MINT]:{name:(0,r.O4)("nftcoll_list_dropdown_activitytypemint"),icon:a.NE,backgroundColor:"#FEF9F6",color:"#F16514",tagColor:"orange"},[s.OFFER]:{name:(0,r.O4)("nftcoll_list_dropdown_activitytypeoffer"),icon:a.se,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.LOWER]:{name:(0,r.O4)("nfthome_activity_list_button_lower_price"),icon:a.ZM,backgroundColor:"#FEF9F6",color:"#F16514",tagColor:"orange"},[s.CHANGE_PRICE]:{name:(0,r.O4)("nfthome_activity_list_button_change_price"),icon:a.ZM,backgroundColor:"#FEF9F6",color:"#F16514",tagColor:"orange"},[s.AIRDROP]:{name:(0,r.O4)("wallet_dashboard_filter_checkbox_airdrop"),icon:a.c$,backgroundColor:"#F2FFF7",color:"#31BD65",tagColor:"green"},[s.SALE]:{name:(0,r.O4)("marketoverview_list_state_sale"),icon:a.ZM,backgroundColor:"#F2FFF7",color:"#31BD65",tagColor:"green"},[s.TRANSFER]:{name:(0,r.O4)("nftcoll_list_dropdown_activitytypetransfer"),icon:a.YC,backgroundColor:"#F2F2F2",color:"#3D3D3D",tagColor:"gray"},[s.APTOS_NFT_TRANSFER]:{name:(0,r.O4)("nftcoll_list_dropdown_activitytypetransfer"),icon:a.YC,backgroundColor:"#F2F2F2",color:"#3D3D3D",tagColor:"gray"},[s.APTOS_NFT_CLAIM]:{name:(0,r.O4)("nfthome_dashboard_tab_history_txtbtn_claim"),icon:a.NE,backgroundColor:"#FEF9F6",color:"#F16514",tagColor:"orange"},[s.APTOS_NFT_CANCEL_TRANSFER]:{name:(0,r.O4)("nfthome_tab_collected_btn_cancel_transfer"),icon:a.YC,backgroundColor:"#F2F2F2",color:"#3D3D3D",tagColor:"gray"},[s.LIST]:{name:(0,r.O4)("nftcoll_list_dropdown_activitytypelist"),icon:a.ZM,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.LIST_CANCELED]:{name:(0,r.O4)("defi_nftmarket_btn_listcancelled"),icon:a.ZM,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.OFFER_CANCELED]:{name:(0,r.O4)("nft_collection_activity_stat_filter_offer_canceled"),icon:a.se,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.COLLECTION_OFFER]:{name:(0,r.O4)("marketoverview_list_tag_collectionoffer"),icon:a.se,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.COLLECTION_OFFER_CANCELED]:{name:(0,r.O4)("nft_collection_activity_stat_filter_offer_canceled"),icon:a.se,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.MINT_OKC]:{name:(0,r.O4)("nftcoll_list_dropdown_activitytypemint"),icon:a.NE,backgroundColor:"#FEF9F6",color:"#F16514",tagColor:"orange"},[s.BIDDING_OFFER]:{name:(0,r.O4)("wallet_dashboard_tab_activity_bidding_offer"),icon:a.se,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.RETURN_BIDDING_OFFER]:{name:(0,r.O4)("wallet_dashboard_tab_activity_return_bidding_offer"),icon:a.se,backgroundColor:"#F5F9FF",color:"#0569FF",tagColor:"blue"},[s.AUCTION]:{name:(0,r.O4)("wallet_dashboard_tab_activity_auction"),icon:a.fT,backgroundColor:"#F2FFF7",color:"#31BD65",tagColor:"green"},[s.FLASH_BUY]:{name:(0,r.O4)("wallet_dashboard_tab_activity_flash_buy"),icon:a.fT,backgroundColor:"#F2FFF7",color:"#31BD65",tagColor:"green"},[s.PURCHASE]:{name:(0,r.O4)("nfthome_activity_list_title_purchase"),icon:a.fT,backgroundColor:"#F2FFF7",color:"#31BD65",tagColor:"green"},[s.TITLE_SALE]:{name:(0,r.O4)("nfthome_activity_list_title_sale"),icon:a.fT,backgroundColor:"#FFF8F9",color:"#EB4B6D",tagColor:"red"},[s.TRANSFER_FROM]:{name:(0,r.O4)("nfthome_activity_list_title_transfer_from"),icon:a.YC,backgroundColor:"#F2F2F2",color:"#3D3D3D",tagColor:"gray"},[s.TRANSFER_TO]:{name:(0,r.O4)("nfthome_activity_list_title_transfer_to"),icon:a.YC,backgroundColor:"#F2F2F2",color:"#3D3D3D",tagColor:"gray"},[s.BURN]:{name:(0,r.O4)("nft_offers_tab_history_text_burn"),icon:a.nC,backgroundColor:"#FEF9F6",color:"#F16514",tagColor:"orange"}});s.SALE,s.LIST,s.LIST_CANCELED},926:(e,t,n)=>{n.d(t,{F3:()=>_,Fg:()=>o,G$:()=>l,Gt:()=>I,NE:()=>g,Wg:()=>b,Ww:()=>v,Y1:()=>x,YC:()=>p,ZM:()=>u,ay:()=>y,c$:()=>d,e9:()=>Z,eo:()=>C,fT:()=>h,h0:()=>s,hb:()=>E,nC:()=>m,ns:()=>N,ox:()=>A,qH:()=>c,se:()=>f,sx:()=>T,z3:()=>i});var r=n(84711),a=n(40910),s=r.Z.getCdnUrl("/cdn/assets/imgs/228/7C815E4842DB7037.png"),o=r.Z.getCdnUrl("/cdn/assets/imgs/2111/214F5BAFC73D3592.png"),i=r.Z.getNftStatusImg(a.s5.DEFAULT_HEAD),c=()=>r.Z.getCdnUrl("/cdn/assets/imgs/2211/F38E143230AEF350.png"),l=(r.Z.getCdnUrl("/cdn/assets/imgs/228/F69CB4FD577B397C.jpeg"),r.Z.getCdnUrl("/cdn/assets/imgs/221/B0D61D906096D37F.png")),d=(r.Z.getCdnUrl("/cdn/assets/imgs/2311/D21F3BE586E9C75F.png"),r.Z.getCdnUrl("/cdn/assets/imgs/226/5C43DC559DAED580.png"),r.Z.getCdnUrl("/cdn/assets/imgs/226/60F4A046DB360663.png"),r.Z.getCdnUrl("/cdn/assets/imgs/2211/DBB7091FEB7B731F.png")),u=r.Z.getCdnUrl("/cdn/assets/imgs/227/F635B92348BFC472.png"),f=r.Z.getCdnUrl("/cdn/assets/imgs/227/D85624DD35F8200A.png"),p=r.Z.getCdnUrl("/cdn/assets/imgs/227/317EEBB419621E80.png"),m=r.Z.getCdnUrl("/cdn/assets/imgs/229/6881ADC760AB0F4A.png"),h=r.Z.getCdnUrl("/cdn/assets/imgs/227/A999B8F24BBB8C9A.png"),g=r.Z.getCdnUrl("/cdn/assets/imgs/2210/FD1B1BC3D4ABEF54.png"),_=(r.Z.getCdnUrl("/cdn/assets/imgs/227/5278B64FB6667657.png"),r.Z.getCdnUrl("/cdn/assets/imgs/227/3013C32E5A7B8559.png"),r.Z.getCdnUrl("/cdn/assets/imgs/227/2DD1E3A00F10FAD3.png"),r.Z.getCdnUrl("/cdn/assets/imgs/228/922F3F8F507A016A.png"),r.Z.getCdnUrl("/cdn/assets/imgs/228/8323CC272A0C6A66.png"),r.Z.getCdnUrl("/cdn/assets/imgs/229/9E4415E1A288CA83.png")),v=r.Z.getCdnUrl("/cdn/assets/imgs/228/2661A7552CD5ED6D.png"),b=(r.Z.getCdnUrl("/cdn/assets/imgs/239/2D17F3F72D25AD0F.png"),a.QQ.WHITE,r.Z.getCdnUrl("/cdn/assets/imgs/2310/E1BA1DF67F7AC145.png"),r.Z.getCdnUrl("/cdn/assets/imgs/228/1FBA69FBACC21E16.png"),r.Z.getCdnUrl("/cdn/assets/imgs/228/E85BF07AAD54ECBF.png"),r.Z.getCdnUrl("/cdn/assets/imgs/228/F04902F87DEB0B0D.png"),a.QQ.BLACK,r.Z.getCdnUrl("/cdn/assets/imgs/2211/6F848AC7614F7504.png"),r.Z.getCdnUrl("/cdn/assets/imgs/2211/5D2EFAE437B397E8.png"),r.Z.getCdnUrl("/cdn/assets/imgs/2211/4DFBA362ADC1DB63.png"),r.Z.getCdnUrl("/cdn/assets/imgs/2211/6ABD9C4E5D52FC50.png"),r.Z.getCdnUrl("/cdn/assets/imgs/229/EBBE32D36DC1334D.png"),r.Z.getCdnUrl("/cdn/assets/imgs/229/448A3060688E4ABC.png"),r.Z.getCdnUrl("/cdn/assets/imgs/229/9F1AC44A3EF6A58D.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/731EF1C0773979F3.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/02D516822A4219A6.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/1BBA58E5C2CAA623.png"),a.$L.Buy,r.Z.getCdnUrl("/cdn/assets/imgs/232/7C30730FE942A0E3.png"),a.$L.Sell,r.Z.getCdnUrl("/cdn/assets/imgs/232/AE6AA8E841C304C8.png"),a.$L.Both,r.Z.getCdnUrl("/cdn/assets/imgs/232/0B7B5E18205B528A.png"),a.$L.Buy,r.Z.getCdnUrl("/cdn/assets/imgs/232/AE6AA8E841C304C8.png"),a.$L.Sell,r.Z.getCdnUrl("/cdn/assets/imgs/232/7C30730FE942A0E3.png"),a.$L.Both,r.Z.getCdnUrl("/cdn/assets/imgs/232/0A24600652D4A2EE.png"),r.Z.getCdnUrl("/cdn/assets/imgs/228/E4E565A280987256.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/2D5F4E48D1619049.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/BE5596E980A39246.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/84B2DA24027427AE.png"),r.Z.getCdnUrl("/cdn/assets/imgs/224/4EAA4C92B7EE5C2B.png"),r.Z.getCdnUrl("/cdn/assets/imgs/2211/536DC898D297D132.png"),r.Z.getCdnUrl("/cdn/assets/imgs/2211/59DCE04B43DCD4A3.png"),()=>r.Z.getCdnUrl("/cdn/assets/imgs/2212/7A76A98EF6B05122.png")),y=r.Z.getCdnUrl("/cdn/assets/imgs/2212/15D469AB469A4313.png"),A=r.Z.getCdnUrl("/cdn/assets/imgs/231/D6E6D80CBE8BA53D.png"),C=r.Z.getCdnUrl("/cdn/assets/imgs/232/8B3A39A494D9D1C2.png"),T=r.Z.getCdnUrl("/cdn/assets/imgs/232/9038547481823D58.png"),E=r.Z.getCdnUrl("/cdn/assets/imgs/232/31409CE3D9255344.png"),N=(r.Z.getCdnUrl("/cdn/assets/imgs/232/1BAED74276021785.png"),()=>r.Z.getCdnUrl("/cdn/assets/imgs/234/DC76E95A20675C73.png")),I=()=>r.Z.getCdnUrl("/cdn/assets/imgs/235/C978421BC62D82F0.png"),x=()=>r.Z.getCdnUrl("/cdn/assets/imgs/239/3FBFDA20150F70E1.png"),Z="data:image/webp;base64,UklGRqgDAABXRUJQVlA4IJwDAABQawCdASq8ArwCPjEYjESiIaEQBAAgAwS0t3C7sI2gBPYB77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtWAAA/v/vOx4B4IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},72208:(e,t,n)=>{n.d(t,{Qz:()=>r,mr:()=>a,qk:()=>s});var r={SOLANA:3,OKEX_SEAPORT:4,IMX:8,LOOKSRARE:11,SEAPORT:12,MAGICEDEN:13,X2Y2:15,ELEMENT:16,APTOS:20,BLUR:23,TENSOR:59,OKEX_BTC:34,STARKNET:66},a={BUYNOW:1,AUCTION:2,COLLECTION_OFFER:3},s={[r.OKEX_SEAPORT]:"OKX",[r.OKEX_BTC]:"OKX",[r.SEAPORT]:"Opensea",[r.SOLANA]:"OKX",[r.LOOKSRARE]:"Looksrare",[r.MAGICEDEN]:"Magic Eden",[r.X2Y2]:"X2Y2",[r.APTOS]:"OKX",[r.IMX]:"IMX",[r.ELEMENT]:"Element",[r.BLUR]:"Blur",[r.TENSOR]:"Tensor"}},57409:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(87363),a=n(11987),s=n(23364),o=n(7562),i=(n(23502),n(14300)),c=n(84711),l=n(65326),d=n(40910),u=n(68481),f=n(149),p=n(29439);const m=new class{constructor(){this.timer=null}formatTime(e,t){if(!e||!t)return[];var n=6e4,r=36e5,a=864e5,s=new Date(t)-new Date(e),o=Math.floor(s/a),c=Math.floor(s%a/r),l=Math.floor(s%r/n),d=Math.floor(s%n/1e3);return o>=30||s<1e3?"":(0,i.O4)("nft_market_offer_validity_data",{days:o,hours:c,minutes:l,seconds:d})}};var h=n(45263),g=c.Z.getCdnUrl("/cdn/assets/imgs/223/19BCE805C9289396.png");const _=e=>{var t=e.expirationTime,n=(0,r.useState)(m.formatTime(Date.now(),t)),a=(0,p.Z)(n,2),o=a[0],c=a[1];return(0,r.useEffect)((()=>{var e=setInterval((()=>{var n=m.formatTime(Date.now(),t);c(n),n&&0!==o.length||clearInterval(e)}),1e3);return()=>{clearInterval(e)}}),[t]),(0,h.jsxs)("div",{className:"countdown ".concat(o&&0!==o.length?"":"countdown-hidden"),children:[(0,h.jsx)(s.Z,{className:"countdown-icon",width:1,height:1,src:g,alt:"hot-icon"}),(0,h.jsx)("div",{className:"countdown-tip",children:(0,i.O4)("nft_subtitle_price_indate")}),(0,h.jsx)("div",{className:"countdown-number",children:o})]})};const v=(0,a.Pi)((e=>{var t=e.isCountdown,n=e.className,a=(0,l.oR)(),p=a.nftDetailStore,m=a.nftSellOrdersStore,g=p.nftDetail,v=p.isNft1155,b=m.orderInfo,y=g||{},A=y.auditStatus,C=y.bestOfferInfo,T=void 0===C?{}:C,E=y.isImx,N=y.name,I=y.projectName,x=(0,u.d)(g).isBtc,Z=b||{},S=Z.currencyUrl,O=Z.price,k=Z.currency,F=Z.usdPrice,D=Z.validTime,w=T||{},R=w.price,L=void 0===R?0:R,P=w.usdPrice,B=void 0===P?0:P,j=O>=0&&[d.z5.SUCCESS,d.z5.BOSS_SUPPORT].includes(A),U=(0,f.T4)(j?O:L,E||x?1e-8:void 0,E||x?8:void 0),M=(0,f.dS)(j?F:B,E?1e-10:.01,E?10:2),H=!(j&&O>=0)&&!L;return(0,r.useEffect)((()=>{if(!H){var e="".concat(U," ").concat(j?k:T.currency,"(").concat(M,")");c.Z.fixTdk(c.Z.getContentFromJavaWebLocale("seo_tdk_title_collection_label_token_best_price_var",{1:N,2:e}),c.Z.getContentFromJavaWebLocale("seo_tdk_desc_nft_market_detail",{1:I,2:N}))}}),[U,M,j]),H?null:(0,h.jsxs)("div",{className:"nft-price-info-container ".concat(n),children:[(0,h.jsxs)("div",{className:"nft-price-info-price",children:[(0,h.jsx)("p",{className:"nft-price-info-price-text",children:j?(0,i.O4)("nft_primary_launchdetail_price"):(0,i.O4)("nft_markets_top_placeorder_bestoffer")}),(0,h.jsxs)("div",{className:"nft-price-info-price-content",children:[(0,h.jsx)(s.Z,{src:j?S:T.currencyUrl,width:1,height:1,alt:"nft_markets",className:"nft-price-info-price-icon"}),(0,h.jsx)("span",{className:"nft-price-info-price-number",children:"".concat(U," ").concat(j?k:T.currency)}),v&&O>0&&(0,h.jsxs)("p",{className:"nft-price-info-amount-box",children:[(0,h.jsx)(o.Z,{className:"icon-zhang"}),(0,h.jsx)(o.Z,{className:"icon-Mul_close"}),(0,h.jsx)("span",{children:(0,f.ao)(b.count)})]}),(0,h.jsx)("span",{className:"nft-price-info-usd-price",children:"(".concat(M,")")})]})]}),j&&t&&(0,h.jsx)(_,{expirationTime:D})]})}))},9941:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(87363),a=n(40910);const s=e=>(0,r.useMemo)((()=>({isNoAudit:e===a.z5.NO_AUDIT,isAuditing:e===a.z5.AUDITING,isAuditSuccess:[a.z5.SUCCESS,a.z5.BOSS_SUPPORT].includes(e),isAuditeFaild:e===a.z5.FAILD})),[e])},85743:(e,t,n)=>{var r=n(87363),a=n(1123),s=n(17371),o=n(74165),i=n(1413),c=n(29439),l=n(15861),d=n(27821),u=n(23781),f=n(75219);const p=class{constructor(){this.nftOffers=[],this.ownerAddress="",this.page=1,this.pageSize=9,this.showNoData=!1,this.total=0,this.fixRes=(e,t)=>{if(t){var n=t.list,r=t.total;this.nftOffers=n,this.total=r,this.showNoData=!n||0===n.length}else 0===this.nftOffers.length&&this.reset()},this.setPage=e=>{this.page=e},this.setOwnerAddress=e=>{this.ownerAddress=e},this.setShowNoData=e=>{this.showNoData=e},this.reset=()=>{this.nftOffers=[],this.page=1,this.total=0,this.ownerAddress="",this.showNoData=!1},(0,d.makeObservable)(this,{nftOffers:d.observable,ownerAddress:d.observable,page:d.observable,pageSize:d.observable,showNoData:d.observable,total:d.observable,fixRes:d.action,setPage:d.action,setOwnerAddress:d.action,fetchOffer:d.action,reset:d.action})}fetchOffer(e){var t=this;return(0,l.Z)((0,o.Z)().mark((function n(){var r,a,s,l;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.showNoData=!1,n.next=3,(0,f.Z)(u.Z.getNftOffers((0,i.Z)((0,i.Z)({},e),{},{ownerAddress:t.ownerAddress,page:t.page,pageSize:t.pageSize})));case 3:r=n.sent,a=(0,c.Z)(r,2),s=a[0],l=a[1],t.fixRes(s,l);case 8:case"end":return n.stop()}}),n)})))()}};var m,h,g,_,v,b,y=n(53229),A=n(60378),C=n(55922),T=n(1708),E=n(40910),N=n(64037),I=n(149),x=n(14001),Z=n(95970),S=(m=(0,n(2126).pZ)(),(0,C.CH)((_=class e{constructor(){var e=this;this.nftData=null,this.showNoData=!1,this.showLoader=!0,this.tokenId="",this.contractAddress="",this.nftDetail={},this.tradeFeeInfo={},this.orderPage=1,this.offerPage=1,this.pageSize=9,this.offersTotal=0,this.nftId="",this.nftOrders=[],this.isNft1155=!1,this.initializeContractAddr="",this.currentSellStep=0,this.orderInfo={},this.isLoadOrders=!1,this.isPunk=!1,this.isImx=!1,this.isSolana=!1,this.offers=[],this.showTips=!1,this.offerShowLoader=!1,this.offerShowNoData=!1,this.nftTokenType=E.jR.ERC721,this.isRisk=!1,this.isHydrateFinish=!1,this.lastLooker="",this.isCsr=!1,this.loadNftDetail=(0,l.Z)((0,o.Z)().mark((function t(){var n,r,a,s,i,c;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,I.en)((0,x.ye)()),r=n.contractAddress,a=n.tokenId,!(s=n.chain)&&0!==Number(s)){t.next=4;break}return t.next=4,T.Z.setChainType({chainId:Number(s)});case 4:return t.next=6,T.Z.getWalletAccount();case 6:return i=t.sent,e.lastLooker=i,t.next=10,u.Z.getNFTDetail({contractAddress:r,tokenId:a,chain:s,looker:i});case 10:c=t.sent,e.fixNftDetailData((null===c||void 0===c?void 0:c.data)||{});case 12:case"end":return t.stop()}}),t)}))),this.loadNftDetailByLooker=(0,l.Z)((0,o.Z)().mark((function t(){var n,r,a,s,i,c;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,I.en)((0,x.ye)()),r=n.contractAddress,a=n.tokenId,!(s=n.chain)&&0!==Number(s)){t.next=4;break}return t.next=4,T.Z.setChainType({chainId:Number(s)});case 4:return t.next=6,T.Z.getWalletAccount();case 6:if((i=t.sent)!==e.lastLooker){t.next=9;break}return t.abrupt("return");case 9:return e.lastLooker=i,t.next=12,u.Z.getNFTDetail({contractAddress:r,tokenId:a,chain:s,looker:i});case 12:c=t.sent,e.fixNftDetailData((null===c||void 0===c?void 0:c.data)||{});case 14:case"end":return t.stop()}}),t)}))),this.fixNftDetailData=e=>{var t,n,r=e||{},a=r.id,s=r.tokenStandard,o=r.contractAddress,c=r.tokenId,l=r.chain;return this.isPunk=s===E.jR.PUNK,this.isNft1155=s===E.jR.ERC1155,this.isImx=l===N.Bv.IMX,this.isSolana=l===N.Bv.SOLANA,this.isMultiSell=!this.isImx&&!this.isPunk,this.tokenId=c,this.contractAddress=o,this.nftId=a,this.nftTokenType=s,this.isImx&&(this.nftTokenType=E.jR.IMX),this.nftDetail=(0,i.Z)((0,i.Z)({},r),{},{isNft1155:this.isNft1155,isPunk:this.isPunk,isImx:this.isImx,isSolana:this.isSolana,nftTokenType:this.nftTokenType,isMultiSell:this.isMultiSell,isPending:(null===r||void 0===r?void 0:r.nftStatusInfo)&&"1"===(null===r||void 0===r||null===(t=r.nftStatusInfo)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.nftStatus),isValidBRC20NFT:r.btcNftType===E.W0.VALID_BRC20_NFT,isInvalidBRC20NFT:r.btcNftType===E.W0.INVALID_BRC20_NFT,isValidBRC20SNFT:r.btcNftType===E.W0.VALID_BRC20S_NFT,isInvalidBRC20SNFT:r.btcNftType===E.W0.INVALID_BRC20S_NFT}),this.nftDetail},this.updateNftDetail=function(){var t=(0,l.Z)((0,o.Z)().mark((function t(n){var r;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z.Z.compareNftDetail(n,e.nftDetail);case 2:r=t.sent,e.nftDetail=(0,i.Z)((0,i.Z)({},e.nftDetail),r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.loadTradeFees=(0,l.Z)((0,o.Z)().mark((function t(){var n,r,a;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.Z.getTradeFee();case 2:n=t.sent,r=n.code,a=n.data,0===r&&e.setAttr("tradeFeeInfo",a);case 5:case"end":return t.stop()}}),t)}))),this.refreshMetaData=function(){var t=(0,l.Z)((0,o.Z)().mark((function t(n){return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.showTips){t.next=5;break}return t.next=3,u.Z.refreshMetaData(n);case 3:e.setAttr("showTips",!0),setTimeout((()=>{e.setAttr("showTips",!1)}),3e3);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.loadOrders=(0,l.Z)((0,o.Z)().mark((function t(){var n,r,a,s,i;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={nftId:e.nftId,page:e.orderPage,pageSize:e.pageSize},t.next=3,u.Z.getNftOrders(n);case 3:r=t.sent,a=r.code,s=r.data,0===a&&(i=s.list,e.setNftOrders(i),e.setAttr("isLoadOrders",!0),1===e.orderPage&&(i&&i.length>0?e.setOrderInfo(i[0]):e.setOrderInfo({})));case 6:case"end":return t.stop()}}),t)}))),this.resetAllData=()=>{this.nftDetail={},this.tradeFeeInfo={},this.nftOrders=[],this.isNft1155=!1,this.orderInfo={},this.isPunk=!1,this.offers=[],this.nftId=""},this.setShowNoData=e=>{this.showNoData=e},this.setShowLoader=e=>{this.showLoader=e},this.setIsRisk=e=>{this.isRisk=e},this.setIsHydrateFinish=e=>{this.isHydrateFinish=e},(0,d.makeObservable)(this,{nftData:d.observable,showNoData:d.observable,showLoader:d.observable,tokenId:d.observable,contractAddress:d.observable,nftDetail:d.observable,tradeFeeInfo:d.observable,orderPage:d.observable,offerPage:d.observable,pageSize:d.observable,offersTotal:d.observable,nftId:d.observable,nftOrders:d.observable,isNft1155:d.observable,initializeContractAddr:d.observable,currentSellStep:d.observable,orderInfo:d.observable,isLoadOrders:d.observable,isPunk:d.observable,isImx:d.observable,isSolana:d.observable,offers:d.observable,showTips:d.observable,offerShowLoader:d.observable,offerShowNoData:d.observable,nftTokenType:d.observable,isRisk:d.observable,isHydrateFinish:d.observable,orderSource:d.computed,computedTokenType:d.computed,updateNftDetail:d.action,loadNftDetail:d.action,fixNftDetailData:d.action,loadTradeFees:d.action,showBuy1155:d.computed,resetAllData:d.action,setShowNoData:d.action,setShowLoader:d.action,setNftDetail:d.action,setNftOrders:d.action,setOrderInfo:d.action,setInitializeContractAddr:d.action,setCurrentSellSteps:d.action,setOfferPage:d.action,setOfferShowLoader:d.action,setOfferShowNoData:d.action,setAttr:d.action,setIsRisk:d.action,setIsHydrateFinish:d.action})}get orderSource(){return{type:this.orderInfo.source}}get computedTokenType(){var e=this.nftDetail.tokenStandard;return this.isImx?E.jR.IMX:e}get showBuy1155(){return this.nftOrders.length>0}setNftDetail(e){this.nftDetail=e}setNftOrders(e){this.nftOrders=e}setOrderInfo(e){this.orderInfo=e}setInitializeContractAddr(e){this.initializeContractAddr=e}setCurrentSellSteps(e){this.currentSellStep=e}setOfferPage(e){this.offerPage=e}setOfferShowLoader(e){this.offerShowLoader=e}setOfferShowNoData(e){this.offerShowNoData=e}setAttr(e,t){this[e]=t}initSSRProps(){var t=this.initialPropsStore.initialProps[e.initialPropsName];this.fixNftDetailData(t||{})}static getInitialProps(e){return(0,l.Z)((0,o.Z)().mark((function t(){var n,r,a,s,l,d,p,m;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=null===(n=e.preProcessResult)||void 0===n?void 0:n.nftInfo)){t.next=3;break}return t.abrupt("return",r);case 3:return a=e&&(0,A.y)()?e.route.path:(0,x.ye)(),s=(0,I.en)(a),t.next=7,(0,f.Z)(u.Z.getNFTDetail((0,i.Z)({},s)));case 7:return l=t.sent,d=(0,c.Z)(l,2),p=d[0],m=d[1],e&&(0,A.y)()&&!p&&!m&&e.show404("NotExistPage"),t.abrupt("return",m);case 13:case"end":return t.stop()}}),t)})))()}},_.initialPropsName="nftInfo",g=_,(0,y.Z)(g.prototype,"initSSRProps",[m],Object.getOwnPropertyDescriptor(g.prototype,"initSSRProps"),g.prototype),h=g))||h);const O=(0,C.CH)((b=class e{constructor(){this.sellOrders=[],this.orderInfo={},this.oldOrderInfo=null,this.showLoader=!1,this.page=1,this.pageSize=9,this.total=0,this.showNoData=!1,this.showPagination=!1,this.ownerAddress="",this.openBuyDialog=!1,(0,d.makeObservable)(this,{sellOrders:d.observable,orderInfo:d.observable,showLoader:d.observable,page:d.observable,pageSize:d.observable,total:d.observable,showNoData:d.observable,showPagination:d.observable,ownerAddress:d.observable,oldOrderInfo:d.observable,openBuyDialog:d.observable,fixData:d.action,showBuy1155:d.computed,setOrderInfo:d.action,setShowLoader:d.action,updateOrderInfo:d.action,setPage:d.action,setOwnerAddress:d.action,resetData:d.action,fetchSellOrders:d.action})}fetchSellOrders(e){var t=this;return(0,l.Z)((0,o.Z)().mark((function n(){var r,a,s,i,c,l;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.nftId,t.showNoData=!1,n.next=4,u.Z.getNftOrders({nftId:r,ownerAddress:t.ownerAddress,page:t.page,pageSize:t.pageSize});case 4:a=n.sent,i=(s=a||{}).code,c=s.data,l=void 0===c?{}:c,0===i?t.fixData(l):t.setShowLoader(!1);case 7:case"end":return n.stop()}}),n)})))()}updateSellOrders(e){var t=this;return(0,l.Z)((0,o.Z)().mark((function n(){var r,a,s,c,l,d,f;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.nftId,n.next=3,u.Z.getNftOrders({nftId:r,ownerAddress:t.ownerAddress,page:1,pageSize:t.pageSize});case 3:if(a=n.sent,c=(s=a||{}).code,l=s.data,d=void 0===l?{}:l,0!==c){n.next=10;break}return f=(d||{}).list,t.setOrderInfo(f&&f[0]||{}),t.setOldOrderInfo((0,i.Z)({},t.orderInfo)),n.abrupt("return",f&&f[0]||{});case 10:return n.abrupt("return",{});case 11:case"end":return n.stop()}}),n)})))()}fixData(e){var t=e||{},n=t.list,r=t.total;this.sellOrders=n,this.showLoader=!1,this.showPagination=r>this.pageSize,this.total=r,this.showNoData=!n||0===n.length,1!==this.page||this.ownerAddress||(this.orderInfo=n&&n[0]||{},this.setOldOrderInfo((0,i.Z)({},this.orderInfo)))}setOldOrderInfo(e){this.oldOrderInfo=e}updateOrderInfo(e){var t=Z.Z.compareNftOrder(e,this.orderInfo);this.orderInfo=(0,i.Z)({},t)}setOpenBuyDialog(e){this.openBuyDialog=e}get showBuy1155(){return this.sellOrders.length>0}setOrderInfo(e){this.orderInfo=e}setShowLoader(e){this.showLoader=e}setPage(e){this.page=e}setOwnerAddress(e){this.ownerAddress=e}resetOwnerAddressAndTotal(){this.ownerAddress=""}resetData(){this.sellOrders=[],this.resetOwnerAddressAndTotal()}initSSRProps(){this.fixData(this.initialPropsStore.initialProps[e.initialPropsName]||{})}static getInitialProps(){return Promise.resolve({})}},b.initialPropsName="sellOrders",v=b))||v;var k=n(51980),F=n(11987),D=n(18339),w=n(38558),R=n(65326),L=n(95640),P=n.n(L),B=n(14300),j=n(48006),U=n(40544),M=n(7562),H=(n(25801),n(75347)),G=n(67303),K=n(93380);const W={"rarity-rank":"index_rarity-rank__Na+w4",rarityRank:"index_rarity-rank__Na+w4","rarity-rank-other":"index_rarity-rank-other__GynZ2",rarityRankOther:"index_rarity-rank-other__GynZ2","rarity-rank-text":"index_rarity-rank-text__3RpO7",rarityRankText:"index_rarity-rank-text__3RpO7","rarity-rank-icon":"index_rarity-rank-icon__+8g4g",rarityRankIcon:"index_rarity-rank-icon__+8g4g","ranking-icon":"index_ranking-icon__PPtFJ",rankingIcon:"index_ranking-icon__PPtFJ",verified:"index_verified__ckI9n","rarity-rank-card-main":"index_rarity-rank-card-main__1kSX6",rarityRankCardMain:"index_rarity-rank-card-main__1kSX6"};var Y=n(45263),V=e=>{var t=e.data,n=e.nftInfo,a=void 0===n?{}:n,s=e.className,o=e.mode,i=e.cancelClick,c=e.showIcon,l=e.details,d=e.isRarityMove,u=e.rarityRankClass,f=(e=>{var t=e.nftInfo,n=e.cancelClick,a=e.nftDetails,s=e.data,o=t.openRarity,i=void 0===o?[]:o,c=i.length>0?i[0]:s||{},l=c.rank,d=c.url,u=c.platform,f=c.platformFlag,p=c.icon,m=c.percentage;return{isShowRarityRank:(0,r.useMemo)((()=>a?Object.keys(s).length:!!i&&i.length>0),[i]),rank:l,url:d,platform:u,platformFlag:f,icon:p,percentage:m,jump:()=>{n||d&&(0,x.bA)(d)}}})({nftInfo:a,cancelClick:i,nftDetails:e.nftDetails,data:t}),p=f.isShowRarityRank,m=f.rank,h=f.platform,g=f.platformFlag,_=f.icon,v=f.percentage,b=f.jump;return p&&(0,Y.jsx)("div",{className:P()(W.rarityRankCardMain,W.weight,{[W.rarityRankCardHover]:d,[W.rarityRankCardSmallHover]:d&&o},u),children:(0,Y.jsx)(U.Z,{maxWidth:300,gutter:"4",popupStyle:{padding:"8px",borderRadius:"4px"},alwaysUpdatePopper:!0,title:(0,Y.jsxs)(Y.Fragment,{children:[1==g?(0,Y.jsx)("p",{className:P()(W.textCenter),children:v?(0,B.O4)("nftdashboard_item_rarity_hover_top_rarity_rank",{percentage:v}):(0,B.O4)("nftdashboard_item_rarity_hover_btm_rarity_rank")}):"",(0,Y.jsx)("p",{className:P()(W.textCenter),children:h})]}),className:P()(s),children:(0,Y.jsxs)("div",{className:P()(W.rarityRank,{[W.rarityRankOther]:l}),onClick:b,children:[c&&(0,Y.jsx)("img",{className:P()(W.rarityRankIcon),alt:h,src:_}),(0,Y.jsxs)("span",{className:P()(W.rarityRankText),children:[(0,Y.jsx)(M.Z,{className:P()(W.rankingIcon,"okx-defi-nft-ranking")}),K.yx.thousandFormat(m)]})]})})})};V.defaultProps={className:"",cancelClick:!1,details:!1,nftInfo:{},nftDetails:!1};const z=V;var X=n(82148),Q=n(4392),J=n(45271),$=n(87558),q=n(84711),ee=(0,w.P)({loader:()=>n.e(7701).then(n.bind(n,37701))}),te=(0,w.P)({loader:()=>n.e(9008).then(n.bind(n,29008))}),ne=e=>{var t=e.nftDetail,n=t.name,a=t.projectName,s=t.collectionName,i=t.contractAddress,d=t.tokenId,u=t.tack,f=t.info,p=t.id,m=t.chain,h=t.isImx,g=t.openRarity,_=void 0===g?[]:g,v=t.btcRecursive,b=q.Z.getCdnUrl("/cdn/assets/imgs/2110/8DA96D1C6248FCED.png"),y=(0,Q.k)(),A=(0,R.oR)().nftDetailStore,C=(0,r.useRef)(),E=(0,r.useRef)(null),I=(0,r.useState)(!1),x=(0,c.Z)(I,2),Z=x[0],S=x[1],O=(0,r.useState)(!1),k=(0,c.Z)(O,2),F=k[0],D=k[1],w=(0,r.useMemo)((()=>$.Z.getCollectionURL({chain:m,collectionName:s})),[t]),L=function(){var e=(0,l.Z)((0,o.Z)().mark((function e(){var n,r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.Z.getWalletAccount();case 2:n=e.sent,r={contractAddress:t.contractAddress,tokenId:d,looker:n,chain:h?N.Bv.IMX:m},A.refreshMetaData(r);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((()=>{var e=C.current;return E.current=new IntersectionObserver((e=>{e.forEach((e=>{e.target.scrollHeight>66?(S(!0),E.current.disconnect()):S(!1)}))})),E.current.observe(e),()=>{E.current.disconnect()}}));var K=function(){var e=(0,l.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.WH)((()=>{y.push(w)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=(0,l.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.Z.getWalletAccount();case 2:t=e.sent,(0,G.HFb)({collectionname:s,address:t,contractaddress:i,tokenID:d});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Y.jsxs)("div",{className:"baseInfo",children:[(0,Y.jsx)(ee,{nftInfo:t}),(0,Y.jsxs)("div",{className:"baseInfo-top",children:[(0,Y.jsx)("div",{className:"baseInfo-top-wrap",children:(0,Y.jsx)("a",{href:w,children:(0,Y.jsxs)("div",{className:"baseInfo-category",children:[(0,Y.jsx)("span",{onClick:K,children:a}),u&&a?(0,Y.jsx)("img",{src:b,className:"baseInfo-certified",alt:"certified"}):""]})})}),v&&(0,Y.jsx)(U.Z,{title:(0,B.O4)("btcnft_info_tooltips_recursive_desc"),children:(0,Y.jsxs)("div",{className:"baseInfo-top-recursive",children:[(0,Y.jsx)(M.Z,{className:P()("okx-defi-marketplace-recursive","baseInfo-top-recursive-icon")}),(0,Y.jsx)("div",{className:"baseInfo-top-recursive-title",children:(0,B.O4)("btcnft_info_tag_recursive")})]})}),(0,Y.jsxs)("div",{className:"baseInfo-top-right",children:[p&&(0,Y.jsx)(te,{nftInfo:t,show:!0,black:!0}),m!==N.Bv.BTC&&(0,Y.jsx)("div",{className:"baseInfo-refresh",onClick:(0,l.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.WH)((()=>{W().catch((e=>{(0,J.H)(X.I.initwalleFailed,e)})),L().catch((e=>{(0,J.H)(X.I.apiError,e)}))}));case 2:case"end":return e.stop()}}),e)}))),children:(0,Y.jsx)(U.Z,{title:(0,B.O4)("nftmarket_mid_hover_refresh_reveal"),gutter:"5",popupStyle:{padding:"8px",borderRadius:"4px"},children:(0,Y.jsx)(M.Z,{className:"icon-refresh baseInfo-refresh-btn"})})})]})]}),(0,Y.jsx)("h1",{className:"baseInfo-name truncate-2",children:(0,j.Z)(n)}),(0,Y.jsx)("div",{className:"flex",children:_.length>0&&_.map((e=>(0,Y.jsx)(z,{data:e,showIcon:!0,details:!0,className:"baseInfo-rarity-rank",nftDetails:!0})))}),(0,Y.jsxs)("div",{className:"baseInfo-desc ".concat(F?"baseInfo-unfold":""),ref:C,children:[(0,Y.jsx)("p",{className:"baseInfo-desc-content",children:(0,j.Z)(f)}),Z&&!F&&(0,Y.jsx)("div",{className:"baseInfo-desc-more",onClick:()=>{D(!0)},children:(0,B.O4)("nft_markets_detail_baseinfo_more")})]})]})};ne.defaultProps={nftDetail:{}};const re=ne;var ae=n(10680);const se=e=>{var t,n,a=e.nftDetail,s=q.Z.getCdnUrl("/cdn/assets/imgs/221/B0D61D906096D37F.png"),i=a.chain,c=a.contractAddress,d=a.showContractAddress,u=a.tokenId,f=a.tokenStandard,p=a.scarcity,m=a.total,h=a.taxFeeRate,g=a.btcOutputUtxoValue,_=a.btcOutputLocation,v=a.btcOutputSatOffset,b=a.btcOrdinalsUrl,y=a.tokenStandardDesc,A=(0,D.Z)().isSm,C=f===E.jR.ERC1155,T=i===N.Bv.SOLANA,x=i===N.Bv.BTC,Z=(0,r.useMemo)((()=>T&&d?d:c)),S=(0,r.useMemo)((()=>f===E.jR.APTOS_V2||!N.P6.includes(Number(i))),[i,f]);return(0,Y.jsxs)("div",{className:"blockchain",children:[(0,Y.jsx)("div",{className:"blockchain-title",children:(0,B.O4)("nft_markets_subtitle_details")}),(0,Y.jsxs)("div",{className:"blockchain-info",children:[A?(0,Y.jsxs)(Y.Fragment,{children:[S&&(0,Y.jsxs)("div",{className:"blockchain-info-item blockchain-info-address",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nftmarket_collection_details_text_contract_address")}),(0,Y.jsxs)("div",{className:"blockchain-info-item-value copy-address-wrap",children:[(0,Y.jsx)("div",{className:"copy-address-wrap-value",children:(0,j.Z)(Z)}),Z&&(0,Y.jsx)("img",{src:s,className:"copy-address-wrap-icon",onClick:(0,l.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.WH)((()=>{q.Z.handleCopyAddress(Z,"copy-address-input")}));case 2:case"end":return e.stop()}}),e)}))),alt:"copy"})]})]}),(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nft_markets_details_blockchain")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:null===(n=N.c6[i])||void 0===n?void 0:n.name})]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nft_markets_details_blockchain")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:null===(t=N.c6[i])||void 0===t?void 0:t.name})]}),S&&(0,Y.jsxs)("div",{className:"blockchain-info-item blockchain-info-address",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nftmarket_collection_details_text_contract_address")}),(0,Y.jsxs)("div",{className:"copy-address-wrap",children:[(0,Y.jsx)("a",{className:"blockchain-info-item-value copy-address-wrap-value",href:(0,ae.jg)({chain:i,contractAddress:Z}),target:"_blank",rel:"noreferrer",children:(0,j.Z)(Z)}),Z&&(0,Y.jsx)("img",{src:s,className:"copy-address-wrap-icon",onClick:(0,l.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.WH)((()=>{q.Z.handleCopyAddress(Z,"copy-address-input")}));case 2:case"end":return e.stop()}}),e)}))),alt:"copy"})]})]})]}),T?(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nftmarket_collection_price_history_mint_address")}),(0,Y.jsxs)("div",{className:"copy-address-wrap",children:[(0,Y.jsx)("a",{className:"blockchain-info-item-value copy-address-wrap-value",href:(()=>{var e,t=null===(e=(0,N.fr)()[i])||void 0===e?void 0:e.browser;return"".concat(t,"/token/").concat(u)})(),target:"_blank",rel:"noreferrer nofollow",children:(0,j.Z)(u)}),u&&(0,Y.jsx)("img",{src:s,className:"copy-address-wrap-icon",onClick:(0,l.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.WH)((()=>{q.Z.handleCopyAddress(u,"copy-address-input")}));case 2:case"end":return e.stop()}}),e)}))),alt:"copy"})]})]}):!N.Ey.includes(Number(i))&&(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nft_markets_details_tokenid")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:(0,j.Z)(u)})]}),x&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"blockchain-info-item blockchain-info-address",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("btcnft_details_label_id")}),(0,Y.jsxs)("div",{className:"blockchain-info-item-value copy-address-wrap",children:[(0,Y.jsx)("a",{className:"copy-address-wrap-value btc-value ",href:b,target:"_blank",rel:"noreferrer nofollow",children:(0,j.Z)(u)}),u&&(0,Y.jsx)("img",{src:s,className:"copy-address-wrap-icon",onClick:(0,l.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.WH)((()=>{q.Z.handleCopyAddress(u,"copy-address-input")}));case 2:case"end":return e.stop()}}),e)}))),alt:"copy"})]})]}),(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("btcnft_details_label_utxo_value")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:(0,j.Z)(g)})]}),(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("btcnft_details_label_location")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:(0,Y.jsx)(U.Z,{placement:U.Z.DIRECTION.top,title:_,maxWidth:"600px",children:q.Z.formatAddr(_,{lastDigits:4})})})]}),(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("btcnft_details_label_sat_offset")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:(0,j.Z)(v)})]})]}),(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nft_markets_details_token_standard")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:(0,j.Z)(y)})]}),C?(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nftmarket_mid_subtile_detailamount")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:K.yx.thousandFormat(m)})]}):null,p&&(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nftmarket_details_title_rarity")}),(0,Y.jsx)("div",{className:"blockchain-info-item-value",children:p})]}),parseFloat(h)>0&&(0,Y.jsxs)("div",{className:"blockchain-info-item",children:[(0,Y.jsx)("div",{className:"blockchain-info-item-name",children:(0,B.O4)("nftmarket_details_title_royalties")}),(0,Y.jsxs)("div",{className:"blockchain-info-item-value",children:[(0,I.T3)(h||0,!1,1,0),(0,Y.jsx)(U.Z,{placement:U.Z.DIRECTION.bottom,title:(0,B.O4)("nft_royalities_help_tips"),popupStyle:{padding:"12px",background:"white",fontSize:"12px",lineHeight:"17px",color:"#3F475A",filter:"drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.16)) drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.02))",borderRadius:"4px"},arrowStyle:{backgroundColor:"white",borderColor:"white"},children:(0,Y.jsx)(M.Z,{className:"icon-bianzu royalitis-help-icon"})})]})]})]})]})};var oe=n(79130),ie=(n(82890),n(5465)),ce=n(32131),le=n(83662),de=(0,w.P)({loader:()=>n.e(8976).then(n.bind(n,8976))}),ue=(0,w.P)({loader:()=>Promise.all([n.e(6262),n.e(2658),n.e(4935),n.e(8093),n.e(7483)]).then(n.bind(n,28111))}),fe=e=>{var t=e.nftId,n=e.nftDetail,a=[{label:(0,B.O4)("nft_detailspage_price_history_date_label_7d"),value:1},{label:(0,B.O4)("nft_detailspage_price_history_date_label_14d"),value:2},{label:(0,B.O4)("nft_detailspage_price_history_date_label_30d"),value:3},{label:(0,B.O4)("nft_detailspage_price_history_date_label_60d"),value:4},{label:(0,B.O4)("nft_detailspage_price_history_date_label_90d"),value:5},{label:(0,B.O4)("nft_detailspage_price_history_date_label_1y"),value:6},{label:(0,B.O4)("nft_detailspage_price_history_date_label_all_time"),value:0}],s=n.tokenId,o=(0,r.useState)(a[6]),i=(0,c.Z)(o,2),l=i[0],d=i[1],f=(0,r.useState)({}),p=(0,c.Z)(f,2),m=p[0],h=p[1],g=(0,r.useState)(!1),_=(0,c.Z)(g,2),v=_[0],b=_[1],y=(0,r.useMemo)((()=>{var e;return!(0!==(null===m||void 0===m||null===(e=m.list)||void 0===e?void 0:e.length))}),[m]),A=function(e){t&&((!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&b(!0),u.Z.getPriceHistory({nftId:t,type:e}).then((e=>{var t=e.data||{};h(t),b(!1)})).catch((e=>{(0,J.H)(X.I.apiError,e)})))};return(0,r.useEffect)((()=>{h({}),A(l.value)}),[t]),(0,r.useEffect)((()=>{var e=Z.Z.subscribe({scene:[ce.E_.SALE],callback:()=>{h({}),A(l.value,!1)},tokenId:s});return()=>{e()}}),[s]),(0,Y.jsxs)("div",{className:"history",children:[(0,Y.jsx)("div",{className:"history-title",children:(0,B.O4)("nft_markets_mid_subtitle_pricehistory")}),(0,Y.jsxs)("div",{className:"history-top",children:[(0,Y.jsx)("div",{className:"history-top-select",children:(0,Y.jsx)(ue,{value:l.value,options:a,onChange:e=>{var t=e.value;d(e),A(t)}})}),(0,Y.jsxs)("div",{className:"history-top-average",children:[(0,Y.jsxs)("span",{className:"history-top-average-label",children:[(0,B.O4)("nft_markets_chart_detail_avgprice"),":",m.currencyUrl?(0,Y.jsx)("img",{src:m.currencyUrl,className:"history-top-average-img",alt:"currency"}):null]}),(0,Y.jsx)("span",{className:"history-top-average-number",children:(0,I.T4)(m.totalAvgPrice||0)})]})]}),(0,Y.jsxs)("div",{className:"history-chart",children:[!v&&!y&&(0,Y.jsx)(de,{data:m.list||[],currencyUrl:m.currencyUrl||""}),v&&(0,Y.jsx)(le.Z,{className:"loading-icon"}),!v&&y&&(0,Y.jsx)(ie.Z,{className:"price-no-data",emptyType:oe.Z.State.TYPE.noRecord,noDataTips:(0,B.O4)("nft_nftmarket_detail_price_nodata")})]})]})};fe.defaultProps={nftId:""};const pe=fe;var me=n(30820);const he="index_recursive-card__WGAoA",ge="index_recursive-tag__ZC8xO",_e="index_recursive-number__69NWJ",ve="index_recursive-img__nMrJ5",be="index_card-img__SHQ+s";var ye=e=>{var t=e.cardDetail,n=e.chain,r=e.contractAddress,a=t.inscriptionId,s=t.inscriptionUrl;return(0,Y.jsxs)("div",{className:he,onClick:()=>{(()=>{var e=$.Z.getNFTDetailURL({chain:n,contractAddress:r,tokenId:a});(0,x.Kk)(e)})()},children:[(0,Y.jsx)("div",{className:ge,children:(0,B.O4)("btcnft_subtitle_header_inscription")}),(0,Y.jsx)("div",{className:_e,children:a}),(0,Y.jsx)("div",{className:ve,children:(0,Y.jsx)(me.Z,{src:s,pictureClassName:be,alt:s})})]})};ye.defaultProps={cardDetail:{}};const Ae=ye,Ce="index_recursive-container__HQDB-",Te="index_recursive-title__X5m7R",Ee="index_recursive-list__2DGWI",Ne="index_recursive-btn__t+aJB",Ie="index_showMore__iPV6U",xe="index_expand-icon__wxC0N",Ze="index_expand-icon-less__kiy36";var Se=e=>{var t=e.nftDetail,n=t.btcRecursiveComponents,a=t.chain,s=t.contractAddress,o=(0,r.useMemo)((()=>(null===n||void 0===n?void 0:n.slice(0,8))||[]),[n]),i=(0,r.useState)(o),l=(0,c.Z)(i,2),d=l[0],u=l[1],f=(0,r.useState)(!0),p=(0,c.Z)(f,2),m=p[0],h=p[1];return(0,r.useEffect)((()=>{u(o)}),[t]),(0,Y.jsxs)("div",{className:Ce,children:[(0,Y.jsx)("div",{className:Te,children:(0,B.O4)("btcnft_subtitle_header_recursive_submodules")}),(0,Y.jsx)("div",{className:Ee,children:null===d||void 0===d?void 0:d.map(((e,t)=>(0,Y.jsx)(Ae,{cardDetail:e,chain:a,contractAddress:s},t)))}),(null===n||void 0===n?void 0:n.length)>8&&(0,Y.jsx)("div",{className:Ne,onClick:()=>{m?(u(n),h(!m)):(u(o),h(!m))},children:m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{className:Ie,children:(0,B.O4)("btcnft_info_btn_show_more")}),(0,Y.jsx)(M.Z,{className:P()("okx-defi-nft-filter-chevrons",xe)})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{className:Ie,children:(0,B.O4)("btcnft_info_btn_show_less")}),(0,Y.jsx)(M.Z,{className:P()("okx-defi-nft-filter-chevrons",Ze)})]})})]})};Se.defaultProps={nftDetail:{}};const Oe=Se;var ke=n(57409);const Fe="index_operator__EElof";var De=(0,w.P)({loader:()=>Promise.all([n.e(9837),n.e(7453)]).then(n.bind(n,99837))}),we=(0,w.P)({loader:()=>n.e(1754).then(n.bind(n,41754))}),Re=(0,w.P)({loader:()=>n.e(6268).then(n.bind(n,56268))}),Le=(0,w.P)({loader:()=>n.e(6359).then(n.bind(n,86359))});const Pe=(0,F.Pi)((e=>{var t=e.nftDetail,n=e.tradeFeeInfo,r=e.onRefresh,a=t.nftTokenType,s=t.chain,o=(0,R.oR)().nftSellOrdersStore,i=(void 0===o?{}:o).orderInfo,c=void 0===i?{}:i;return(0,Y.jsxs)("div",{className:"markets-detail-trade",children:[(0,Y.jsx)(Re,{nftInfo:t,tradeFeeInfo:n,onRefresh:r}),([E.jR.ERC721,E.jR.SOLANA].includes(a)||s===N.Bv.BTC)&&c&&c.source&&!N.nG.filter((e=>e!=N.Bv.SOLANA)).includes(Number(s))&&(0,Y.jsx)(Le,{nftInfo:t,className:"markets-detail-trade-multi"}),(0,Y.jsx)(ke.Z,{className:"markets-detail-trade-price",isCountdown:!0}),(0,Y.jsxs)("div",{className:Fe,children:[(0,Y.jsx)(De,{}),(0,Y.jsx)(we,{})]})]})}));var Be=n(66711),je=n(69091),Ue=n(81715),Me=n(926),He=n(9941),Ge=e=>{var t=e.type,n=e.resourceUrl,r=e.resourceSmallUrl,a=e.cover,s=e.coverSmallUrl,o=e.projectUrl,i=e.className,c=void 0===i?"":i,l=e.project,d=e.tokenId,u=e.nftDetail,f=(0,D.Z)().isSm,p=t==E.Ev.IMG?n:u.coverUrl;f&&(p=t==E.Ev.IMG?r:s);var m=(0,He.Z)(u.auditStatus),h=m.isAuditing,g=m.isAuditSuccess,_=m.isAuditeFaild,v=u.name,b=u.thumbnailUrl,y=u.btcMetaContent,A=u.chain,C=()=>(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsx)(Ue.ZP,{thumbnailUrl:b,resourceUrl:p,projectUrl:o,imgClass:P()("nft-detail-cover-radius","nft-detail-cover-resource"),className:"nft-detail-cover-resource nft-detail-cover-radius",project:l,tokenId:d,ssr:!0,lazyLoad:!1,showBackground:!1,alt:v,needLoader:!1,resizeList:f?[]:[343,392,336,392],isResize:!0,fetchpriority:"high"})});return(0,Y.jsxs)("div",{className:"nft-detail-cover ".concat(c),id:"nft-cover",children:[t&&t!==E.Ev.VIDEO&&C(),t===E.Ev.VIDEO&&(0,Y.jsxs)("div",{className:"nft-detail-cover-video video-bg",children:[g&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("img",{src:Me.e9,className:"nft-detail-cover-video-bg",alt:"".concat(v," background")}),(0,Y.jsx)("video",{src:n,controls:"controls",autoPlay:!0,loop:!0,muted:!0,className:"nft-detail-cover-video-resource"})]}),_&&C(),h&&(0,Y.jsx)("div",{className:"nft-detail-cover-audit",children:(0,B.O4)("nftcreate_upload_card_desc_video_under_review")})]}),t===E.Ev.AUDIO&&(0,Y.jsxs)(Y.Fragment,{children:[h&&(0,Y.jsx)("div",{className:"nft-detail-cover-audit",children:(0,B.O4)("nftcreate_upload_card_desc_video_under_review")}),g&&(0,Y.jsx)("audio",{src:n,controls:"controls",muted:!0,className:"nft-detail-cover-audio"})]}),A==N.Bv.BTC&&y&&(()=>{var e=q.Z.getCdnUrl("/cdn/assets/imgs/221/B0D61D906096D37F.png");return(0,Y.jsx)("div",{className:"nft-detail-btc-copy",onClick:e=>{e.preventDefault(),e.stopPropagation(),q.Z.handleCopyAddress(y,"copy-address-input")},children:(0,Y.jsx)(U.Z,{className:"nft-detail-btc-copy-tip",maxWidth:300,title:(0,B.O4)("brc20_detail_hover_copy_all"),placement:U.Z.DIRECTION.top,children:(0,Y.jsx)("img",{src:e,className:"copy-address-wrap-icon",alt:"copy"})})})})()]},"".concat(p," ").concat(t," ").concat(a))};Ge.defaultProps={type:1,resourceUrl:"",cover:"",className:"",project:0,tokenId:"",nftDetail:{auditStatus:1}};const Ke=Ge,We="index_container__nEW5v",Ye="index_cover__Y8KL2",Ve="index_cursor__TUztG",ze="index_scroll__T2R-j",Xe="index_small__NQqY2",Qe="index_normal__-ait8";const Je=e=>{var t=e.nftInfo,a=void 0===t?{}:t,s=a.resourceType,o=a.resourceUrl,i=a.resourceSmallUrl,l=a.coverUrl,d=a.coverSmallUrl,u=a.projectUrl,f=a.project,p=(0,Be.useRouteMatch)().params.tokenId,m=(0,r.useState)(!1),h=(0,c.Z)(m,2),g=h[0],_=h[1],v=(0,r.useState)(!1),b=(0,c.Z)(v,2),y=b[0],A=b[1],C=(0,r.useState)(!1),T=(0,c.Z)(C,2),N=T[0],I=T[1],x=(0,D.Z)().isMobile,Z=(0,r.useMemo)((()=>(0,je.y)()?"":Qe)),S=(0,r.useMemo)((()=>y?ze:""),[y]),O=(0,r.useMemo)((()=>N?Xe:""),[N]);(0,r.useEffect)((()=>{var e=()=>{if(!x){var e=document.querySelector("#nft-cover");if(e){var t=200+e.clientHeight,n=document.documentElement.scrollTop||document.body.scrollTop,r=document.querySelector("#nft-user");if(r){var a=r.offsetTop+r.clientHeight+90;A(!(n5)}}}};return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}));var k=(0,w.P)({loader:()=>n.e(686).then(n.bind(n,16947))});return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{className:We,children:(0,Y.jsx)("div",{onClick:()=>{s===E.Ev.IMG&&_(!0)},children:(0,Y.jsx)(Ke,{className:P()(Ye,s===E.Ev.IMG&&Ve,S,O,Z),type:s,resourceSmallUrl:i,resourceUrl:o,cover:l,coverSmallUrl:d,projectUrl:u,project:f,tokenId:p,nftDetail:a})})}),g&&(0,Y.jsx)(k,{img:o,onClose:()=>{_(!1)}})]})},$e="index_container__d1CRf",qe="index_cover__IxIHq";const et=e=>{var t=e.nftInfo,n=void 0===t?{}:t;return(0,Y.jsx)("div",{className:$e,children:(0,Y.jsx)(Ke,{className:qe,type:n.resourceType,projectUrl:n.projectUrl,resourceSmallUrl:n.resourceSmallUrl,resourceUrl:n.resourceUrl,coverSmallUrl:n.coverSmallUrl,cover:n.coverUrl,project:n.project,tokenId:n.tokenId,nftDetail:n})})};var tt=n(71979),nt=n(48635),rt=n(63909),at=n(36029),st=n(17554),ot=n(64397),it=n(22732),ct=()=>{var e=(0,R.oR)(),t=e.nftSellOrdersStore,n=e.nftDetailStore,a=n.nftDetail,s=n.nftOrders,i=a.id,d=a.creatorAddress,u=a.name,f=a.projectName,p=a.ownerAddress,m=a.contractAddress,h=a.tokenId,g=a.chain,_=a.project,v=t.sellOrders,b=t.openBuyDialog,y=(0,r.useState)(!0),A=(0,c.Z)(y,2),C=A[0],E=A[1],N=(0,Be.useRouteMatch)(),S=N.params.tokenId,O=(0,ae.R0)(N.params.contractAddress),k=()=>{n.loadNftDetail(O,S),n.loadTradeFees()},F=()=>{n.loadNftDetailByLooker()},D=()=>{k()};return(0,r.useEffect)((()=>{D(),t.setOpenBuyDialog(!1)}),[S,O]),(0,r.useEffect)((()=>{var e=(0,I.en)((0,x.ye)()).chain,r=O;O||(r=m);var a=Z.Z.connectSubscribe("*",{chainId:e,tokenAddress:r}),s=Z.Z.subscribe({scene:[ce.E_.LIST,ce.E_.OFFER,ce.E_.SALE,ce.E_.TRANSFER,ce.E_.CANCEL],callback:e=>{e.forEach(function(){var e=(0,l.Z)((0,o.Z)().mark((function e(r){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.Z.getAccount();case 2:e.sent!==p&&(n.updateNftDetail(r),t.updateOrderInfo(r),b&&Z.Z.validNftOrderSale(r)&&((0,it.R)(),t.setOpenBuyDialog(!1)));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},tokenId:S,project:_}),c=Z.Z.addConnectedCallback((()=>{C||(E(!0),D(),t.fetchSellOrders({nftId:i}))})),d=Z.Z.addErrorCallback((()=>{E(!1)}));return()=>{a&&a(),s&&s(),c&&c(),d&&d()}}),[S,O,m,b]),(0,tt.Z)((0,l.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(),window.scrollTo(0,0),e.next=4,(0,ot.aD)(F);case 4:return t=e.sent,nt.NFTOperateSubcribe.on([nt.SCENE_ENUM.BatchPurchase],k,{status:[nt.SCENE_STATUS_ENUM.SUCCESS]}),e.abrupt("return",(()=>{(0,ot.m$)(t),n.resetAllData({}),nt.NFTOperateSubcribe.off([nt.SCENE_ENUM.BatchPurchase],k)}));case 7:case"end":return e.stop()}}),e)}))),[]),(0,r.useEffect)((()=>{d&&(t.fetchSellOrders({nftId:i}),(0,st.Cd)(at.FQh,{collection_name:f,token_id:S}))}),[d,a.id,u,f]),(0,r.useEffect)((()=>{v&&v.length>0&&(a.orderInfo=v[0])}),[a,s]),(0,r.useEffect)((()=>{T.Z.setSupportWalletOptions({deeplink:{okx:"".concat(rt.E.nftDetail,"?contractAddress=").concat(m,"&tokenId=").concat(h,"&chainId=").concat(g)}})}),[m,h,g]),{onRefresh:D}};const lt="index_banner__ZMqSc";var dt=(0,w.P)({loader:()=>n.e(8105).then(n.bind(n,28105))}),ut=(0,w.P)({loader:()=>Promise.all([n.e(9837),n.e(6735)]).then(n.bind(n,92133))}),ft=(0,w.P)({loader:()=>n.e(2711).then(n.bind(n,22711))}),pt=(0,w.P)({loader:()=>n.e(8477).then(n.bind(n,8477))}),mt=(0,w.P)({loader:()=>n.e(6135).then(n.bind(n,15123))}),ht=(0,w.P)({loader:()=>n.e(6277).then(n.bind(n,36277))}),gt=(0,w.P)({loader:()=>Promise.all([n.e(6262),n.e(4935),n.e(8378),n.e(9455),n.e(1153)]).then(n.bind(n,91153))});const _t=(0,F.Pi)((()=>{var e=(0,D.Z)(),t=e.isSm,n=e.isMd,a=e.isMobile,s=(0,R.oR)().nftDetailStore,o=s.nftDetail,i=s.tradeFeeInfo,c=(0,r.useRef)(),l=o.id,d=o.resourceUrl,u=o.specialProperties,f=o.btcRecursive,p=o.isSbt,m=ct().onRefresh;return(0,Y.jsxs)("div",{className:"markets-detail",children:[(0,Y.jsxs)("div",{className:"markets-detail-container",children:[(0,Y.jsxs)("div",{className:"markets-detail-main",children:[(n||t)&&void 0!==d&&(0,Y.jsx)(et,{nftInfo:o}),(0,Y.jsx)("div",{children:(0,Y.jsx)(dt,{nftDetail:o,className:lt})}),(0,Y.jsx)(re,{nftDetail:o}),(0,Y.jsx)(Pe,{nftDetail:o,tradeFeeInfo:i,ref:c,onRefresh:m}),!p&&(0,Y.jsx)(pe,{nftId:l,nftDetail:o}),(0,Y.jsx)(gt,{nftDetail:o}),(0,Y.jsx)(se,{nftDetail:o}),(0,Y.jsx)(ft,{specialProperties:u}),f&&(0,Y.jsx)(Oe,{nftDetail:o}),(0,Y.jsx)(pt,{nftDetail:o}),(0,Y.jsx)(mt,{nftDetail:o})]}),!(n||t)&&(0,Y.jsx)(Je,{nftInfo:o})]}),!a&&(0,Y.jsx)(ut,{nftDetail:o,tradeRef:c,onRefresh:m}),(0,Y.jsx)(ht,{})]})}));var vt=n(47124);const bt=()=>{var e=(0,r.useMemo)((()=>(0,s.it)()),[]);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(k.Z,(0,i.Z)((0,i.Z)({},e[s.Pj.MARKET_DETAIL]),{},{component:_t})),(0,Y.jsx)(vt.Z,{currentEntryName:s.vy.NFT_DETAIL})]})};var yt=(0,n(1332).O)();yt.set("nftOfferStore",p),yt.set("nftSellOrdersStore",O),yt.set("nftDetailStore",S),(0,a.mN)({project:"onChain",entryName:s.vy.NFT_DETAIL,stores:yt,children:(0,Y.jsx)(bt,{})})},36029:(e,t,n)=>{n.d(t,{EgR:()=>T,FQh:()=>l,LrY:()=>v,Mji:()=>_,TLH:()=>g,Wzx:()=>b,XSh:()=>h,eBA:()=>p,gx:()=>m,jEP:()=>d,oHA:()=>C,pAY:()=>f,r4R:()=>y,tRt:()=>u,xbG:()=>A});var r={act:function(){}};if("undefined"!==typeof window){var a=window.utils.monitor,s=(window._okGlobal||window.okGlobal).site,o=(void 0===s?{}:s).sign,i=void 0===o?"okex":o;r=a.newInstance({site:i.toLocaleLowerCase(),product:"nft",commonParams:{}})}var c=r,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nft_chain,n=e.wallet_address,r=e.collection_name,a=e.token_id,s=e.is_webm,o=e.site;c.act({action:"NFTDetailPage_Full_Page_View",anchor:"NFTDetailPage_Full_Page_View",params:{nft_chain:t,wallet_address:n,collection_name:r,token_id:a,is_webm:s,site:o},actionType:"",elementType:"",ampProject:"web3"})},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.wallet_address,n=e.button_name,r=e.site;c.act({action:"NFTFeatured_Full_Button_Click",anchor:"NFTFeatured_Full_Button_Click",params:{wallet_address:t,button_name:n,site:r},actionType:"",elementType:"",ampProject:"web3"})},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.wallet_address,n=e.button_name,r=e.collection_name,a=e.click_position,s=e.chain,o=e.site;c.act({action:"NFTRankings_Collection_Button_Click",anchor:"NFTRankings_Collection_Button_Click",params:{wallet_address:t,button_name:n,collection_name:r,click_position:a,chain:s,site:o},actionType:"",elementType:"",ampProject:"web3"})},f=()=>{c.act({action:"Markets_Top_Crypto_Click",anchor:"Markets_Top_Crypto_Click",params:{},actionType:"",elementType:"",ampProject:"web3"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nft_transaction_scene,n=e.nft_transaction_status,r=e.nft_transaction_subkey,a=e.nft_transaction_inputdata,s=e.nft_transaction_contract_address,o=e.nft_transaction_token_id,i=e.nft_transaction_wallet_address,l=e.nft_transaction_prepare_data_type,d=e.nft_transaction_chain,u=e.page,f=e.site;c.act({action:"NFTPurchaseConfirm_Full_Page_View",anchor:"NFTPurchaseConfirm_Full_Page_View",params:{nft_transaction_scene:t,nft_transaction_status:n,nft_transaction_subkey:r,nft_transaction_inputdata:a,nft_transaction_contract_address:s,nft_transaction_token_id:o,nft_transaction_wallet_address:i,nft_transaction_prepare_data_type:l,nft_transaction_chain:d,page:u,site:f},actionType:"",elementType:"",ampProject:"web3"})},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.button_name,n=e.chain,r=e.collection,a=e.site;c.act({action:"NFTMarketCollection_Full_Button_Click",anchor:"NFTMarketCollection_Full_Button_Click",params:{button_name:t,chain:n,collection:r,site:a},actionType:"",elementType:"",ampProject:"web3"})},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nft_transaction_scene,n=e.nft_transaction_status,r=e.nft_transaction_chain,a=e.nft_transtaction_end,s=e.scene,o=e.number,i=e.chain,l=e.wallet_address,d=e.site;c.act({action:"NFTPurchaseCompletion_Full_Page_View",anchor:"NFTPurchaseCompletion_Full_Page_View",params:{nft_transaction_scene:t,nft_transaction_status:n,nft_transaction_chain:r,nft_transtaction_end:a,scene:s,number:o,chain:i,wallet_address:l,site:d},actionType:"",elementType:"",ampProject:"web3"})},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nft_transaction_scene,n=e.nft_transaction_status,r=e.nft_transaction_subkey,a=e.nft_transaction_inputdata,s=e.contract_address,o=e.token_id,i=e.wallet_address,l=e.nft_transaction_prepare_data_type,d=e.chain,u=e.site;c.act({action:"NFTBatchBuyConfirm_Full_Page_View",anchor:"NFTBatchBuyConfirm_Full_Page_View",params:{nft_transaction_scene:t,nft_transaction_status:n,nft_transaction_subkey:r,nft_transaction_inputdata:a,contract_address:s,token_id:o,wallet_address:i,nft_transaction_prepare_data_type:l,chain:d,site:u},actionType:"",elementType:"",ampProject:"web3"})},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.page_name,n=e.project_id,r=e.token_id,a=e.is_collection_logo,s=e.is_default_logo;c.act({action:"NFT_PicLoading_Fail_View",anchor:"NFT_PicLoading_Fail_View",params:{page_name:t,project_id:n,token_id:r,is_collection_logo:a,is_default_logo:s},actionType:"",elementType:"",ampProject:"okx"})},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.button_name,n=e.nft_transaction_token_id,r=e.nft_transaction_chain,a=e.wallet_address,s=e.site;c.act({action:"NFTDetailPage_Btm_Button_Click",anchor:"NFTDetailPage_Btm_Button_Click",params:{button_name:t,nft_transaction_token_id:n,nft_transaction_chain:r,wallet_address:a,site:s},actionType:"",elementType:"",ampProject:"web3"})},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.button_name,n=e.chain,r=e.collection,a=e.site;c.act({action:"NFTMarket_Full_Button_Click",anchor:"NFTMarket_Full_Button_Click",params:{button_name:t,chain:n,collection:r,site:a},actionType:"",elementType:"",ampProject:"web3"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.button_name,n=e.chain,r=e.number,a=e.site;c.act({action:"NFTShoppingCart_Full_Button_Click",anchor:"NFTShoppingCart_Full_Button_Click",params:{button_name:t,chain:n,number:r,site:a},actionType:"",elementType:"",ampProject:"web3"})},A=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).search_content;c.act({action:"NFTSearch_GlobalSearch_SearchBox_Submit",anchor:"NFTSearch_GlobalSearch_SearchBox_Submit",params:{search_content:e},actionType:"",elementType:"",ampProject:"okx"})},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.trending,n=e.history;c.act({action:"NFTSearch_GlobalSearch_SearchRecommendations_Click",anchor:"NFTSearch_GlobalSearch_SearchRecommendations_Click",params:{trending:t,history:n},actionType:"",elementType:"",ampProject:"okx"})},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searching_content,n=e.collections,r=e.items,a=e.accounts;c.act({action:"NFTsearch_GlobalSearch_SearchPutdown_Click",anchor:"NFTsearch_GlobalSearch_SearchPutdown_Click",params:{searching_content:t,collections:n,items:r,accounts:a},actionType:"",elementType:"",ampProject:"okx"})}},23781:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(1413),a=(n(87363),n(14300)),s=n(97505),o=n(85658),i=n(45263);const c={getNFTDetail:e=>o.Z.getXss(s.Z.NFT_DETAIL,e),getNFTOwners:e=>o.Z.get(s.Z.NFT_OWNERS,e),getTradingHistory:e=>o.Z.get(s.Z.NFT_TRADE_HISTORY,(0,r.Z)({showCollOrder:!0},e)),getPriceHistory:e=>o.Z.get(s.Z.NFT_PRICE_HISTORY,e),getNftOrders:e=>o.Z.get(s.Z.ORDER_LIST,(0,r.Z)({showAllOrder:!0},e)),reportSellTx:e=>o.Z.post(s.Z.REPORT_SELL_TX,e),getNftOffers:e=>o.Z.getXss(s.Z.OFFER_LIST,(0,r.Z)({showAllOrder:!0,showCollOrder:!0},e)),cancelNftOffers:e=>o.Z.post(s.Z.NFT_OFFER_CANCEL,e),getSearchList:(e,t)=>o.Z.getXss(s.Z.MARKET_SEARCH_LIST,e,t,{isNeedCancel:!0}),getCollections:e=>o.Z.postXss(s.Z.MARKET_COLLECTIONS,e),getSearchCollections:e=>o.Z.postXss(s.Z.MARKET_SEARCH_COLLECTIONS,e),getMarket:(e,t)=>o.Z.postXss(s.Z.MARKET,e,t,{isNeedCancel:!0}),getProjects:e=>o.Z.get(s.Z.PROJECT,e),getProjectAttributes:e=>o.Z.get(s.Z.PROJECT_ATTRIBUTES,e),switchFav:e=>o.Z.post(s.Z.SWITCH_FAV,e),getHotProject:e=>o.Z.get(s.Z.TOP_PROJECTS,e),makeOffer:e=>o.Z.post(s.Z.MAKE_OFFER,e),makeOKXSeaportOffer:e=>o.Z.post(s.Z.MAKE_OKX_SEAPORT_OFFER,e),makeOKXSeaportOrder:e=>o.Z.post(s.Z.MAKE_OKX_SEAPORT_ORDER,e),makeOrder:e=>o.Z.post(s.Z.MAKE_ORDER,e),updateOrderPrice:e=>o.Z.post(s.Z.UPDATE_ORDER_PRICE,e),getTradeFee:()=>o.Z.get(s.Z.TRADE_FEE),getCurrencyRate:e=>o.Z.get(s.Z.CURRENCY_RATE,e),getSortItems:()=>[{value:"",label:(0,i.jsx)("span",{children:(0,a.O4)("nft_markets_sort_recent_activity")})},{value:"makeOfferTimeDesc",label:(0,i.jsx)("span",{children:(0,a.O4)("nftcoll_list_dropdown_orderbylatestprice1")})},{value:"takeOrderTimeDesc",label:(0,i.jsx)("span",{children:(0,a.O4)("nftcoll_list_dropdown_orderbylatesttrade0")})},{value:"makeOrderUsd",label:(0,i.jsx)("span",{children:(0,a.O4)("nftcoll_list_dropdown_orderbypricelowtohigh2")})},{value:"makeOrderUsdDesc",label:(0,i.jsx)("span",{children:(0,a.O4)("nftcoll_list_dropdown_orderbypricehightolow3")})},{value:"makeOrderTimeDesc",label:(0,i.jsx)("span",{children:(0,a.O4)("nftcoll_list_dropdown_orderbylatestlist")})},{value:"createTimeDesc",label:(0,i.jsx)("span",{children:(0,a.O4)("nftcoll_list_dropdown_orderbylatestcreate")})}],getNftTrade:e=>o.Z.get(s.Z.NFT_Trade,e),tradeHidden:e=>o.Z.post(s.Z.NFT_Trade_hidden,e),submitAudit:e=>o.Z.get(s.Z.SUBMIT_AUDIT,e),reportOtherTxId:e=>o.Z.post("".concat(s.Z.REPORT_OTHER_TX,"?txHash=").concat(e.txHash)),refreshMetaData:e=>o.Z.post("".concat(s.Z.REFRESH),e),hotSearchTerm:()=>o.Z.get("".concat(s.Z.HOT_SEARCH_TERM)),searchRecord:e=>o.Z.post("".concat(s.Z.SEARCH_RECORD),e),checkTransaction:e=>o.Z.get(s.Z.CHECK_BY_TX_HASH,e),checkOrder:e=>o.Z.get(s.Z.CHECK_ORDER,e),getTradeData:e=>o.Z.get(s.Z.TRADE_DATA,e),imxTradeRecord:e=>o.Z.get(s.Z.IMX_TRADE_RECORD,e),getServiceFee:()=>o.Z.get(s.Z.GET_PLATEFORM_FEES),getSolanaMetadata:e=>o.Z.get(s.Z.SOLANA_META_DATA,e),assertRisk:e=>o.Z.get(s.Z.ASSERT_RISK,e),getLooksrareNonce:e=>o.Z.get(s.Z.GET_LOOKSRARE_NONCE,e),listingLooksrare:e=>o.Z.post(s.Z.LISTING_LOOKRARE,e),getEachSourcePrice:e=>o.Z.get(s.Z.SOURCE_PRICE,e),listingOpensea:e=>o.Z.post(s.Z.LISTING_OPENSEA,e),opeaseaRoyalty:e=>o.Z.post(s.Z.LISTING_OPENSEA_ROYALTY,e),mulitiListings:e=>o.Z.get(s.Z.MULTI_LISTINGS,(0,r.Z)((0,r.Z)({},e),{},{supportSeaport:!0})),getBatchListingData:e=>o.Z.post(s.Z.BATCH_LISTINGS,e),getMeBuyInstruction:e=>o.Z.post(s.Z.GET_ME_BUY_INSTRUCTION,e),getMeCancelSellInstruction:e=>o.Z.post(s.Z.GET_ME_CANCEL_SELL_INSTRUCTION,e),getMeUpdatePriceInstruction:e=>o.Z.post(s.Z.GET_ME_UPDATE_PRICE_INSTRUCTION,e),getMeSellInstruction:e=>o.Z.post(s.Z.GET_ME_SELL_INSTRUCTION,e),getCheckMeSell:e=>o.Z.get(s.Z.CHECK_ME_LISTING,e),checkImxAddress:e=>o.Z.get(s.Z.CHECK_IMX_ADDRESS,e),imxRecord:e=>o.Z.get(s.Z.IMX_RECORD,e),getCollectionOfferDialogInfo:e=>o.Z.get(s.Z.COLLECTION_OFFER_DIALOG_INFO,e),getX2y2CancelData:e=>o.Z.post(s.Z.X2Y2_CANCEL_DATA,e),getX2y2SignData:e=>o.Z.post(s.Z.X2Y2_SIGN_DATA,e),getMultiListingPlatforms:e=>o.Z.get(s.Z.MULTI_LISTING_PLATFORMS,e),getMarketSources:()=>o.Z.get(s.Z.MARKET_FILTER_LIST),getPriceCurrencies:()=>o.Z.get(s.Z.MAERKET_CURRENCIES),getLimitSellOrders:e=>o.Z.post(s.Z.LIMIT_PRICE_SELL,e),getMarketSellOrders:e=>o.Z.post(s.Z.MARKET_PRICE_SELL,e),queryOwnedNFTs:e=>o.Z.post(s.Z.QUERY_OWNED_NFTS,e),getMarketBuyOrders:e=>o.Z.post(s.Z.MARKET_PRICE_BUY,e),getLimitBuyOrders:e=>o.Z.post(s.Z.LIMIT_PRICE_BUY,e),getOrderBook:e=>o.Z.post(s.Z.ORDER_BOOK,e),getOrdersRequestData:e=>o.Z.postXss(s.Z.ORDERS_REQUEST_DATA,e),getNftFees:e=>o.Z.post(s.Z.NFT_FEES,e),getOrderFees:e=>o.Z.post(s.Z.ORDER_FEES,e),getChainInfos:()=>o.Z.get(s.Z.CHAIN_INFOS),getActivityCurrencies:()=>o.Z.get(s.Z.ACTIVITY_CURRENCIES),getMarketCollections:e=>o.Z.get(s.Z.MARKET_COLLECTIONS_FILTER,e),getDomainAddress:e=>o.Z.get(s.Z.DOMAIN_ADDRESS,e),getHistoryAddress:e=>o.Z.get(s.Z.RECENT_ADDRESS,e),getBatchTransferResult:e=>o.Z.get(s.Z.BATCH_TRANSFER_QUERY,e),getOffChainPushStatus:e=>o.Z.get(s.Z.CHAIN_PUSH_STATUS,e),getPendingInfo:e=>o.Z.get(s.Z.PENDING_INFO,e),getTensorBuyInstruction:e=>o.Z.post(s.Z.TENSOR_BUY_INSTRUCTIONS,e),getTensorCancelSellInstruction:e=>o.Z.post(s.Z.TENSOR_CANCEL_INSTRUCTIONS,e),getTensorSellInstruction:e=>o.Z.post(s.Z.TENSOR_SELL_INSTRUCTIONS,e),getTensorUpdatePriceInstruction:e=>o.Z.post(s.Z.TENSOR_UPDATE_PRICE_INSTRUCTIONS,e),getBtcNftTypes:e=>o.Z.get(s.Z.BTC_NFT_TYPES,e),getSupportCurrencyList:e=>o.Z.get(s.Z.SUPPORT_CURRENCY_LIST,e),getPendingNftNum:e=>o.Z.get(s.Z.BTC_NFT_PENDING_NUM,e)}},90330:(e,t,n)=>{n.d(t,{h:()=>a});n(14001);var r=n(65552),a=(e,t)=>(0,r.EQ)(e)(t).params},68481:(e,t,n)=>{n.d(t,{F:()=>c,d:()=>i});var r=n(1413),a=n(64037),s=n(40910),o=n(72208),i=e=>{var t,n=e||{},o=n.chain,i=n.tokenStandard,c=n.btcNftType,l=n.nftStatusInfo,d=n.mintContractStatus,u=n.hiddenStatus;return(0,r.Z)((0,r.Z)({},e),{},{is1155:i===s.jR.ERC1155,is721:i===s.jR.ERC721,isPunk:i===s.jR.PUNK,isAptos:o==a.Bv.APTOS,isSolana:o==a.Bv.SOLANA,isSui:o==a.Bv.SUI,isLazyMint:10===d,isBtc:o==a.Bv.BTC,isBRC20:c===s.W0.VALID_BRC20_NFT,isBRC20S:c===s.W0.VALID_BRC20S_NFT,isPending:(null===l||void 0===l||null===(t=l.data)||void 0===t?void 0:t.nftStatus)===s.Zz.LOADING,isImx:o==a.Bv.IMX,isHidden:[1,2].includes(u)})},c=e=>{var t=e||{},n=t.source,r=t.orderType===o.mr.COLLECTION_OFFER,a=n===o.Qz.SEAPORT,s=n===o.Qz.BLUR;return{isCollectionOffer:r,isSeaport:a,isOSCollectionOffer:r&&a,isBlurCollectionOffer:r&&s}}},149:(e,t,n)=>{n.d(t,{On:()=>x,SO:()=>y,T3:()=>A,T4:()=>C,_D:()=>I,a9:()=>B,ao:()=>g,az:()=>_,dN:()=>P,dS:()=>T,dk:()=>j,en:()=>O,i7:()=>H,kl:()=>M,l3:()=>v,lh:()=>Z,rl:()=>U,xG:()=>S});var r=n(37762),a=n(93380),s=n(94595),o=n(24627),i=n.n(o),c=n(31864),l=n(64037),d=n(90330),u=n(68481),f={currencyId:0,displayName:"USD",isoCode:"USD",precision:2,symbol:"$",usdToThisRate:1},p=f,m=i().preference,h=(void 0===m?{}:m).getUnit;h&&h((e=>{var t=e.nowCurrencyUnit;p=(void 0===t?{}:t)||f}));var g=e=>a.yx.thousandFormat(e),_=function(e){if(!e)return 0;var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),n=Math.floor(e*t)/t;return a.yx.thousandFormat(n)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!e)return 0;var n=1e-4;return e>1e12?">1000B":Number(e)&&e1?t-1:0),r=1;r0?a.yx.ceilTruncate:a.yx.floorTruncate)(e,...n)},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e||0==e?"--"===e?e:0==e?0:Math.abs(e)0?t:-t):a.yx.ceilTruncateShort(e,{digit:n,shortDigit:n,needZero:!1,shortNeedZero:!1,needK:!0}):"--"},A=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-4,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e&&0!==e&&"0"!==e)return"--";var o=n||(t?1e10:100);if(e>o)return o=a.yx.mul(o,100),">".concat(a.yx.thousandFormat(o,{style:"percent",signDisplay:s}));if(e&&Math.abs(e)1&&void 0!==arguments[1]?arguments[1]:1e-4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(!e&&0!==e&&"0"!==e)return"--";var l=e,d=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("string"===typeof e&&e.includes(",")&&(d=!0,l=l.replace(/,/g,"")),(l=Number(l))<0){var u=Math.abs(l);u>1e3||u1e12?l=">".concat(s.ag.formatCurrency("".concat(a.yx.thousandFormat(1e3),"B"),{currencySign:i})):l&&l1&&void 0!==arguments[1]?arguments[1]:.01,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=p,o=r.symbol,i=r.usdToThisRate;return e?C(a.yx.mul(e,i),t,n,!0,!1,!1,o):s.ag.formatCurrency("0",{currencySign:o})},E=e=>{var t=a.yx.toPlainString(e),n=t.indexOf("."),r="";if(-1!==n){var s=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:2,n=e.toString().match(/^([+-]?\d+)(.\d+)?/);if(!n)return NaN;var r=n[1];return n[2]&&(r+=String(a.yx.showFloorTruncation(n[2],6,{needZero:!1})).slice(0,2+t).replace(/\.?0+/,"")),parseFloat(r).toString()},I=(e,t)=>{var n=p,r=n.symbol,o=n.usdToThisRate,i="";if(!e||"0"===e)return t?"0":s.ag.formatCurrency("0",{currencySign:r});if(t&&Number(e)>=100)return(0,s.uf)(Math.floor(e));var c=t?e:a.yx.mul(e,o);if(c<1e-12)return"<".concat(t?(0,s.uf)(c):s.ag.formatCurrency((0,s.uf)(c),{currencySign:r}));if(!(i=c>=1?N(c):E(c))&&0!==i&&"0"!==i)return"--";var l=i,d=!1;return"string"===typeof i&&i.includes("<")&&(d=!0,l=l.replace(/{var t="";if(!e||"0"===e)return"0";var n=a.yx.mul(e,1);return n<1e-12?"<".concat((0,s.uf)(n)):(t=n>=1e-6?N(n,6):E(n),"".concat((0,s.uf)(t)))},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;if(!e&&0!==e&&"0"!==e)return"--";var r=e,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("string"===typeof e&&e.includes(",")&&(s=!0,r=r.replace(/,/g,"")),(r=Number(r))<0){var o=Math.abs(r);o>1e3||o1e3?r=">".concat(a.yx.thousandFormat(1e3)):r&&r{var r=(0,u.d)({chain:n}).isImx;return"BTC"===t||r?C(e,1e-6,6):C(e)},O=e=>{var t=(0,c.ip)().nft,n=(0,d.h)("".concat(t.asset,"/:chain/:contractAddress?/:tokenId"),e)||{},r=n.chain,a=n.contractAddress,s=n.tokenId,o=(0,l.fr)();return{contractAddress:a,tokenId:s,chain:Object.keys(o).find((e=>o[e].urlName===r))}},k=(()=>{var e=[1,.1,.01,.001,1e-4,1e-5,1e-6,1e-7,1e-8,1e-9,1e-10,1e-11,1e-12],t=e.map(((t,n)=>({range:[e[n+1],e[n]],digit:n+4>=12?12:n+2})));return t.length-=1,t})(),F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return a.yx.num2Shorthand(e,t,{needZero:!1,shortNeedZero:!1,needK:!0})};function D(e,t){var n=e.toString(),r=n.indexOf("."),a=function(e){for(var t=1;te||0===e||"0"===e?0==e?0:F(e,2):"--",R=(e,t)=>{if(!e&&0!==e&&"0"!==e)return"--";if(0==e)return 0;var n=((e,t)=>t?e>1e3?2:e<1e3&&e>=1||t>=8?4:t:2)(Number(e),t);return((e,t)=>{if(e<1e-8&&4===t)return"<0.00000001";if(e<1e-6&&e>1e-8&&t<8)return a.yx.showFloorTruncation(D(e,4),8,{needZero:!1});if(e<1e-6&&t<8)return"<0.000001";if(e>=1e3)return a.yx.showFloorTruncation(e,2,{needZero:!1});if(e<1e3&&e>=1)return a.yx.showFloorTruncation(e,4,{needZero:!1});if(e>1e-8&&e<1){if(4===t)return a.yx.showFloorTruncation(D(e,4),8,{needZero:!1});if(t<8)return a.yx.showFloorTruncation(D(e,4),t,{needZero:!1})}return a.yx.showFloorTruncation(e,4,{needZero:!1})})(e,n)},L=e=>{var t=p,n=t.symbol,o=t.usdToThisRate;if(!e&&0!==e&&"0"!==e)return"--";if(0==e)return s.ag.formatCurrency(0,{currencySign:n});if(e<1e-12)return"<".concat(s.ag.formatCurrency("0.000000000001",{currencySign:n}));var i=(e=>{if(e>=1)return 2;var t,n=(0,r.Z)(k);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(e=a.range[0])return a.digit}}catch(s){n.e(s)}finally{n.f()}return 4})(e),c=a.yx.showFloorTruncation(a.yx.mul(e,o),i,{needZero:!1});return s.ag.formatCurrency(c,{currencySign:n})},P=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{useKMB:!1}).useKMB?w(e):(e=>e||0===e||"0"===e?0==e?0:a.yx.thousandFormat(e):"--")(e)},B=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{useKMB:!1}).useKMB&&e>=1e3?(e=>e||0===e||"0"===e?0==e?0:F(e,2):"--")(e):R(e,t)},j=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{useKMB:!1}).useKMB&&e>=1e3?(e=>{var t=p,n=t.symbol,r=t.usdToThisRate;return s.ag.formatCurrency(w(a.yx.mul(e,r)),{currencySign:n})})(e):L(e)},U=e=>{if(!e&&0!==e&&"0"!==e)return"--";if(0==e)return"".concat(a.yx.thousandFormat(0,{style:"percent"}));var t=a.yx.mul(e,100);return t>9999.99?">".concat(a.yx.thousandFormat(9999.99,{style:"percent"})):t<.01?"<".concat(a.yx.thousandFormat(.01,{style:"percent"})):a.yx.showFloorTruncation(t,2,{style:"percent",needZero:!1})},M=e=>{if(!e&&0!==e&&"0"!==e)return"--";if(0==e)return"".concat(a.yx.thousandFormat("0.00",{style:"percent"}));if(e<-.9999)return"".concat(a.yx.thousandFormat(a.yx.mul(-.9999,100),{style:"percent",signDisplay:!0}));var t=Number(e)>0,n=a.yx.mul(Math.abs(e),100);return"".concat(n>9999.99?a.yx.thousandFormat(t?9999.99:-9999.99,{style:"percent",signDisplay:!0}):n<.01?a.yx.thousandFormat(t?.01:-.01,{style:"percent",signDisplay:!0}):a.yx.showFloorTruncation(t?n:a.yx.mul(n,-1),2,{style:"percent",needZero:!1,signDisplay:!0}))},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=1/10**t;return e=1e3?"".concat(a.yx.ceilDiv(e,1e3,t,!1),"K"):a.yx.ceilTruncate(e,t,!1)}},10680:(e,t,n)=>{n.d(t,{NP:()=>l,R0:()=>s,eQ:()=>i,hl:()=>c,jg:()=>o,kf:()=>d});var r=n(64037),a=n(14001),s=e=>{var t;return e===(null===(t=(0,r.fr)()[r.Bv.SOLANA])||void 0===t?void 0:t.key)?"":e},o=e=>{var t,n=e.chain,a=e.contractAddress,s=null===(t=(0,r.fr)()[n])||void 0===t?void 0:t.browser;return n==r.Bv.SOLANA?"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"===a?"".concat(s,"/account/").concat(a):"".concat(s,"/token/").concat(a):"".concat(s,"/address/").concat(a)},i=e=>{var t=e.chain,n=e.contractAddress;(0,a.bA)(o({chain:t,contractAddress:n}))},c=e=>{var t,n=e.chain,s=e.txHash,o=null===(t=(0,r.fr)()[n])||void 0===t?void 0:t.browser;(0,a.bA)("".concat(o,"/tx/").concat(s))},l=e=>{var t,n=e.txHash,s=e.chain,o=null===(t=(0,r.fr)()[s])||void 0===t?void 0:t.browser;(0,a.bA)("".concat(o,"/tx/").concat(n))},d=e=>{var t,n=e.txHash,a=e.chain,s=null===(t=(0,r.fr)()[a])||void 0===t?void 0:t.browser;return"".concat(s,"/tx/").concat(n)}},95970:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(74165),a=n(1413),s=n(15861),o=n(1708),i=n(32131),c=n(29038);function l(e,t,n){var r=0,a=e.length;for(t.index&&e.splice(t.index,0);r0?r=s+1:a=s}return e.splice(r,0,t),e}function d(e,t){var n=e;return t&&n.splice(t.index,1),n}function u(e){return f.apply(this,arguments)}function f(){return(f=(0,s.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getWalletAccount();case 2:return n=e.sent,e.abrupt("return",n==t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var p=0,m=2,h={connectSubscribe(e,t){var n=c.Z.watching(e,t);return()=>{n&&n(),c.Z.unSubscribe(e,t)}},subscribe(e){var t=e.scene,n=e.callback,r=e.tokenId,a=e.wait,s=void 0===a?500:a,o=e.project;return c.Z.on(t,(e=>{var t=h.filterNFT2Detail(h.filterNFT2Project(e,o),r);t&&n&&function(e,t){var n,r=[];return a=>{clearTimeout(n),r.push(a),n=setTimeout((()=>{e.call(this,r),r=[]}),t)}}(n,s)(t)}))},addConnectedCallback:e=>c.Z.addConnectedQueue(e),addErrorCallback:e=>c.Z.addErrorQueue(e),initNftListMap(e){var t=new Map;return e.forEach(((e,n)=>{t.get(e.id)||t.set(e.id,(0,a.Z)((0,a.Z)({},e),{},{index:n}))})),t},getId:e=>e.nftLog&&e.nftLog.nftIdStr?e.nftLog.nftIdStr.toString():e.evmPendingNftTxBO&&e.evmPendingNftTxBO.nftIdStr?e.evmPendingNftTxBO.nftIdStr.toString():null,getNewItem(e,t,n){var r=t;return e&&(t?(e.to&&(r.ownerAddress=e.to),r.bestOffer=e.bestOffer,r.sale=e.sale,r.lastPrice=e.lastPrice,r.nftStatusInfo=h.addNftStatusInfo(r,t)):r={bestOffer:e.bestOffer,sale:e.sale,lastPrice:e.lastPrice,id:n,chain:e.chain,openRarity:e.openRarity,contractAddress:e.contractAddress,tokenId:e.tokenId,project:e.project,projectName:e.projectName,thumbnailUrl:e.thumbnailUrl,resourceUrl:e.thumbnailUrl,coverUrl:e.thumbnailUrl,name:e.name,risk:e.risk,ownerAddress:e.to||e.from,tokenStandard:e.tokenStandard,resourceType:e.resourceType}),r},compareNftList(e){var t=e.item,n=e.nftList,r=e.nftListMap,a=e.filterFunc,s=this.getId(t),o=r.get(s),c=n,u=t.nftLog;if(u){var f=h.getNewItem(u,o,s);switch(t.channelId){case i.E_.SALE:c=u.sale?l(n,f,a):d(n,o);break;case i.E_.LIST:c=l(n,f,a);break;case i.E_.CANCEL:u.type==i.Bc.LIST_CANCELED&&(c=u.sale?l(n,f,a):d(n,o));break;case i.E_.TRANSFER:c=d(n,o)}return c}return!1},addNftStatusInfo(e,t){var n=t.nftStatusInfo,r=e.evmPendingNftTxBO,s=e.nftLog;if(r&&r.type==i.Bc.SALE)if(t.nftStatusInfo){var o,c,l=null===(o=t.nftStatusInfo)||void 0===o||null===(c=o.data)||void 0===c?void 0:c.pendTxList,d=l.find((e=>3==e.showType));if(d){if(2==d.txType){if(d.maxFeePreGas{if(1==e.showType)if(2==e.txType){if(e.maxFeePreGas(0,s.Z)((0,r.Z)().mark((function n(){var s,o,c,l,d,f,p;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(d=t,f=e.nftLog,p=e.collectionNftLog,!f){n.next=19;break}n.t0=e.channelId,n.next=n.t0===i.E_.TRANSFER?6:n.t0===i.E_.SALE?12:18;break;case 6:return n.next=8,u(f.to);case 8:case 14:return d.ownerOrNot=n.sent,d.ownerAddress=f.to,d.ownerAddressData=f.toData,n.abrupt("break",19);case 12:return n.next=14,u(f.to);case 18:return n.abrupt("break",19);case 19:return p&&p.type==i.Bc.COLLECTION_OFFER?p.bestProjectOffer.usdPrice>d.bestOfferInfo.usdPrice&&(d=(0,a.Z)((0,a.Z)({},d),{},{bestOfferInfo:p.bestProjectOffer})):f&&(d=(0,a.Z)((0,a.Z)({},d),{},{bestOfferInfo:f.bestOffer})),d.nftStatusInfo=h.addNftStatusInfo(e,d),d.isPending=(null===(s=d)||void 0===s?void 0:s.nftStatusInfo)&&"1"===(null===(o=d)||void 0===o||null===(c=o.nftStatusInfo)||void 0===c||null===(l=c.data)||void 0===l?void 0:l.nftStatus),n.abrupt("return",d);case 23:case"end":return n.stop()}}),n)})))(),compareNftOrder:(e,t)=>e.channelId===i.E_.LIST?(0,a.Z)((0,a.Z)((0,a.Z)({},t),e.nftLog),{},{validTime:Number(e.nftLog.expiredTimestamp)}):e.channelId===i.E_.SALE||e.channelId===i.E_.TRANSFER?{}:e.channelId===i.E_.CANCEL?e.nftLog&&e.nftLog.sale?(0,a.Z)((0,a.Z)((0,a.Z)({},t),e.nftLog.sale),{},{validTime:Number(e.nftLog.sale.expiration)}):{}:t,validNftOrderSale:e=>e.channelId===i.E_.SALE||(e.channelId===i.E_.TRANSFER||e.channelId===i.E_.CANCEL&&(!e.nftLog||!e.nftLog.sale)),getStatsData(e){if(e.collectionNftLog){var t={};return e.collectionNftLog.bestProjectOffer&&e.channelId===i.E_.OFFER&&e.channelId===i.E_.SALE&&(t.bestProjectOffer=e.collectionNftLog.bestProjectOffer),e.collectionNftLog.platformFloorPrice&&e.channelId!==i.E_.OFFER&&(t.platformFloorPrice=e.collectionNftLog.platformFloorPrice),t}return null},filterNFT2Detail(e,t){if(!t||!e)return e;var n=e.nftLog&&(e.nftLog.type===i.Bc.COLLECTION_OFFER||e.nftLog.tokenId===t),r=e.collectionNftLog&&(e.collectionNftLog.type===i.Bc.COLLECTION_OFFER||e.collectionNftLog.type===i.Bc.COLLECTION_OFFER_CANCELED),a=e.evmPendingNftTxBO&&e.evmPendingNftTxBO.tokenId===t;return n||r||a?e:null},filterNFT2Project:(e,t)=>e.collectionNftLog&&e.collectionNftLog.project==t?e:null,getNewPending(e,t){if(t.txType==p){if(e.gasPrice>t.gasPrice)return!0}else if(t.txType==m&&(e.maxFeePreGas>t.maxFeePreGas||e.maxPriorityFeePreGas>t.maxPriorityFeePreGas))return!0;return!1},getCollectionLog:e=>e.map((e=>e.collectionNftLog)).filter(Boolean),getNftLog:e=>e.map((e=>{var t=e.nftLog,n=e.collectionNftLog;return!n||n.type!=i.Bc.COLLECTION_OFFER&&n.type!=i.Bc.COLLECTION_OFFER_CANCELED?t:n})).filter(Boolean),getTradingNftLog:e=>e.map((e=>e.nftLog)).filter(Boolean)};const g=h},48903:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(29439),a=n(1413),s=n(74165),o=n(15861),i=n(93380),c=n(75833),l=n.n(c),d=n(1708),u=n(64037),f=n(39858),p=n(40910),m=n(85658),h=n(43621),g=n(97282),_=n(75219),v=n(84711),b={getSellTotalPriceStr:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,c,l,d;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.price,r=e.amount,a=void 0===r?1:r,o=e.currency,c=e.chain,l=i.yx.mul(n,a),d=v.Z.fixTokenAmount(l,null===o||void 0===o?void 0:o.decimals),!u.Ay.includes(Number(c))||(null===o||void 0===o?void 0:o.value)!==f.yK){t.next=7;break}return t.next=6,v.Z.fixMainTokenAmount(l);case 6:d=t.sent;case 7:return t.abrupt("return",d);case 8:case"end":return t.stop()}}),t)})))(),getOnChainInfoByRpc:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i,c,d;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.chain,r=e.params,t.prev=1,n!=u.Bv.SUI){t.next=6;break}a="/priapi/v1/wallet/rpc/send?chainId=784",t.next=11;break;case 6:return t.next=8,g.Z.getRpcSendPath();case 8:o=t.sent,i=o.data.find((e=>e.chainId==n)),a=null===i||void 0===i?void 0:i.rpcSendPath;case 11:return t.next=13,l().post(a,r);case 13:return c=t.sent,d=c.data,t.abrupt("return",d);case 18:return t.prev=18,t.t0=t.catch(1),t.t0,t.abrupt("return",null);case 22:case"end":return t.stop()}}),t,null,[[1,18]])})))(),getTradeBuyByOrders:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i,c;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,o=null===(n=a[0])||void 0===n||null===(r=n.nftInfo)||void 0===r?void 0:r.chain,i=a.map((e=>{var t=e.nftInfo,n=e.orderInfo,r=e.tradeData,a=void 0===r?{}:r;return{orderId:n.id,nftId:t.id,takeCount:a.tradeAmount||n.count}})),t.next=5,d.Z.getWalletAccount();case 5:return c=t.sent,t.abrupt("return",g.Z.getTradeBuyByOrders({chain:o,items:i,walletAddress:c}));case 7:case"end":return t.stop()}}),t)})))(),getTradeAcceptOfferByOrders:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i,c;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,o=null===(n=a[0])||void 0===n||null===(r=n.nftInfo)||void 0===r?void 0:r.chain,i=a.map((e=>{var t=e.nftInfo,n=e.orderInfo,r=e.tradeData,a=void 0===r?{}:r;return{orderId:n.id,nftId:t.id,takeCount:a.tradeAmount||n.count}})),t.next=5,d.Z.getWalletAccount();case 5:return c=t.sent,t.abrupt("return",g.Z.getTradeAcceptOfferByOrders({chain:o,items:i,walletAddress:c}));case 7:case"end":return t.stop()}}),t)})))(),getTradeCancelByOrders:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i,c,l;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,o=null===(n=a[0])||void 0===n||null===(r=n.orderInfo)||void 0===r?void 0:r.chain,i=a.map((e=>e.orderInfo.id)),t.next=5,d.Z.getWalletAccount();case 5:return c=t.sent,t.next=8,g.Z.getTradeCancelByOrders({chain:o,orderIds:i,walletAddress:c});case 8:return l=t.sent,t.abrupt("return",l);case 10:case"end":return t.stop()}}),t)})))(),getTradeCreateListing:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,i,c,l,u;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,i=null===(n=a[0])||void 0===n||null===(r=n.nftInfo)||void 0===r?void 0:r.chain,t.next=4,Promise.all(a.map(function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,a,o,c,l,d,u,f;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nftInfo,r=t.marketInfo.source,a=t.tradeData,o=a.amount,c=a.expireTime,l=a.priceData,d=l.price,u=l.currency,e.next=3,b.getSellTotalPriceStr({price:d,currency:u,chain:i});case 3:return f=e.sent,e.abrupt("return",{nftId:null===n||void 0===n?void 0:n.id,price:f,currencyAddress:null===u||void 0===u?void 0:u.value,count:o,validTime:c,source:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:return c=t.sent,t.next=7,d.Z.getWalletAccount();case 7:return l=t.sent,t.next=10,g.Z.getTradeCreateListing({chain:i,walletAddress:l,items:c});case 10:return u=t.sent,t.abrupt("return",u);case 12:case"end":return t.stop()}}),t)})))(),getTradeCreateCollectionOffer:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,i,c,l,u;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,i=null===(n=a[0])||void 0===n||null===(r=n.collectionInfo)||void 0===r?void 0:r.chain,t.next=4,Promise.all(a.map(function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,a,o,c,l,d,u,f;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.collectionInfo,r=t.marketInfo.source,a=t.tradeData,o=a.amount,c=a.expireTime,l=a.priceData,d=l.price,u=l.currency,e.next=3,b.getSellTotalPriceStr({price:d,currency:u,chain:i});case 3:return f=e.sent,e.abrupt("return",{project:null===n||void 0===n?void 0:n.project,price:f,currencyAddress:null===u||void 0===u?void 0:u.value,count:o,validTime:c,source:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:return c=t.sent,t.next=7,d.Z.getWalletAccount();case 7:return l=t.sent,t.next=10,g.Z.getTradeCreateCollectionOffer({chain:i,walletAddress:l,items:c});case 10:return u=t.sent,t.abrupt("return",u);case 12:case"end":return t.stop()}}),t)})))(),getTradeCreateOffer:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,i,c,l,u;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,i=null===(n=a[0])||void 0===n||null===(r=n.nftInfo)||void 0===r?void 0:r.chain,t.next=4,Promise.all(a.map(function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,a,o,c,l,d,u,f;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nftInfo,r=t.marketInfo.source,a=t.tradeData,o=a.amount,c=a.expireTime,l=a.priceData,d=l.price,u=l.currency,e.next=3,b.getSellTotalPriceStr({price:d,currency:u,chain:i});case 3:return f=e.sent,e.abrupt("return",{nftId:null===n||void 0===n?void 0:n.id,price:f,currencyAddress:null===u||void 0===u?void 0:u.value,count:o,validTime:c,source:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:return c=t.sent,t.next=7,d.Z.getWalletAccount();case 7:return l=t.sent,t.next=10,g.Z.getTradeCreateOffer({chain:i,walletAddress:l,items:c});case 10:return u=t.sent,t.abrupt("return",u);case 12:case"end":return t.stop()}}),t)})))(),getTradeTransfer:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i,c,l,u;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.paramList,o=e.target,i=null===(n=a[0])||void 0===n||null===(r=n.nftInfo)||void 0===r?void 0:r.chain,c=a.map((e=>{var t=e.nftInfo,n=e.tradeData;return{nftId:null===t||void 0===t?void 0:t.id,amount:null===n||void 0===n?void 0:n.amount}})),t.next=5,d.Z.getWalletAccount();case 5:return l=t.sent,t.next=8,g.Z.getTradeTransfer({chain:i,items:c,walletAddress:l,toAddress:o});case 8:return u=t.sent,t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})))(),verifyWallet:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,o,i,c,l,u,f;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.stepActionInfo,r=e.wallet,o=n.message,i=n.post,c=i.body,l=i.endpoint,u=i.method,t.next=4,d.Z.signData({account:r,signData:o});case 4:return f=t.sent,t.next=7,m.Z[u](l,(0,a.Z)((0,a.Z)({},c),{},{signature:f}));case 7:case"end":return t.stop()}}),t)})))(),getStepActionInfoListByActionType(e){var t=e.steps,n=void 0===t?[]:t,r=e.actionType;return(n.find((e=>e.action===r))||{}).items||[]},executeSignStep:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.steps,r=void 0===n?[]:n,a=b.getStepActionInfoListByActionType({steps:r,actionType:p.tl.VERIFY_WALLET_ADDRESS}).filter((e=>"incomplete"===e.status)),t.next=4,d.Z.getWalletAccount();case 4:return o=t.sent,i=a.map((e=>b.verifyWallet({stepActionInfo:e,wallet:o}))),t.abrupt("return",Promise.all(i));case 7:case"end":return t.stop()}}),t)})))(),preExecuteTrade:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,a,o,i,c,l,d,u,f,p,m,h,v,b,y;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.payload,c=e.scene,l=e.orderNftInfoList,d=void 0===l?[]:l,u=e.chain,f=e.from,p=d.map((e=>{var t=e.nftInfo,n=e.orderInfo;return n?{nftId:null===t||void 0===t?void 0:t.id,orderId:null===n||void 0===n?void 0:n.id}:{nftId:null===t||void 0===t?void 0:t.id}})),m={checkTypes:[6],from:f||(null===i||void 0===i?void 0:i.from),to:null===i||void 0===i?void 0:i.to,amount:(null===i||void 0===i?void 0:i.value)||"0",inputData:null===i||void 0===i?void 0:i.data,bizLine:2,tokenAddress:null===i||void 0===i?void 0:i.to,chainId:u||(null===(n=d[0])||void 0===n||null===(a=n.nftInfo)||void 0===a?void 0:a.chain),payload:JSON.stringify({scene:c,infoList:p})},t.next=5,(0,_.Z)(g.Z.preExecuteTrade(m));case 5:if(h=t.sent,v=(0,r.Z)(h,2),!((null===(b=v[1])||void 0===b?void 0:b.length)>0)||null!==(o=b[0])&&void 0!==o&&o.result){t.next=10;break}throw{key:"nft pre transaction error",message:null===(y=b[0])||void 0===y?void 0:y.msg,payload:i};case 10:case"end":return t.stop()}}),t)})))(),getTradeStepActionInfo:e=>(0,o.Z)((0,s.Z)().mark((function t(){var n,r,a,o,i,c,l,d;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.stepActionInfo,!(a=(r=void 0===n?{}:n).post)){t.next=9;break}return o=a.body,i=a.endpoint,c=a.method,t.next=6,m.Z[c](i,o);case 6:return l=t.sent,d=l.data,t.abrupt("return",(null===d||void 0===d?void 0:d.item)||r);case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))(),get1559MaxFeeData:function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t,n,a,o,c,l,f;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.Z.getChainId();case 2:return t=e.sent,e.next=5,d.Z.getWalletType();case 5:if(n=e.sent,!u.Ay.includes(t)||![p.Pi.METAMASK,p.Pi.OKX_WALLET].includes(n)){e.next=21;break}return e.next=9,d.Z.getWeb3();case 9:return a=e.sent,o=u.c6[t].key,e.next=13,(0,_.Z)(h.Z.getGasPrice({network:o}));case 13:if(c=e.sent,l=(0,r.Z)(c,2),!(f=l[1])||!f.supportEip1559){e.next=18;break}return e.abrupt("return",{maxFeePerGas:a.utils.toWei(i.yx.ceilTruncate(f.average,5),"gwei"),maxPriorityFeePerGas:a.utils.toWei(i.yx.ceilTruncate(f.proposePriorityFee,5),"gwei")});case 18:if(!f||f.supportEip1559){e.next=20;break}return e.abrupt("return",{gasPrice:a.utils.toWei(i.yx.ceilTruncate(f.average,5),"gwei")});case 20:case 21:return e.abrupt("return",null);case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getEstimateGasLimit:function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,a,o,c;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.payload,e.next=3,d.Z.getChainId();case 3:return r=e.sent,e.next=6,d.Z.getWalletType();case 6:if(a=e.sent,!u.Ay.includes(r)||![p.Pi.METAMASK,p.Pi.OKX_WALLET].includes(a)){e.next=21;break}return e.next=10,d.Z.getWeb3();case 10:return o=e.sent,e.prev=11,e.next=14,o.eth.estimateGas(n);case 14:return c=e.sent,e.abrupt("return",i.yx.mul(c,1.2).toFixed());case 18:return e.prev=18,e.t0=e.catch(11),e.abrupt("return",null);case 21:return e.abrupt("return",null);case 22:case"end":return e.stop()}}),e,null,[[11,18]])})));return function(t){return e.apply(this,arguments)}}(),getBuyStepConfig:function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,a,o,i,c,l,d,u,f,m,h,g;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.orderList,a=t.nftInfoList,o=t.orderInfoList,(i=n)||(i=o.map((e=>{var t=a.find((t=>e.nftId===t.id));return t?{orderInfo:e,nftInfo:t}:null})).filter(Boolean)),e.next=5,(0,_.Z)(b.getTradeBuyByOrders({paramList:i}));case 5:if(c=e.sent,l=(0,r.Z)(c,2),d=l[0],u=l[1],m=(f=u||{}).errors,h=f.steps,!d&&null!==h&&void 0!==h&&h.length){e.next=12;break}return e.abrupt("return",Promise.reject());case 12:return e.next=14,b.executeSignStep({steps:h});case 14:return g=b.getStepActionInfoListByActionType({steps:h,actionType:p.tl.TAKE_ORDERS}),e.abrupt("return",{errorOrders:m,stepActionInfoList:g});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const y=b},84711:(e,t,n)=>{n.d(t,{$:()=>C,Z:()=>T});var r=n(74165),a=n(15861),s=n(53949),o=n(93380),i=n(14300),c=n(60378),l=n(46430),d=n(35686),u=n(5285),f=(n(92643),n(24627)),p=n.n(f),m=n(1708),h=n(31864),g=n(64037),_=n(9271),v=n(40910),b=n(91002),y=n(14001),A={getCdnUrl(e){var t=s.Z.cdnBaseUrl;return e&&"".concat(t).concat(e)},formatAddr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.firstDigits,r=void 0===n?6:n,a=t.lastDigits,s=void 0===a?3:a,o=t.placeholder,i=void 0===o?"...":o;if(e&&e.length>20){var c=e.substring(0,r),l=e.substring(e.length-s,e.length);return"".concat(c).concat(i).concat(l)}return e},formatNumber2Digit:e=>e>99?"99+":e,checkWToken:e=>[_.ZP.woktAddr,_.ZP.wethAddr,_.ZP.wmaticAddr,_.ZP.wavaxAddr].includes(e),fixTokenAmount:(e,t)=>e>0&&t>0?o.yx.toPlainString(o.yx.mul(e,o.yx.pow(10,t))):e,fixMainTokenAmount:e=>(0,a.Z)((0,r.Z)().mark((function t(){var n;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.Z.getWeb3();case 2:return n=t.sent,t.abrupt("return",n.utils.toWei(e.toString(),"ether"));case 4:case"end":return t.stop()}}),t)})))(),commNotification(e,t,n){e===v.IX.FAILD?d.Z.error({content:t,desc:n,autoWidth:!0}):e===v.IX.SUCC?d.Z.success({content:t,desc:n,autoWidth:!0}):e===v.IX.INFO&&d.Z.info({content:t,desc:n,autoWidth:!0})},onWalletChange(e){var t=s.Z.onchain,n=(void 0===t?{}:t).onWalletDataChange;n&&n(e)},removeWalletChange(e){var t=s.Z.onchain,n=(void 0===t?{}:t).offWalletDataChange;n&&n(e)},switchEthDialog:(e,t)=>(0,a.Z)((0,r.Z)().mark((function a(){var s,o,c,l,d,u;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(6262),n.e(2658),n.e(4935),n.e(8093),n.e(8800),n.e(8267),n.e(8378),n.e(715),n.e(8897),n.e(9455),n.e(6373),n.e(2088),n.e(6181),n.e(9186),n.e(5775),n.e(8297),n.e(4019)]).then(n.bind(n,84429));case 2:o=r.sent,c=o.Dialog,l=null===(s=g.c6[e])||void 0===s?void 0:s.name,d=t||(0,i.O4)("nft_market_modal_switch_network_tips",{chainName:l}),u=c.info({title:(0,i.O4)("nft_market_modal_switch_network_title"),text:d,confirmText:(0,i.O4)("nft_comm_btn_confirm"),onConfirm:()=>{u.destroy()}});case 7:case"end":return r.stop()}}),a)})))(),getNftStatusImg(e){var t=s.Z.locale,n={zh_CN:{[v.s5.REVIEWING]:this.getCdnUrl("/cdn/assets/imgs/219/0714C94F01222007.png"),[v.s5.REVIEW_FAILD]:this.getCdnUrl("/cdn/assets/imgs/219/823B0379897483CD.png"),[v.s5.SOLD_OUT]:this.getCdnUrl("/cdn/assets/imgs/219/16AC46B6247B568D.png"),[v.s5.LOAD_ERROR]:this.getCdnUrl("/cdn/assets/imgs/2112/7D2052A5521ECB7A.png"),[v.s5.DEFAULT_HEAD]:this.getCdnUrl("/cdn/assets/imgs/2112/C9170725445DB2A7.png")},en_US:{[v.s5.REVIEWING]:this.getCdnUrl("/cdn/assets/imgs/218/E8DC325C2C797757.png"),[v.s5.REVIEW_FAILD]:this.getCdnUrl("/cdn/assets/imgs/218/3D4BB1CB5974BD71.png"),[v.s5.SOLD_OUT]:this.getCdnUrl("/cdn/assets/imgs/218/12C9221EAFBC137A.png"),[v.s5.LOAD_ERROR]:this.getCdnUrl("/cdn/assets/imgs/2112/7D2052A5521ECB7A.png"),[v.s5.DEFAULT_HEAD]:this.getCdnUrl("/cdn/assets/imgs/2112/C9170725445DB2A7.png")}};return"zh_CN"===t?n.zh_CN[e]:n.en_US[e]},getValidTime(e){if(!e)return(0,i.O4)("nftmarket_ordinalsinfo_notif_longterm_validity");var t=Date.now(),n=Number(e)-t,r=Math.floor.bind(null),a=n/60/60/24/1e3,s=24*(a-r(a)),c=60*(s-r(s));return a>=365?">1".concat((0,i.O4)("nftorders_mylistings_list_colbody_year")):a>=1?(0,i.O4)("nftmarket_list_text_expiretime",{day:o.yx.floorTruncateShort(a,{needK:!1}),hour:r(s)}):c>=1?(0,i.O4)("nft_util_time_hh_mm",{hour:r(s),minute:r(c)}):"<1".concat((0,i.O4)("nft_util_time_minute"))},fixTdk(e,t){e&&(document.title=e),t&&document.querySelector('meta[name="description"]').setAttribute("content",t)},getContentFromJavaWebLocale(e,t){if(!(0,c.y)())try{var n=JSON.parse(window.javaweb_locale)[e];if(!t)return n;var r=[];return Object.keys(t).forEach((e=>{r.push({regexp:"{".concat(e,"}"),param:t[e]})})),r.reduce(((e,t)=>e.replaceAll(t.regexp,t.param)),n)}catch(a){}return""},judgePriceLength(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,n=e.toString();return(n.includes(".")?n.length-1:n.length)<=t},linkToDashboard(e){var t=e.address,n=e.chain,r=g.xA[n]||g.xA[g.Bv.ETH],a=(0,h.ip)().onchain.track.replace(":tab","nft");return a=(a=a.replace(":address",t)).replace(":coinId",r),"".concat(a)},clicklinkToDashboard(e){var t=e.address,n=e.chain;(0,y.Kk)(A.linkToDashboard({address:t,chain:n}))},getRealContractAddress(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e.substring(0,13)+e.substring(13+t,e.length)},handleCopyAddress(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"copy-address-input",n=document.getElementById(t),r=!1;n||(r=!0,n=document.createElement("input"),document.body.appendChild(n)),n.readOnly="readOnly",n.value=e,n.select(),document.execCommand("copy"),r&&document.body.removeChild(n),u.Z.success({title:(0,i.O4)("nft_nftmarket_btn_copy_address_text")})},padLeft(e,t,n){var r=n||"0",a="".concat(e);return a.length>=t?a:new Array(t-a.length+1).join(r)+a},dateFormat(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss",n=new Date(1e3*e||new Date),r=e=>String(e).replace(/^(\d)$/,"0$1"),a={yyyy:n.getFullYear(),yy:n.getFullYear().toString().substring(2),M:n.getMonth()+1,MM:r(n.getMonth()+1),d:n.getDate(),dd:r(n.getDate()),hh:r(n.getHours()),mm:r(n.getMinutes()),ss:r(n.getSeconds())};return t.replace(/([a-z])(\1)*/gi,(e=>a[e]))},clipboard:b.Z,sleep:e=>(0,a.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((t=>{setTimeout((()=>{t()}),e)})));case 1:case"end":return t.stop()}}),t)})))(),checkIsCollectionOffer:e=>[25,26].includes(e),getChgSet(){var e=p().preference,t=(void 0===e?{}:e).getChgSet,n={"--color-up-text":"#19cc5b","--color-down-text":"#f1507b","--color-up-bg":"#19cc5b","--color-down-bg":"#f1507b","--color-up-text-rgb":"25,204,91","--color-down-text-rgb":"241,80,123","--color-up-bg-rgb":"25,204,91","--color-down-bg-rgb":"241,80,123"},r={isRedUp:!1,color:n};return t&&t((e=>{if(e){var t=e.color,a=void 0===t?n:t,s=e.isRedUp,o=void 0!==s&&s;r.color=a,r.isRedUp=o}})),r},getCollectionPageSize(e){var t=24;switch(e){case"xl":default:t=24;break;case"md":t=18;break;case"sm":t=8}return t},verifyWalletIdOfChain:e=>(0,a.Z)((0,r.Z)().mark((function t(){var n,a,s,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.Z.getWalletStorage();case 2:return n=t.sent,a=n.chainToCoinId(e),s=l.Z.get("connectedAccount")||{},o=(null===s||void 0===s?void 0:s.coinId)||[],t.abrupt("return",o.includes(a));case 7:case"end":return t.stop()}}),t)})))(),getMonitorAddress(){var e,t,n,r=l.Z.get("connectedAccount")||{};return null!==r&&void 0!==r&&r.address&&(null===r||void 0===r||null===(e=r.address)||void 0===e?void 0:e.length)>1?n=r.address.find((e=>"0x"==e.slice(0,2))):null!==r&&void 0!==r&&r.address&&1===(null===r||void 0===r||null===(t=r.address)||void 0===t?void 0:t.length)&&(n=r.address[0]),n||""}},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=0;return new Promise(((o,i)=>{var c=setInterval((0,a.Z)((0,r.Z)().mark((function t(){var a,l;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(s{var r=n(27424).default,a=n(74704).default,s=n(35459),o=n(76571),i=n(90052),c=n(79267),l=Symbol("encodeFragmentIdentifier");function d(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?s(e):encodeURIComponent(e):e}function f(e,t){return t.decode?o(e):e}function p(e){return Array.isArray(e)?e.sort():"object"===typeof e?p(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function m(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){var t=(e=m(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function g(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function _(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{var a="string"===typeof n&&n.includes(e.arrayFormatSeparator),s="string"===typeof n&&!a&&f(n,e).includes(e.arrayFormatSeparator);n=s?f(n,e):n;var o=a||s?n.split(e.arrayFormatSeparator).map((t=>f(t,e))):null===n?n:f(n,e);r[t]=o};case"bracket-separator":return(t,n,r)=>{var a=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),a){var s=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>f(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],s):r[t]=s}else r[t]=n?f(n,e):n};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),s=Object.create(null);if("string"!==typeof e)return s;if(!(e=e.trim().replace(/^[?#&]/,"")))return s;var o,c=a(e.split("&"));try{for(c.s();!(o=c.n()).done;){var l=o.value;if(""!==l){var u=i(t.decode?l.replace(/\+/g," "):l,"="),m=r(u,2),h=m[0],_=m[1];_=void 0===_?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?_:f(_,t),n(f(h,t),_,s)}}}catch(N){c.e(N)}finally{c.f()}for(var v=0,b=Object.keys(s);v{var n=s[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=p(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=_,t.stringify=(e,t)=>{if(!e)return"";d((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{var a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",a,"]"].join("")]:[...n,[u(t,e),"[",u(a,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),":list="].join("")]:[...n,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:(a=null===a?"":a,0===r.length?[[u(n,e),t,u(a,e)].join("")]:[[r,u(a,e)].join(e.arrayFormatSeparator)]);default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),a={},s=0,o=Object.keys(e);s{var a=e[n];return void 0===a?"":null===a?u(n,t):Array.isArray(a)?0===a.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":a.reduce(r(n),[]).join("&"):u(n,t)+"="+u(a,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);var n=i(e,"#"),a=r(n,2),s=a[0],o=a[1];return Object.assign({url:s.split("?")[0]||"",query:_(h(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:f(o,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[l]:!0},n);var r=m(e.url).split("?")[0]||"",a=t.extract(e.url),s=t.parse(a,{sort:!1}),o=Object.assign(s,e.query),i=t.stringify(o,n);i&&(i="?".concat(i));var c=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c="#".concat(n[l]?u(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(r).concat(i).concat(c)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[l]:!1},r);var a=t.parseUrl(e,r),s=a.url,o=a.query,i=a.fragmentIdentifier;return t.stringifyUrl({url:s,query:c(o,n),fragmentIdentifier:i},r)},t.exclude=(e,n,r)=>{var a=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,a,r)}},87130:(e,t,n)=>{var r=new Error;e.exports=new Promise(((e,t)=>{if("undefined"!==typeof dex)return e();n.l("dex",(n=>{if("undefined"!==typeof dex)return e();var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;r.message="Loading script failed.\n("+a+": "+s+")",r.name="ScriptExternalLoadError",r.type=a,r.request=s,t(r)}),"dex")})).then((()=>dex))},87363:e=>{e.exports=React},61533:e=>{e.exports=ReactDOM},66711:e=>{e.exports=ReactRouterDOM},90915:e=>{e.exports=WebSocketCore},27821:e=>{e.exports=mobx},24627:e=>{e.exports=okxGlobal},75833:e=>{e.exports=utils.ont}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=e,n.amdO={},(()=>{var e=[];n.O=(t,r,a,s)=>{if(!r){var o=1/0;for(d=0;d=s)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(i=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[r,a,s]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var s=Object.create(null);n.r(s);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(s,o),s}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>2658===e?"2658/index.9a33aaed.js":4935===e?"4935/index.daba66d1.js":8093===e?"8093/index.48ad7599.js":8800===e?"8800/index.06eef6b2.js":8378===e?"8378/index.d6c82371.js":715===e?"715/index.eddf93e4.js":8897===e?"8897/index.3ca12b5a.js":9455===e?"9455/index.8aa58270.js":6373===e?"6373/index.57f993f1.js":2088===e?"2088/index.812991ef.js":6181===e?"6181/index.a0fd2895.js":9186===e?"9186/index.fe27b627.js":5775===e?"5775/index.f234e759.js":8213===e?"8213/index.d0117023.js":5442===e?"5442/index.b0d0e07b.js":"common/"+e+"."+{149:"29d8f02b",193:"76c6f317",254:"44822bec",319:"2eca106b",546:"857aefb6",638:"01640005",686:"d589ec47",1012:"a9c0b17e",1019:"34ad3e32",1153:"68b0fa7b",1165:"3196a220",1215:"9b35ba29",1282:"9e4e5e94",1286:"3cd1191f",1347:"d1ef01fe",1386:"776e7638",1465:"5b6783ea",1597:"c1510e93",1656:"75bf2cb1",1754:"5c44a72b",1801:"a8f4a965",1868:"e8e3703d",1922:"cd56bb71",2050:"c95e11ba",2284:"94519477",2413:"a02831be",2682:"94cefa6e",2711:"74cd5559",2743:"ad98224e",2782:"2da122d6",2857:"a59f93dd",3098:"688ece01",3158:"6a9f7279",3492:"a3bfe480",4019:"3de95e7b",4180:"c7b90861",4269:"67010392",4453:"a64df644",4472:"0c77d6a5",4553:"52a8cfde",4562:"3ed2ba90",4621:"ccad978f",4624:"7ec43293",4659:"edbcec02",4682:"81117859",4776:"50a43709",4786:"f48a9356",4878:"6abced30",4967:"86e6bad3",4975:"f400c58b",4995:"7c2adef8",5024:"9ddeed32",5117:"2e995ef6",5120:"c83b9a6a",5128:"abc8dcf9",5183:"d6259b36",5275:"cab06243",5315:"6d245f7b",5373:"3e0e92b0",5460:"80898fab",5533:"77517c1e",5606:"a561a034",5711:"6b78dd40",5834:"60432131",5865:"f33cf23b",6135:"672969db",6247:"52989e76",6268:"84c5d369",6277:"768636b1",6359:"85fc6d80",6503:"bc5602ad",6601:"011566cb",6681:"900a52ba",6690:"82f06ffc",6703:"3194acfb",6735:"41b94617",6835:"98976dc9",6896:"488ecef8",7040:"11997521",7105:"a0d1b227",7230:"11b70d8c",7303:"6b3ef6e8",7444:"c5036ea2",7451:"9a998cdf",7453:"4142b173",7483:"c6346ca6",7634:"cb1c7720",7701:"c19aea8e",8105:"d1481ad9",8297:"0ba48fa9",8464:"e5f9d45f",8477:"16d2c826",8530:"3e5b263b",8860:"a2a9f515",8976:"60a8b9b3",9008:"ea626b88",9085:"ca6b9dd8",9182:"f03b153d",9280:"1bcb558d",9434:"28db28da",9482:"11290d22",9714:"73f80983",9837:"0e3c1e9c"}[e]+".js",n.miniCssF=e=>8093===e?"8093/index.144c623a.css":8800===e?"8800/index.e7e31ecb.css":8378===e?"8378/index.1e90f312.css":9455===e?"9455/index.8a3cf2de.css":2088===e?"2088/index.dafe3361.css":6181===e?"6181/index.05aaf4d6.css":9186===e?"9186/index.749faa4f.css":"common/"+e+"."+{149:"72198358",193:"49559230",319:"c410d1e4",686:"a13d581d",1153:"78e580dc",1597:"951b622f",1754:"1d3eb478",1868:"6a858a4b",2711:"63816d81",4019:"eaaf7e9a",4269:"98195dc9",4453:"32ce4896",4472:"d03e4d4e",4776:"e0d9bf3c",4786:"93ff0bad",4878:"71726719",5865:"dff336b6",6135:"a37dc7a6",6247:"cec33935",6268:"cc53ee84",6277:"77e3067c",6359:"db887d30",6681:"b57bbad8",6735:"729c1125",7453:"decb2e59",7483:"6a9459fe",7701:"7f778899",8105:"b651ac31",8297:"4e88cadf",8477:"fd215736",8860:"a5de286b",9008:"5f759a4a"}[e]+".css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="defi-mode:";n.l=(r,a,s,o)=>{if(e[r])e[r].push(a);else{var i,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),d=0;d{i.onerror=i.onload=null,clearTimeout(p);var a=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={4621:[44621]},t={44621:["default","./DialogSwapContainer",87130]};n.f.remotes=(r,a)=>{n.o(e,r)&&e[r].forEach((e=>{var r=n.R;r||(r=[]);var s=t[e];if(!(r.indexOf(s)>=0)){if(r.push(s),s.p)return a.push(s.p);var o=t=>{t||(t=new Error("Container missing")),"string"===typeof t.message&&(t.message+='\nwhile loading "'+s[1]+'" from '+s[2]),n.m[e]=()=>{throw t},s.p=0},i=(e,t,n,r,i,c)=>{try{var l=e(t,n);if(!l||!l.then)return i(l,r,c);var d=l.then((e=>i(e,r)),o);if(!c)return d;a.push(s.p=d)}catch(u){o(u)}},c=(e,t,n)=>i(t.get,s[1],r,0,l,n),l=t=>{s.p=1,n.m[e]=e=>{e.exports=t()}};i(n,s[2],0,0,((e,t,r)=>e?i(n.I,s[0],0,e,c,r):o()),1)}}))}})(),n.j=8719,(()=>{n.S={};var e={},t={};n.I=(r,a)=>{a||(a=[]);var s=t[r];if(s||(s=t[r]={}),!(a.indexOf(s)>=0)){if(a.push(s),e[r])return e[r];n.o(n.S,r)||(n.S[r]={});n.S[r];var o=[];if("default"===r)(e=>{var t=e=>{return t="Initialization of sharing external failed: "+e,void("undefined"!==typeof console&&console.warn&&console.warn(t));var t};try{var s=n(e);if(!s)return;var i=e=>e&&e.init&&e.init(n.S[r],a);if(s.then)return o.push(s.then(i,t));var c=i(s);if(c&&c.then)return o.push(c.catch(t))}catch(l){t(l)}})(87130);return o.length?e[r]=Promise.all(o).then((()=>e[r]=1)):e[r]=1}}})(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&!e;)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{try{if(n.miniCssF){var e=n.miniCssF;n.miniCssF=function(t){var n=e(t);if("string"!==typeof n)return n;var r=window._okGlobal||window.okGlobal;return r&&r.isRTL&&/\.css$/.test(n)?n.replace(/\.css$/,".rtl.css"):n}}}catch(t){}})(),(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var a=n.miniCssF(e),s=n.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)r();else{var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=i,s.parentNode&&s.parentNode.removeChild(s),a(c)}},s.href=t,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)})(e,s,null,t,r)})),t={8719:0,8610:0,7303:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{149:1,193:1,319:1,686:1,1153:1,1597:1,1754:1,1868:1,2088:1,2711:1,4019:1,4269:1,4453:1,4472:1,4776:1,4786:1,4878:1,5865:1,6135:1,6181:1,6247:1,6268:1,6277:1,6359:1,6681:1,6735:1,7453:1,7483:1,7701:1,8093:1,8105:1,8297:1,8378:1,8477:1,8800:1,8860:1,9008:1,9186:1,9455:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8719:0,8610:0,7303:0,3743:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else if(/^((374|745|809)3|4621|8378)$/.test(t))e[t]=0;else{var s=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=s);var o=n.p+n.u(t),i=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+s+": "+o+")",i.name="ChunkLoadError",i.type=s,i.request=o,a[1](i)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,r)=>{var a,s,[o,i,c]=r,l=0;if(o.some((t=>0!==e[t]))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(c)var d=c(n)}for(t&&t(r);ln(85743)));r=n.O(r)})(); +//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/defi-mode/nftDetail/index.b71f47ce.js.map \ No newline at end of file diff --git a/index.bc9456bc.js.download b/index.bc9456bc.js.download new file mode 100644 index 0000000..9886392 --- /dev/null +++ b/index.bc9456bc.js.download @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkdefi_mode=self.webpackChunkdefi_mode||[]).push([[3514],{58463:(e,t,n)=>{n.d(t,{q9:()=>s.Z});var s=n(52528);n(70269)},3447:(e,t,n)=>{n.d(t,{Z:()=>k});var s=n(1413),r=n(87363),o=n(86451),c=n(70991),a=n(14300),i=n(74165),u=n(15861),f=n(29439),d=n(93380),p=n(39858),l=n(40910),_=n(10680),x=n(22333),I=n(21401),h=n(77902),m={getAcceptOfferConfig:function(){var e=(0,u.Z)((0,i.Z)().mark((function e(t){var n,s,r,o,c,a,u,f,p,l;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nftInfo,s=t.orderInfo,r=t.stepActionInfo,o=s.price,c=s.count,e.next=4,(0,h.X5)({nftInfo:n,orderInfo:s});case 4:return a=e.sent,u=d.yx.mul(d.yx.mul(o,c),d.yx.div(a.taxFeeRate,1e4)),f=d.yx.mul(a.serviceFee||0,1e-4),p=d.yx.mul(d.yx.mul(o,c),f),l=d.yx.sub(d.yx.mul(o,c),d.yx.add(u,p)),e.abrupt("return",{taxFee:d.yx.floorTruncate(u,4,!1),serviceFee:d.yx.floorTruncate(p,4,!1),profit:d.yx.floorTruncate(l,4,!1),taxFeeRate:d.yx.div(a.taxFeeRate,100),serviceFeeRate:f,nftInfo:n,orderInfo:s,stepActionInfo:r});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),getAcceptOfferConfigList:function(){var e=(0,u.Z)((0,i.Z)().mark((function e(t){var n,s,r,o,c,a,u,f;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.orderInfoList,s=t.nftInfoList,r=t.tradeInfo,o=t.stepActionInfoList,c=s[0].chain,a=I.tradeUtil.getStepActionInfoListByActionType({steps:o,actionType:l.tl.TAKE_ORDERS}),u=[],n.forEach(((e,t)=>{var n=s[t];n&&u.push(m.getAcceptOfferConfig({orderInfo:e,nftInfo:n,stepActionInfo:a[t]}))})),e.next=7,Promise.all(u);case 7:return f=e.sent,e.abrupt("return",[{offerList:f,chain:c,tradeInfo:r}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),acceptOffer:function(){var e=(0,u.Z)((0,i.Z)().mark((function e(t){var n,r,o,c,a,u,f,d,p;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.offerList,r=t.tradeInfo,a=n[0]||{},u=a.nftInfo,f=a.orderInfo,d=a.stepActionInfo,e.prev=2,e.next=5,I.default[I.TRADE_TYPE.ACCEPT_OFFER]({orderInfo:f,nftInfo:u,stepActionInfo:d,tradeData:(0,s.Z)({},r)});case 5:p=e.sent,c=null===p||void 0===p?void 0:p.txHash,o=(null===p||void 0===p?void 0:p.status)===l.jG.SUCCESS?l.Ez.SUCCESS:l.Ez.WARNING,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),o=l.Ez.WARNING;case 13:return e.abrupt("return",{processedResultStatus:o,processedResultPayload:{txHash:c}});case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),acceptOfferExecutor:function(){var e=(0,u.Z)((0,i.Z)().mark((function e(t){var n,r,o,c,a,u,f,d,p,_;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processInfo,r=t.processedCallback,o=n.status,c=n.processConfig,a=c.offerList,u=c.chain,f=c.tradeInfo,o==l.Ez.SUCCESS){e.next=12;break}return r((0,s.Z)((0,s.Z)({},n),{},{status:l.Ez.EXECUTING})),e.next=6,m.acceptOffer({offerList:a,chain:u,tradeInfo:f});case 6:d=e.sent,p=d.processedResultStatus,_=d.processedResultPayload,r((0,s.Z)((0,s.Z)({},n),{},{processedResultPayload:_,status:p})),e.next=13;break;case 12:r(n);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const Z=m;var v=n(14792),E=n(82148),g=n(45271);const y=class extends v.Z{constructor(e){var t=e.nftInfoList,n=e.orderInfoList,s=e.tradeInfo,r=e.stepActionInfoList,o=e.onProcessChange;super(),this.setProcessChangeHandler((function(){o&&o(...arguments)})),this.setProcessExecutor(Z.acceptOfferExecutor),Z.getAcceptOfferConfigList({nftInfoList:t,orderInfoList:n,tradeInfo:s,stepActionInfoList:r}).then((e=>{this.init({processConfigList:e})})).catch((e=>{(0,g.H)(E.I.tradeError,e)}))}};var S=e=>{var t=e.nftInfoList,n=e.orderInfoList,o=e.tradeInfo,c=e.stepActionInfoList,a=(0,r.useState)([]),I=(0,f.Z)(a,2),h=I[0],m=I[1],v=(0,x.jD)("AcceptOffer",h),E=v.processStatus,g=v.setStatusToFinished,S=v.setStatusToSuccess,C=v.setStatusToFailed,L=v.setStatusToRetry,A=(0,r.useState)(!1),R=(0,f.Z)(A,2),k=R[0],T=R[1],b=(0,r.useMemo)((()=>[l.DZ.EXECUTING,l.DZ.RETRYING].includes(E)),[E]),N=(0,r.useState)([]),j=(0,f.Z)(N,2),w=j[0],F=j[1],P=(0,r.useState)(),G=(0,f.Z)(P,2),O=G[0],U=G[1],z=(0,r.useRef)(),H=(0,r.useMemo)((()=>{var e=w.reduce(((e,t)=>{var n=t.profit,s=t.taxFee,r=t.serviceFee;return{profit:d.yx.add(e.profit,n),taxFee:d.yx.add(e.taxFee,s),serviceFee:d.yx.add(e.serviceFee,r)}}),{profit:0,taxFee:0,serviceFee:0});return(0,s.Z)((0,s.Z)({},e),{},{currencyLabel:p.Cq.weth.label})}),[w]),D=e=>{var t=e.processInfo,n=e.processInfoList,s=t.processedResultPayload.txHash;U(s),(e=>{e.some((e=>e.status!=l.Ez.SUCCESS))?e.some((e=>e.status===l.Ez.FAILED||e.status===l.Ez.WARNING))&&(C(),T(!0)):(S(),g(),T(!1))})(n),m([...n])},X=function(){var e=(0,u.Z)((0,i.Z)().mark((function e(){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t[0].chain,(0,_.hl)({chain:n,txHash:O});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=(0,u.Z)((0,i.Z)().mark((function e(){var s,r,a,u;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z.getAcceptOfferConfigList({nftInfoList:t,orderInfoList:n,tradeInfo:o,stepActionInfoList:c});case 2:s=e.sent,r=(0,f.Z)(s,1),a=r[0],u=a.offerList,F(u);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((()=>{z.current=new y({nftInfoList:t,orderInfoList:n,tradeInfo:o,stepActionInfoList:c,onProcessChange:D}),B()}),[]),(0,r.useEffect)((()=>{[l.DZ.EXECUTING,l.DZ.RETRYING].includes(E)&&z.current.run(E)}),[E]),{retry:()=>{L()},showRetry:k,isLoading:b,processInfoList:h,offerList:w,processStatus:E,txHash:O,totalProfitMemo:H,handleClickHash:X}},C=n(36272),L=n(97230);const A={hash:"index_hash__t6v0q","jump-icon":"index_jump-icon__pnRGu",jumpIcon:"index_jump-icon__pnRGu",currency:"index_currency__tg+ZQ","currency-icon":"index_currency-icon__S3pVz",currencyIcon:"index_currency-icon__S3pVz",icon:"index_icon__p2UCB","loading-icon":"index_loading-icon__5GHnM",loadingIcon:"index_loading-icon__5GHnM",loader:"index_loader__HFJpQ","success-icon":"index_success-icon__cDi46",successIcon:"index_success-icon__cDi46","icon-check":"index_icon-check__89G8c",iconCheck:"index_icon-check__89G8c","failed-icon":"index_failed-icon__4Mjs+",failedIcon:"index_failed-icon__4Mjs+","icon-close":"index_icon-close__TStFI",iconClose:"index_icon-close__TStFI","nft-img":"index_nft-img__Hut-x",nftImg:"index_nft-img__Hut-x","platform-img":"index_platform-img__iMwtu",platformImg:"index_platform-img__iMwtu","nft-name":"index_nft-name__qLyX2",nftName:"index_nft-name__qLyX2","nft-price":"index_nft-price__BqvGn",nftPrice:"index_nft-price__BqvGn","sub-title":"index_sub-title__PvwG2",subTitle:"index_sub-title__PvwG2","pay-label":"index_pay-label__kX8-t",payLabel:"index_pay-label__kX8-t","dash-line":"index_dash-line__O+VkH",dashLine:"index_dash-line__O+VkH",title:"index_title__9SIQz","tips-icon":"index_tips-icon__LZX5V",tipsIcon:"index_tips-icon__LZX5V"};var R=n(45263);const k=e=>{var t=e.nftInfoList,n=e.orderInfoList,r=e.tradeInfo,i=e.title,u=e.subTitle,f=e.collapseProps,d=e.stepActionInfoList,p=S({orderInfoList:n,nftInfoList:t,tradeInfo:r,stepActionInfoList:d}),l=p.offerList,_=p.processInfoList,x=p.processStatus,I=p.txHash,h=p.showRetry,m=p.isLoading,Z=p.retry;return(0,R.jsx)(o.Z,(0,s.Z)({title:i,className:A.container,notShowLine:!0,processInfos:l.map((e=>{var t,n=e.orderInfo,r=e.nftInfo,o=e.profit,a=n.currency,i=n.sourceIcon,u=r.name,f=r.resourceUrl,d=r.coverUrl,p=r.project,l=r.tokenId,x=r.projectUrl,h=r.chain,m={name:u,imageUrl:d||f,price:o,currency:a,collectionImage:x,sourceIcon:i,project:p,tokenId:l,txHash:I,chain:h};return{content:(0,R.jsx)(c.Z,(0,s.Z)({},m)),status:null===(t=_[0])||void 0===t?void 0:t.status}})),processStatus:x,addAfterContent:h?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(L.Z,{subTitle:u}),(0,R.jsx)(C.Z,{isLoading:m,retry:Z,errorTip:(0,a.O4)("nftmarket_general_errmsg_accept_offer_error")})]}):(0,R.jsx)(L.Z,{subTitle:u})},f))}},61605:(e,t,n)=>{n.d(t,{Z:()=>T});var s=n(1413),r=n(87363),o=n(14300),c=n(23364),a=n(7562),i=(n(23502),n(95640)),u=n.n(i),f=n(10680),d=n(86451),p=n(36272),l=n(97230),_=n(29439),x=n(40910),I=n(22333),h=n(14792),m=n(82148),Z=n(45271),v=n(74165),E=n(15861),g=n(64397),y=n(48903),S={getApproveNFTConfigForMarkets:function(){var e=(0,E.Z)((0,v.Z)().mark((function e(t){var n,s,r,o,c,a,i,u,f,d;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.stepActionInfoList,s=t.marketInfo,r=t.collectionInfoList,o=[],c=r[0].chain,a=s.source,i=y.Z.getStepActionInfoListByActionType({steps:n,actionType:x.tl.APPROVE_NFT}),e.next=7,y.Z.getTradeStepActionInfo({stepActionInfo:i[0]});case 7:return u=e.sent,f=u.collectionAddress,d=u.approvalAddress,o.push({marketInfo:s,collectionInfo:r[0],approveConfig:{contractAddress:f,operatorAddress:d,chain:c,source:a}}),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),approve:function(){var e=(0,E.Z)((0,v.Z)().mark((function e(t){var n,s,r,o,c,a,i;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.contractAddress,s=t.operatorAddress,r=t.chain,o=t.source,e.prev=1,e.next=4,(0,g.Pd)({contractAddress:n,operatorAddress:s,chain:r});case 4:if(e.sent){e.next=12;break}return e.next=8,(0,g.A9)({contractAddress:n,operatorAddress:s,chain:r,callback:e=>{c=e},source:o});case 8:i=e.sent,a=i?x.Ez.SUCCESS:x.Ez.WARNING,e.next=13;break;case 12:a=x.Ez.SUCCESS;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),a=x.Ez.WARNING;case 18:return e.abrupt("return",{processedResultStatus:a,processedResultPayload:{txHash:c}});case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(t){return e.apply(this,arguments)}}(),approveNFTExecutor:function(){var e=(0,E.Z)((0,v.Z)().mark((function e(t){var n,r,o,c,a,i,u;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processInfo,r=t.processedCallback,o=n.status,c=n.processConfig.approveConfig,o==x.Ez.SUCCESS){e.next=10;break}return r((0,s.Z)((0,s.Z)({},n),{},{status:x.Ez.EXECUTING})),e.next=6,S.approve(c);case 6:a=e.sent,i=a.processedResultStatus,u=a.processedResultPayload,r((0,s.Z)((0,s.Z)({},n),{},{processedResultPayload:u,status:i}));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const C=S,L=class extends h.Z{constructor(e){var t=e.collectionInfoList,n=e.marketInfo,s=e.stepActionInfoList,r=e.onProcessChange;super(),C.getApproveNFTConfigForMarkets({collectionInfoList:t,marketInfo:n,stepActionInfoList:s}).then((e=>{this.init({processConfigList:e})})).catch((e=>{(0,Z.H)(m.I.tradeError,e)})),this.setProcessChangeHandler((function(){r&&r(...arguments)})),this.setProcessExecutor(C.approveNFTExecutor)}};var A=e=>{var t=e.collectionInfoList,n=e.marketInfo,s=e.stepActionInfoList,o=(0,r.useState)([]),c=(0,_.Z)(o,2),a=c[0],i=c[1],u=(0,r.useState)(!1),f=(0,_.Z)(u,2),d=f[0],p=f[1],l=(0,I.jD)("ApproveNFT",a),h=l.processStatus,m=l.setStatusToFinished,Z=l.setStatusToSuccess,v=l.setStatusToFailed,E=l.setStatusToRetry,g=(0,r.useRef)(),y=(0,r.useMemo)((()=>[x.DZ.EXECUTING,x.DZ.RETRYING].includes(h)),[h]),S=e=>{var t=e.processInfoList;i([...t]),(e=>{e.some((e=>e.status===x.Ez.EXECUTING))||(e.some((e=>e.status!=x.Ez.SUCCESS))?e.some((e=>e.status===x.Ez.FAILED||e.status===x.Ez.WARNING))&&(v(),p(!0)):(Z(),m(),p(!1)))})(t)};return(0,r.useEffect)((()=>{var e=new L({collectionInfoList:t,marketInfo:n,stepActionInfoList:s,onProcessChange:S});g.current=e}),[t,n,s]),(0,r.useEffect)((()=>{[x.DZ.EXECUTING,x.DZ.RETRYING].includes(h)&&g.current.run(h)}),[h]),{approveInfoList:a,processStatus:h,retry:()=>{E()},showRetry:d,isLoading:y}};const R={hash:"index_hash__Cvoad","jump-icon":"index_jump-icon__qEPt3",jumpIcon:"index_jump-icon__qEPt3",market:"index_market__-d5Y4","market-icon":"index_market-icon__uQVBF",marketIcon:"index_market-icon__uQVBF","collection-name":"index_collection-name__AeSGz",collectionName:"index_collection-name__AeSGz"};var k=n(45263);const T=e=>{var t=e.collectionInfoList,n=e.marketInfo,r=e.title,i=void 0===r?(0,o.O4)("nftmarket_orderbook_modal_approve_collection"):r,_=e.subTitle,x=e.collapseProps,I=e.stepActionInfoList,h=A({collectionInfoList:t,marketInfo:n,stepActionInfoList:I}),m=h.approveInfoList,Z=h.processStatus,v=h.isLoading,E=h.retry,g=h.showRetry,y=e=>()=>{var n=t[0].chain;(0,f.hl)({chain:n,txHash:e})},S=e=>{var t=e.processConfig,n=e.processedResultPayload,s=t.collectionInfo,r=n.txHash,i=s||{},f=i.projectUrl,d=i.projectName,p=i.resourceUrl;return(0,k.jsxs)("div",{className:u()("flex flex-row justify-between items-center"),children:[(0,k.jsxs)("div",{className:u()("flex flex-row justify-between items-center",R.market),children:[(0,k.jsx)(c.Z,{className:R.marketIcon,src:f||p,useWebp:!1,width:1,height:1,alt:"projectUrl"}),(0,k.jsxs)("div",{className:R.collectionName,children:[d," "]})]}),r&&(0,k.jsxs)("div",{className:u()("shrink-0 flex items-center",R.hash),children:[(0,o.O4)("nftmarket_orderbook_confirm_middle_label_hash"),(0,k.jsx)(a.Z,{className:u()("icon-a-openlink20",R.jumpIcon),onClick:y(r)})]})]},d)};return(0,k.jsx)(d.Z,(0,s.Z)({title:i,className:R.container,processInfos:m.map((e=>({status:e.status,content:S(e)}))),processStatus:Z,addAfterContent:g?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(l.Z,{subTitle:_}),(0,k.jsx)(p.Z,{isLoading:v,retry:E,errorTip:(0,o.O4)("nftmarket_general_errmsg_approve_collection_error")})]}):(0,k.jsx)(l.Z,{subTitle:_})},x))}},37350:(e,t,n)=>{n.d(t,{Z:()=>y});var s=n(1413),r=n(87363),o=n(86451),c=n(70991),a=n(14300),i=n(29439),u=n(40910),f=n(22333),d=n(14792),p=n(74165),l=n(15861),_=n(21401),x={getPurchaseConfig:e=>{var t=e.stepActionInfoList,n=e.nftInfo,s=e.orderInfo;return _.tradeUtil.getStepActionInfoListByActionType({steps:t,actionType:u.tl.CANCEL_ORDERS}).map((e=>({stepActionInfo:e,nftInfo:n,orderInfo:s})))},purchase:function(){var e=(0,l.Z)((0,p.Z)().mark((function e(t){var n,s;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.default[_.TRADE_TYPE.CANCEL_OFFER](t);case 3:s=e.sent,n=u.Ez.SUCCESS,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n=u.Ez.WARNING;case 10:return e.abrupt("return",{processedResultStatus:n,processedResultPayload:{txResult:s}});case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),purchaseExecutor:function(){var e=(0,l.Z)((0,p.Z)().mark((function e(t){var n,r,o,c,a,i,f,d,l;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processInfo,r=t.processedCallback,o=n.processConfig,c=o.stepActionInfo,a=o.nftInfo,i=o.orderInfo,n.status==u.Ez.SUCCESS){e.next=14;break}return r((0,s.Z)((0,s.Z)({},n),{},{status:u.Ez.EXECUTING})),e.next=8,x.purchase({stepActionInfo:c,nftInfo:a,orderInfo:i});case 8:f=e.sent,d=f.processedResultStatus,l=f.processedResultPayload,r((0,s.Z)((0,s.Z)({},n),{},{processedResultPayload:l,status:d})),e.next=15;break;case 14:r(n);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const I=x,h=class extends d.Z{constructor(e){var t=e.onProcessChange,n=e.stepActionInfoList,s=e.nftInfo,r=e.orderInfo;super();var o=I.getPurchaseConfig({stepActionInfoList:n,nftInfo:s,orderInfo:r});this.init({processConfigList:o}),this.setProcessChangeHandler((function(){t&&t(...arguments)})),this.setProcessExecutor(I.purchaseExecutor)}};var m=e=>{var t=e.stepActionInfoList,n=e.nftInfo,s=e.orderInfo,o=(0,r.useState)([]),c=(0,i.Z)(o,2),a=c[0],d=c[1],p=(0,f.jD)("useSign",a),l=p.processStatus,_=p.setStatusToFinished,x=p.setStatusToSuccess,I=p.setStatusToFailed,m=p.setStatusToRetry,Z=(0,r.useRef)(),v=(0,r.useState)(!1),E=(0,i.Z)(v,2),g=E[0],y=E[1],S=(0,r.useMemo)((()=>[u.DZ.EXECUTING,u.DZ.RETRYING].includes(l)),[l]),C=e=>{var t=e.processInfoList;(e=>{e.some((e=>e.status===u.Ez.EXECUTING))||(e.some((e=>e.status!=u.Ez.SUCCESS))?e.some((e=>e.status===u.Ez.FAILED||e.status===u.Ez.WARNING))&&(I(),y(!0)):(x(),_(),y(!1)))})(t),d([...t])};return(0,r.useEffect)((()=>{var e=new h({stepActionInfoList:t,onProcessChange:C,nftInfo:n,orderInfo:s});Z.current=e}),[t]),(0,r.useEffect)((()=>{[u.DZ.EXECUTING,u.DZ.RETRYING].includes(l)&&Z.current.run(l)}),[l]),{retry:()=>{m()},showRetry:g,isLoading:S,processStatus:l,processInfoList:a}},Z=n(36272),v=n(97230);const E={hash:"index_hash__RPHJB","jump-icon":"index_jump-icon__ZKgcT",jumpIcon:"index_jump-icon__ZKgcT",currency:"index_currency__GwGKX","currency-icon":"index_currency-icon__wb15e",currencyIcon:"index_currency-icon__wb15e",icon:"index_icon__WjjgW","loading-icon":"index_loading-icon__xakx1",loadingIcon:"index_loading-icon__xakx1",loader:"index_loader__UvNSH","success-icon":"index_success-icon__a+LaI",successIcon:"index_success-icon__a+LaI","icon-check":"index_icon-check__aZN0h",iconCheck:"index_icon-check__aZN0h","failed-icon":"index_failed-icon__3Kmw2",failedIcon:"index_failed-icon__3Kmw2","icon-close":"index_icon-close__dRkg0",iconClose:"index_icon-close__dRkg0","nft-img":"index_nft-img__z-kR4",nftImg:"index_nft-img__z-kR4","platform-img":"index_platform-img__soOtN",platformImg:"index_platform-img__soOtN","nft-name":"index_nft-name__XBSf4",nftName:"index_nft-name__XBSf4","nft-price":"index_nft-price__pLwC6",nftPrice:"index_nft-price__pLwC6","sub-title":"index_sub-title__1Mx0n",subTitle:"index_sub-title__1Mx0n","pay-label":"index_pay-label__qkWB6",payLabel:"index_pay-label__qkWB6","dash-line":"index_dash-line__RTrx+",dashLine:"index_dash-line__RTrx+",title:"index_title__cquTO"};var g=n(45263);const y=e=>{var t=e.title,n=e.subTitle,r=e.collapseProps,i=e.nftInfo,u=e.orderInfo,f=e.stepActionInfoList,d=m({stepActionInfoList:f,nftInfo:i,orderInfo:u}),p=d.showRetry,l=d.isLoading,_=d.retry,x=d.processStatus,I=d.processInfoList;return(0,g.jsx)(o.Z,(0,s.Z)({title:t,className:E.container,notShowLine:!0,processInfos:I.map((e=>{var t={name:i.name||i.projectName,imageUrl:i.image||i.projectUrl,collectionImage:i.projectUrl,sourceIcon:u.sourceIcon};return{content:(0,g.jsx)(c.Z,(0,s.Z)({},t)),status:null===e||void 0===e?void 0:e.status}})),processStatus:x,addAfterContent:p?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v.Z,{subTitle:n}),(0,g.jsx)(Z.Z,{isLoading:l,retry:_,errorTip:(0,a.O4)("nftmarket_offer_modal_reminder_err_cancel_offer")})]}):(0,g.jsx)(v.Z,{subTitle:n})},r))}},34439:(e,t,n)=>{n.d(t,{Z:()=>L});var s=n(1413),r=n(74165),o=n(15861),c=n(87363),a=n(14300),i=n(7562),u=n(95640),f=n.n(u),d=n(10680),p=n(86451),l=n(36272),_=n(97230);const x={hash:"index_hash__rI4pm","jump-icon":"index_jump-icon__a9goh",jumpIcon:"index_jump-icon__a9goh",currency:"index_currency__9-bAL","currency-icon":"index_currency-icon__BaG7V",currencyIcon:"index_currency-icon__BaG7V",desc:"index_desc__vgy4L"};var I=n(29439),h=n(40910),m=n(22333),Z=n(14792),v=n(21401),E={getInitAccountConfig:e=>[{stepActionInfo:e.stepActionInfo}],initAccount:function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,s,o,c;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.stepActionInfo,e.prev=1,"complete"!==n.status){e.next=5;break}return s=h.Ez.SUCCESS,e.abrupt("return",{processedResultStatus:s,processedResultPayload:{txHash:o}});case 5:return e.next=7,v.default[v.TRADE_TYPE.INIT_ACCOUNT]({stepActionInfo:n,chain:null===n||void 0===n?void 0:n.chain});case 7:c=e.sent,o=null===c||void 0===c?void 0:c.txHash,s=(null===c||void 0===c?void 0:c.status)===h.jG.SUCCESS?h.Ez.SUCCESS:h.Ez.WARNING,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),s=h.Ez.WARNING;case 15:return e.abrupt("return",{processedResultStatus:s,processedResultPayload:{txHash:o}});case 16:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),initAccountExecutor:function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,o,c,a,i,u,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processInfo,o=t.processedCallback,c=n.status,a=n.processConfig,c==h.Ez.SUCCESS){e.next=12;break}return o((0,s.Z)((0,s.Z)({},n),{},{status:h.Ez.EXECUTING})),e.next=6,E.initAccount(a);case 6:i=e.sent,u=i.processedResultStatus,f=i.processedResultPayload,o((0,s.Z)((0,s.Z)({},n),{},{processedResultPayload:f,status:u})),e.next=13;break;case 12:o(n);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const g=E,y=class extends Z.Z{constructor(e){var t=e.onProcessChange,n=e.stepActionInfo;super();var s=g.getInitAccountConfig({stepActionInfo:n});this.init({processConfigList:s}),this.setProcessChangeHandler((function(){t&&t(...arguments)})),this.setProcessExecutor(g.initAccountExecutor)}};var S=e=>{var t=e.stepActionInfoList,n=(0,m.jD)("InitAccount"),s=n.processStatus,r=n.setStatusToFinished,o=n.setStatusToSuccess,a=n.setStatusToFailed,i=n.setStatusToRetry,u=n.setRuntimeProcessCtx,f=(0,c.useState)([]),d=(0,I.Z)(f,2),p=d[0],l=d[1],_=(0,c.useState)(!1),x=(0,I.Z)(_,2),Z=x[0],v=x[1],E=(0,c.useMemo)((()=>[h.DZ.EXECUTING,h.DZ.RETRYING].includes(s)),[s]),g=(0,c.useRef)(),S=e=>{var t,n=e.processInfoList;l([...n]),(e=>{e.some((e=>e.status!=h.Ez.SUCCESS))?e.some((e=>e.status===h.Ez.FAILED||e.status===h.Ez.WARNING))&&(a(),v(!0)):(o(),r(),v(!1))})(n);var s=(null===(t=n[0])||void 0===t?void 0:t.processedResultPayload).utxosData;u(s)};return(0,c.useEffect)((()=>{var e=new y({stepActionInfo:t[0],onProcessChange:S});g.current=e}),[t]),(0,c.useEffect)((()=>{[h.DZ.EXECUTING,h.DZ.RETRYING].includes(s)&&g.current.run(s)}),[s]),{initInfoList:p,processStatus:s,isLoading:E,retry:()=>{i()},showRetry:Z}},C=n(45263);const L=e=>{var t=e.stepActionInfoList,n=e.subTitle,c=e.isHideRetry,u=e.collapseProps,I=S({stepActionInfoList:t}),h=I.initInfoList,m=I.processStatus,Z=I.isLoading,v=I.retry,E=I.showRetry,g=e=>(0,o.Z)((0,r.Z)().mark((function n(){var s;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(0,d.hl)({chain:null===(s=t[0])||void 0===s?void 0:s.chain,txHash:e});case 1:case"end":return n.stop()}}),n)}))),y=e=>{var t=e.processedResultPayload.txHash;return(0,C.jsxs)("div",{className:f()("flex flex-row justify-between items-center"),children:[(0,C.jsx)("div",{className:x.desc,children:(0,a.O4)("nft_looksrare_account_set_up_subtilte")}),t&&(0,C.jsxs)("div",{className:f()("shrink-0 flex items-center",x.hash),onClick:g(t),children:[(0,a.O4)("nftmarket_orderbook_confirm_middle_label_hash"),(0,C.jsx)(i.Z,{className:f()("icon-a-openlink20",x.jumpIcon)})]})]})};return(0,C.jsx)(p.Z,(0,s.Z)({title:(0,a.O4)("nft_looksrare_account_set_up_tilte"),className:x.container,processInfos:h.map((e=>({status:e.status,content:y(e)}))),processStatus:m,addAfterContent:c?null:E?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(_.Z,{subTitle:n}),(0,C.jsx)(l.Z,{isLoading:Z,retry:v,errorTip:(0,a.O4)("nft_looksrare_account_set_up_refused")})]}):(0,C.jsx)(_.Z,{subTitle:n})},u))}},13282:(e,t,n)=>{n.d(t,{Z:()=>k});var s=n(1413),r=n(87363),o=n(86451),c=n(95640),a=n.n(c),i=n(23364);n(23502);const u="index_platform-img__V+puw",f="index_nft-name__PH8u5";var d=n(45263);const p=e=>{var t=e.name,n=e.imageUrl;return(0,d.jsx)("div",{className:a()("flex flex-row justify-between items-center"),children:(0,d.jsxs)("div",{className:a()("flex flex-row items-center"),children:[(0,d.jsx)("div",{className:a()("relative"),children:(0,d.jsx)(i.Z,{useWebp:!1,className:u,src:n,alt:t,width:24,height:24})}),(0,d.jsx)("div",{className:f,children:t})]})})};var l=n(14300),_=n(29439),x=n(40910),I=n(22333),h=n(14792),m=n(74165),Z=n(15861),v=n(1708),E=n(48903),g={getPurchaseConfig:e=>{var t=e.stepActionInfoList;return E.Z.getStepActionInfoListByActionType({steps:t,actionType:x.tl.VERIFY_WALLET_ADDRESS})},purchase:function(){var e=(0,Z.Z)((0,m.Z)().mark((function e(t){var n,s,r,o;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processConfig,e.prev=1,n.status!=x.wr.IN_COMPLETE){e.next=9;break}return e.next=5,v.Z.getWalletAccount();case 5:return o=e.sent,e.next=8,E.Z.verifyWallet({stepActionInfo:n,wallet:o});case 8:r=e.sent;case 9:s=x.Ez.SUCCESS,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),s=x.Ez.WARNING;case 15:return e.abrupt("return",{processedResultStatus:s,processedResultPayload:{txResult:r}});case 16:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),purchaseExecutor:function(){var e=(0,Z.Z)((0,m.Z)().mark((function e(t){var n,r,o,c,a,i;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.processInfo,r=t.processedCallback,o=n.processConfig,n.status==x.Ez.SUCCESS){e.next=13;break}return r((0,s.Z)((0,s.Z)({},n),{},{status:x.Ez.EXECUTING})),e.next=7,g.purchase({processConfig:o});case 7:c=e.sent,a=c.processedResultStatus,i=c.processedResultPayload,r((0,s.Z)((0,s.Z)({},n),{},{processedResultPayload:i,status:a})),e.next=14;break;case 13:r(n);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()};const y=g,S=class extends h.Z{constructor(e){var t=e.onProcessChange,n=e.stepActionInfoList;super();var s=y.getPurchaseConfig({stepActionInfoList:n});this.init({processConfigList:s}),this.setProcessChangeHandler((function(){t&&t(...arguments)})),this.setProcessExecutor(y.purchaseExecutor)}};var C=e=>{var t=e.stepActionInfoList,n=(0,r.useState)([]),s=(0,_.Z)(n,2),o=s[0],c=s[1],a=(0,I.jD)("useSign",o),i=a.processStatus,u=a.setStatusToFinished,f=a.setStatusToSuccess,d=a.setStatusToFailed,p=a.setStatusToRetry,l=(0,r.useRef)(),h=(0,r.useState)(!1),m=(0,_.Z)(h,2),Z=m[0],v=m[1],E=(0,r.useMemo)((()=>[x.DZ.EXECUTING,x.DZ.RETRYING].includes(i)),[i]),g=e=>{var t=e.processInfoList;(e=>{e.some((e=>e.status===x.Ez.EXECUTING))||(e.some((e=>e.status!=x.Ez.SUCCESS))?e.some((e=>e.status===x.Ez.WARNING))&&(d(),v(!0)):(f(),u(),v(!1)))})(t),c([...t])};return(0,r.useEffect)((()=>{var e=new S({stepActionInfoList:t,onProcessChange:g});l.current=e}),[t]),(0,r.useEffect)((()=>{[x.DZ.EXECUTING,x.DZ.RETRYING].includes(i)&&l.current.run(i)}),[i]),{retry:()=>{p()},showRetry:Z,isLoading:E,processStatus:i,processInfoList:o}},L=n(36272),A=n(97230);const R={hash:"index_hash__2pe4b","jump-icon":"index_jump-icon__wj3Oc",jumpIcon:"index_jump-icon__wj3Oc",currency:"index_currency__0mG1y","currency-icon":"index_currency-icon__aGwzp",currencyIcon:"index_currency-icon__aGwzp",icon:"index_icon__WOz70","loading-icon":"index_loading-icon__OZjfL",loadingIcon:"index_loading-icon__OZjfL",loader:"index_loader__L3KBq","success-icon":"index_success-icon__uIfWC",successIcon:"index_success-icon__uIfWC","icon-check":"index_icon-check__mt6xH",iconCheck:"index_icon-check__mt6xH","failed-icon":"index_failed-icon__r0HBi",failedIcon:"index_failed-icon__r0HBi","icon-close":"index_icon-close__GtSAu",iconClose:"index_icon-close__GtSAu","nft-img":"index_nft-img__+m-u5",nftImg:"index_nft-img__+m-u5","platform-img":"index_platform-img__zo8cY",platformImg:"index_platform-img__zo8cY","nft-name":"index_nft-name__caF1G",nftName:"index_nft-name__caF1G","nft-price":"index_nft-price__eptjm",nftPrice:"index_nft-price__eptjm","sub-title":"index_sub-title__1fiW5",subTitle:"index_sub-title__1fiW5","pay-label":"index_pay-label__RsUkb",payLabel:"index_pay-label__RsUkb","dash-line":"index_dash-line__6tYy1",dashLine:"index_dash-line__6tYy1",title:"index_title__yFtCT"};const k=e=>{var t=e.title,n=e.subTitle,r=e.isHideRetry,c=e.collapseProps,a=e.stepActionInfoList,i=C({stepActionInfoList:a}),u=i.showRetry,f=i.isLoading,_=i.retry,x=i.processStatus,I=i.processInfoList;return(0,d.jsx)(o.Z,(0,s.Z)({title:t,className:R.container,processInfos:I.map((e=>{var t=e.processConfig.platform,n=t.icon,r={name:t.name,imageUrl:n};return{content:(0,d.jsx)(p,(0,s.Z)({},r)),status:null===e||void 0===e?void 0:e.status}})),processStatus:x,addAfterContent:r?null:u?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(A.Z,{subTitle:n}),(0,d.jsx)(L.Z,{isLoading:f,retry:_,errorTip:(0,l.O4)("nftmarket_offer_modal_reminder_err_sign_message")})]}):(0,d.jsx)(A.Z,{subTitle:n})},c))}},15305:(e,t,n)=>{n.d(t,{Bw:()=>r.Z,JY:()=>f.Z,Ky:()=>i.Z,My:()=>u.Z,VT:()=>d.Z,bF:()=>a.Z,g1:()=>o.Z,lr:()=>s.Z,zE:()=>c.Z,zf:()=>p.Z});var s=n(99544),r=(n(8099),n(61605)),o=n(3447),c=n(83189),a=n(69987),i=(n(18793),n(13282)),u=n(32044),f=n(37350),d=n(3275),p=n(34439);n(51602)},13350:(e,t,n)=>{n.d(t,{Z:()=>r});var s=n(87363);const r=(0,s.createContext)({})},9947:(e,t,n)=>{n.d(t,{Z:()=>x});var s=n(1413),r=n(29439),o=n(74165),c=n(15861),a=n(93380),i=n(14300),u=n(40910),f=n(97505),d=n(85658),p=n(75219),l=n(11229),_={mockPush:e=>d.Z.get(f.Z.MOCK_PUSH,e),postCheckCollect:e=>d.Z.post(f.Z.COLLECTION_CHECK_COLLECT,e),postCollect:e=>d.Z.post(f.Z.COLLECTION_COLLECT,e),getCollectionInfo:e=>d.Z.getXss(f.Z.COLLECTION_INFO,e),getCollectionProjectStats:e=>d.Z.get(f.Z.COLLECTION_INFO_OTHER,e),getCollectionFaqs:e=>d.Z.get(f.Z.COLLECTION_QUESTIONS,e),getMockPendingSubscribe:e=>d.Z.get(f.Z.MOCK_PENDING_PUSH,e),getCollectionNfts:e=>d.Z.postXss(f.Z.MARKET,e),getRoyaltySignFormServer:(e,t)=>(0,c.Z)((0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l.Z.checkLogin({chainList:[t]});case 2:return n.abrupt("return",d.Z.post(f.Z.COLLECTION_ROYALTY_SIGN,e));case 3:case"end":return n.stop()}}),n)})))(),updateRoyalty:e=>(0,c.Z)((0,o.Z)().mark((function t(){return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.Z.post(f.Z.UPDATE_ROYALTY,e));case 1:case"end":return t.stop()}}),t)})))(),getRoyaltySignature:e=>(0,c.Z)((0,o.Z)().mark((function t(){return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.Z.post(f.Z.GET_ROYALTY_SIGNATURE,e));case 1:case"end":return t.stop()}}),t)})))(),setRoyalty:e=>(0,c.Z)((0,o.Z)().mark((function t(){var n,c,f,d,x,I,h,m,Z,v,E,g,y,S,C,L,A,R;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.taxFeeRate,c=void 0===n?0:n,f=e.taxReceiveAddress,d=e.contractAddress,x=e.chainId,I=e.project,h=e.timestamp,!f){t.next=32;break}return t.prev=2,t.next=5,l.Z.checkLink({chain:x});case 5:return m=t.sent,Z={project:I,timestamp:h,contractAddress:d,signAddress:m,receiverAddress:f,chain:x,feeBps:String(a.yx.mul(c,100))},t.next=9,(0,p.Z)(_.getRoyaltySignature(Z));case 9:return v=t.sent,E=(0,r.Z)(v,2),g=E[1],t.next=14,l.Z.signWallet({account:m,signData:g});case 14:return y=t.sent,S=y.signature,C=(0,s.Z)((0,s.Z)({},Z),{},{signature:S}),t.next=19,(0,p.Z)(_.updateRoyalty(C));case 19:if(L=t.sent,A=(0,r.Z)(L,1),R=A[0]){t.next=24;break}return t.abrupt("return",{isSuccess:!0});case 24:return t.abrupt("return",{isSuccess:!1,message:(null===R||void 0===R?void 0:R.msg)||(0,i.O4)("defi_nftcoll_notif_requestfailed")});case 27:return t.prev=27,t.t0=t.catch(2),t.abrupt("return",{isSuccess:!1,message:t.t0===u.Bs.WALLET_SIGN?"":(0,i.O4)("defi_nftcoll_notif_requestfailed")});case 30:t.next=33;break;case 32:return t.abrupt("return",{isSuccess:!1});case 33:case"end":return t.stop()}}),t,null,[[2,27]])})))()};const x=_},77902:(e,t,n)=>{n.d(t,{WB:()=>l,X5:()=>_});var s=n(74165),r=n(29439),o=n(15861),c=n(23781),a=n(72208),i=n(75219),u=n(9947),f=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,o,u,f,d,p,l,_,x,I,h,m,Z,v,E,g;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.orderInfo,o=n.id,u=n.source,f=[o],e.next=5,(0,i.Z)(c.Z.getOrderFees({orderIds:f}));case 5:if(d=e.sent,p=(0,r.Z)(d,2),l=p[0],_=p[1],!l){e.next=11;break}return e.abrupt("return",{taxFeeRate:0});case 11:return x=_[o]||{},I=x.devFeeBasisPoints,h=x.devFees,m=x.sourceFeeBasisPoints,Z=x.takerSourceFeeBasisPoints,v=x.protocolFeeBasisPoints,E=Object.keys(h||{}),g=[a.Qz.MAGICEDEN,a.Qz.TENSOR].includes(u)?Z:m,e.abrupt("return",{taxFeeRate:I||0,taxReceiveAddress:E&&E.length>0&&E[0],serviceFee:g||0,protocolFee:v||0});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,o,a,u,f,d,p,l,_,x,I,h,m,Z,v,E,g,y,S,C,L;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nftInfo,o=t.source,a=n.id,u=n.chain,f=[a],e.next=5,(0,i.Z)(c.Z.getNftFees({chain:u,nftIds:f,sourceList:[o]}));case 5:if(d=e.sent,p=(0,r.Z)(d,2),l=p[0],_=p[1],!l){e.next=11;break}return e.abrupt("return",{taxFeeRate:0});case 11:if(x=_[a]||{},!((I=x.sourceFees)&&I.length>0)){e.next=18;break}return h=I[0].fee||{},m=h.devFeeBasisPoints,Z=h.devFees,v=h.invalid,E=h.sourceFeeBasisPoints,g=h.protocolFeeBasisPoints,y=h.sourceFees,S=Object.keys(Z||{}),C=Object.keys(y||{}),L=S&&S.length>0&&S[0],e.abrupt("return",{taxFeeRate:m||0,taxReceiveAddress:L,assetHide:v,fees:{sellerFees:Z},payoutAddress:L,serviceFee:E||0,protocolFee:g||0,serviceFeeReceiveAddress:C[0]});case 18:return e.abrupt("return",{taxFeeRate:0,taxReceiveAddress:"",assetHide:!1,serviceFee:0,protocolFee:0});case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,o,c,a,f,d,p,l,_,x;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.collectionInfo,o=n.collectionName,c=n.chain,e.next=4,(0,i.Z)(u.Z.getCollectionInfo({collectionName:o,chain:c}));case 4:return a=e.sent,f=(0,r.Z)(a,2),d=f[1],l=(p=d||{}).taxFeeRate,_=void 0===l?0:l,x=p.taxReceiveAddress,e.abrupt("return",{taxFeeRate:_,taxReceiveAddress:x});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,o;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.collectionInfo,r=t.nftInfo,o=t.source,!!!n){e.next=4;break}return e.abrupt("return",p({collectionInfo:n,source:o}));case 4:return e.abrupt("return",d({nftInfo:r,source:o}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,o;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nftInfo,r=t.orderInfo,o=r.source,e.abrupt("return",f({nftInfo:n,orderInfo:r,source:o}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}]); +//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/defi-mode/3514/index.bc9456bc.js.map \ No newline at end of file diff --git a/index.c3f8c81d.js.download b/index.c3f8c81d.js.download new file mode 100644 index 0000000..74b6f6a --- /dev/null +++ b/index.c3f8c81d.js.download @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkdefi_mode=self.webpackChunkdefi_mode||[]).push([[8685,2743],{31864:(e,n,t)=>{t.d(n,{ip:()=>i});var c=t(71747),r=t(60378),a=t(83567),o=t(14001);function s(){return(0,c.zN)("/web3")}var i=()=>{var e=function(){if((0,r.y)())return(0,c.zN)("/web3/dashboard");var e=(0,o.ye)();e=e.replace(/\/*$/,"");var n=(0,c.zN)("/metax");return new RegExp("^".concat(n)).test(e)?n:(0,c.zN)("/web3/dashboard")}(),n="".concat(s(),"/marketplace"),t="".concat(s(),"/marketplace/nft"),i=null!==a.X&&void 0!==a.X&&a.X.isFirefox?"https://addons.mozilla.org/firefox/addon/okexwallet":"https://chrome.google.com/webstore/detail/okex-wallet/mcohilncbfahbmgdjkbpemcciiolgcge";return{nft:{index:"".concat(t),home:"".concat(t),marketplace:"".concat(n),primary:"".concat(n,"/launchpad"),primaryDetail:"".concat(n,"/launchpad/event"),primaryShare:"".concat(n,"/launchpad/share"),markets:"".concat(t,"/explore"),asset:"".concat(t,"/asset"),favorite:"".concat(t,"/favorite"),created:"".concat(t,"/created"),collection:"".concat(t,"/collection"),category:"".concat(t,"/category"),activity:"".concat(t,"/stats/activity"),rankings:"".concat(n,"/rankings"),listings:"".concat(t,"/listings"),listingEdit:"".concat(t,"/edit"),search:"".concat(n,"/search"),mint:"".concat(t,"/mint"),overview:"".concat(t,"/stats/overview"),mintHome:"".concat(t,"/create/home"),mintNFT:"".concat(t,"/create/nft"),collectionCreated:"".concat(t,"/create/collection/create"),collectionEdit:"".concat(t,"/create/collection/edit"),ordinals:"".concat(n,"/ordinals"),ordinalsListing:"".concat(n,"/ordinals/listing"),ordinalsListingEdit:"".concat(n,"/ordinals/edit"),ordinalsCollection:"".concat(n,"/ordinals/brc20"),ordinalsBrc20:"".concat(n,"/ordinals/brc20"),ordinalsBtcNft:"".concat(n,"/ordinals/btcnft"),inscription:"".concat(n,"/inscription"),ordinalsInscribing:"".concat(n,"/ordinals/inscribing"),p2p:"".concat(n,"/cryptos"),p2pMyOrdersHome:"".concat(n,"/cryptos/myorders"),p2pMyOrders:"".concat(n,"/cryptos/myorders/listing"),p2pReceiveOffer:"".concat(n,"/cryptos/myorders/privateorder"),p2pHistory:"".concat(n,"/cryptos/myorders/history"),p2pOrders:"".concat(n,"/cryptos/orders"),p2pListing:"".concat(n,"/cryptos/listing")},onchain:{index:(0,c.zN)("/web3"),track:"".concat(e,"/track/:tab/:address/:coinId"),portfolio:"".concat(e,"/portfolio/:analysisPlatformId"),manage:"".concat(e,"/manage"),currencyCoinId:"".concat(e,"/currency/:symbol/:coinId"),currencySymbol:"".concat(e,"/currency/:symbol"),currencies:"".concat(e,"/currencies/:network"),currenciesSymbol:"".concat(e,"/currencies/:network/:symbol"),currenciesSymbolContractAddress:"".concat(e,"/currencies/:network/:symbol/:contractAddress")},dashboard:{track:"".concat(e,"/track/:tab/:address/:coinId"),currencies:"".concat(e,"/currencies/track/:network"),currenciesSymbol:"".concat(e,"/currencies/track/:network/:symbol"),currenciesSymbolContractAddress:"".concat(e,"/currencies/track/:network/:symbol/:contractAddress")},inscription:(0,c.zN)("/web3/toolkit/inscribe"),wallet:i,download:(0,c.zN)("/download"),academy:(0,c.zN)("/academy/category/industry-frontier/gamefi"),trade:(0,c.zN)("/web3/dex-swap"),invest:{index:"".concat(s(),"/defi"),detail:"".concat(s(),"/defi/detail/:id#source=positionpage")}}};i()},97699:(e,n,t)=>{t(87363),t(926),t(45263)},67725:(e,n,t)=>{t.d(n,{default:()=>l});var c=t(74165),r=t(15861),a=t(71979),o=t(1708),s=t(64037),i=t(39858);const l=e=>{var n={[s.Bv.SOLANA]:"solana"},t=e.chainId,l=e.currency,u=void 0===l?{}:l,d=e.walletAccount,p=e.visible,f=e.onClose,v=void 0===f?()=>{}:f,m=s.c6[t]||{},b=n[t]||"ethereum";return(0,a.Z)((0,r.Z)((0,c.Z)().mark((function e(){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=3;break}return e.next=3,o.Z.getDeposit({currency:u.label,network:m.name,address:d,prefix:b,contract:u.value===i.yK?"":u.value,onClose:v});case 3:case"end":return e.stop()}}),e)}))),[p]),null}},22732:(e,n,t)=>{t.d(n,{R:()=>a});var c=t(14300),r=t(15702),a=(t(8911),()=>new Promise(((e,n)=>{var t=r.Z.tip({infoType:r.Z.Tip.INFO_TYPE.default,title:(0,c.O4)("transaction_sol_dialog_header_order_invalid"),children:(0,c.O4)("transaction_sol_dialog_taken_canceled"),confirmText:(0,c.O4)("transaction_sol_dialog_btn_continue"),onConfirm:()=>{e(),t.destroy()},onCancel(){n(),t.destroy()}})})))},83189:(e,n,t)=>{t.d(n,{Z:()=>D});var c=t(1413),r=t(74165),a=t(15861),o=t(87363),s=t(14300),i=t(7562),l=t(95640),u=t.n(l),d=t(10680),p=t(86451),f=t(73571),v=t(36272),m=t(97230);const b={hash:"index_hash__tNxf9","jump-icon":"index_jump-icon__DdouV",jumpIcon:"index_jump-icon__DdouV",currency:"index_currency__zAUOX","currency-icon":"index_currency-icon__LEKOF",currencyIcon:"index_currency-icon__LEKOF"};var h=t(29439),x=t(40910),g=t(22333),E=t(14792),A=t(82148),y=t(45271),C=t(64037),_=t(64397),I=t(48903),T={getApporveTokenConfig:function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){var t,c,a,o,s,i,l,u,d;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.stepActionInfoList,c=n.currencyPayloadList,a=n.chain,o=e=>{var n=e.stepActionInfo,t=n.approvalAddress,c=n.amount,r=n.tokenAddress,o=n.currency;return{currencyPayload:{currency:{label:o,value:r,icon:n.currencyUrl}},approveConfig:{payTokenAddress:r,tokenTrasnferAddr:t,fixPrice:c,currency:o,chain:a}}},s=e=>{var n=e.stepActionInfo;return{currencyPayload:{currency:e.currency},approveConfig:{stepActionInfo:n,chain:a}}},i=[],l=I.Z.getStepActionInfoListByActionType({steps:t,actionType:x.tl.APPROVE_TOKEN}),e.next=7,I.Z.getTradeStepActionInfo({stepActionInfo:l[0]});case 7:return u=e.sent,d=null,d=a==C.Bv.STARKNET?s({stepActionInfo:u,currency:c[0].currency}):o({stepActionInfo:u}),i.push(d),e.abrupt("return",i);case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),approve:function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){var t,c,a,o,s,i,l,u;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.payTokenAddress,c=n.tokenTrasnferAddr,a=n.fixPrice,o=n.currency,s=n.stepActionInfo,i=n.chain,u=!1,(null===s||void 0===s?void 0:s.status)===x.wr.COMPLETE&&(u=!0),e.prev=3,e.t0=!u,!e.t0){e.next=9;break}return e.next=8,(0,_.Sw)({payTokenAddr:t,operatorAddr:c,amount:a,currency:o,chain:i,payload:null===s||void 0===s?void 0:s.payload,cb:e=>{l=e}});case 8:e.t0=e.sent;case 9:e.t0&&(u=!0),e.next=16;break;case 13:e.prev=13,e.t1=e.catch(3),e.t1;case 16:return e.abrupt("return",{processedResultStatus:u?x.Ez.SUCCESS:x.Ez.WARNING,processedResultPayload:{txHash:l}});case 17:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(n){return e.apply(this,arguments)}}(),approveTokenExecutor:function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,o,s,i,l,u;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.processInfo,a=n.processedCallback,o=t.status,s=t.processConfig.approveConfig,o==x.Ez.SUCCESS){e.next=12;break}return a((0,c.Z)((0,c.Z)({},t),{},{status:x.Ez.EXECUTING})),e.next=6,T.approve(s);case 6:i=e.sent,l=i.processedResultStatus,u=i.processedResultPayload,a((0,c.Z)((0,c.Z)({},t),{},{processedResultPayload:u,status:l})),e.next=13;break;case 12:a(t);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()};const Z=T,k=class extends E.Z{constructor(e){var n=e.onProcessChange,t=e.stepActionInfoList,c=e.currencyPayloadList,r=e.chain;super(),Z.getApporveTokenConfig({stepActionInfoList:t,currencyPayloadList:c,chain:r}).then((e=>{this.init({processConfigList:e})})).catch((e=>{(0,y.H)(A.I.tradeError,e)})),this.setProcessChangeHandler((function(){n&&n(...arguments)})),this.setProcessExecutor(Z.approveTokenExecutor)}};var w=e=>{var n=e.currencyPayloadList,t=e.chain,c=e.stepActionInfoList,r=(0,g.jD)("ApproveToken"),a=r.processStatus,s=r.setStatusToFinished,i=r.setStatusToSuccess,l=r.setStatusToFailed,u=r.setStatusToRetry,d=(0,o.useState)([]),p=(0,h.Z)(d,2),f=p[0],v=p[1],m=(0,o.useState)(!1),b=(0,h.Z)(m,2),E=b[0],A=b[1],y=(0,o.useMemo)((()=>[x.DZ.EXECUTING,x.DZ.RETRYING].includes(a)),[a]),C=(0,o.useRef)(),_=e=>{var n=e.processInfoList;v([...n]),(e=>{e.some((e=>e.status!=x.Ez.SUCCESS))?e.some((e=>e.status===x.Ez.FAILED||e.status===x.Ez.WARNING))&&(l(),A(!0)):(i(),s(),A(!1))})(n)};return(0,o.useEffect)((()=>{var e=new k({currencyPayloadList:n,chain:t,stepActionInfoList:c,onProcessChange:_});C.current=e}),[n,c,t]),(0,o.useEffect)((()=>{[x.DZ.EXECUTING,x.DZ.RETRYING].includes(a)&&C.current.run(a)}),[a]),{approveInfoList:f,processStatus:a,isLoading:y,retry:()=>{u()},showRetry:E}},S=t(45263);const D=e=>{var n=e.currencyPayloadList,t=e.chain,o=e.subTitle,l=e.collapseProps,h=e.stepActionInfoList,x=w({currencyPayloadList:n,stepActionInfoList:h,chain:t}),g=x.approveInfoList,E=x.processStatus,A=x.isLoading,y=x.retry,C=x.showRetry,_=e=>(0,a.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(0,d.hl)({chain:t,txHash:e});case 1:case"end":return n.stop()}}),n)}))),I=e=>{var n=e.processConfig,t=e.processedResultPayload,c=n.currencyPayload,r=t.txHash,a=c.currency;return(0,S.jsxs)("div",{className:u()("flex flex-row justify-between items-center"),children:[(0,S.jsx)(f.Z,{currencyPaylod:a||{},classNames:b.currency,currencyIconCls:b.currencyIcon,hiddeAmount:!0}),r&&(0,S.jsxs)("div",{className:u()("shrink-0 flex items-center",b.hash),children:[(0,s.O4)("nftmarket_orderbook_confirm_middle_label_hash"),(0,S.jsx)(i.Z,{className:u()("icon-a-openlink20",b.jumpIcon),onClick:_(r)})]})]},a.label)};return(0,S.jsx)(p.Z,(0,c.Z)({title:(0,s.O4)("nftmarket_orderbook_confirm_modal_label_approve_currency"),className:b.container,processInfos:g.map((e=>({status:e.status,content:I(e)}))),processStatus:E,addAfterContent:C?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.Z,{subTitle:o}),(0,S.jsx)(v.Z,{isLoading:A,retry:y,errorTip:(0,s.O4)("nftmarket_general_errmsg_approve_currency_error")})]}):(0,S.jsx)(m.Z,{subTitle:o})},l))}},69987:(e,n,t)=>{t.d(n,{Z:()=>k});var c=t(1413),r=t(87363),a=t(14300),o=t(70991),s=t(86451),i=t(65493),l=t(68481),u=t(36272),d=t(97230),p=t(74165),f=t(15861),v=t(29439),m=t(93380),b=t(40910),h=t(10680),x=t(149),g=t(22333),E=t(14792),A=t(21401),y={getPurchaseConfig:e=>{var n=e.collectionInfo,t=e.orderInfo,r=e.nftInfo,a=e.tradeAmount,o=e.stepActionInfoList,s=n.chain,i=A.tradeUtil.getStepActionInfoListByActionType({steps:o,actionType:b.tl.TAKE_ORDERS});return[{nftInfo:(0,c.Z)((0,c.Z)({},r),{},{nftId:r.id}),orderInfo:(0,c.Z)((0,c.Z)({},t),{},{nftId:r.id}),chain:s,tradeAmount:a,stepActionInfo:i[0]}]},purchase:function(){var e=(0,f.Z)((0,p.Z)().mark((function e(n){var t,c,r,a,o,s,i,l,u,d,f,v;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.orderInfo,c=n.nftInfo,r=n.tradeAmount,a=n.stepActionInfo,o=n.extParams,e.prev=1,d=o.InitWallet,f=o.networkFeeRate,e.next=5,A.default[A.TRADE_TYPE.BUY]({nftInfo:c,orderInfo:t,tradeData:{tradeAmount:r,dummyUtxos:d,networkFeeRate:f},stepActionInfo:a});case 5:l=e.sent,[b.jG.SUCCESS,b.jG.BROADCAST_SUCCESS].includes(null===(u=l)||void 0===u?void 0:u.status)?(s=b.Ez.SUCCESS,i=null===(v=l)||void 0===v?void 0:v.txHash):s=b.Ez.WARNING,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),e.t0,s=b.Ez.WARNING;case 13:return e.abrupt("return",{processedResultStatus:s,processedResultPayload:{txHash:i,txResult:l}});case 14:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(n){return e.apply(this,arguments)}}(),purchaseExecutor:function(){var e=(0,f.Z)((0,p.Z)().mark((function e(n){var t,r,a,o,s,i,l,u,d,f,v;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.processInfo,r=n.processedCallback,a=n.extParams,o=t.processConfig,s=o.nftInfo,i=o.orderInfo,l=o.tradeAmount,u=o.stepActionInfo,t.status==b.Ez.SUCCESS){e.next=14;break}return r((0,c.Z)((0,c.Z)({},t),{},{status:b.Ez.EXECUTING})),e.next=8,y.purchase({orderInfo:i,nftInfo:s,tradeAmount:l,stepActionInfo:u,extParams:a});case 8:d=e.sent,f=d.processedResultStatus,v=d.processedResultPayload,r((0,c.Z)((0,c.Z)({},t),{},{processedResultPayload:v,status:f})),e.next=15;break;case 14:r(t);case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()};const C=y,_=class extends E.Z{constructor(e){var n=e.orderInfoList,t=e.nftInfoList,c=e.collectionInfo,r=e.onProcessChange,a=e.tradeAmount,o=e.nftInfo,s=e.orderInfo,i=e.stepActionInfoList;super();var l=C.getPurchaseConfig({orderInfoList:n,nftInfoList:t,collectionInfo:c,tradeAmount:a,nftInfo:o,orderInfo:s,stepActionInfoList:i});this.init({processConfigList:l}),this.setProcessChangeHandler((function(){r&&r(...arguments)})),this.setProcessExecutor(C.purchaseExecutor)}};var I=e=>{var n=e.orderInfoList,t=e.nftInfoList,c=e.collectionInfo,a=e.tradeAmount,o=e.nftInfo,s=e.orderInfo,i=e.stepActionInfoList,l=e.networkFeeRate,u=(0,r.useState)([]),d=(0,v.Z)(u,2),E=d[0],A=d[1],y=(0,g.jD)("useMakePurchase",E),C=y.processStatus,I=y.runtimeProcessCtx,T=y.setStatusToFinished,Z=y.setStatusToSuccess,k=y.setStatusToFailed,w=y.setStatusToRetry,S=c.chain,D=(0,r.useState)(),B=(0,v.Z)(D,2),F=B[0],P=B[1],R=(0,r.useRef)(),N=(0,r.useState)(!1),L=(0,v.Z)(N,2),H=L[0],O=L[1],U=(0,r.useMemo)((()=>[b.DZ.EXECUTING,b.DZ.RETRYING].includes(C)),[C]),j=(0,r.useMemo)((()=>{var e,t=0;return n.forEach((n=>{var c=n.currency,r=n.price,a=n.count;e=c,t=m.yx.add(t,m.yx.mul(r,a))})),{total:t=(0,x.T4)(t,1e-4),currencyLabel:e}}),[n]),M=function(){var e=(0,f.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,h.hl)({chain:S,txHash:F});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=e=>{var n=e.processInfo,t=e.processInfoList,c=n.processedResultPayload.txHash;P(c),(e=>{e.some((e=>e.status!=b.Ez.SUCCESS))?e.some((e=>e.status===b.Ez.FAILED||e.status===b.Ez.WARNING))&&(k(),O(!0)):(Z(),T(),O(!1))})(t),A([...t])};return(0,r.useEffect)((()=>{var e=new _({orderInfoList:n,nftInfoList:t,collectionInfo:c,tradeAmount:a,nftInfo:o,orderInfo:s,stepActionInfoList:i,onProcessChange:W});R.current=e}),[n,t,c,i]),(0,r.useEffect)((()=>{var e=I.InitWallet;[b.DZ.EXECUTING,b.DZ.RETRYING].includes(C)&&R.current.run(C,{},{InitWallet:e,networkFeeRate:l})}),[C]),{retry:()=>{w()},showRetry:H,isLoading:U,txHash:F,totalPriceMemo:j,processStatus:C,handleClickHash:M,processInfoList:E}};const T={hash:"index_hash__waoRM","jump-icon":"index_jump-icon__iPUCW",jumpIcon:"index_jump-icon__iPUCW",currency:"index_currency__XJgr3","currency-icon":"index_currency-icon__NhQ9T",currencyIcon:"index_currency-icon__NhQ9T",icon:"index_icon__IVm4x","loading-icon":"index_loading-icon__z6S7x",loadingIcon:"index_loading-icon__z6S7x",loader:"index_loader__LrY4U","success-icon":"index_success-icon__LSao8",successIcon:"index_success-icon__LSao8","icon-check":"index_icon-check__NkIBR",iconCheck:"index_icon-check__NkIBR","failed-icon":"index_failed-icon__IbEYt",failedIcon:"index_failed-icon__IbEYt","icon-close":"index_icon-close__M0QpO",iconClose:"index_icon-close__M0QpO","nft-img":"index_nft-img__r3ufN",nftImg:"index_nft-img__r3ufN","platform-img":"index_platform-img__JuHjC",platformImg:"index_platform-img__JuHjC","nft-name":"index_nft-name__f8rlL",nftName:"index_nft-name__f8rlL","nft-price":"index_nft-price__0eEW1",nftPrice:"index_nft-price__0eEW1","sub-title":"index_sub-title__wBMT-",subTitle:"index_sub-title__wBMT-","pay-label":"index_pay-label__CXhFr",payLabel:"index_pay-label__CXhFr","dash-line":"index_dash-line__fIAmc",dashLine:"index_dash-line__fIAmc",title:"index_title__RHN0J","brc20-info":"index_brc20-info__eMxCB",brc20Info:"index_brc20-info__eMxCB"};var Z=t(45263);const k=e=>{var n=e.orderInfoList,t=e.nftInfoList,r=e.collectionInfo,p=e.title,f=e.subTitle,v=e.collapseProps,m=e.tradeAmount,b=e.nftInfo,h=e.orderInfo,x=e.stepActionInfoList,g=e.networkFeeRate,E=e.brc20Mode,A=I({orderInfoList:n,nftInfoList:t,collectionInfo:r,tradeAmount:m,nftInfo:b,orderInfo:h,stepActionInfoList:x,networkFeeRate:g}),y=A.showRetry,C=A.isLoading,_=A.retry,k=A.txHash,w=A.processStatus,S=A.processInfoList,D=(0,l.d)(t[0]),B=D.isBRC20,F=D.isBRC20S;return(0,Z.jsx)(s.Z,(0,c.Z)({title:p,className:T.container,notShowLine:!0,processInfos:n.map(((e,n)=>{var a,s=e.name,l=e.imageUrl,u=e.price,d=e.currency,p=e.sourceIcon,f=r.collectionImage,v=t[n],m={name:s,imageUrl:l,price:u,currency:d,collectionImage:f,sourceIcon:p,txHash:k};return{content:(B||F)&&E?(0,Z.jsx)(i.Z,{nftInfo:v}):(0,Z.jsx)(o.Z,(0,c.Z)({},m)),status:null===(a=S[0])||void 0===a?void 0:a.status}})),processStatus:w,addAfterContent:y?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(d.Z,{subTitle:f}),(0,Z.jsx)(u.Z,{isLoading:C,retry:_,errorTip:(0,a.O4)("nftmarket_general_errmsg_confirm_purchase_error")})]}):(0,Z.jsx)(d.Z,{subTitle:f})},v))}},99544:(e,n,t)=>{t.d(n,{Z:()=>m});var c=t(74165),r=t(15861),a=t(87363),o=(t(61533),t(15702)),s=(t(8911),t(40910)),i=t(36029),l=t(71979),u=t(17554),d=t(62616),p=t(89660),f=t(45263),v=e=>{var n=e.title,t=e.visible,v=e.tradeProcessConfig,m=e.renderHeader,b=e.onCancel,h=e.onFinished,x=e.onStatusChange;(0,l.Z)((0,r.Z)((0,c.Z)().mark((function e(){var n,t,r,a,o,s,l,d,p,f,m,b;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null===(r=null===v||void 0===v||null===(n=v[0])||void 0===n?void 0:n.config)||void 0===r||null===(t=r.orderList)||void 0===t?void 0:t.length)>1)){e.next=5;break}return d=(null===r||void 0===r||null===(a=r.orderList)||void 0===a||null===(o=a[0])||void 0===o?void 0:o.nftInfo)||{},p=d.tokenId,f=void 0===p?0:p,m=d.chain,b=void 0===m?0:m,e.next=5,(0,u.Cd)(i.TLH,{contract_address:null===r||void 0===r||null===(s=r.stepActionInfoList)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.contractAddress,token_id:f,chain:b});case 5:case"end":return e.stop()}}),e)}))),[]);var g=(0,a.useRef)(),E=()=>{b&&b()},A=(e,n,t,c)=>{x&&x(e,n,t),s.DZ.FINISHED===e&&(h&&h({processGroupStatus:e,currentProcessIndex:n,processInfoList:t,contextValue:c}),E())};return(0,f.jsx)(o.Z,{visible:t,title:n,onCancel:E,onClose:E,children:(0,f.jsxs)("div",{className:p.Z.children,children:[m&&m(),t&&(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:p.Z.dividLine}),(0,f.jsx)(d.Z,{onStatusChange:A,controllerRef:g,processConfigs:v})]})]})})};const m=v},39858:(e,n,t)=>{t.d(n,{Cq:()=>V,ZP:()=>xe,d0:()=>ee,pz:()=>r,sR:()=>u,y6:()=>be,yK:()=>a});var c=t(53949).Z.cdnBaseUrl||"",r="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",a="0x0000000000000000000000000000000000000000",o=("".concat(c,"/cdn/assets/imgs/2310/5EDDE11F728A8C3B.png"),"".concat(c,"/cdn/assets/imgs/2011/6C04D5C74FCC0D3D.png")),s="".concat(c,"/cdn/assets/imgs/221/272D0B456CEB71C0.png"),i="".concat(c,"/cdn/assets/imgs/2011/635D4664F3F1C5E7.png"),l="".concat(c,"/cdn/assets/imgs/2011/8A98EBDF15168E6D.png"),u="".concat(c,"/cdn/assets/imgs/227/B1632B61787F302E.png"),d="".concat(c,"/cdn/assets/imgs/223/77B9497DA0675E70.png"),p="".concat(c,"/cdn/assets/imgs/223/A29AA53C79C39C75.png"),f="".concat(c,"/cdn/assets/imgs/2112/D617BF2D7122EDD0.png"),v=("".concat(c,"/cdn/assets/imgs/223/AA43D9FF1E1A51B5.png"),"".concat(c,"/cdn/assets/imgs/223/DE210BA5A88C7316.png")),m="".concat(c,"/cdn/assets/imgs/222/B5AB9BE5EB6F0D29.png"),b="".concat(c,"/cdn/assets/imgs/222/3CF3FC83509A1353.png"),h="".concat(c,"/cdn/assets/imgs/222/C3D585C756F01F18.png"),x="".concat(c,"/cdn/assets/imgs/224/4B21CF62DCF957BA.png"),g="".concat(c,"/cdn/assets/imgs/224/6E67A9C6B1AB2F6A.png"),E=("".concat(c,"/cdn/assets/imgs/226/6CFFC8F8796F5B82.png"),"".concat(c,"/cdn/assets/imgs/226/961371351AD0D435.png")),A="".concat(c,"/cdn/assets/imgs/223/D8BD6F1660D96004.png"),y="".concat(c,"/cdn/assets/imgs/223/2E284A33CD686B18.png"),C="".concat(c,"/cdn/assets/imgs/223/1B3F12602454E73B.png"),_="".concat(c,"/cdn/assets/imgs/224/960EBA8710555BCB.png"),I=("".concat(c,"/cdn/assets/imgs/225/F4197F43F50EA3D7.png"),"".concat(c,"/cdn/assets/imgs/225/0CA4F06853007CA7.png")),T="".concat(c,"/cdn/assets/imgs/225/B806224AF4E71203.png"),Z="".concat(c,"/cdn/assets/imgs/224/EFD52A73453C2461.png"),k="".concat(c,"/cdn/assets/imgs/228/355D089D17250CB5.png"),w="".concat(c,"/cdn/assets/imgs/228/7F38F8C88634398C.png"),S="".concat(c,"/cdn/assets/imgs/233/E8B0EB0F3EEB99E8.png"),D="".concat(c,"/cdn/assets/imgs/222/B5AB9BE5EB6F0D29.png"),B="".concat(c,"/cdn/assets/imgs/235/602A34842E189BE6.png"),F=("".concat(c,"/cdn/assets/imgs/237/05BCFD2B65270335.png"),"".concat(c,"/cdn/assets/imgs/237/3C8D30800FDA21FD.png")),P="".concat(c,"/cdn/assets/imgs/2210/3D566FC8C8F2464C.png"),R="".concat(c,"/cdn/assets/imgs/2212/E990FA87D33837D7.png"),N=("".concat(c,"/cdn/assets/imgs/2212/3D689FDCAD7721A8.png"),"".concat(c,"/cdn/assets/imgs/2212/0711A15AE9F1A55E.png")),L="".concat(c,"/cdn/assets/imgs/2212/797830C5795502C0.png"),H="".concat(c,"/cdn/assets/imgs/234/E1E59BAEDE51C11C.png"),O="".concat(c,"/cdn/assets/imgs/222/B5AB9BE5EB6F0D29.png"),U="".concat(c,"/cdn/assets/imgs/238/0A12D6FFBD08EEA1.png"),j="".concat(c,"/cdn/assets/imgs/238/3AF581CA542105A1.png"),M="".concat(c,"/cdn/assets/imgs/238/FF9CA4BCEFA2C5F1.png"),W="".concat(c,"/cdn/assets/imgs/239/9406C67A0F0AEF55.png"),G="".concat(c,"/cdn/assets/imgs/239/43CA150FE693905C.png"),z="".concat(c,"/cdn/assets/imgs/2310/23994EF4E77D309F.png"),K="".concat(c,"/cdn/assets/imgs/2311/07CB6F546D9C9D2E.png"),X="".concat(c,"/cdn/assets/imgs/239/36B2656069B6E3B0.png"),Y="".concat(c,"/cdn/assets/imgs/2311/46B82DCE31C71857.png"),V={usdt:{label:"USDT",value:"0xdac17f958d2ee523a2206206994597c13d831ec7",decimals:6,precision:1,icon:o},okb:{label:"OKB",value:"0x75231f58b43240c9718dd58b4967c5114342a86c",decimals:18,precision:2,icon:s},usdc:{label:"USDC",value:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",decimals:6,precision:1,icon:i},dai:{label:"DAI",value:"0x6b175474e89094c44da98b954eedeac495271d0f",decimals:18,precision:1,icon:l},eth:{label:"ETH",value:a,decimals:18,precision:4,icon:u},weth:{label:"WETH",value:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",decimals:18,precision:4,icon:m}},$={usdt:{label:"USDT",value:"0x382bb369d343125bfb2117af9c149795c6c65c50",decimals:18,precision:1,icon:o},okb:{label:"OKB",value:"0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",decimals:18,precision:2,icon:s},okt:{label:"OKT",value:a,decimals:18,precision:3,icon:d},usdc:{label:"USDC",value:"0xc946daf81b08146b1c7a8da2a851ddf2b3eaaf85",decimals:18,precision:1,icon:i},daik:{label:"DAIK",value:"0x21cde7e32a6caf4742d00d44b07279e7596d26b9",decimals:18,precision:1,icon:l},ethk:{label:"ETHK",value:"0xef71ca2ee68f45b9ad6f72fbdb33d707b872315c",decimals:18,precision:4,icon:u},wokt:{label:"WOKT",value:"0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15",decimals:18,precision:3,icon:d}},J={usdt:{label:"USDT",value:"0x55d398326f99059ff775485246999027b3197955",decimals:18,precision:1,icon:o},usdc:{label:"USDC",value:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",decimals:18,precision:1,icon:i},bnb:{label:"BNB",value:a,decimals:18,precision:4,icon:p},busd:{label:"BUSD",value:"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",decimals:18,precision:1,icon:f},wbnb:{label:"WBNB",value:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",decimals:18,precision:4,icon:p}},Q={usdc:{label:"USDC",value:"0x2791bca1f2de4661ed88a30c99a7a9449aa84174",decimals:6,precision:1,icon:h},wmatic:{label:"WMATIC",value:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",decimals:18,precision:1,icon:v},wetch:{label:"WETH",value:"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",decimals:18,precision:1,icon:m},matic:{label:"MATIC",value:"0x0000000000000000000000000000000000000000",decimals:18,precision:1,icon:b},usdt:{label:"USDT",value:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",decimals:6,precision:1,icon:o},dai:{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",decimals:18,precision:1,icon:l}},q={imx:{label:"IMX",value:"0xf57e7e7c23978c3caec3c3548e3d615c346e79ff",decimals:18,precision:1,icon:E},usdc:{label:"USDC",value:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",decimals:6,precision:1,icon:y},eth:{label:"ETH",value:a,decimals:18,precision:4,icon:A},gods:{label:"GODS",value:"0xccc8cb5229b0ac8069c51fd58367fd1e622afd97",decimals:18,precision:1,icon:C},gog:{label:"GOG",value:"0x9ab7bb7fdc60f4357ecfef43986818a2a3569c62",decimals:18,precision:1,icon:_},omi:{label:"OMI",value:"0xed35af169af46a02ee13b9d79eb57d6d68c1749e",decimals:18,precision:1,icon:Z}},ee={sol:{label:"SOL",value:a,decimals:9,precision:1,icon:w}},ne={sui:{label:"SUI",value:a,decimals:9,precision:1,icon:F}},te={base:{label:"BASE_ETH",value:a,decimals:18,precision:1,icon:U},usdbc:{label:"USDbC",value:"0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",decimals:6,precision:1,icon:M}},ce={linea:{label:"LINEA_ETH",value:a,decimals:18,precision:1,icon:j},weth:{label:"WETH",value:"0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f",decimals:18,precision:4,icon:m}},re={opbnb:{label:"OP_BNB",value:a,decimals:18,precision:4,icon:W},wbnb:{label:"WBNB",value:"0x4200000000000000000000000000000000000006",decimals:18,precision:4,icon:X}},ae={evm:{label:"POLYGON_ETH",value:a,decimals:18,precision:4,icon:G},weth:{label:"WETH",value:"0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9",decimals:18,precision:4,icon:m}},oe={eth:{label:"SCROLL_ETH",value:a,decimals:18,precision:4,icon:z}},se={eth:{label:"MANTA_ETH",value:a,decimals:18,precision:4,icon:K},weth:{label:"WETH",value:"0x0dc808adce2099a9f62aa87d9670745aba741746",decimals:18,precision:4,icon:m}},ie={apt:{label:"APT",value:"0x1::aptos_coin::AptosCoin",decimals:8,precision:1,icon:P}},le={eth:{label:"OP_ETH",value:a,decimals:18,precision:4,icon:R},op:{label:"OP",value:"0x4200000000000000000000000000000000000042",decimals:18,precision:4,icon:R},weth:{label:"WETH",value:"0x4200000000000000000000000000000000000006",decimals:18,precision:4,icon:m}},ue={klay:{label:"KLAY",value:a,decimals:18,precision:4,icon:N},wklay:{label:"WKLAY",value:"0xfd844c2fca5e595004b17615f891620d1cb9bbb2",decimals:18,precision:4,icon:L}},de=(ee.sol,{avax:{label:"AVAX",value:"0x0000000000000000000000000000000000000000",decimals:18,precision:1,icon:I},usdc:{label:"USDC",value:"0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",decimals:6,precision:1,icon:i},wavax:{label:"WAVAX",value:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",decimals:18,precision:1,icon:T}}),pe={eth:{label:"ARB_ETH",value:a,decimals:18,precision:4,icon:k},weth:{label:"WETH",value:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",decimals:18,precision:4,icon:m}},fe={novaeth:{label:"NOVA_ETH",value:a,decimals:18,precision:4,icon:S},weth:{label:"WETH",value:"0x722E8BdD2ce80A4422E880164f2079488e115365",decimals:18,precision:4,icon:D}},ve={eth:{label:"ERA_ETH",value:a,decimals:18,precision:4,icon:H},weth:{label:"WETH",value:"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",decimals:18,precision:4,icon:O}},me={btc:{label:"BTC",value:"",decimals:18,precision:4,icon:B}},be={eth:{label:"STARKNET_ETH",value:"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",decimals:18,precision:4,icon:Y}},he={sellCurrency:{0:{sell:[me.btc],all:me},1:{sell:[V.eth,V.okb,V.usdc,V.dai],all:V},66:{sell:[$.okt,$.usdt,$.okb,$.usdc,$.daik,$.ethk],all:$},56:{sell:[J.bnb,J.usdt,J.usdc,J.busd],all:J},137:{sell:[Q.matic,Q.usdc,Q.wetch,Q.usdt,Q.dai],all:Q},99:{sell:[q.eth,q.imx,q.usdc,q.gods,q.gog,q.omi],all:q},501:{sell:[ee.sol],all:ee},784:{sell:[ne.sui],all:ne},43114:{sell:[de.avax,de.usdc],all:de},42161:{sell:[pe.eth],all:pe},637:{sell:[ie.apt],all:ie},10:{sell:[le.eth,le.op],all:le},8217:{sell:[ue.klay],all:ue},42170:{sell:[fe.novaeth],all:fe},324:{sell:[ve.eth],all:ve},8453:{sell:[te.base],all:te},59144:{sell:[ce.linea],all:ce},204:{sell:[re.opbnb],all:re},1101:{sell:[ae.evm],all:ae},534352:{sell:[oe.eth],all:oe},169:{sell:[se.eth],all:se},9004:{sell:[be.eth],all:be}},punkCurrency:{1:V.eth,66:$.okt},rankingCurrency:[{currency:"USD",currencyIcon:x},{currency:"ETH",currencyIcon:u},{currency:"OKT",currencyIcon:$.okt.icon},{currency:"OKB",currencyIcon:$.okb.icon},{currency:"BNB",currencyIcon:p}],allChainCurrencyItems:[{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],ethChainCurrenyItems:[{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],oecChainCurrenyItems:[{id:1,value:"OKT",label:"OKT",icon:d},{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],bscChainCurrenyItems:[{id:1,value:"BNB",label:"BNB",icon:p},{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],polygonChainCurrenyItems:[{id:1,value:"MATIC",label:"MATIC",icon:b},{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],tronChainCurrenyItems:[{id:1,value:"TRX",label:"TRX",icon:g},{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],imxChainCurrenyItems:[{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],solanaChainCurrenyItems:[{id:1,value:"SOL",label:"SOL",icon:w},{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],avalancheChainCurrenyItems:[{id:1,value:"AVAX",label:"AVALANCHE",icon:I},{id:2,value:"ETH",label:"ETH",icon:u},{id:3,value:"USDT",label:"USD",icon:x}],mainChainCurrency:{0:me.btc,1:V.eth,66:$.okt,56:J.bnb,137:Q.matic,501:ee.sol,43114:de.avax,42161:pe.eth,10:le.eth,8217:ue.klay,42170:fe.novaeth,324:ve.eth,784:ne.sui,8453:te.base,59144:ce.linea,204:re.opbnb,1101:ae.evm,534352:oe.eth,169:se.eth,637:ie.apt,9004:be.eth}};const xe=he},8184:(e,n,t)=>{t.d(n,{Fp:()=>l,Tf:()=>s});var c=t(45987),r=t(64037),a=["id"],o=function(e){return e.ORDINALS="ordinals",e}(o||{}),s=o,i=function(e){return e[e.BRC20=0]="BRC20",e}(i||{}),l={[i.BRC20]:{tag:"inscription_market_tag_brc20",symbol:"sats",protocol:s.ORDINALS}};[{id:s.ORDINALS,icon:"/cdn/assets/imgs/241/4E75D108C9FB12E3.png",label:"inscription_market_switch_nav_ordinals",textColor:"#F7931A",desc:"btcnft_home_subtitle_explore_btc_nft",bannerBackground:{xl:"/cdn/assets/imgs/241/B0F81BD949B5D28C.png",lg:"/cdn/assets/imgs/241/6F6CBB82534FA3CC.png",md:"/cdn/assets/imgs/241/1A9A78AEA075557D.png",sm:"/cdn/assets/imgs/241/1A9A78AEA075557D.png"},chainId:r.Bv.BTC,homeTabs:{tokens:{label:"brc20_home_tab_brc20",visible:!0},nft:{label:"btcnft_home_tab_btc_nft",visible:!0}}}].reduce(((e,n)=>{var t=e,r=n.id,o=(0,c.Z)(n,a);return t[r]=o,t}),{})},65493:(e,n,t)=>{t.d(n,{Z:()=>f});t(87363);var c=t(95640),r=t.n(c),a=t(23364),o=(t(23502),t(93380)),s=t(48006),i=t(926);const l="index_item__oAbY2",u="index_currency__PdgRK",d="index_token__h5rCM";var p=t(45263);const f=e=>{var n=e.nftInfo,t=n.amount,c=n.tickerIcon,f=n.ticker,v=n.inscriptionNum;return(0,p.jsxs)("div",{className:r()(l,"flex items-center"),children:[(0,p.jsx)(a.Z,{src:c||(0,i.Gt)(),alt:"nft",className:u,width:48,height:48,useWebp:!1}),"".concat(o.yx.showCeilTruncation(t,8,!1)," ").concat(f),(0,p.jsxs)("div",{className:d,children:["#",(0,s.Z)(v)]})]})}},43621:(e,n,t)=>{t.d(n,{Z:()=>o});var c=t(1413),r=t(85658),a=t(97505);const o={getGasPrice:e=>r.Z.get(a.Z.GAS_PRICE,e),getBalance:e=>r.Z.get(a.Z.GET_BALANCE,e),getBalanceOfXverse:e=>r.Z.get(a.Z.GET_XVERSE_BALANCE,e),orderCheck:e=>r.Z.post(a.Z.ORDER_CHECK,e),bestOffer:e=>r.Z.post(a.Z.BEST_OFFER,(0,c.Z)((0,c.Z)({},e),{},{source:"all"})),ordersConfig:e=>r.Z.get(a.Z.ORDERS_CONFIG,e),nftCheck:e=>r.Z.post(a.Z.NFT_CHECK,e)}},65552:(e,n,t)=>{function c(e,n){void 0===n&&(n={});for(var t=function(e){for(var n=[],t=0;t=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at ".concat(t));n.push({type:"NAME",index:t,value:o}),t=s}else n.push({type:"CLOSE",index:t,value:e[t++]});else n.push({type:"OPEN",index:t,value:e[t++]});else n.push({type:"ESCAPED_CHAR",index:t++,value:e[t++]});else n.push({type:"MODIFIER",index:t,value:e[t++]})}return n.push({type:"END",index:t,value:""}),n}(e),c=n.prefixes,r=void 0===c?"./":c,o="[^".concat(a(n.delimiter||"/#?"),"]+?"),s=[],i=0,l=0,u="",d=function(e){if(l-1:void 0===I;r||(x+="(?:".concat(h,"(?=").concat(b,"))?")),T||(x+="(?=".concat(h,"|").concat(b,")"))}return new RegExp(x,o(t))}(c(e,t),n,t)}function i(e,n,t){return e instanceof RegExp?function(e,n){if(!n)return e;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,r=t.exec(e.source);r;)n.push({name:r[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),r=t.exec(e.source);return e}(e,n):Array.isArray(e)?function(e,n,t){var c=e.map((function(e){return i(e,n,t).source}));return new RegExp("(?:".concat(c.join("|"),")"),o(t))}(e,n,t):s(e,n,t)}t.d(n,{Bo:()=>i,EQ:()=>r})},1332:(e,n,t)=>{t.d(n,{O:()=>s});var c=t(26165),r=t(42293),a=t(27154),o=t(34996),s=()=>{var e=new Map;return e.set("menuStore",r.Z),e.set("cartStore",c.Z),e.set("searchStore",a.Z),e.set("commonStore",o.Z),e}},65326:(e,n,t)=>{t.d(n,{bf:()=>l,bh:()=>u,iF:()=>d,oR:()=>p});var c=t(87363),r=t(11987),a=t(60378);(0,r.DT)((0,a.y)());var o=()=>{},s={},i=(0,c.createContext)({}),l=e=>{o=class{constructor(){e.forEach(((e,n)=>{this[n]=new e(this)}))}},(0,a.y)()||(s=new o,i=(0,c.createContext)(s))},u=()=>(0,a.y)()?new o:s||(s=new o),d=()=>i,p=()=>(0,c.useContext)(i)},31727:(e,n,t)=>{t.d(n,{Hr:()=>o,Vw:()=>s,b7:()=>i,op:()=>a});var c=t(31864),r=()=>(0,c.ip)().nft,a=()=>{var e=(0,c.ip)().nft;return{tokens:"".concat(e.inscription,"/:protocol/tokens"),nft:"".concat(e.inscription,"/:protocol/nft"),listing:"".concat(e.inscription,"/:protocol/listing/:ticker/:tickerId?"),edit:"".concat(e.inscription,"/:protocol/edit/:ticker/:nftId/:tickerId?"),orderList:"".concat(e.inscription,"/:protocol/token/:ticker/:tickerId?")}},o=(a(),e=>{var n=e.protocol,t=e.symbol,c=e.nftId,a=e.tickerId,o=r();return a?"".concat(o.inscription,"/").concat(n,"/edit/").concat(t,"/").concat(c,"/").concat(a):"".concat(o.inscription,"/").concat(n,"/edit/").concat(t,"/").concat(c)}),s=e=>{var n=e.protocol,t=e.symbol,c=e.tickerId,a=r();return c?"".concat(a.inscription,"/").concat(n,"/listing/").concat(t,"/").concat(c):"".concat(a.inscription,"/").concat(n,"/listing/").concat(t)},i=e=>{var n=e.protocol,t=e.symbol,c=e.tickerId,a=r();return c?"".concat(a.inscription,"/").concat(n,"/token/").concat(t,"/").concat(c):"".concat(a.inscription,"/").concat(n,"/token/").concat(t)}},14001:(e,n,t)=>{t.d(n,{H5:()=>u,Kk:()=>o,bA:()=>s,k$:()=>a,on:()=>l,ye:()=>i});var c=t(85356),r=t(60378),a=()=>(0,r.y)()?{pathname:"",search:"",origin:"",href:"",hash:"",reload:()=>{},replace:()=>{}}:window.location,o=e=>{a().href=e},s=function(){(0,r.y)()||window.open(...arguments)},i=()=>a().pathname,l=e=>{var n=c.parse(a().search)||{};return e?n[e]:n},u=()=>a().reload()},17554:(e,n,t)=>{t.d(n,{Cd:()=>l,WZ:()=>u});var c=t(74165),r=t(1413),a=t(15861),o=t(1708),s=t(84711),i=t(36029),l=function(){var e=(0,a.Z)((0,c.Z)().mark((function e(n){var t,a,o=arguments;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.length>1&&void 0!==o[1]?o[1]:{},a=s.Z.getMonitorAddress(),n&&n((0,r.Z)({wallet_address:a},t));case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),u=function(){var e=(0,a.Z)((0,c.Z)().mark((function e(n){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,o.Z.getWalletAccount();case 3:r=e.sent,(0,i.jEP)({wallet_address:r,button_name:t});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},64397:(e,n,t)=>{t.d(n,{A9:()=>T,Pd:()=>I,Sw:()=>Z,T7:()=>_,aD:()=>w,m$:()=>S,sb:()=>k});var c=t(45987),r=t(74165),a=t(1413),o=t(15861),s=t(51625),i=t.n(s),l=t(83030),u=t(46430),d=t(93380),p=t(1708),f=t(64037),v=t(45862),m=t(39858),b=t(40910),h=t(43621),x=t(97282),g=t(48635),E=t(48903),A=t(84711),y=["payTokenAddr","operatorAddr","amount","currency","cb","scene","payload"],C=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var t,c;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.payload,c=(0,a.Z)({},t),e.next=4,Promise.allSettled([E.Z.get1559MaxFeeData(),E.Z.getEstimateGasLimit({payload:t})]);case 4:return e.sent.forEach(((e,n)=>{"fulfilled"===e.status&&e.value&&(0===n?(c.extParams&&(c.extParams.gasType="custom"),e.value.gasPrice?c.gasPrice=e.value.gasPrice:(c.maxFeePerGas=e.value.maxFeePerGas,c.maxPriorityFeePerGas=e.value.maxPriorityFeePerGas)):(c.extParams&&(c.extParams.useDefaultGasLimit=!0),c.gas=e.value))})),e.abrupt("return",c);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),_=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n,t){var c,o,s,i,l=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=l.length>2&&void 0!==l[2]?l[2]:{},!Array.isArray(n)){e.next=3;break}return e.abrupt("return",p.Z.sendTransaction(n,t));case 3:if(!(null!==c&&void 0!==c&&c.chain||0===(null===c||void 0===c?void 0:c.chain))){e.next=9;break}return e.next=6,p.Z.commAdapterLinkAndNet({chain:null===c||void 0===c?void 0:c.chain,switchFaildCallback:A.Z.switchEthDialog});case 6:if(e.sent){e.next=9;break}return e.abrupt("return",Promise.reject());case 9:return o=(0,a.Z)({},n),e.next=12,p.Z.getConnectedConfig();case 12:return s=e.sent,s.isOkxWallet&&(o.extParams={txSource:(null===c||void 0===c?void 0:c.txSource)||4,canSupplyGas:!0}),e.next=17,C({payload:o});case 17:return i=e.sent,e.abrupt("return",p.Z.sendTransaction(i,t));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),I=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var t,c,a,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.contractAddress,c=n.operatorAddress,e.next=3,p.Z.getAccount();case 3:return a=e.sent,e.next=6,p.Z.getWeb3();case 6:return o=e.sent,e.abrupt("return",new Promise((e=>{new o.eth.Contract(v.U5,t).methods.isApprovedForAll(a,c).call(((n,t)=>{e(t)}))})).catch((()=>!1)));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var t,c,a,s,i,u,d,m,h,x,E,A,y,C;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.contractAddress,c=n.operatorAddress,a=n.chain,s=n.callback,i=n.source,u=n.approved,d=void 0===u||u,m=n.approvePayload,h="",e.next=4,p.Z.getAccount();case 4:if(x=e.sent,E=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var o,s,i,l,u;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.cb,e.next=3,p.Z.getWeb3();case 3:return s=e.sent,i=new s.eth.Contract(v.U5,t),l={from:x,to:t,data:i.methods.setApprovalForAll(c,d).encodeABI(),extParams:{canSupplyGas:!0,chain:a}},e.next=8,_(l,o);case 8:return u=e.sent,e.abrupt("return",u);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var t,c;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.payload,c=n.cb,e.abrupt("return",p.Z.sendTransaction((0,l.Z)(t),c));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&(h=n,s&&s(n));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.prev=8,a!=f.Bv.STARKNET){e.next=15;break}return e.next=12,A({payload:m,cb:y});case 12:C=e.sent,e.next=18;break;case 15:return e.next=17,E({cb:y});case 17:C=e.sent;case 18:if(!h){e.next=20;break}return e.abrupt("return",(0,g.subscribeTxResult)({txnHash:h,chain:a,scene:b.TY.NFTApprove,payload:{source:i}}));case 20:return e.abrupt("return",C);case 23:e.prev=23,e.t0=e.catch(8),e.t0,(0,g.catchTxError)({scene:b.TY.NFTApprove,error:e.t0,payload:{source:i}});case 27:return e.abrupt("return",null);case 28:case"end":return e.stop()}}),e,null,[[8,23]])})));return function(n){return e.apply(this,arguments)}}(),Z=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var t,s,u,d,f,v,m,h,x,A,C,_,I,T;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.payTokenAddr,s=n.operatorAddr,u=n.amount,d=n.currency,f=n.cb,v=n.scene,m=n.payload,h=(0,c.Z)(n,y),x={},A="",e.prev=3,e.next=6,E.Z.get1559MaxFeeData();case 6:x=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),e.t0;case 12:if(C=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A=n,f&&f(n);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),_=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var n,c,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.Z.commApproveToken({abi:i(),addr:t,operatorAddr:s,amount:u,cb:C,maxFeePerGas:null===(n=x)||void 0===n?void 0:n.maxFeePerGas,maxPriorityFeePerGas:null===(c=x)||void 0===c?void 0:c.maxPriorityFeePerGas,extParams:{txSource:null===h||void 0===h?void 0:h.txSource}});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p.Z.sendTransaction((0,l.Z)(m),C));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.prev=15,!m){e.next=22;break}return e.next=19,I();case 19:T=e.sent,e.next=25;break;case 22:return e.next=24,_();case 24:T=e.sent;case 25:if(!A){e.next=27;break}return e.abrupt("return",(0,g.subscribeTxResult)((0,a.Z)({scene:v||b.TY.TokenApprove,txnHash:A,payload:{currency:d}},h)));case 27:return e.abrupt("return",T);case 30:return e.prev=30,e.t1=e.catch(15),(0,g.catchTxError)({scene:v||b.TY.TokenApprove,error:e.t1,payload:{currency:d}}),e.abrupt("return",!1);case 34:case"end":return e.stop()}}),e,null,[[3,9],[15,30]])})));return function(n){return e.apply(this,arguments)}}(),k=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n,t){var c,a,s,i,l,v,g,E,A;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var n,t,c,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.Z.getWalletType();case 2:return n=e.sent,e.next=5,p.Z.getAccount();case 5:if(t=e.sent,c=n===b.Pi.XVERSE,!c.isXverse){e.next=14;break}return e.next=10,p.Z.getWalletAdapter();case 10:return a=e.sent,e.next=13,a.getPaymentAccount();case 13:t=e.sent;case 14:return e.abrupt("return",t);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=()=>{var e=u.Z.get("connectedAccount")||{};return null===e||void 0===e?void 0:e.walletId},s=()=>{var e=n.value===m.yK?"":n.value;return t==f.Bv.SUI&&(e=""),n.value===m.y6.eth.value?m.yK:e},i=n.value,e.next=6,p.Z.getAccount();case 6:if(l=e.sent,(i||t===f.Bv.BTC)&&void 0!==t&&l){e.next=9;break}return e.abrupt("return",0);case 9:if(v=a(),g=s(),E=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var n,t,a,o,s,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:return t=e.sent,a=x.Z.getUtxos,o={utxoRequests:[{coinAmount:"0",serviceCharge:"0",utxoType:1,address:t}],coinId:1},e.next=7,a(o);case 7:return s=e.sent,i=((null===s||void 0===s||null===(n=s.data[0])||void 0===n?void 0:n.canTransferAmount)||0)/d.yx.pow(10,8),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var n,c,a,o,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 1761886,c=h.Z.getBalance,a={chainId:t===f.Bv.IMX?1761886:t,tokenAddress:g,walletId:v},e.next=5,c(a);case 5:return o=e.sent,s=(null===o||void 0===o||null===(n=o.data)||void 0===n?void 0:n.coinAmount)||0,e.abrupt("return",s);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!(t==f.Bv.BTC)){e.next=16;break}return e.abrupt("return",E());case 16:return e.abrupt("return",A());case 17:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),w=e=>p.Z.onWalletChange(e),S=e=>{p.Z.offWalletChange(e)}},48779:(e,n,t)=>{t.d(n,{Bq:()=>l,Hx:()=>r,I4:()=>a,U3:()=>s,Wo:()=>c,XX:()=>u,Z3:()=>m,b2:()=>o,g:()=>v,ji:()=>b,lW:()=>p,pD:()=>d,xy:()=>i,ze:()=>f});var c="tokenStandard",r="source",a="p2p transaction error",o="standard",s={DIRECT:1,PUSH:2},i={BUY:"buy",SELL:"sell",CANCEL:"cancel",TRANSFER:"transfer",BATCH_TRANSFER:"batchTransfer",UPDATE_PRICE:"updatePrice",ACCEPT_OFFER:"acceptOffer",MAKE_OFFER:"makeOffer",CANCEL_OFFER:"cancelOffer",CLAIM_NFT:"claimNft",BATCH_BUY:"batchBuy",BATCH_ACCEPT_OFFER:"batchAcceptOffer",BTC_INSCRIBE:"inscribe",P2P_BUY:"p2pBuy",P2P_SELL:"p2pSell",P2P_CANCEL:"p2pCancel",INIT_ACCOUNT:"initAccount",BATCH_MINT:"batchMint",CREATE_COLLECTION:"createCollection"},l={REJECT_TRADE:4001},u={BLUR_ACCEPT_OFFER_LOW:99e3,LISTING:99001,BATCH_BUY:99002,BATCH_TRANSFER:99003},d={NORMAL:1,NOT_SHOW:2,FALLBACK:3},p={P2P:3},f={DAPP:2,NFT:4},v={PRE_TRADE:8},m={NFT:2},b="20050000"},2126:(e,n,t)=>{t.d(n,{N2:()=>o,pZ:()=>s});t(55922),t(87363);var c=t(50487),r=["name","infoEn","nameEn","projectName","info","desc","nftName","description","sesriesDes","data","items","list","topMintsEntryDTOS","collections","collection","projects","creationPageProjectInfoList","orders","collectionInfo","nftData","minting"],a=(e,n)=>{if(Array.isArray(e))return e.map((e=>a(e)));var t=r;Array.isArray(n)?t=t.concat(n):t.push(n);var o={};for(var s in e)void 0!=e[s]&&null!=e[s]&&(s&&-1!==t.indexOf(s)?"object"===typeof e[s]?o[s]=a(e[s]):o[s]=(0,c.Jx)(e[s].toString()):o[s]=e[s]);return o},o=(e,n)=>Array.isArray(e)?e.map((e=>a(e,n))):"object"===typeof e?a(e,n):e,s=e=>(n,t,c)=>{var r=c.value;return c.value=function(){this.initialPropsStore.initialProps[n.constructor.initialPropsName]=o(this.initialPropsStore.initialProps[n.constructor.initialPropsName],e);for(var t=arguments.length,c=new Array(t),a=0;a