PageSourceSearch

https://typus.finance/_next/static/chunks/pages/tails-e581be1a36530837.js

js typus.finance collected 2026-09-25 20:29:46 UTC 63,283 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2007],{20125:function(e,t,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s);var l=Object.getOwnPropertyDescriptor(t,s);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,a,l)}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),l=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),l(s(20485),t)},47443:function(e,t,s){var a=s(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}},1196:function(e){e.exports=function(e,t,s){for(var a=-1,l=null==e?0:e.length;++a<l;)if(s(t,e[a]))return!0;return!1}},41848:function(e){e.exports=function(e,t,s,a){for(var l=e.length,i=s+(a?1:-1);a?i--:++i<l;)if(t(e[i],i,e))return i;return -1}},42118:function(e,t,s){var a=s(41848),l=s(62722),i=s(42351);e.exports=function(e,t,s){return t==t?i(e,t,s):a(e,l,s)}},62722:function(e){e.exports=function(e){return e!=e}},45652:function(e,t,s){var a=s(88668),l=s(47443),i=s(1196),n=s(74757),o=s(23593),r=s(21814);e.exports=function(e,t,s){var c=-1,d=l,p=e.length,_=!0,x=[],h=x;if(s)_=!1,d=i;else if(p>=200){var u=t?null:o(e);if(u)return r(u);_=!1,d=n,h=new a}else h=t?[]:x;e:for(;++c<p;){var m=e[c],g=t?t(m):m;if(m=s||0!==m?m:0,_&&g==g){for(var f=h.length;f--;)if(h[f]===g)continue e;t&&h.push(g),x.push(m)}else d(h,g,s)||(h!==x&&h.push(g),x.push(m))}return x}},23593:function(e,t,s){var a=s(58525),l=s(50308),i=s(21814),n=a&&1/i(new a([,-0]))[1]==1/0?function(e){return new a(e)}:l;e.exports=n},42351:function(e){e.exports=function(e,t,s){for(var a=s-1,l=e.length;++a<l;)if(e[a]===t)return a;return -1}},50308:function(e){e.exports=function(){}},45578:function(e,t,s){var a=s(67206),l=s(45652);e.exports=function(e,t){return e&&e.length?l(e,a(t,2)):[]}},57609:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tails",function(){return s(97078)}])},97078:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return tN}});var a,l,i,n,o=s(85893),r=s(68575),c=s(84900),d=s.n(c),p=()=>{let e=(0,r.Z)(e=>e.iW);return(0,o.jsxs)("div",{className:d().pageTitle,children:[(0,o.jsxs)("p",{className:"".concat(e>=768?"b34":"b37"),children:["TAILS ",e<768&&(0,o.jsx)("br",{}),"BY TYPUS"]}),(0,o.jsx)("p",{className:"".concat(e>=768?"b9":"b12"," ").concat(d().description),children:"The Key To Your DeFi Playground"})]})},_=s(64058),x=s.n(_),h=s(99221),u=s.n(h),m=s(25675),g=s.n(m),f=s(20084),b=s(91019),j=s(44456),v=s(42160),T=s(26583),N=s(62934),y=s(56892),k=s(67421),w=s(14197),S=s.n(w),E=s(44304),M=s(30381),C=s.n(M),I=s(11163),P=s(75777),D=s(22005),L=()=>{let e=(0,I.useRouter)(),{t}=(0,k.$G)("header"),{setShowWalletList:s}=(0,y.ZP)(),a=()=>s(!0),l=(0,r.Z)(e=>e.iW);return(0,o.jsxs)("div",{className:S().walletConnect,children:[(0,o.jsx)("div",{className:"".concat(l>=768?"b9":"b12"),children:"Connect your wallet to view details."}),(0,o.jsx)("div",{className:"btn4 ".concat(S().btn),onClick:()=>{(0,E.B)(P.ff.CLICK_CONNECT_WALLET,{timestamp:C()().format(D.i),page_path:e.asPath,component:"connect_zone",package:P.wL.DOV}),a()},children:t("CONNECT WALLET")})]})},B=s(47482),O=s(43303);(a=i||(i={}))[a.TYPUS=0]="TYPUS",a[a.EXP=1]="EXP";var A=()=>{var e;(0,I.useRouter)();let{isConnected:t,currentAccount:s}=(0,y.ZP)(),{network:a,provider:l}=(0,N.Z)(e=>({network:e.network,provider:e.provider})),{coin:i}=(0,j.Z)(e=>({coin:e.coin})),n=(0,r.Z)(e=>e.iW),{claimDiceProfitSharing:c,profitToClaim:d,nextDistributionTime:p}=(0,b.ZP)(),{netDeposit:_,pendingExp:x,refresh:h,refetchTlpUserStakeData:m}=(0,O.Z)(),{data:k}=(0,B.Y)(l,a,null==s?void 0:s.address);return(0,o.jsxs)("div",{className:u().myTrophy,children:[(0,o.jsx)("p",{className:"".concat(n>=1280?"h2":"h4"," ").concat(u().title),children:"MY TROPHY"}),t?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:u().list,children:[n<1280&&(0,o.jsx)("div",{className:u().mobileBg,children:(0,o.jsx)(U,{})}),(0,o.jsxs)("div",{className:u().listItems,children:[n>=1280&&(0,o.jsx)("div",{className:"".concat(u().decoration)}),(0,o.jsxs)("div",{className:"".concat(u().listItem),children:[n>=1280&&(0,o.jsx)("div",{className:u().desktopBg,children:(0,o.jsx)(g(),{src:"/icon/tail_page_trophy_desktop_bg.svg",alt:"bg",fill:!0})}),(0,o.jsxs)("div",{className:u().contentBlock,children:[(0,o.jsx)("div",{className:u().imageBlock,children:(0,o.jsx)(g(),{src:"/logo/tail_page_trophy_dragon_logo.svg",alt:"logo",fill:!0})}),(0,o.jsxs)("div",{className:u().txt,children:[(0,o.jsxs)("div",{className:"".concat(n>=768?"b12":"b27"," ").concat(u().txtTitle),children:[(0,o.jsx)("p",{children:"EXP"}),(0,o.jsx)("div",{className:u().infoBoxIcon,children:(0,o.jsx)(f.x,{label:R(k&&k.length>0?Number(k[1]):0,_,i,a),placement:"top",border:"none",w:n>=768?"288px":"246px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)(g(),{fill:!0,alt:"icon",src:"/icon/exclamation_purple.svg"})})})]}),(0,o.jsxs)("p",{className:"".concat(n>
1=768?"b5":"b7"," ").concat(u().value),children:[i.find(e=>e.type==="".concat(T.$[a].EXP_GUESS_PACKAGE_ORIGIN,"::tails_exp::TAILS_EXP"))?(0,v.Ix)(Number(null===(e=i.find(e=>e.type==="".concat(T.$[a].EXP_GUESS_PACKAGE_ORIGIN,"::tails_exp::TAILS_EXP")))||void 0===e?void 0:e.balance)+Number("".concat(k&&k.length>0?Number(k[1]):0))):"".concat(k&&k.length>0?Number(k[1]):0)," ","EXP"]})]})]}),(0,o.jsxs)("button",{className:"btn4 ".concat(u().btn),style:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:async()=>{await h(),m()},children:["REFRESH",(0,o.jsx)("div",{className:u().refreshInfoBoxIcon,children:(0,o.jsx)(f.x,{label:F(x.toString()),placement:"top",border:"none",w:n>=1280?"288px":"246px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)(g(),{fill:!0,alt:"icon",src:"/icon/exclamation_purple.svg"})})})]})]})]})]})}):(0,o.jsx)(L,{})]})};let F=e=>(0,o.jsx)("div",{className:"b15",children:(0,o.jsxs)("p",{children:["Refresh the value of your ",(0,o.jsx)("b",{children:"Net Deposit"})," and ",(0,o.jsx)("b",{children:"Total EXP"})," at any time. ",(0,o.jsxs)("b",{children:[(0,v.Ix)(e)," EXPs "]}),"are pending collection."]})}),R=(e,t,s,a)=>{var l;return(0,o.jsxs)("div",{className:"b15",children:[(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Deposit EXP"})," is accumulated every minute. Click “Refresh“ to update the value. ",(0,o.jsx)("b",{children:"Bid EXP"})," is credited upon placing a new bid. ",(0,o.jsx)("b",{children:"Trade Perp EXP"})," is credited based on trading fees when opening or closing perpetual contracts."]}),(0,o.jsxs)("ul",{style:{marginLeft:"2rem"},children:[(0,o.jsxs)("li",{children:["Net Deposit: $",(0,v.Ix)(t)]}),(0,o.jsxs)("li",{children:["EXP from Deposit & Bid: ",(0,v.Ix)(e)]}),(0,o.jsxs)("li",{children:["EXP from Dice\xb2:"," ",s.find(e=>e.type==="".concat(T.$[a].EXP_GUESS_PACKAGE_ORIGIN,"::tails_exp::TAILS_EXP"))?(0,v.Ix)(Number(null===(l=s.find(e=>e.type==="".concat(T.$[a].EXP_GUESS_PACKAGE_ORIGIN,"::tails_exp::TAILS_EXP")))||void 0===l?void 0:l.balance)):"0"]})]})]})},U=()=>(0,o.jsxs)("svg",{width:"280",height:"424",viewBox:"0 0 280 424",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",inset:0,top:"-15rem"},children:[(0,o.jsx)("g",{filter:"url(#filter0_d_25775_462201)",children:(0,o.jsx)("path",{d:"M4 20C4 8.95432 12.9543 0 24 0L256 0C267.046 0 276 8.95431 276 20V374.901C276 384.592 269.052 392.889 259.511 394.59L142.981 415.371C140.649 415.787 138.262 415.785 135.931 415.366L20.4614 394.609C10.9334 392.896 4 384.605 4 374.924V20Z",fill:"white","shape-rendering":"crispEdges"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"filter0_d_25775_462201",x:"0",y:"0",width:"280",height:"423.682",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,o.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dy:"4"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.313726 0 0 0 0 0.337255 0 0 0 0 0.917647 0 0 0 0.1 0"}),(0,o.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_25775_462201"}),(0,o.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_25775_462201",result:"shape"})]})})]});var Z=s(63005),G=s.n(Z),X=s(65040),H=s(67294),Y=s(15544),K=s(95859),W=s(80032),V=s(87695),z=s(8018),J=s.n(z),$=()=>(0,o.jsx)("div",{className:"".concat(J().loading),children:(0,o.jsx)(V.Z,{showLoadingCircle:!1,showLoadingDots:!0})}),Q=s(20485),q=s(41664),ee=s.n(q),et=s(39590),es=s.n(et),ea=e=>{(0,I.useRouter)();let t=(0,r.Z)(e=>e.iW);return(0,o.jsxs)("div",{className:es().emptyData,children:[(0,o.jsx)("div",{className:"".concat(t>=768?"b9":"b12"),children:e.description}),(0,o.jsx)("div",{className:"btn4 ".concat(es().btn),children:(0,o.jsx)(ee(),{href:e.route,className:es().link,target:e.route.includes("http")?"_blank":"",children:e.label.toUpperCase()})})]})},el=s(99245),ei=s(13718),en=s(20193),eo=s(8970),er=s(39753),ec=s(32796),ed=s(86866),ep=s(82914),e_=s(45578),ex=s.n(e_),eh=s(84906),eu=s.n(eh),em=e=>{let[t,s]=(0,H.useState)(1);return(0,H.useEffect)(()=>{let e=setInterval(()=>{let e=t+1;e>3&&(e=1),s(e)},400);return()=>clearInterval(e)},[t]),(0,o.jsxs)("div",{className:eu().generatingLevelUp,children:[(0,o.jsx)("div",{className:eu().bgCover}),(0,o.jsx)("div",{className:"".concat(eu().icon),children:(0,o.jsx)(g(),{src:"/icon/tail_page_generating_icon.png",alt:"icon",fill:!0})}),(0,o.jsx)("div",{className:"".concat(eu().bg," ").concat(1===t?eu().show:""),children:(0,o.jsx)(g(),{src:"/icon/tail_page_generating_bg_1.png",alt:"1",fill:!0})}),(0,o.jsx)("div",{className:"".concat(eu().bg," ").concat(2===t?eu().show:""),children:(0,o.jsx)(g(),{src:"/icon/tail_page_generating_bg_2.png",alt:"2",fill:!0})}),(0,o.jsx)("div",{className:"".concat(eu().bg," ").concat(3===t?eu().show:""),children:(0,o.jsx)(g(),{src:"/icon/tail_page_generating_bg_3.png",alt:"3",fill:!0})}),(0,o.jsxs)("div",{className:"b5 ".concat(eu().txt),children:["GENERATING"," ",(0,o.jsxs)("div",{className:eu().dotsBlock,children:[(0,o.jsx)("p",{className:"".concat(eu().p," ").concat(eu().dot1),children:"."}),(0,o.jsx)("p",{className:"".concat(eu().p," ").concat(eu().dot2),children:"."}),(0,o.jsx)("p",{className:"".concat(eu().p," ").concat(eu().dot3),children:"."})]})]}),(0,o.jsxs)("p",{className:"b12 ".concat(eu().tailName),children:["TAILS BY TYPUS #",e.number]})]})},eg=s(47076),ef=s(70794),eb=s(40370),ej=s(20125),ev=s(12456),eT=s.n(ev),eN=()=>{let[e,t]=(0,H.useState)(!0),[s,a]=(0,H.useState)([]),{provider:l,network:i}=(0,N.Z)(e=>({network:e.network,provider:e.provider})),{kioskOwnerCaps:n,noKioskTailsId:o}=(0,j.Z)(e=>({kioskOwnerCaps:e.kioskOwnerCaps,noKioskTailsId:e.noKioskTailsId})),{data:r}=(0,W.F)(l,i,n,o);return(0,H.useEffect)(()=>{r&&r.length>0&&(a((0,Y.A)(r,[]).filter(e=>!e.isListed)),t(!1)),r&&(null==r?void 0:r.length)===0&&(a([]),t(!1))},[r]),{tailsData:s,isLoading:e,setTailsData:a}},ey=s(12902);let ek=(0,s(73445).Ue)(e=>({operationTsMs:"",set:t=>e((0,ey.ZP)(t))}));var ew=e=>{let t=(0,r.Z)(e=>e.iW),{network:s,provider:a}=(0,N.Z)(e=>({network:e.network,provider:e.provider})),{kioskOwnerCaps:l,noKioskTailsId:i}=(0,j.Z)(e=>({kioskOwnerCaps:e.kioskOwnerCaps,noKioskTailsId:e.noKioskTailsId})),{currentAccount:n}=(0,y.ZP)(),{signTransaction:c,executeTransaction:d}=(0,en.Z)(),p=(0,eo.ZP)(e=>e.set),{t:_}=(0,k.$G)("popup"),{tailsData:x,isLoading:h}=eN(),[u,m]=(0,H.useState)(""),[b,v]=(0,H.useState)(!1),[T,w]=(0,H.useState)([]),{data:S}=(0,ep.M)(a,s,null==n?void 0:n.address),{setTailsStore:E}=ek(e=>({setTailsStore:e.set})),M=async t=>{if(!n||!a||void 0===s)return;let l=await eg.TypusConfig.default("mainnet"===s?"MAINNET":"TESTNET",null),i=new ec.l({client:l.graphQlClient(),network:l.network}),o=await (0,ej.getTailsIds)(i,l.packageOrigin.nft,t);if(o.length>0){let t=[];x.map(e=>{if(e.selecting){let s=o.find(t=>(null==e?void 0:e.id)===t.nftId);t.push(s)}});let s=i.getRulePackageId("personalKioskRulePackageId"),a=new ed.Y;for(let e of t)a=await (0,er.getTransferTailsTx)(l,a,{kiosk:e.kiosk,kioskCap:e.kioskCap,tails:e.nftId,recipient:u,fee:S.tailsStakingConfig.config[2],personalKioskPackageId:e.isPersonal?s:void 0});p(()=>({show:!0,type:eo.eL.LOADING,title:_(eo.zJ.SIGNING_APPROVAL),content:"",campaignType:null,digest:""}));let n=await c(a);if(!n)return;await d(n),E(e=>({...e,operationTsMs:C()().valueOf()})),e.setShowTransferTailsModal(!1)}};return(0,H.useEffect)(()=>
1{if(0===x.length){w([]);return}e.defaultTransferTailId?w(x.map(t=>(t.id===e.defaultTransferTailId&&(t.selecting=!0),t))):w(x)},[x,e.defaultTransferTailId]),(0,H.useEffect)(()=>{""===u||(0,eb.oI)(u)||v(!0)},[u]),(0,o.jsxs)("div",{className:eT().transferTailsModal,children:[(0,o.jsx)("div",{className:eT().bg,onClick:()=>e.setShowTransferTailsModal(!1)}),h?(0,o.jsx)("div",{className:eT().modalContainer,children:(0,o.jsx)(V.Z,{showLoadingCircle:!1,showLoadingDots:!0})}):(0,o.jsxs)("div",{className:eT().modalContainer,children:[(0,o.jsx)("p",{className:"".concat(t>=768?"b7":"b8"," ").concat(eT().title),children:"Transfer Tails"}),(0,o.jsx)(Y.ZP,{tailsData:T,multipleSelection:!0,updateTailsData:w}),(0,o.jsxs)("div",{className:"".concat(t>=768?"b12":"b27"," ").concat(eT().addressValidateBlock," ").concat(b?eT().isInvalid:""),children:[(0,o.jsx)("div",{children:"Enter Recipient Address."}),(0,o.jsx)("input",{type:"text",placeholder:"0x...",className:"".concat(t>=768?"b12":"b27"," ").concat(eT().input),value:u,onFocus:()=>{v(!1)},onChange:e=>{m(e.target.value)},onBlur:()=>{""!==u&&(0,eb.oI)(u)||v(!0)}}),b&&(0,o.jsx)("div",{className:eT().invalidAddress,children:"*Invalid Address"})]}),(0,o.jsxs)("div",{className:"".concat(t>=768?"btn3":"btn4"," ").concat(eT().btn," ").concat(0===x.filter(e=>e.selecting).length||""===u||b?eT().disabled:""),onClick:()=>{0===x.filter(e=>e.selecting).length||""===u||b||null==l||M(l)},children:["SEND ",x.filter(e=>e.selecting).length," TAILS"," ",(0,o.jsx)(f.x,{label:(0,o.jsx)("div",{className:"b15",children:"Transfer fee is 0.01 SUI per Tail."}),placement:"bottom",border:"none",w:"288px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)("div",{className:"".concat(eT().iconBlock," ").concat(0===x.filter(e=>e.selecting).length||""===u||b?eT().iconDisabled:""),children:(0,o.jsx)(g(),{fill:!0,src:"/icon/exclamation_grey.svg",alt:"icon"})})})]})]})]})},eS=()=>{let{currentWallet:e,currentAccount:t}=(0,y.ZP)(),[s,a]=(0,H.useState)(!0),{network:l,provider:i}=(0,N.Z)(e=>({network:e.network,provider:e.provider})),n=(0,r.Z)(e=>e.iW),[c,d]=(0,H.useState)(5),[p,_]=(0,H.useState)([]),[x,h]=(0,H.useState)(2),[u,m]=(0,H.useState)(0),{kioskOwnerCaps:T,noKioskTailsId:w}=(0,j.Z)(e=>({coin:e.coin,kioskOwnerCaps:e.kioskOwnerCaps,noKioskTailsId:e.noKioskTailsId})),[S,E]=(0,H.useState)([]),[M,I]=(0,H.useState)([]),[P,D]=(0,H.useState)(""),[B,O]=(0,H.useState)(!1),[A,F]=(0,H.useState)(!1),[R,U]=(0,H.useState)(!1),[Z,V]=(0,H.useState)(""),[z,J]=(0,H.useState)(""),[q,ee]=(0,H.useState)(""),[et,es]=(0,H.useState)(!1),{distributeTokenType:e_}=(0,b.ZP)(),{signTransaction:eh,executeTransaction:eu}=(0,en.Z)(),eb=(0,eo.ZP)(e=>e.set),{t:ej}=(0,k.$G)("popup"),[ev,eT]=(0,H.useState)(""),{data:eN,refetch:ey}=(0,ep.M)(i,l,null==t?void 0:t.address),{data:eS,refetch:eM}=(0,W.F)(i,l,T,w),[eC,eI]=(0,H.useState)(!1),[eP,eD]=(0,H.useState)(el.h.TRAIN),{operationTsMs:eL,setTailsStore:eB}=ek(e=>({operationTsMs:e.operationTsMs,setTailsStore:e.set})),eO=()=>{let e=!0;(eN&&"0"!==eN.u64Padding[0]&&C()().startOf("day").valueOf()<Number(eN.u64Padding[0])&&C()().endOf("day").valueOf()>Number(eN.u64Padding[0])||(null==eN?void 0:eN.allUserStakingTailsInfo.length)===0)&&(e=!1),F(e)},eA=e=>{let t=u+e;t<=0&&(t=1),t>=x&&(t=x),m(t)},eF=e=>{V(e),eD(el.h.TRAIN),U(!0)},eR=e=>{V(e),eD(el.h.EXTRACT),U(!0)},eU=e=>{J(e),O(!0)},eZ=e=>{eT(e),es(!0)},eG=async()=>{if(!i||!l)return;let e=new ed.Y,t=await eg.TypusConfig.default("mainnet"===l?"MAINNET":"TESTNET",null);e=await (0,er.getDailySignUpTx)(t,e,{fee:eN.tailsStakingConfig.config[4]}),eb(()=>({show:!0,type:eo.eL.LOADING,title:ej(eo.zJ.SIGNING_APPROVAL),content:"",campaignType:null,digest:""}));let s=await eh(e);s&&(await eu(s),eB(e=>({...e,operationTsMs:C()().valueOf()})),eO())},eX=async e=>{if(!t||!i||!l||!T)return;let s=await eg.TypusConfig.default("mainnet"===l?"MAINNET":"TESTNET",null),a=t.address,n=S.find(t=>t.id===e);if(!n)return;eb(()=>({show:!0,type:eo.eL.LOADING,title:ej(eo.zJ.SIGNING_APPROVAL),content:"",campaignType:null,digest:""}));let o=new ec.l({client:s.graphQlClient(),network:s.network}),r=(await (0,Q.getTailsIds)(o,s.packageOrigin.nft,T)).find(e=>n.id===e.nftId),c=new ed.Y;if(n.isLocked){if(void 0===r){eb(()=>({show:!0,type:eo.eL.ERROR,title:ej(eo.zJ.UNKNOWN_ERROR),content:"NFT not found.",campaignType:null,digest:""}));return}let e=o.getRulePackageId("personalKioskRulePackageId");c=await (0,er.getStakeTailsTx)(s,c,{kiosk:r.kiosk,kioskCap:r.kioskCap,tails:r.nftId,fee:eN.tailsStakingConfig.config[1],personalKioskPackageId:r.isPersonal?e:void 0})}else c=await (0,er.getCreateKioskAndLockNftTx)(s,c,o,{nft_policy:s.object.nftTransferPolicy,nft_id:n.id,user:a});eb(()=>({show:!0,type:eo.eL.LOADING,title:ej(eo.zJ.SIGNING_APPROVAL),content:"",campaignType:null,digest:""}));let d=await eh(c);d&&(es(!1),await eu(d),eB(e=>({...e,operationTsMs:C()().valueOf()})))},eH=async e=>{if(!t||!i||!l)return;eb(()=>({show:!0,type:eo.eL.LOADING,title:ej(eo.zJ.SIGNING_APPROVAL),content:"",campaignType:null,digest:""}));let s=new ed.Y,a=await eg.TypusConfig.default("mainnet"===l?"MAINNET":"TESTNET",null);s=await (0,er.getLevelUpTx)(a,s,{tails:e,raw:!1}
1);let n=await eh(s);n&&(ee(e),await eu(n),eB(e=>({...e,operationTsMs:C()().valueOf()})),setTimeout(()=>{ee("")},5e3))},eY=async e=>{if(t&&i&&t.address&&T&&T.length>0&&l){let s=T[0];eb(()=>({show:!0,type:eo.eL.LOADING,title:ej(eo.zJ.SIGNING_APPROVAL),content:"",campaignType:null,digest:""}));let a=new ed.Y,i=await eg.TypusConfig.default("mainnet"===l?"MAINNET":"TESTNET",null);(null==eN?void 0:eN.tails.length)===1&&eN.profits.length>0&&(a=await (0,er.getClaimProfitSharingTx)(i,a,{typeArguments:[e_],user:t.address}));let n=new ec.l({client:i.graphQlClient(),network:i.network}).getRulePackageId("personalKioskRulePackageId");a=await (0,er.getUnstakeTailsTx)(i,a,{kiosk:s.kioskId,kioskCap:s.objectId,tails:e,personalKioskPackageId:s.isPersonal?n:void 0});let o=await eh(a);o&&(await eu(o),eB(e=>({...e,operationTsMs:C()().valueOf()})),eO())}};return(0,H.useEffect)(()=>{eL&&(eM(),ey())},[eL]),(0,H.useEffect)(()=>{n>=768?(d(5),m(1)):d(3)},[n]),(0,H.useEffect)(()=>{if(eN||eS||a(!0),eN&&eS){let e=ex()([...(null==eN?void 0:eN.allUserStakingTailsInfo)||[],...eS||[]],"id");if(e.length>0){let t=(0,Y.A)(e,eN.allUserStakingTailsInfo);E(t);let s=t.filter(e=>!e.staking&&!e.isListed);0===s.length?(eI(!0),I([])):(I(s),eI(!1)),eO()}else E([]),eI(!1);a(!1)}T&&w&&(0===T.length||0==w.length)&&a(!1)},[eS,eN,T,w]),(0,H.useEffect)(()=>{h(Math.ceil(S.length/c)),0===u&&m(1)},[S]),(0,H.useEffect)(()=>{if(!eS&&0===S.length)return;let e=S.slice((u-1)*c,c*u);0===e.length?m(1):_(e)},[x,u,S]),(0,H.useEffect)(()=>{et||I(M.map((e,t)=>(e.selecting=!1,0===t&&(e.selecting=!0),e)))},[et]),(0,o.jsxs)("div",{className:G().myTails,children:[(0,o.jsx)("p",{className:"".concat(n>=768?"h2":"h4"," ").concat(G().title),children:"MY TAILS"}),e?(0,o.jsx)(o.Fragment,{children:s?(0,o.jsx)($,{}):(0,o.jsx)(o.Fragment,{children:(null==S?void 0:S.length)===0?(0,o.jsx)(ea,{label:"Buy now",route:"https://www.tradeport.xyz/sui/collection/tails-by-typus",description:"You don't have any Tail."}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:G().infoRow,children:[(0,o.jsxs)("p",{className:"b9 ".concat(G().txt),children:["Feed to gain extra daily ",eN.tailsStakingConfig.config[3]," EXP per Tails staked!"]}),(0,o.jsxs)("div",{className:G().btnBlock,children:[(0,o.jsx)("a",{className:"btn4 ".concat(G().btn," ").concat(G().btn2),href:"https://www.tradeport.xyz/sui/collection/tails-by-typus",target:"_blank",rel:"noreferrer",children:"BUY MORE TAILS"}),(0,o.jsxs)("div",{className:"btn4 ".concat(G().btn," ").concat(G().btn1," ").concat(A?"":G().disabled),onClick:()=>{A&&eG()},children:[(0,o.jsx)("p",{children:"FEED ALL"}),eN&&(0,o.jsx)(f.x,{label:eE((Number(eN.tailsStakingConfig.config[4])/1e9).toString()),placement:"top",border:"none",w:n>=768?"288px":"246px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)("div",{className:"".concat(G().infoBoxIcon," ").concat(A?"":G().disabledIcon),children:(0,o.jsx)(g(),{fill:!0,alt:"icon",src:"/icon/exclamation_purple.svg"})})})]})]})]}),(0,o.jsx)("div",{className:G().list,children:p.map((e,t)=>(0,o.jsx)("div",{onMouseEnter:()=>{0===e.expToNextLevel&&e.staking&&7>Number(e.level)||D(e.number)},onMouseLeave:()=>{D("")},onClick:t=>{""!==P?D(""):D(e.number)},children:(0,o.jsxs)("div",{className:"".concat(G().listItem," ").concat(P===e.number&&e.id!==q?G().flip:""),children:[e.id===q&&(0,o.jsx)("div",{className:G().generatingBlock,children:(0,o.jsx)(em,{number:e.number})}),0===e.expToNextLevel&&e.staking&&7>Number(e.level)?null:(0,o.jsx)("div",{className:"".concat(G().back," ").concat(P===e.number?G().showBack:""),onMouseEnter:()=>{0===e.expToNextLevel&&e.staking&&7>Number(e.level)||D(e.number)},children:e.isListed?(0,o.jsx)("p",{className:"b13 ".concat(G().isListedNote),children:"This Tails is currently listed on a 3rd-party marketplace. Please delist it first if you wish to stake, train, or transfer this Tails."}):(0,o.jsxs)(o.Fragment,{children:[S.filter(e=>e.staking).length<eN.tailsStakingConfig.config[0]&&!e.staking?(0,o.jsxs)("div",{className:"btn4 ".concat(G().btn," ").concat(G().primaryBtn),onClick:()=>{eX(e.id)},children:[(0,o.jsx)("p",{children:e.isLocked?0===e.expToNextLevel?"STAKE TO LEVEL UP":"STAKE":"LOCK"}),(0,o.jsx)("div",{className:G().infoBoxIcon,children:(0,o.jsx)(f.x,{label:(0,o.jsxs)("div",{className:"b15",children:["Staking fee is"," ",(0,ef.Z)(eN.tailsStakingConfig.config[1]).div(1e9).toString()," ","SUI."]}),placement:"top",border:"none",w:n>=768?"288px":"246px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)(g(),{fill:!0,alt:"icon",src:"/icon/exclamation_purple.svg"})})})]}):null,7>Number(e.level)&&(0,o.jsx)("button",{className:"btn4 ".concat(G().btn," ").concat(e.staking?G().primaryBtn:""),onClick:()=>eF(e.id),children:"TRAIN"}),(0,o.jsx)("button",{className:"btn4 ".concat(G().btn," "),onClick:()=>eR(e.id),children:"EXTRACT EXP"}),e.staking&&eS&&(null==eS?void 0:eS.length)>0?(0,o.jsx)("button",{className:"btn4 ".concat(G().btn),onClick:()=>eZ(e.id),children:"SWITCH"}):(0,o.jsx)(o.Fragment,{children:eS&&eS.length>0&&(0,o.jsx)("button",{className:"btn7  ".concat(G().transferBtn),onClick:()=>eU(e.id),children:"TRANSFER"})}),e.staking&&(0,o.jsx)("button",{className:"btn7 ".concat(G().unStakeBtn),onClick:()=>eY(e.id),children:"UNSTAKE"})]})}),(0,o.jsx)("p",{className:"btn6 ".concat(G().stakingStatusLabel," ").concat(e.staking?G().stakingLabel:G
1().noStakingLabel," ").concat(e.isListed?G().listedLabel:""),children:e.staking?"STAKED":(0,o.jsx)(o.Fragment,{children:e.isListed?"LISTED":"UNSTAKED"})}),(0,o.jsx)("div",{className:G().tailImageBlock,children:(0,o.jsx)(g(),{fill:!0,alt:"tail",src:"https://walrus-testnet.typus.finance/ipfs/".concat(e.url.split("://")[1])})}),(0,o.jsxs)("p",{className:"b12 ".concat(G().tailName),children:["TAILS BY TYPUS #",e.number]}),(0,o.jsxs)("p",{className:"b8 ".concat(G().level),children:["LEVEL ",e.level]}),0===e.expToNextLevel&&e.staking&&7>Number(e.level)?(0,o.jsx)("div",{className:"btn4 ".concat(G().levelUpBtn),onClick:()=>{eH(e.id)},children:"LEVEL UP"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(X.E,{value:Number(e.exp)/(Number(e.expToNextLevel)+Number(e.exp))*100,borderRadius:"24px",variant:"portfolioMyTailProgressBar",h:n>=768?"30px":"24px",w:"100%",m:".4rem 0"}),(0,o.jsxs)("div",{className:"b27 ".concat(G().expBlock),children:[(0,o.jsxs)("div",{className:G().exp1,children:[(0,o.jsx)("p",{children:(0,v.Ix)(e.exp)}),(0,o.jsx)("p",{children:"EXP"})]}),7>Number(e.level)&&(0,o.jsxs)("div",{className:G().exp2,children:[(0,o.jsxs)("p",{children:[(0,v.Ix)(e.expToNextLevel)," EXP"]}),(0,o.jsxs)("p",{children:["TO LEVEL ",Number(e.level)+1]})]})]})]})]})},t))}),x>1&&(0,o.jsx)("div",{className:G().paginationBlock,children:(0,o.jsx)(K.Z,{totalPage:x,currentPage:u,nextPage:eA,prevPage:eA})})]})})}):(0,o.jsx)(L,{}),B&&(0,o.jsx)(ew,{setShowTransferTailsModal:O,defaultTransferTailId:z}),R&&(0,o.jsx)(el.Z,{setShowConsumeExpModal:U,targetTailData:S.filter(e=>{if(eP===el.h.EXTRACT&&(e.isExtractMode=!0),e.id===Z)return e.selecting=!0,e}),extractMode:eP===el.h.EXTRACT}),(0,o.jsx)("div",{className:et?"":G().hideStakeModal,children:(0,o.jsx)(ei.Z,{parsedTailsData:M,setParsedTailsData:I,setShowStakeTailsModal:es,isSwitchingMode:!0,defaultSwitchingTailId:ev,noAvailableTails:eC})})]})};let eE=e=>(0,o.jsxs)("div",{className:"b15",children:["Pay ",e," SUI to feed all Tails staked once per day. Kindly wait until 00:00 UTC to feed again."]});var eM=s(21027),eC=s(93717),eI=s(71293),eP=s(6089),eD=s(31346),eL=s.n(eD),eB=s(57747),eO=s(121),eA=s(70211),eF=s.n(eA),eR=e=>{let[t,s]=(0,H.useState)(!0),a=t=>{if(e.innerFiltersState[e.title].includes(t)){let s=e.innerFiltersState[e.title].filter(e=>e!==t),a={...e.innerFiltersState,[e.title]:s};e.setInnerFiltersState(a)}else{let s=[...e.innerFiltersState[e.title],t],a={...e.innerFiltersState,[e.title]:s};e.setInnerFiltersState(a)}},l=()=>{if("tailRelated"===e.title){let a=!t;s(a),a?e.setInnerFiltersState({...e.innerFiltersState,[e.title]:e.list}):e.setInnerFiltersState({...e.innerFiltersState,[e.title]:[]})}};return(0,H.useEffect)(()=>{e.innerFiltersState.tailRelated.length===e.list.length?s(!0):s(!1)},[JSON.stringify(e.innerFiltersState)]),(0,o.jsxs)("div",{className:eF().mobileFilterOption,children:[(0,o.jsxs)("div",{className:"b12 ".concat(eF().title),onClick:()=>l(),children:["tailRelated"===e.title&&"ALL","tailRelated"===e.title&&(0,o.jsx)(eO.Jg,{selected:t,supportMultipleSelect:!0})]}),e.list.map((t,s)=>(0,o.jsxs)("div",{className:eF().option,onClick:()=>a(t),children:[(0,o.jsx)("div",{className:eF().label,children:t}),(0,o.jsx)(eO.Jg,{selected:e.innerFiltersState[e.title].includes(t),supportMultipleSelect:!0})]},s))]})},eU=s(16718),eZ=s.n(eU),eG=e=>{let t=(0,r.Z)(e=>e.iW),[s,a]=(0,H.useState)(JSON.parse(JSON.stringify(e.filters)));(0,H.useEffect)(()=>{a(e.filters)},[e.filters,e.showFilterModal]);let l=()=>{e.setFilters(s)};return(0,o.jsxs)("div",{className:eZ().mobileFilterModal,children:[(0,o.jsx)("div",{className:"".concat(t>=768?eZ().desktopBg:eZ().bg),onClick:()=>{e.setShowFilterModal(!1)}}),(0,o.jsxs)("div",{className:"".concat(t>=768?eZ().desktopContainer:eZ().container),children:[t<768&&(0,o.jsx)("div",{className:eZ().closeModalIconBlock,onClick:()=>e.setShowFilterModal(!1),children:(0,o.jsx)(g(),{src:"/icon/mobile_filter_close_icon.svg",fill:!0,alt:"close"})}),(0,o.jsxs)("div",{className:"b12 ".concat(eZ().list),children:[(0,o.jsx)("div",{className:"".concat(""),children:(0,o.jsx)(eR,{title:"tailRelated",list:e.tailRelatedList,innerFiltersState:s,setInnerFiltersState:a})}),(0,o.jsx)("div",{className:eZ().btn,onClick:()=>{l(),e.setShowFilterModal(!1)},children:"SAVE"})]})]})]})},eX=s(66712),eH=s(91170),eY=s(14225),eK=s(4040),eW=s(78230),eV=s(198),ez=s(48758),eJ=s(67345),e$=s(55360);let eQ="SELECT ALL";var eq=e=>{let{filters:t,setFilters:s,menuTitle:a,itemList:l,supportSelectAll:i,supportMultipleSelect:n}=e,{t:c}=(0,k.$G)("vaults"),[d,p]=(0,H.useState)(l),_=(0,r.Z)(e=>e.iW),x=e=>{p(()=>d.includes(e)?[]:[e])},h=e=>{if(d.includes(e)){let t=d.filter(t=>t!==e);e!==eQ?p(t=t.filter(e=>e!==eQ)):p([])}else{let t=[...d,e];p(t),e===eQ?p([...l,eQ]):t.length===l.length&&(i?p([...l,eQ]):p([...l]))}};return(0,o.jsx)(eX.v,{onOpen:()=>{t[a]&&p(t[a])},children:e=>{let{isOpen:r}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eH.j,{className:"".concat(_>=768?"b12":"b27"),display:"flex",justifyContent:"center",alignItems:"center",as:eY.z,_hover:{},_active:{},bg:"transparent",mr:"6px",textTransform:"uppercase",rightIcon:r?(0,o.jsx)(eP.E,{src:eV.Z.src,mt:"2px",w:"16px",h:"8px",alt:"arrow up",transform:"rotate(180deg) translateY(10%)"}):(0,o.jsx)(eP.E,{src:eV.Z.src,mt:"2px",w:"16px",h:"8px",alt:"arrow down"}),alignContent:"center",children:a}),(0,o.jsxs)(eK.q,{padding:"16px 0",w:_>=768?"272px !important":"172px",minWidth:_>=768?"272px":"172px",left:"100%",transform:"translateX(-100%) !important",bg:"white",border:"2px s
1olid transparent",boxShadow:"4px 4px 10px rgba(29, 37, 45, 0.1), -4px -4px 10px rgba(0, 0, 0, 0.1)",borderRadius:"12px",children:[i&&(0,o.jsxs)(eC.k,{alignItems:"center",justifyContent:"space-between",padding:"8px 16px",cursor:"pointer",_hover:{bg:"#E3E4F9"},onClick:()=>h(eQ),children:[(0,o.jsx)(eI.x,{color:"#7378EE",position:"relative",textTransform:"uppercase",fontWeight:"600",fontSize:"1.6rem",children:c(eQ)}),(0,o.jsx)(e0,{selected:d.includes(eQ),supportMultipleSelect:n})]}),l.map((e,t)=>(0,o.jsxs)(eC.k,{alignItems:"center",justifyContent:"space-between",padding:_>=768?"8px 16px":"4px 16px",cursor:"pointer",onClick:()=>n?h(e):x(e),_hover:{bg:"#E3E4F9"},children:[(0,o.jsx)(eC.k,{alignItems:"center",position:"relative",children:n?(0,o.jsx)(eI.x,{fontWeight:"600",color:"#0A2037",fontSize:"1.6rem",position:"relative",textTransform:"uppercase",children:e}):(0,o.jsx)(eI.x,{className:"b12",color:"#0A2037",position:"relative",children:e})}),(0,o.jsx)(e0,{selected:d.includes(e),supportMultipleSelect:n})]},t)),(0,o.jsx)(eW.s,{_hover:{bg:"transparent"},bg:"transparent",padding:"0 !important",mt:"8px",children:(0,o.jsx)(eC.k,{className:"btn4",m:"auto",w:_>=768?"232px":"142px",h:_>=768?"52px":"40px",bg:"#E3E4F9",color:"#1D252D",borderRadius:"12px",justifyContent:"center",alignItems:"center",_hover:{bg:"#7378EE",color:"white"},cursor:"pointer",onClick:()=>{s({...t,[a]:d})},children:(0,o.jsx)(eI.x,{children:c("SAVE")})})})]})]})}})};let e0=e=>(0,o.jsx)(o.Fragment,{children:e.selected?(0,o.jsx)(o.Fragment,{children:e.supportMultipleSelect?(0,o.jsx)(eP.E,{src:e$.Z.src}):(0,o.jsx)(eP.E,{src:eJ.Z.src,w:"24px",h:"24px"})}):(0,o.jsx)(o.Fragment,{children:e.supportMultipleSelect?(0,o.jsx)(eP.E,{src:ez.Z.src}):(0,o.jsx)(eB.xu,{w:"24px",h:"24px"})})});var e1=e=>{let t=(0,r.Z)(e=>e.iW),[s,a]=(0,H.useState)(!1);return(0,o.jsxs)(eC.k,{children:[(0,o.jsxs)(eB.xu,{className:"".concat(t>=768?"b12":"b27"),cursor:"pointer",display:"flex",alignItems:"center",onClick:()=>a(!0),padding:t>=768?"1rem 1.6rem":".8rem",children:[(0,o.jsx)(eB.xu,{children:"ACTION"}),s?(0,o.jsx)(eP.E,{src:"/icon/arrow_down.svg",mt:"2px",w:"16px",h:"8px",ml:".5rem",alt:"arrow up",transform:"rotate(180deg) translateY(10%)"}):(0,o.jsx)(eP.E,{src:"/icon/arrow_down.svg",ml:".5rem",mt:"2px",w:"16px",h:"8px",alt:"arrow down"})]}),(0,o.jsx)(eB.xu,{padding:t>=768?"1rem 1.6rem":".8rem",children:(0,o.jsx)(eq,{supportMultipleSelect:!1,supportSelectAll:!1,filters:e.filters,setFilters:e.setFilters,menuTitle:"time",itemList:e.timeList})}),(0,o.jsx)(eB.xu,{display:s?"block":"none",children:(0,o.jsx)(eG,{...e,setShowFilterModal:a,showFilterModal:s})})]})},e2=()=>{let{t:e}=(0,k.$G)("portfolio");return(0,o.jsxs)("div",{className:"".concat(eL().header),children:[(0,o.jsx)("div",{className:"".concat(eL().col," ").concat(eL().col1),children:(0,o.jsx)("div",{className:"".concat(eL().text),children:e("ACTION")})}),(0,o.jsxs)("div",{className:eL().scrollBlock,children:[(0,o.jsxs)("div",{className:"".concat(eL().col2," ").concat(eL().col),children:[(0,o.jsx)("div",{className:eL().colText,children:e("AMOUNT")}),(0,o.jsx)(f.x,{label:e4(),placement:"top",border:"none",w:"288px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)(eP.E,{src:"/icon/exclamation_purple.svg",filter:" brightness(0) saturate(100%) invert(60%) sepia(30%) saturate(6430%) hue-rotate(212deg) brightness(91%) contrast(106%)"})})]}),(0,o.jsx)("div",{className:"".concat(eL().col3," ").concat(eL().col),children:"TAIL"}),(0,o.jsx)("div",{className:"".concat(eL().col4," ").concat(eL().col),children:"EXP"}),(0,o.jsxs)("div",{className:"".concat(eL().col5," ").concat(eL().col),children:[(0,o.jsx)("div",{className:eL().colText,children:e("DATE")}),(0,o.jsx)(f.x,{label:e7(),placement:"top",border:"none",w:"288px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)(eP.E,{src:"/icon/exclamation_purple.svg",filter:" brightness(0) saturate(100%) invert(60%) sepia(30%) saturate(6430%) hue-rotate(212deg) brightness(91%) contrast(106%)"})})]}),(0,o.jsx)("div",{className:"".concat(eL().col6," ").concat(eL().col),children:"TXID"})]})]})};let e4=()=>{let{t:e}=(0,k.$G)("portfolio");return(0,o.jsx)("div",{className:"b15",children:e("gas-cost-info")})},e7=()=>{let{t:e}=(0,k.$G)("portfolio");return(0,o.jsx)("div",{className:"b15",children:e("time-info")})};var e6=s(32883),e8=e=>{let{t}=(0,k.$G)("portfolio"),s=(0,r.Z)(e=>e.iW);return(0,o.jsxs)("div",{className:"".concat(e.lastRow?eL().lastRow:eL().row," ").concat(s>=768?eL().row:""," "),children:[(0,o.jsx)("div",{className:"".concat(eL().col," ").concat(eL().col1),children:(0,o.jsx)("div",{className:"".concat(eL().text),children:e.action})}),(0,o.jsxs)("div",{className:eL().scrollBlock,children:[(0,o.jsx)("div",{className:"".concat(eL().col2," ").concat(eL().col),children:e.amount}),(0,o.jsx)("div",{className:"".concat(eL().col3," ").concat(eL().col),children:e.tail}),(0,o.jsx)("div",{className:"".concat(eL().col4," ").concat(eL().col),children:e.exp}),(0,o.jsx)("div",{className:"".concat(eL().col5," ").concat(eL().col),children:C()(e.date).format("DD MMM YY, HH:mm")}
1),(0,o.jsx)("div",{className:"".concat(eL().col6," ").concat(eL().col),children:(0,o.jsx)(e6.r,{href:e.txId,isExternal:!0,children:(0,o.jsx)("div",{className:eL().externalIcon,children:(0,o.jsx)(g(),{src:"/icon/portfolio_external_link_icon.svg",alt:"tx id",fill:!0})})})})]})]})},e5=e=>(0,o.jsx)(o.Fragment,{children:e.pageData.map((t,s)=>(0,o.jsx)("div",{children:(0,o.jsx)(e8,{...t,lastRow:s+1===e.pageData.length})},s))}),e3=e=>{let t=(0,r.Z)(e=>e.iW),[s,a]=(0,H.useState)([]),[l,i]=(0,H.useState)(0),[n,c]=(0,H.useState)(0),[d,p]=(0,H.useState)(!1),{network:_,provider:x}=(0,N.Z)(e=>({network:e.network,provider:e.provider})),{kioskOwnerCaps:h,noKioskTailsId:u}=(0,j.Z)(e=>({kioskOwnerCaps:e.kioskOwnerCaps,noKioskTailsId:e.noKioskTailsId})),{currentAccount:m}=(0,y.ZP)(),{data:g}=(0,ep.M)(x,_,null==m?void 0:m.address),{data:f}=(0,W.F)(x,_,h,u),b=e=>{let t=n+e;t<=0&&(t=1),t>=l&&(t=l),c(t)};return(0,H.useEffect)(()=>{if(!e.tableData||0===e.tableData.length){p(!0);return}p(!1),i(Math.ceil(e.tableData.length/8)),0===n&&c(1)},[e.tableData]),(0,H.useEffect)(()=>{let t=(n-1)*8;a(e.tableData.slice(t,8*n)),n>l&&c(1)},[l,n,e.tableData]),(0,o.jsxs)("div",{className:"".concat(eL().table," ").concat(t>=768?"b12":"b27"),children:[(0,o.jsx)("div",{className:eL().formBlock,children:d?(0,o.jsx)(ea,{label:"Buy now",route:"https://www.tradeport.xyz/sui/collection/tails-by-typus",description:"You don't have any ".concat(g&&0===g.allUserStakingTailsInfo.length&&(null==f?void 0:f.length)===0?"Tail":"record",".")}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e2,{}),(0,o.jsx)(e5,{pageData:s})]})}),!d&&(0,o.jsx)("div",{style:{marginTop:"2rem",marginBottom:"4.8rem"},children:(0,o.jsx)(K.Z,{totalPage:l,currentPage:n,nextPage:b,prevPage:b})})]})},e9=s(79987),te=s(256),tt=()=>{let[e,t]=(0,H.useState)(!0),[s,a]=(0,H.useState)([]),{network:l}=(0,N.Z)(e=>({network:e.network}));return{isLoading:e,parsedRowData:s,parseInfo:(e,t)=>{let s=[];for(let a of e){let e=a.txDigest;("mainnet"===l||location.href.includes("mainnet-preview"))&&(e="https://suivision.xyz/txblock/".concat(a.txDigest)),"testnet"===l&&(e="https://testnet.suivision.xyz/txblock/".concat(a.txDigest));let i=a.Action,n="-";switch(i||(i="-",n="-"),i.includes("Level Up")&&(n="Level Up"),i){case"Stake":i="Stake Tail",n="Stake Tail";break;case"Unstake":i="Unstake Tail",n="Unstake Tail";break;case"Check In":i="Feed Tail",n="Feed Tail";break;case"Transfer":i="Transfer Tail",n="Transfer Tail";break;case"Extract Exp":i="Extract Exp",n="Extract Exp";break;case"Harvest Dice Profit":i="Harvest Dice Profit",n="Harvest Dice Profit";break;case"Train Tail":i="Train Tail",n="Train Tail"}let o=a.Vault,r="-";if(a.Amount){let e=a.Amount.split("\n")[0],t=a.Amount.split("\n")[1],s=e.split(" ")[0],l=e.split(" ")[1];l=(0,e9._)({token:l,wrapped:!i.includes("NewBid")});let n="",o="";t&&(n=t.split(" ")[0],o=t.split(" ")[1],o=(0,e9._)({token:o,wrapped:!i.includes("NewBid")})),r="".concat(s).concat((0,te.WQ)(l)?"m":""," ").concat(l," ").concat(t?",".concat(n).concat((0,te.WQ)(o)?"m":""," ").concat(o):"")}"Extract Exp"===n&&(r="".concat(t.tailsStakingConfig.config[5]/1e9," SUI")),s.push({action:i,amount:r,vaultName:o||"-",tail:a.Tails||"-",exp:a.Exp||"-",date:a.Date,txId:e,lastRow:!1,actionType:n})}return s},setIsLoading:t,setParsedRowData:a}},ts=s(26447),ta=s(8976),tl=s(73050);(l=n||(n={})).LAST_DAY="Last Day",l.LAST_WEEK="Last Week",l.LAST_MONTH="Last Month";var ti=()=>{let e=(0,r.Z)(e=>e.iW),{network:t,provider:s}=(0,N.Z)(e=>({network:e.network,provider:e.provider})),{currentWallet:a,currentAccount:l}=(0,y.ZP)(),{data:i}=(0,ts._)(s,t,ta.MI[t]),{eventDB:n}=(0,r.Z)(e=>({eventDB:e.eventDB})),{data:c,isFetched:d}=(0,ep.M)(s,t,null==l?void 0:l.address),{data:p,isFetched:_}=(0,tl.N)(s,t,null==l?void 0:l.address,i,n),[x,h]=(0,H.useState)(!0),{parsedRowData:u,setParsedRowData:m,parseInfo:g}=tt(),[b,j]=(0,H.useState)([]),v=["Feed Tail","Train Tail","Harvest Dice Profit","Level Up","Extract Exp","Transfer Tail","Stake Tail","Unstake Tail"],[T,k]=(0,H.useState)({time:["Last Week"],tailRelated:[...v]}),[w,S]=(0,H.useState)(0),E=()=>{let e=u.filter(e=>{if(T.tailRelated.includes(e.actionType))return e});j(e=e.filter(e=>{let t=C()().subtract(1,"days").valueOf(),s=C()().subtract(1,"weeks").valueOf(),a=C()().subtract(1,"months").valueOf();if(T.time.includes("Last Day")&&C()(e.date).valueOf()>t||T.time.includes("Last Week")&&C()(e.date).valueOf()>s||T.time.includes("Last Month")&&C()(e.date).valueOf()>a&&C()(e.date).valueOf()>169776e7)return e}))};return(0,H.useEffect)(()=>{E()},[T,u]),(0,H.useEffect)(()=>{p&&c&&d&&_&&(m(g(p,c)),h(!1))},[p,w,c]),(0,H.useEffect)(()=>{let e=setInterval(()=>{S(w+1)},3e4);return()=>clearInterval(e)},[w]),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:eL().titleRow,children:[(0,o.jsx)("div",{className:eL().leftSide,children:(0,o.jsxs)(eC.k,{className:"".concat(e>=768?"h2":"h4"),children:[(0,o.jsx)(eI.x,{children:"TAILS HISTORY"}),(0,o.jsx)("div",{className:eL().icon,children:(0,o.jsx)(f.x,{label:tn(),placement:"top",border:"none",w:e>=768?"288px":"246px",bg:"rgba(10, 32, 55, 0.9)",p:"12px 24px",borderRadius:"16px",children:(0,o.jsx)(eP.E,{ml:"4px",src:"/icon/exclamation_purple.svg",filter:"brightness(0) saturate(100%) invert(14%) sepia(9%) saturate(1173%) hue-rotate(169deg) brightness(99%) contrast(100%)"})})})]})}),(0,o.jsx)("div",{className:eL().rightSide,children:(0,o.jsx)(e1,{filters:T,setFilters:k,tailRelatedList:v,timeList:["Last Day","
1Last Week","Last Month"]})})]}),a?(0,o.jsx)(o.Fragment,{children:x?(0,o.jsx)($,{}):(0,o.jsx)(e3,{tableData:b})}):(0,o.jsx)(L,{})]})};let tn=()=>(0,o.jsx)("div",{className:"b15",children:"Tails History is updated every 30 sec."});var to=s(43465),tr=s.n(to),tc=s(61228),td=s.n(tc),tp=s(92413),t_=()=>{let e=(0,I.useRouter)(),{allExpPlayGroundsInfo:t}=(0,b.ZP)(),[s,a]=(0,H.useState)({sui:0,fud:0,buck:0});return(0,H.useEffect)(()=>{if(0===t.length)return;let e={sui:0,fud:0,buck:0};t.map(t=>{let s=Number(t.game_config.base_exp_divisor),a=(0,tp.typeArgToAsset)(t.stake_token),l=9,i=0;switch(a){case"SUI":case"BUCK":l=9;break;case"FUD":l=11}i=Number((0,ef.Z)(1*10**l).div(s).toFixed(0)),e[a.toLocaleLowerCase()]=i}),a(e)},[t]),(0,o.jsxs)("div",{className:"".concat(td().expDetailCard),children:[(0,o.jsxs)("div",{className:td().noteContainer,children:[(0,o.jsx)("div",{className:td().logoBlock,children:(0,o.jsx)(g(),{src:"/icon/tail_page_my_trophy_exp_logo.svg",alt:"sui logo",fill:!0})}),(0,o.jsx)("p",{className:"b12",children:"EXP is an essential material to level up Tails"})]}),(0,o.jsxs)("div",{className:td().productRowContainer,children:[(0,o.jsxs)("div",{className:td().section2,children:[(0,o.jsxs)("div",{className:td().section1,children:[(0,o.jsx)("p",{className:"b7",children:"Deposit SAFU"}),(0,o.jsx)("div",{className:td().icon,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_safu.svg",alt:"icon",fill:!0})})]}),(0,o.jsx)("p",{className:"b12",children:"0.003 Hourly EXP /$1 deposited"})]}),(0,o.jsx)("button",{className:"btn4 ".concat(td().btn),onClick:()=>e.push("/safu"),children:"DEPOSIT"})]}),(0,o.jsxs)("div",{className:td().productRowContainer,children:[(0,o.jsxs)("div",{className:td().section2,children:[(0,o.jsxs)("div",{className:td().section1,children:[(0,o.jsx)("p",{className:"b7",children:"Deposit Yield"}),(0,o.jsx)("div",{className:td().icon,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_yield.svg",alt:"icon",fill:!0})})]}),(0,o.jsx)("p",{className:"b12",children:"0.005 Hourly EXP /$1 deposited"})]}),(0,o.jsx)("button",{className:"btn4 ".concat(td().btn),onClick:()=>e.push("/yield"),children:"DEPOSIT"})]}),(0,o.jsxs)("div",{className:td().productRowContainer,children:[(0,o.jsxs)("div",{className:td().section2,children:[(0,o.jsxs)("div",{className:td().section1,children:[(0,o.jsx)("p",{className:"b7",children:"Deposit TLP"}),(0,o.jsx)("div",{className:td().icon,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_tlp.svg",alt:"icon",fill:!0})})]}),(0,o.jsx)("p",{className:"b12",children:"0.005 Hourly EXP /$1 deposited"})]}),(0,o.jsx)("button",{className:"btn4 ".concat(td().btn),onClick:()=>e.push("/tlp"),children:"DEPOSIT"})]}),(0,o.jsxs)("div",{className:td().productRowContainer,children:[(0,o.jsxs)("div",{className:td().section2,children:[(0,o.jsxs)("div",{className:td().section1,children:[(0,o.jsx)("p",{className:"b7",children:"Bid Options"}),(0,o.jsx)("div",{className:td().icon,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_bid.svg",alt:"icon",fill:!0})})]}),(0,o.jsx)("p",{className:"b12",children:"200 EXP / $1 premium paid"})]}),(0,o.jsx)("button",{className:"btn4 ".concat(td().btn),onClick:()=>e.push("/bid"),children:"BID"})]}),(0,o.jsxs)("div",{className:td().productRowContainer,children:[(0,o.jsxs)("div",{className:td().section2,children:[(0,o.jsxs)("div",{className:td().section1,children:[(0,o.jsx)("p",{className:"b7",children:"Trade Perps"}),(0,o.jsx)("div",{className:td().icon,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_perps.svg",alt:"icon",fill:!0})})]}),(0,o.jsx)("p",{className:"b12",children:"200 EXP * trading fee in USD"})]}),(0,o.jsx)("button",{className:"btn4 ".concat(td().btn),onClick:()=>e.push("/perps"),children:"TRADE"})]}),(0,o.jsxs)("div",{className:td().productRowContainer,children:[(0,o.jsxs)("div",{className:td().section2,children:[(0,o.jsxs)("div",{className:td().section1,children:[(0,o.jsx)("p",{className:"b7",children:"Play Dice\xb2"}),(0,o.jsx)("div",{className:td().icon,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_dice.svg",alt:"icon",fill:!0})})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{className:"b12",children:[s.sui," EXP / SUI"]}),(0,o.jsxs)("p",{className:"b12",children:[s.buck," EXP / BUCK"]}),(0,o.jsxs)("p",{className:"b12",children:[s.fud," EXP / 1m FUD"]})]})]}),(0,o.jsx)("button",{className:"btn4 ".concat(td().btn),onClick:()=>e.push("/dicesquared"),children:"PLAY"})]})]})},tx=e=>{let[t,s]=(0,H.useState)(!1);return(0,o.jsxs)("div",{className:tr().myTrophyInfoModal,children:[(0,o.jsx)("div",{className:tr().bg,onClick:()=>e.setTrophyInfoModal(!1)}),(0,o.jsxs)("div",{className:"".concat(tr().modalContent," ").concat(t?tr().hide:""),children:[(0,o.jsx)("div",{className:"b4 ".concat(tr().title),children:"HOW TO GET MY TROPHY"}),e.showDetailCard===i.EXP&&(0,o.jsxs)("div",{className:tr().detailRow,children:[(0,o.jsx)("div",{className:tr().thumbnails,children:(0,o.jsxs)("div",{className:"".concat(tr().topicCardThumbnail," ").concat(tr().exp," ").concat(tr().selectedExp),onClick:()=>e.setShowDetailCard(i.EXP),children:[(0,o.jsx)("div",{className:tr().thumbnailLogoBlock,children:(0,o.jsx)(g(),{src:"/icon/tail_page_my_trophy_exp_logo.svg",alt:"logo",fill:!0})}),(0,o.jsx)("p",{className:"b9 ".concat(tr().txt),children:"EXP"})]})}),(0,o.jsx)(t_,{})]})]}),t&&(0,o.jsx)(el.Z,{setShowConsumeExpModal:s})]})},th=s(80137),tu=s.n(th),tm=s(58394),tg=s.n(tm),tf=e=>
1{let t=(0,I.useRouter)(),{allExpPlayGroundsInfo:s}=(0,b.ZP)(),[a,l]=(0,H.useState)({sui:0,fud:0,buck:0});return(0,H.useEffect)(()=>{if(0===s.length)return;let e={sui:0,fud:0,buck:0};s.map(t=>{let s=Number(t.game_config.base_exp_divisor),a=(0,tp.typeArgToAsset)(t.stake_token),l=9,i=0;switch(a){case"SUI":case"BUCK":l=9;break;case"FUD":l=11}i=Number((0,ef.Z)(1*10**l).div(s).toFixed(0)),e[a.toLocaleLowerCase()]=i}),l(e)},[s]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"".concat(tg().card," ").concat(tg().exp),children:[(0,o.jsx)("div",{className:tg().expCardBg}),(0,o.jsxs)("div",{className:tg().container,children:[(0,o.jsxs)("div",{className:tg().logoRow,children:[(0,o.jsx)("div",{className:tg().logoBlock,children:(0,o.jsx)(g(),{src:"/icon/tail_page_my_trophy_exp_logo.svg",alt:"sui logo",fill:!0})}),(0,o.jsx)("p",{className:"btn4 ".concat(tg().txt),children:"EXP"})]}),(0,o.jsx)("div",{className:"b27 ".concat(tg().note111),children:(0,o.jsxs)("div",{className:tg().text,children:[(0,o.jsx)("div",{className:tg().logoBlock,children:(0,o.jsx)(g(),{src:"/icon/tail_page_my_trophy_exp_logo.svg",alt:"sui logo",fill:!0})}),"EXP is an essential material to level ",(0,o.jsx)("br",{})," up Tails"]})}),(0,o.jsxs)("div",{className:tg().section,children:[(0,o.jsxs)("div",{className:tg().content,children:[(0,o.jsx)("div",{className:tg().imageBlock,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_safu.svg",alt:"icon",fill:!0})})," ",(0,o.jsx)("p",{className:"b7",children:"Deposit SAFU"}),(0,o.jsx)("div",{className:"b12",children:"0.003 Hourly EXP / $1 deposited"})]}),(0,o.jsx)("div",{className:"btn4 ".concat(tg().btn),onClick:()=>t.push("/safu"),children:"DEPOSIT"})]}),(0,o.jsxs)("div",{className:tg().section,children:[(0,o.jsxs)("div",{className:tg().content,children:[(0,o.jsx)("div",{className:tg().imageBlock,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_yield.svg",alt:"icon",fill:!0})})," ",(0,o.jsx)("p",{className:"b7",children:"Deposit Yield"}),(0,o.jsx)("div",{className:"b12",children:"0.005 Hourly EXP / $1 deposited"})]}),(0,o.jsx)("div",{className:"btn4 ".concat(tg().btn),onClick:()=>t.push("/yield"),children:"DEPOSIT"})]}),(0,o.jsxs)("div",{className:tg().section,children:[(0,o.jsxs)("div",{className:tg().content,children:[(0,o.jsx)("div",{className:tg().imageBlock,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_tlp.svg",alt:"icon",fill:!0})})," ",(0,o.jsx)("p",{className:"b7",children:"Deposit TLP"}),(0,o.jsx)("div",{className:"b12",children:"0.005 Hourly EXP / $1 deposited"})]}),(0,o.jsx)("div",{className:"btn4 ".concat(tg().btn),onClick:()=>t.push("/tlp"),children:"DEPOSIT"})]}),(0,o.jsxs)("div",{className:tg().section,children:[(0,o.jsxs)("div",{className:tg().content,children:[(0,o.jsx)("div",{className:tg().imageBlock,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_bid.svg",alt:"icon",fill:!0})})," ",(0,o.jsx)("p",{className:"b7",children:"Bid Options"}),(0,o.jsx)("div",{className:"b12",children:"200 EXP / $1 premium paid"})]}),(0,o.jsx)("div",{className:"btn4 ".concat(tg().btn),onClick:()=>t.push("/bid"),children:"BID"})]}),(0,o.jsxs)("div",{className:tg().section,children:[(0,o.jsxs)("div",{className:tg().content,children:[(0,o.jsx)("div",{className:tg().imageBlock,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_perps.svg",alt:"icon",fill:!0})})," ",(0,o.jsx)("p",{className:"b7",children:"Trade Perps"}),(0,o.jsx)("div",{className:"b12",children:"200 EXP * trading fee in USD"})]}),(0,o.jsx)("div",{className:"btn4 ".concat(tg().btn),onClick:()=>t.push("/perps"),children:"TRADE"})]}),(0,o.jsxs)("div",{className:tg().section,children:[(0,o.jsxs)("div",{className:tg().content,children:[(0,o.jsx)("div",{className:tg().imageBlock,children:(0,o.jsx)(g(),{src:"/tails_page/my_trophy_dice.svg",alt:"icon",fill:!0})}),(0,o.jsx)("p",{className:"b7",children:"Play Dice\xb2"}),(0,o.jsxs)("p",{className:"b12 ",children:[a.sui," EXP / SUI",(0,o.jsx)("br",{})," ",a.buck," EXP / BUCK ",(0,o.jsx)("br",{}),a.fud," EXP / 1m FUD"]})]}),(0,o.jsx)("div",{className:"btn4 ".concat(tg().btn),onClick:()=>t.push("/dicesquared"),children:"PLAY"})]})]})]})})},tb=e=>{let[t,s]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{e.showDetailCard||e.setShowDetailCard(i.TYPUS)},[e.showDetailCard]),(0,o.jsxs)("div",{className:tu().myTrophyInfoMobileModal,children:[(0,o.jsx)("div",{className:tu().bg,onClick:()=>e.setTrophyInfoModal(!1)}),(0,o.jsx)("div",{className:"".concat(t?tu().hide:""),children:e.showDetailCard===i.EXP&&(0,o.jsx)(tf,{setShowDetailCard:e.setShowDetailCard,showDetailCard:e.showDetailCard})}),t&&(0,o.jsx)(el.Z,{setShowConsumeExpModal:s})]})},tj=s(80003),tv=s(9008),tT=s.n(tv),tN=()=>{let e=(0,r.Z)(e=>e.iW),[t,s]=(0,H.useState)(0),[a,l]=(0,H.useState)(0),[n,c]=(0,H.useState)(!1),[d,_]=(0,H.useState)(!1),[h,u]=(0,H.useState)(i.EXP),m=(0,r.Z)(e=>e.showEventAd);return(0,H.useEffect)(()=>{d||u(i.EXP)},[d]),(0,H.useEffect)(()=>{s(window.document.documentElement.scrollHeight-window.document.documentElement.clientHeight);let e=()=>{l(window.scrollY)};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[a]),(0,H.useEffect)(()=>{let e=()=>{let e=window.scrollY;l(e),e-a>10&&_(!1)};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[a]),(0,o.jsxs)("div",{className:"".concat(x().tailsPage," ").concat(m?"":x().hideEventAd),children:[(0,o.jsx)(tT(),{children:(0,o.jsx)("title",{children:"Tails | Typus Finance"})}),e>=768?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eB.xu,{w:"100%",h:"31.4rem",position:"absolute",top:"0% + 140",children:(0,o.jsx)(g(),{fill:!0,src:"/icon/tails_page_cloud_bg_1.svg",alt:"bg"})}),(0,o.jsx)(eB.xu,{w:"57.2rem",h:"32.5rem",position:"absolute",top:"48%",className:"".concat(Number((a/t).toFixed(1))>.25?x().leftSlideIn:x().leftSlideOut),children:(0,o.jsx)(g(),{fill:!0,src:"/icon/tails_page_cloud_bg_3.svg",alt:"bg"})}),(0,o.jsx)(eB.xu,{w:"56.9rem",h:"15.8rem",position:"absolute",top:"45%",right:"0",className:"".concat(Number((a/t).toFixed(1))>.2?x().rightSlideIn:x().rightSlideOut),children:(0,o.jsx)(g(),{fill:!0,src:"/icon/tails_page_cloud_bg_2.svg",alt:"bg"})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eB.xu,{w:"100%",h:"31.4rem",position:"absolute",top:"130",children:(0,o.jsx)(g(),{fill:!0,src:"/icon/tails_page_cloud_mobile_bg_1.svg",alt:"bg"})}),(0,o.jsx)(eB.xu,{w:"15.5rem",h:"4.3rem",position:"absolute",top:"36%",className:"".concat(Number((a/t).toFixed(1))>.18?x().leftSlideIn:x().leftSlideOut),children:(0,o.jsx)(g(),{fill:!0,src:"/icon/tails_page_cloud_mobile_bg_2.svg",alt:"bg"})}),(0,o.jsx)(eB.xu,{w:"17.3rem",h:"5.4rem",position:"absolute",top:"37%",right:"0",className:"".concat(Number((a/t).toFixed(1))>.2?x().rightSlideIn:x().rightSlideOut),children:(0,o.jsx)(g(),{fill:!0,src:"/icon/tails_page_cloud_mobile_bg_3.svg",alt:"bg"})})]}),(0,o.jsxs)("div",{className:x().pageContent,children:[(0,o.jsx)("div",{className:"".concat(x().pageTitle),children:(0,o.jsx)(p,{})}),(0,o.jsx)("div",{className:"".concat(x().frame," ").concat(x().myTrophySection),children:(0,o.jsx)(A,{})}),(0,o.jsx)("div",{className:x().bottomRow,children:(0,o.jsx)("button",{className:"btn5 ".concat(x().infoBtn),onClick:()=>_(!0),children:"HOW TO GET MY TROPHY?"})}),n&&(0,o.jsx)(el.Z,{setShowConsumeExpModal:c}),d&&(0,o.jsx)(o.Fragment,{children:e>=1024?(0,o.jsx)(tx,{setTrophyInfoModal:_,showDetailCard:h,setShowDetailCard:u}):(0,o.jsx)(tb,{setTrophyInfoModal:_,showDetailCard:h,setShowDetailCard:u})}),(0,o.jsx)("div",{className:"".concat(x().section),children:(0,o.jsx)(eS,{})}
1),(0,o.jsx)("div",{className:"".concat(x().section,"  ").concat(x().frame),children:(0,o.jsx)(ti,{})})]}),(0,o.jsx)("div",{className:x().footerBlock,children:(0,o.jsx)(eM.Z,{})}),(0,o.jsx)(eB.xu,{m:"auto",children:(0,o.jsx)(g(),{width:e>=768?1509:411,height:e>=768?794:468,style:{position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",width:"100vw"},src:e>=768?"/icon/tails_page_mountain_bg.svg":"/icon/tails_page_mountain_mobile_bg.svg",alt:"bg"})}),(0,o.jsx)(tj.Z,{})]})}},39590:function(e){e.exports={emptyData:"EmptyData_emptyData__Rp37u",btn:"EmptyData_btn__JK6QZ",link:"EmptyData_link__xrC6a"}},84906:function(e){e.exports={generatingLevelUp:"GeneratingLevelUp_generatingLevelUp__fmU1U",bgCover:"GeneratingLevelUp_bgCover___rFKz",bg:"GeneratingLevelUp_bg__oXetp",show:"GeneratingLevelUp_show__qtPXc",icon:"GeneratingLevelUp_icon__pT6Jr",txt:"GeneratingLevelUp_txt__CePAZ",dotsBlock:"GeneratingLevelUp_dotsBlock__ZUUcy",p:"GeneratingLevelUp_p__5Siwe","sk-bouncedelay":"GeneratingLevelUp_sk-bouncedelay__O23ep",dot1:"GeneratingLevelUp_dot1__ocwqY",dot2:"GeneratingLevelUp_dot2__jQz2T",tailName:"GeneratingLevelUp_tailName__xgaTt"}},8018:function(e){e.exports={loading:"Loading_loading__O5xxl"}},63005:function(e){e.exports={myTails:"MyTails_myTails__F6hbX",title:"MyTails_title__xsLul",infoRow:"MyTails_infoRow__EgKxZ",txt:"MyTails_txt__fy26l",btnBlock:"MyTails_btnBlock__N5p4C",btn:"MyTails_btn__TuO_2",btn1:"MyTails_btn1__md76q",btn2:"MyTails_btn2__bbTUw",disabled:"MyTails_disabled__SXKiK",infoBoxIcon:"MyTails_infoBoxIcon__s_pBf",disabledIcon:"MyTails_disabledIcon__X_w7w",list:"MyTails_list__0fTz9",listItem:"MyTails_listItem__fuF_a",back:"MyTails_back__AYm96",primaryBtn:"MyTails_primaryBtn__xDb6h",unStakeBtn:"MyTails_unStakeBtn__I9U9G",transferBtn:"MyTails_transferBtn__k74b_",showBack:"MyTails_showBack__hig2p",flip:"MyTails_flip__N7hTH",stakingStatusLabel:"MyTails_stakingStatusLabel__GPWqW",noStakingLabel:"MyTails_noStakingLabel__uWgVV",stakingLabel:"MyTails_stakingLabel__bjEsa",listedLabel:"MyTails_listedLabel__t1GZd",isListedNote:"MyTails_isListedNote__NpcFx",tailImageBlock:"MyTails_tailImageBlock__Um5Wl",tailName:"MyTails_tailName__1yJhG",level:"MyTails_level__qOfWT",levelUpBtn:"MyTails_levelUpBtn__1FDSq",expBlock:"MyTails_expBlock__tLbkO",exp1:"MyTails_exp1__RGp49",exp2:"MyTails_exp2__U5_g_",paginationBlock:"MyTails_paginationBlock__UFk0U",hideStakeModal:"MyTails_hideStakeModal__f_iJb",generatingBlock:"MyTails_generatingBlock__NcMYQ"}},99221:function(e){e.exports={myTrophy:"MyTrophy_myTrophy__RNT4m",title:"MyTrophy_title__aqtvG",mobileBg:"MyTrophy_mobileBg___0OiB",list:"MyTrophy_list__TMW9_",decoration:"MyTrophy_decoration__MdevL",listItems:"MyTrophy_listItems__66pA_",listItem:"MyTrophy_listItem__JZyXc",contentBlock:"MyTrophy_contentBlock__iQ2CZ",imageBlock:"MyTrophy_imageBlock__OwvSx",txt:"MyTrophy_txt__K_jjS",value:"MyTrophy_value__wAFP2",txtTitle:"MyTrophy_txtTitle__Qw_z4",btn:"MyTrophy_btn__hTkbX",noValueBtn:"MyTrophy_noValueBtn__fHGve",airdropBtn:"MyTrophy_airdropBtn__kk4Lg",airdropTxt:"MyTrophy_airdropTxt__EwwYZ",dollarSignBlock:"MyTrophy_dollarSignBlock__iulHN",bottomRow:"MyTrophy_bottomRow__aQXBO",infoBtn:"MyTrophy_infoBtn__usJ5Q",infoBoxIcon:"MyTrophy_infoBoxIcon__aODLJ",refreshInfoBoxIcon:"MyTrophy_refreshInfoBoxIcon__2GmVQ",desktopBg:"MyTrophy_desktopBg__67YgD"}},61228:function(e){e.exports={expDetailCard:"ExpDetailCard_expDetailCard__TQkVt",noteContainer:"ExpDetailCard_noteContainer__bJ0tN",logoBlock:"ExpDetailCard_logoBlock__7qFwq",productRowContainer:"ExpDetailCard_productRowContainer__4xHnM",section1:"ExpDetailCard_section1__SUKN5",section2:"ExpDetailCard_section2__kXcgy",icon:"ExpDetailCard_icon__C9Paz",btn:"ExpDetailCard_btn__hLTjZ"}},43465:function(e){e.exports={myTrophyInfoModal:"MyTrophyInfoDesktopModal_myTrophyInfoModal__QaoOk",bg:"MyTrophyInfoDesktopModal_bg__lxiZm",hide:"MyTrophyInfoDesktopModal_hide__mZ3ct",modalContent:"MyTrophyInfoDesktopModal_modalContent__OfMBg",title:"MyTrophyInfoDesktopModal_title__actsg",largeTopicCards:"MyTrophyInfoDesktopModal_largeTopicCards__docxq",largeTopicCard:"MyTrophyInfoDesktopModal_largeTopicCard__NSkzX",typus:"MyTrophyInfoDesktopModal_typus__nT2UD",txt:"MyTrophyInfoDesktopModal_txt__SBMeR",dollarSignBlock:"MyTrophyInfoDesktopModal_dollarSignBlock__gvswv",exp:"MyTrophyInfoDesktopModal_exp__N59xJ",logoBlock:"MyTrophyInfoDesktopModal_logoBlock__Slqso",detailRow:"MyTrophyInfoDesktopModal_detailRow__Itpvc",thumbnails:"MyTrophyInfoDesktopModal_thumbnails__hUsVy",topicCardThumbnail:"MyTrophyInfoDesktopModal_topicCardThumbnail__Us6Bc",thumbnailLogoBlock:"MyTrophyInfoDesktopModal_thumbnailLogoBlock__FNc6b",selectedTypus:"MyTrophyInfoDesktopModal_selectedTypus__ph__F",selectedExp:"MyTrophyInfoDesktopModal_selectedExp__JsG1K"}},58394:function(e){e.exports={card:"ExpMobileCard_card__Cb7vi",logoRow:"ExpMobileCard_logoRow__MdsxS",logoBlock:"ExpMobileCard_logoBlock__RjkYH",exp:"ExpMobileCard_exp__7M_FQ",expCardBg:"ExpMobileCard_expCardBg__ThJ3y",container:"ExpMobileCard_container__zw_IM",note111:"ExpMobileCard_note111__GQWKq",text:"ExpMobileCard_text__9maxT",section:"ExpMobileCard_section__z3rcx",content:"ExpMobileCard_content___tWsw",imageBlock:"ExpMobileCard_imageBlock__76Y49",btn:"ExpMobileCard_btn__E_pTr",cardHeader:"ExpMobileCard_cardHeader__uxk5u",expCardHeader:"ExpMobileCard_expCardHeader__iiSj7",innerExpCardHeader:"ExpMobileCard_innerExpCardHeader__dd48J"}},80137:function(e){e.exports={myTrophyInfoMobileModal:"MyTrophyInfoMobileModal_myTrophyInfoMobileModal__LjaKD",hide:"MyTrophyInfoMobileModal_hide__DKYbn",bg:"MyTrophyInfoMobileModal_bg__U_sQJ"}},84900:function(e){e.exports={pageTitle:"PageTitle_pageTitle__RjypB",description:"PageTitle_description__TW1bs"}},16718:function(e){e.exports={mobileFilterModal:"FilterModal_mobileFilterModal__qCntD",bg:"FilterModal_bg__j5Ga_",desktopBg:"FilterModal_desktopBg__0EnGN",desktopContainer:"FilterModal_desktopContainer__uvkou",container:"FilterModal_container__nbfDy",closeModalIconBlock:"FilterModal_closeModalIconBlock__5XOCw",list:"FilterModal_list__bR_Yh",btn:"FilterModal_btn__AyDdX",wide:"FilterModal_wide__sytnb"}},70211:function(e){e.exports={mobileFilterOption:"FilterOption_mobileFilterOption__Kq8YZ",title:"FilterOption_title__yG_Vv",option:"FilterOption_option__QmsLo"}},31346:function(e){e.exports={table:"TailsHistory_table__AfheQ",formBlock:"TailsHistory_formBlock__XmgJO",scrollBlock:"TailsHistory_scrollBlock__RR1nL",header:"TailsHistory_header__HD9jO",col:"TailsHistory_col__KTGM0",col1:"TailsHistory_col1__PsNG1",text:"TailsHistory_text__IMsrE",col6:"TailsHistory_col6__jdMd6",row:"TailsHistory_row__tIWDH",lastRow:"TailsHistory_lastRow__fzfcu",colText:"TailsHistory_colText__BSmbG",col2:"TailsHistory_col2__MjuM7",col3:"TailsHistory_col3__e5TPf",col4:"TailsHistory_col4__x0Ium",col5:"TailsHistory_col5__YqnbN",externalIcon:"TailsHistory_externalIcon__wDdkL",doubleColumn:"TailsHistory_doubleColumn____VhX",titleRow:"TailsHistory_titleRow__lFEAK",leftSide:"TailsHistory_leftSide__uxuta",title:"TailsHistory_title__HAFbU",icon:"TailsHistory_icon__C9nCV",rightSide:"TailsHistory_rightSide__zH6WV",txt:"TailsHistory_txt__JkdZ4"}},12456:function(e){e.exports={transferTailsModal:"TransferTailsModal_transferTailsModal__6wF3p",bg:"TransferTailsModal_bg__5x3_y",modalContainer:"TransferTailsModal_modalContainer__CQ_8b",title:"TransferTailsModal_title__euT8P",btn:"TransferTailsModal_btn__rhA_H",addressValidateBlock:"TransferTailsModal_addressValidateBlock__tFgYb",input:"TransferTailsModal_input__mE52e",invalidAddress:"TransferTailsModal_invalidAddress__LWO9X",isInvalid:"TransferTailsModal_isInvalid__OpEUr",disabled:"TransferTailsModal_disabled__eAVRz",iconBlock:"TransferTailsModal_iconBlock__uSX0e",iconDisabled:"TransferTailsModal_iconDisabled__t3_WG"}},14197:function(e){e.exports={walletConnect:"WalletConnect_walletConnect__7Zpcs",btn:"WalletConnect_btn__aAq96"}},64058:function(e){e.exports={tailsPage:"tails_tailsPage___SovR",hideEventAd:"tails_hideEventAd__16ws0",pageTitle:"tails_pageTitle__B_GHG",pageContent:"tails_pageContent__AloCY",frame:"tails_frame__D0B6D",myTrophySection:"tails_myTrophySection__48q2a",section:"tails_section__EHt_t",footerBlock:"tails_footerBlock__i3O9M",leftSlideOut:"tails_leftSlideOut__ZSjSK",leftSideOut:"tails_leftSideOut__timoC",leftSlideIn:"tails_leftSlideIn__XjNg1",leftSideIn:"tails_leftSideIn__zqxFa",rightSlideOut:"tails_rightSlideOut__tRyTN",rightSideOut:"tails_rightSideOut__jdDeQ",rightSlideIn:"tails_rightSlideIn__8xefv",rightSideIn:"tails_rightSideIn__XelUX",bottomRow:"tails_bottomRow__99Dfc",infoBtn:"tails_infoBtn__kkCSg"}},65040:function(e,t,s){"use strict";s.d(t,{E:function(){return u}});var a=s(70917);(0,a.F4)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),(0,a.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var l=(0,a.F4)({"0%":{left:"-40%"},"100%":{left:"100%"}}),i=(0,a.F4)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}}),n=s(16554),o=s(16914),r=s(33179),c=s(27603),d=s(55227),p=s(85893),[_,x]=(0,d.k
1)({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Progress />\" "}),h=(0,n.G)((e,t)=>{let{min:s,max:a,value:l,isIndeterminate:i,role:n,...r}=e,c=function(e){let{value:t=0,min:s,max:a,valueText:l,getValueText:i,isIndeterminate:n,role:o="progressbar"}=e,r=(t-s)*100/(a-s);return{bind:{"data-indeterminate":n?"":void 0,"aria-valuemax":a,"aria-valuemin":s,"aria-valuenow":n?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof i?i(t,r):l})(),role:o},percent:r,value:t}}({value:l,min:s,max:a,isIndeterminate:i,role:n}),d={height:"100%",...x().filledTrack};return(0,p.jsx)(o.m.div,{ref:t,style:{width:`${c.percent}%`,...r.style},...c.bind,...r,__css:d})}),u=(0,n.G)((e,t)=>{var s;let{value:a,min:n=0,max:d=100,hasStripe:x,isAnimated:u,children:m,borderRadius:g,isIndeterminate:f,"aria-label":b,"aria-labelledby":j,"aria-valuetext":v,title:T,role:N,...y}=(0,r.Lr)(e),k=(0,c.jC)("Progress",e),w=null!=g?g:null==(s=k.track)?void 0:s.borderRadius,S={animation:`${i} 1s linear infinite`},E={...!f&&x&&u&&S,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${l} 1s ease infinite normal none running`}},M={overflow:"hidden",position:"relative",...k.track};return(0,p.jsx)(o.m.div,{ref:t,borderRadius:w,__css:M,...y,children:(0,p.jsxs)(_,{value:k,children:[(0,p.jsx)(h,{"aria-label":b,"aria-labelledby":j,"aria-valuetext":v,min:n,max:d,value:a,isIndeterminate:f,css:E,borderRadius:w,title:T,role:N}),m]})})});u.displayName="Progress"}},function(e){e.O(0,[8734,6106,3486,2341,4895,9989,7052,3303,2888,9774,179],function(){return e(e.s=57609)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.