We recommend powering up your account with at least 0.5 TLOS in CPU and NET each and purchasing RAM, as this service is not supported on all dAPPs in our ecosystem. Please
click here to proceed and power up your account`)}catch(d){}i.Z.create({title:"Resource Warning!",message:u,html:!0,cancel:s,ok:c,persistent:!0,options:{type:"checkbox",model:o,isValid:e=>(b.setPreferences(n,{remember:1===e.length}),!0),items:[{label:"Remember my decision",value:"remember",color:"primary"}]}}).onOk((()=>a(!0))).onCancel((()=>a(!1)))}))}))}function y(e,t,n,o=null){return N(t),w(e,t,n,o)}function w(e,t,n,o){const r=k(o);return A(r,t,n),P(e,r,t,n)}function k(e){let t=1;if(e){t+=1;const n=+e.ram.replace(/[^0-9.]/g,"");0!==n&&(t+=1)}return t}function P(e,t,n,o){if(_(t,n,o),t>1){let o=null;return o=C(e,n),t>2&&S(e,n),(0,s.xG)(o,4,"TLOS",!0)}return null}function x(e){return e}function C(e,t){var n;const o=t.actions[1],r=x(o.data),a=parseFloat(null===(n=r.quantity)||void 0===n?void 0:n.split(" ")[0]);if(a>d)throw new Error(`Fee of ${a} exceeds the maximum fee of ${d}.`);if("eosio.token"!==o.account.toString()||"transfer"!==o.name.toString()||"fuel.gm"!==r.to.toString())throw new Error("Fee action was deemed invalid.");return a}function S(e,t){var n;const o=t.actions[2],r=x(o.data),a=parseFloat(null===(n=r.quant)||void 0===n?void 0:n.split(" ")[0]);if("eosio"!==o.account.toString()||!["buyram","buyrambytes"].includes(String(o.name))||"greymassfuel"!==r.payer.toString()||r.receiver.toString()!==e.actor.toString())throw new Error("RAM action was deemed invalid.");return a}function _(e,t,n){for(const[o]of t.actions.entries()){if(o
{"use strict";n.d(t,{Bp:()=>N,C5:()=>I,G:()=>C,H4:()=>x,JF:()=>O,M6:()=>_,MP:()=>E,Ox:()=>F,Qg:()=>T,Sv:()=>R,V6:()=>v,Vl:()=>L,dJ:()=>A,f1:()=>k,fo:()=>P,lz:()=>w,mM:()=>y,p1:()=>S});var o=n(39981),r=n.n(o),a=n(30229),i=n(17779),s=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const c=(0,a.z)(),u=r().create({baseURL:c.getHyperionEndpoint()}),d=new AbortController,l="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNyAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSI5IiByPSI4IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxjaXJjbGUgY3g9IjkiIGN5PSI5IiByPSI4IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=",g=c.getName(),p=`https://raw.githubusercontent.com/telosnetwork/token-list/main/tokens.${g}.json`,h=fetch(p).then((e=>e.text())).then((e=>JSON.parse(e))).then((e=>e.map((e=>e)))).catch((e=>(i.error(e),[]))),m=5,f=10;let b=0;u.interceptors.request.use((function(e){return new Promise((t=>{const n=setInterval((()=>{b{const t=n.find((t=>t.symbol===e.symbol));return t&&t.logo?e.logo=null===t||void 0===t?void 0:t.logo:e.logo=l,e}))}return yield h}))},k=function(e){return s(this,void 0,void 0,(function*(){const t=e.account||"",n=e.page||1,o=e.limit||10,r=Math.max(0,n-1)*o,a=e.notified||"",i=e.sort||"desc",s=e.after||"",c=e.before||"";let d={};t&&(d=Object.assign({account:t},d)),o&&(d=Object.assign({limit:o},d)),r&&(d=Object.assign({skip:r},d)),a&&(d=Object.assign({notified:a},d)),i&&(d=Object.assign({sort:i},d)),s&&(d=Object.assign({after:s},d)),c&&(d=Object.assign({before:c},d)),e.extras&&(d=Object.assign(Object.assign({"act.name":"!onblock"},d),e.extras));const l=d;return yield u.get("v2/history/get_actions",{params:l})}))},P=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.get("v2/history/get_transaction",{params:{id:e}});return t.data}))},x=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.post("v1/history/get_transaction",{id:e});return t.data}))},C=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.get("v2/history/get_actions",{params:{limit:100,account:e,filter:"eosio:newaccount",skip:0}});return t.data.actions}))},S=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.get("v2/state/get_links",{params:{account:e}});return t.data.links}))},_=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.post("v1/chain/get_table_by_scope",e);return t.data.rows}))},A=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.post("v1/chain/get_account",{account_name:e});return t.data}))},T=function(e){return s(this,void 0,void 0,(function*(){d.abort();const t=yield u.post("v1/chain/get_block",{block_num_or_id:e,signal:d.signal});return t.data}))},R=function(e,t,n,o){return s(this,void 0,void 0,(function*(){d.abort();const r=yield u.get("v2/history/get_actions",{params:{account:e,filter:t,limit:n,skip:o}});return r.data}))},I=function(){return s(this,void 0,void 0,(function*(){d.abort();const e=yield u.get("v1/chain/get_info");return e.data}))},E=function(){return s(this,void 0,void 0,(function*(){d.abort();const e=yield u.get("v1/chain/get_producer_schedule");return e.data}))},N=function({proposer:e,proposal:t,requested:n,provided:o,executed:r,limit:a,skip:i}){return s(this,void 0,void 0,(function*(){const s=yield u.get("v2/state/get_proposals",{params:{proposer:e,proposal:t,requested:n,provided:o,executed:r,limit:a,skip:i}});return s.data}))},O=function(){return s(this,void 0,void 0,(function*(){const e=yield u.post("v1/chain/get_producers",{json:!0,limit:1e4});return e.data}))},F=function(e){return s(this,void 0,void 0,(function*(){const t=yield u.post("v1/chain/get_abi",{account_name:e});return t.data}))},L=function(){return s(this,void 0,void 0,(function*(){const e=yield u.get("v1/chain/get_producer_schedule");return e.data}))}},21889:(e,t,n)=>{"use strict";n.d(t,{h:()=>m});var o=n(22231),r=n(3708),a=n(39981),i=n.n(a),s=n(30229),c=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const u=5,d=10;let l=0;const g=(0,s.z)(),p=i().create({baseURL:g.getApiEndpoint()});p.interceptors.request.use((function(e){return new Promise((t=>{const n=setInterval((()=>{l{"use strict";n.r(t),n.d(t,{default:()=>a});var o=n(23340),r=n(21889);const a=(0,o.xr)((({app:e})=>{e.config.globalProperties.$api=r.h}))},34136:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(23340),r=n(39981),a=n.n(r);const i=(0,o.xr)((({app:e})=>{e.config.globalProperties.$axios=a()}))},76865:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var o=n(23340),r=n(30229);const a=(0,o.xr)((({app:e})=>{e.config.globalProperties.$config=r.Z.get()}))},42841:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var o=n(23340),r=n(68142);const a=(0,o.xr)((({app:e})=>{e.config.globalProperties.$fuel=r.Z,r.Z.setGlobals(e.config.globalProperties),r.Z.load()}))},84284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w,getAuthenticators:()=>v,resetUalState:()=>y});var o=n(23340),r=n(54670),a=n(14247),i=n(30229),s=n(37474),c=n(11530),u=n(6827),d=n(65054),l=n(90347),g=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};function p(){return g(this,void 0,void 0,(function*(){let e="eosio",t="active";return"cleos"===localStorage.getItem("autoLogin_"+(0,i.z)().getChainId())?e=localStorage.getItem("account_"+(0,i.z)().getChainId()):(yield new Promise((t=>{c.Z.create({color:"primary",title:"Connect to cleos",message:"Account name (.,a-z,1-5)",prompt:{model:"",type:"text",isValid:e=>(0,l.Kf)(e)},cancel:!0,persistent:!0}).onOk((t=>{e=""!==t?t:"eosio"})).onCancel((()=>{throw"Cancelled!"})).onDismiss((()=>{t(!0)}))})),yield new Promise((e=>{c.Z.create({color:"primary",title:"Connect to cleos",message:"Account permission",options:{type:"radio",model:[],items:[{label:"Active",value:"active"},{label:"Owner",value:"owner"}]},cancel:!0,persistent:!0}).onOk((e=>{t=e})).onCancel((()=>{throw"Cancelled!"})).onDismiss((()=>{e(!0)}))}))),{accountName:e,permission:t}}))}function h(e,t){return g(this,void 0,void 0,(function*(){const n=JSON.stringify(Object.assign({delay_sec:0,max_cpu_usage_ms:0},t),null,4);yield new Promise((t=>{c.Z.create({color:"primary",message:`cleos -u ${e.protocol}://${e.host}:${e.port} push transaction '${n}'
`,html:!0,cancel:!0,fullWidth:!0,ok:{label:"Copy"}}).onOk((()=>{(0,d.Z)(`cleos -u ${e.protocol}://${e.host}:${e.port} push transaction '${n}'`).then((()=>{u.Z.create({color:"green-4",textColor:"white",message:"Copied to clipboard",timeout:1e3})})).catch((()=>{u.Z.create({color:"red-8",textColor:"white",message:"Could not copy",timeout:1e3})}))})).onCancel((()=>{throw"Cancelled!"})).onDismiss((()=>{t(!0)}))}))}))}function m(e){return g(this,void 0,void 0,(function*(){return h((0,i.z)().getRPCEndpoint(),e)}))}function f(){return{chainId:(0,i.z)().getChainId(),rpcEndpoints:[(0,i.z)().getRPCEndpoint()]}}const b=[],v=()=>{if(0===b.length){const e=f();b.push(new a.Anchor([e],{appName:`OBE_${e.chainId}`})),b.push(new s.CleosAuthenticator([e],{appName:`OBE_${e.chainId}`,loginHandler:p,signHandler:m}))}return b},y=()=>{b.length=0},w=(0,o.xr)((({app:e})=>{const t=v(),n=new r.UAL([f()],"ual",t);e.config.globalProperties.$ual=n}))},76510:(e,t,n)=>{"use strict";n.d(t,{HD:()=>r,ZP:()=>a,t0:()=>o});const o={primary:"#11589e",secondary:"#5d5d5d",accent:"#9C27B0",dark:"#1d1d1d","dark-page":"#121212",positive:"#21BA45",negative:"#C10015",info:"#31CCEC",warning:"#F2C037","color-map":"#8C8C8C","color-sidebar-selected":"#d1d1d1","color-primary-gradient":"linear-gradient(90deg, #5d5d5d 0%, #5d5d5d 100%)","color-secondary-gradient":"linear-gradient(180deg, #5d5d5d 0%, #5d5d5d 147.34%)","color-tertiary-gradient":"linear-gradient(90deg, #CBCAF5 0%, #A9CAF3 56.77%, #63C9EF 100%)","color-progress-gradient":"#11589e","color-producer-card-background":"#f0f0f0","color-select-box-background":"#e9e9e9","color-separator-background":"rgba(138, 101, 212, 0.1)","color-card-shadow":"rgba(37, 42, 97, 0.3)","color-dropdown-card":"#172c6c","color-header-background":"#4C4C4C","color-header-text":"#FFFFFF","color-header-border":"#777777","color-header-support-background":"linear-gradient(180deg, #4C4C4C 0%, #3B3B3B 147.34%)","color-graph-shadow":"#3f65c228","color-footer-background":"#000000"},r={headerSettings:{hideLoginHandler:!1,hideNetworkTab:!1,hideWalletTab:!1,hideVoteTab:!1,hideProposalTab:!1},accountPageSettings:{hideCpuInfo:!1,hideNetInfo:!1,hideRamInfo:!1,hideRexInfo:!1,hideRefundingInfo:!1,hideDelegatedInfo:!1,hideLiquidInfo:!1,hideResourcesControl:!1,hideRexControl:!1,hideTransactionTab:!1,hideTokensTab:!1,hideKeysTab:!1,hideChildrenTab:!1,hideContractsTab:!1}};class a{constructor(e){this.name=e}getName(){return this.name}getLargeLogoPath(){return`~/assets/${this.name}/logo_lg.svg`}getSmallLogoPath(){return`~/assets/${this.name}/logo_sm.svg`}getUiCustomization(){return r}isTestnet(){return!1}}},30229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ge,z:()=>qe});var o=n(76510),r=n(39981),a=n.n(r),i=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const s=e=>i(void 0,void 0,void 0,(function*(){const t=yield a().get(d(e));return t.data[e].usd})),c=e=>i(void 0,void 0,void 0,(function*(){const t=d(e),n=`https://api.coingecko.com/api/v3/coins/${e}/market_chart?vs_currency=USD&days=1`,[o,r]=yield Promise.all([a().get(t),a().get(n)]);return{lastUpdated:o.data[e].last_updated_at,tokenPrice:o.data[e].usd,dayChange:o.data[e].usd_24h_change,dayVolume:o.data[e].usd_24h_vol,marketCap:o.data[e].usd_market_cap,prices:r.data.prices}})),u=()=>i(void 0,void 0,void 0,(function*(){return{lastUpdated:0,tokenPrice:.026,dayChange:0,dayVolume:0,marketCap:13e8,prices:[]}})),d=e=>`https://api.coingecko.com/api/v3/simple/price?ids=${e}&vs_currencies=USD&include_market_cap=true&include_24hr_vol=true&include_24hr_change=true&include_last_updated_at=true`,l="aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",g="eos",p="EOS",h={symbol:"EOS",precision:4,amount:0,contract:"eosio.token"},m="https://eos.eosusa.io",f={protocol:"https",host:"eos.eosusa.io",port:443},b={protocol:"https",host:"eos.greymass.com",port:443},v="https://eos.greymass.com",y="https://telos-producer-validation.s3.amazonaws.com",w=!1,k={primary:"#28417c",secondary:"#000000",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#ff0000",info:"#31CCEC",warning:"#F2C037","color-map":"#19284e","color-primary-gradient":"linear-gradient(90deg, #0c3964 0%, #1876d2 100%)","color-secondary-gradient":"linear-gradient(180deg, #0c3964 0%, #1876d2 147.34%)","color-tertiary-gradient":"linear-gradient(90deg, #CBCAF5 0%, #A9CAF3 56.77%, #63C9EF 100%)","color-progress-gradient":"#28417c","color-header-background":"#000000","color-header-border":"#444","color-header-support-background":"#000","color-graph-shadow":"#3f65c228","color-footer-background":"#000000"};class P extends o.ZP{getName(){return g}getChainId(){return l}getDisplay(){return p}getHyperionEndpoint(){return m}getRPCEndpoint(){return f}getFuelRPCEndpoint(){return b}getApiEndpoint(){return v}getS3ProducerBucket(){return y}getPriceData(){return c("eos")}getSystemToken(){return h}getUsdPrice(){return s("eos")}getLargeLogoPath(){return"chains/eos/eos_large.png"}getSmallLogoPath(){return"chains/eos/eos.png"}getMapDisplay(){return w}getTheme(){return k}getFiltersSupported(e){return"notified"!==e}getFooterLinks(){return[{label:"TERMS",url:"https://eosnetwork.com/terms-of-use/"},{label:"PRIVACY",url:"https://eosnetwork.com/privacy-policy/"},{label:"REPOSITORY",url:"https://github.com/telosnetwork/open-block-explorer"}]}}const x="4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11",C="telos",S="Telos",_={symbol:"TLOS",precision:4,amount:0,contract:"eosio.token"},A="https://mainnet.telos.net",T={protocol:"https",host:"mainnet.telos.net",port:443},R={protocol:"https",host:"telos.greymass.com",port:443},I="https://api.telos.net/v1",E="https://telos-producer-validation.s3.amazonaws.com",N=!0,O={primary:"#571aff",secondary:"#071A5F",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#ff0000",info:"#31CCEC",warning:"#F2C037","color-map":"#4325c2","color-primary-gradient":"linear-gradient(90deg, #071A5F 0%, #571AFF 100%)","color-secondary-gradient":"linear-gradient(180deg, #071A5F 0%, #571aff 147.34%)","color-tertiary-gradient":"linear-gradient(90deg, #CBCAF5 0%, #A9CAF3 56.77%, #63C9EF 100%)","color-progress-gradient":"#571aff","color-producer-card-background":"#f5f4fe","color-select-box-background":"#e0dffb","color-header-background":"#071A5F","color-header-border":"#8a65d41a","color-header-support-background":"linear-gradient(180deg, #071A5F 0%, #571aff 147.34%)","color-graph-shadow":"#571aff28","color-footer-background":"#071A5F"};class F extends o.ZP{getName(){return C}getChainId(){return x}getDisplay(){return S}getHyperionEndpoint(){return A}getRPCEndpoint(){return T}getFuelRPCEndpoint(){return R}getApiEndpoint(){return I}getS3ProducerBucket(){return E}getPriceData(){return c("telos")}getSystemToken(){return _}getUsdPrice(){return s("telos")}getLargeLogoPath(){return"chains/telos/telos_logo.png"}getSmallLogoPath(){return"chains/telos/tlos.png"}getMapDisplay(){return N}getTheme(){return O}getFiltersSupported(e){return!0}getFooterLinks(){return[{label:"LEGAL",url:"https://telos.net/legal"},{label:"PRIVACY",url:"https://telos.net/privacy-policy"},{label:"REPOSITORY",url:"https://github.com/telosnetwork/open-block-explorer"}]}}const L="8fc6dce7942189f842170de953932b1f66693ad3788f766e777b6f9d22335c02",D="ux",B="UX",j={symbol:"UTX",precision:4,amount:0,contract:"eosio.token"},z="https://ux.eosusa.io",$={protocol:"https",host:"ux.eosusa.io",port:443},U="https://ux.eosusa.io",q="https://telos-producer-validation.s3.amazonaws.com",G=!1,M={};class Z extends o.ZP{getName(){return D}getChainId(){return L}getDisplay(){return B}getHyperionEndpoint(){return z}getRPCEndpoint(){return $}getFuelRPCEndpoint(){return null}getApiEndpoint(){return U}getS3ProducerBucket(){return q}getPriceData(){return u()}getSystemToken(){return j}getUsdPrice(){return Promise.resolve(0)}getLargeLogoPath(){return"chains/ux/logo_sm.png"}getSmallLogoPath(){return"chains/ux/logo_sm.png"}getMapDisplay(){return G}getTheme(){return M}getFiltersSupported(e){return"notified"!==e}getFooterLinks(){return[{label:"TERMS",url:"https://uxnetwork.io/static/Terms.pdf"},{label:"PRIVACY",url:"https://uxnetwork.io/static/PP.pdf"},{label:"REPOSITORY",url:"https://github.com/telosnetwork/open-block-explorer"}]}}const H="1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4",V="wax",J="WAX",Y={symbol:"WAX",precision:4,amount:0,contract:"eosio.token"},K="https://wax.eosusa.io",W={protocol:"https",host:"wax.eosusa.io",port:443},X="https://example.com",Q="https://telos-producer-validation.s3.amazonaws.com",ee=!1,te={};class ne extends o.ZP{getName(){return V}getChainId(){return H}getDisplay(){return J}getHyperionEndpoint(){return K}getRPCEndpoint(){return W}getFuelRPCEndpoint(){return null}getApiEndpoint(){return X}getS3ProducerBucket(){return Q}getPriceData(){return c("wax")}getSystemToken(){return Y}getUsdPrice(){return s("wax")}getLargeLogoPath(){return"chains/wax/logo_lg.png"}getSmallLogoPath(){return"chains/wax/logo_lg.png"}getMapDisplay(){return ee}getTheme(){return te}getFiltersSupported(e){return"notified"!==e}getFooterLinks(){return[{label:"TERMS",url:"https://www.wax.io/terms-of-service"},{label:"PRIVACY",url:"https://www.wax.io/privacy-policy"},{label:"REPOSITORY",url:"https://github.com/telosnetwork/open-block-explorer"}]}}const oe="1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f",re="telos-testnet",ae="Telos",ie={symbol:"TLOS",precision:4,amount:0,contract:"eosio.token"},se="https://testnet.telos.net",ce="https://telos-producer-validation.s3.amazonaws.com",ue={protocol:"https",host:"testnet.telos.net",port:443},de="https://api-dev.telos.net/v1",le=!1,ge={primary:"#571aff",secondary:"#071A5F",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#ff0000",info:"#31CCEC",warning:"#F2C037","color-map":"#4325c2","color-primary-gradient":"linear-gradient(90deg, #071A5F 0%, #571AFF 100%)","color-secondary-gradient":"linear-gradient(180deg, #071A5F 0%, #571aff 147.34%)","color-tertiary-gradient":"linear-gradient(90deg, #CBCAF5 0%, #A9CAF3 56.77%, #63C9EF 100%)","color-progress-gradient":"#571aff","color-producer-card-background":"#f5f4fe","color-select-box-background":"#e0dffb","color-header-background":"#071A5F","color-header-border":"#8a65d41a","color-header-support-background":"linear-gradient(180deg, #071A5F 0%, #571aff 147.34%)","color-graph-shadow":"#571aff28","color-footer-background":"#071A5F"};class pe extends o.ZP{getName(){return re}getChainId(){return oe}getDisplay(){return ae}getHyperionEndpoint(){return se}getRPCEndpoint(){return ue}getFuelRPCEndpoint(){return null}getApiEndpoint(){return de}getS3ProducerBucket(){return ce}getPriceData(){return u()}getSystemToken(){return ie}getUsdPrice(){return Promise.resolve(0)}getLargeLogoPath(){return"chains/telos/telos_logo.png"}getSmallLogoPath(){return"chains/telos/tlos.png"}getMapDisplay(){return le}getTheme(){return ge}getFiltersSupported(e){return"notified"!==e}isTestnet(){return!0}getFooterLinks(){return[{label:"LEGAL",url:"https://telos.net/legal"},{label:"PRIVACY",url:"https://telos.net/privacy-policy"},{label:"REPOSITORY",url:"https://github.com/telosnetwork/open-block-explorer"}]}}const he={hideLoginHandler:!0,hideNetworkTab:!1,hideWalletTab:!0,hideVoteTab:!0,hideProposalTab:!1},me=Object.assign(Object.assign({},o.HD),{headerSettings:he,accountPageSettings:{hideCpuInfo:!1,hideNetInfo:!1,hideRamInfo:!1,hideRexInfo:!0,hideRefundingInfo:!0,hideDelegatedInfo:!0,hideLiquidInfo:!0,hideResourcesControl:!1,hideRexControl:!1,hideTransactionTab:!1,hideTokensTab:!1,hideKeysTab:!1,hideChildrenTab:!1,hideContractsTab:!1}}),fe="8a34ec7df1b8cd06ff4a8abbaa7cc50300823350cadc59ab296cb00d104d2b8f",be="pangea-testnet",ve="Pangea testnet",ye={symbol:"SYS",precision:4,amount:0,contract:"eosio.token"},we="https://test.pangea.eosusa.io",ke={protocol:"https",host:"#",port:443},Pe={protocol:"https",host:"#",port:443},xe="https://blockchain-api-testnet.pangea.web4.world/",Ce="#",Se=!0,_e={primary:"#67D7ED",secondary:"#E76773",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#ff0000",info:"#31CCEC",warning:"#F2C037","color-map":"#4325c2","color-primary-gradient":"linear-gradient(90deg, #071A5F 0%, #571AFF 100%)","color-secondary-gradient":"linear-gradient(180deg, #071A5F 0%, #571aff 147.34%)","color-tertiary-gradient":"linear-gradient(90deg, #CBCAF5 0%, #A9CAF3 56.77%, #63C9EF 100%)","color-progress-gradient":"#571aff","color-producer-card-background":"#f5f4fe","color-select-box-background":"#e0dffb","color-header-background":"#67D7ED","color-header-border":"#8a65d41a","color-header-support-background":"linear-gradient(180deg, #000000 0%, #ffffff 147.34%)","color-graph-shadow":"#571aff28","color-footer-background":"#67D7ED"};class Ae extends o.ZP{getName(){return be}getChainId(){return fe}getDisplay(){return ve}getHyperionEndpoint(){return we}getRPCEndpoint(){return ke}getFuelRPCEndpoint(){return Pe}getApiEndpoint(){return xe}getS3ProducerBucket(){return Ce}getPriceData(){return u()}getSystemToken(){return ye}getUsdPrice(){return Promise.resolve(0)}getLargeLogoPath(){return"chains/pangea/telos_logo.png"}getSmallLogoPath(){return"chains/pangea/tlos.png"}getMapDisplay(){return Se}getTheme(){return _e}getFiltersSupported(e){return!0}getFooterLinks(){return[{label:"LEGAL",url:"https://pangea.web4.world"},{label:"PRIVACY",url:"https://pangea.web4.world"},{label:"REPOSITORY",url:"https://github.com/Tonomy-Foundation/Block-Explorer"}]}getUiCustomization(){return me}}const Te="73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d",Re="jungle",Ie="Jungle 4",Ee={symbol:"EOS",precision:4,amount:0,contract:"eosio.token"},Ne="https://jungle.eosusa.io",Oe="https://telos-producer-validation.s3.amazonaws.com",Fe={protocol:"https",host:"jungle.eosusa.io",port:443},Le="https://jungle.eosusa.io",De=!1,Be={primary:"#28417c",secondary:"#000000",accent:"#9C27B0",dark:"#1d1d1d",positive:"#21BA45",negative:"#ff0000",info:"#31CCEC",warning:"#F2C037","color-map":"#19284e","color-primary-gradient":"linear-gradient(90deg, #0c3964 0%, #1876d2 100%)","color-secondary-gradient":"linear-gradient(180deg, #0c3964 0%, #1876d2 147.34%)","color-tertiary-gradient":"linear-gradient(90deg, #CBCAF5 0%, #A9CAF3 56.77%, #63C9EF 100%)","color-progress-gradient":"#28417c","color-header-background":"#000000","color-header-border":"#444","color-header-support-background":"#000","color-graph-shadow":"#3f65c228","color-footer-background":"#000000"};class je extends o.ZP{getName(){return Re}getChainId(){return Te}getDisplay(){return Ie}getHyperionEndpoint(){return Ne}getRPCEndpoint(){return Fe}getFuelRPCEndpoint(){return null}getApiEndpoint(){return Le}getS3ProducerBucket(){return Oe}getPriceData(){return u()}getSystemToken(){return Ee}getUsdPrice(){return Promise.resolve(0)}getLargeLogoPath(){return"chains/eos/eos_large.png"}getSmallLogoPath(){return"chains/eos/eos.png"}getMapDisplay(){return De}getTheme(){return Be}getFiltersSupported(e){return"notified"!==e}isTestnet(){return!0}getFooterLinks(){return[{label:"TERMS",url:"https://eosnetwork.com/terms-of-use/"},{label:"PRIVACY",url:"https://eosnetwork.com/privacy-policy/"},{label:"REPOSITORY",url:"https://github.com/telosnetwork/open-block-explorer"}]}}const ze={mainnets:[new P("eos"),new F("telos"),new Z("ux"),new ne("wax")],testnets:[new je("jungle"),new pe("telos-testnet"),new Ae("pangea-testnet")]},$e=ze;var Ue=n(3168);function qe(){return Ge.get().getCurrentChain()}class Ge{constructor(){this.init()}init(){const e="true"===Ue.env.SHOW_MULTICHAIN_SELECTOR,t="pangea-testnet";if(this.testnets=$e.testnets,this.mainnets=$e.mainnets,e){const e=this.getSelectedChain();e?(this.currentChain=this.findChain(e),this.currentChain||(this.currentChain=this.findChain(t))):this.currentChain=this.findChain(t)}else this.currentChain=this.findChain(t)}static get(){return Ge.thisManager||(Ge.thisManager=new Ge),Ge.thisManager}getCurrentChain(){return this.currentChain}getSelectedChain(){return sessionStorage.getItem(Ge.CHAIN_LOCAL_STORAGE)}setCurrentChain(e){return!!this.findChain(e.getName())&&(sessionStorage.setItem(Ge.CHAIN_LOCAL_STORAGE,e.getName()),this.currentChain=e,!0)}getPreferredChain(){return localStorage.getItem(Ge.PREFERRED_CHAIN_LOCAL_STORAGE)}setPreferredChain(e){return!!this.findChain(e.getName())&&(localStorage.setItem(Ge.PREFERRED_CHAIN_LOCAL_STORAGE,e.getName()),!0)}getAllChains(){return this.mainnets.concat(this.testnets)}getMainnets(){return this.mainnets}getTestnets(){return this.testnets}findChain(e){const t=this.mainnets.find((t=>t.getName()===e));return t||this.testnets.find((t=>t.getName()===e))}}Ge.CHAIN_LOCAL_STORAGE="selectedChainName",Ge.PREFERRED_CHAIN_LOCAL_STORAGE="preferredChainName"},91669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,c:()=>b});var o=n(23340),r=n(18910),a=n(3168);const i="true"===a.env.SHOW_MULTICHAIN_SELECTOR,s=[{path:"/",name:"home",component:()=>Promise.all([n.e(736),n.e(64),n.e(258)]).then(n.bind(n,57945)),beforeEnter:(e,t,n)=>{i?n():n("/network")}},{path:"/account/:account",name:"account",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(827)]).then(n.bind(n,28038))}]},{path:"/transaction/:transaction",name:"transaction",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(862)]).then(n.bind(n,55228))}]},{path:"/block/:block",name:"block",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(710)]).then(n.bind(n,93417))}]},{path:"/network",name:"network",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(247)]).then(n.bind(n,35622))}]},{path:"/vote",name:"vote",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(753)]).then(n.bind(n,8617))}]},{path:"/proposal",name:"proposal",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(793)]).then(n.bind(n,98793))}]},{path:"/proposal/new",name:"ProposalNew",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(475)]).then(n.bind(n,44475))}]},{path:"/proposal/:proposalName",name:"ProposalItem",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(64),n.e(895)]).then(n.bind(n,29895))}]},{path:"/explore",name:"explore",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>n.e(987).then(n.bind(n,18987))}]},{path:"/repository",name:"repository",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>n.e(909).then(n.bind(n,92909))}]},{path:"/key/:key",name:"key",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(985)]).then(n.bind(n,47985))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([n.e(736),n.e(64),n.e(371)]).then(n.bind(n,40281)),children:[{path:"",component:()=>Promise.all([n.e(736),n.e(397)]).then(n.bind(n,61397))}]}],c=s;var u=n(30229),d=n(60499),l=n(59835),g=n(3168);const p=u.Z.get(),h=(0,d.qj)({network:""}),m=e=>{const t=p.getAllChains(),n=t.filter((t=>t.getName()===e))[0];h.network=n.getName(),p.setCurrentChain(n)},f=(0,o.BC)((function(){const e=r.PO,t=(0,r.p7)({routes:c,history:e("/")});return t.beforeEach(((e,t)=>{const n=p.getAllChains(),o=sessionStorage.getItem(u.Z.CHAIN_LOCAL_STORAGE),r=p.getPreferredChain(),a="true"===g.env.SHOW_MULTICHAIN_SELECTOR;if(a)if("/"===e.path){if(e.query.network)return{path:"network",query:e.query};if(o)return{path:"network",query:{network:o}};if(r)return m(r),{path:"network",query:{network:r}}}else{if(!e.query.network)return o?Object.assign(Object.assign({},e),{query:Object.assign(Object.assign({},e.query),{network:o})}):r?(m(r),Object.assign(Object.assign({},e),{query:Object.assign(Object.assign({},e.query),{network:r})})):{path:"/"};if(0===n.filter((t=>t.getName()===e.query.network)).length)return r?(m(r),Object.assign(Object.assign({},e),{query:Object.assign(Object.assign({},e.query),{network:r})})):{path:"/"};(t.query.network&&t.query.network!==e.query.network||o!==e.query.network)&&(m(Array.isArray(e.query.network)?e.query.network[0]:e.query.network),setTimeout((()=>location.reload()),500))}})),t}));function b(){return(0,l.Fl)((()=>h.network))}},78504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>te,storeKey:()=>ee,useStore:()=>ne});var o=n(23340),r=n(33100);function a(){return{address:"",creator:""}}var i=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const s={setContract({dispatch:e,commit:t},n){return i(this,void 0,void 0,(function*(){t("setContract",n),yield e("getContractInfo",n)}))},getContractInfo({commit:e}){const t={creator:"bob"};e("setCreator",t.creator)}},c={getCreatorAddress({creator:e}){return e}},u={setContract(e,t){e.address=t},setCreator(e,t){e.creator=t}},d={namespaced:!0,actions:s,getters:c,mutations:u,state:a};function l(){return{token:{symbol:"",precision:0,amount:0,contract:""},bpList:[],producers:[],head_block_num:0,last_irreversible_block_num:0,head_block_producer:"",producerSchedule:[],ram_price:"0"}}const g={getToken({token:e}){return e}},p={setToken(e,t){e.token=t},setSymbol(e,t){e.token.symbol=t},setPrecision(e,t){e.token.precision=t},setBpList(e,t){e.bpList=t},setHead_block_num(e,t){e.head_block_num=t},setLIB(e,t){e.last_irreversible_block_num=t},setHead_block_producer(e,t){e.head_block_producer=t},setProducerSchedule(e,t){e.producerSchedule=t},setProducers(e,t){e.producers=t},setRamPrice(e,t){e.ram_price=t}};var h=n(39981),m=n.n(h),f=n(21889),b=n(30229),v=n(90347),y=n(17779),w=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const k=(0,b.z)(),P={updateBpList({commit:e}){return w(this,void 0,void 0,(function*(){try{const t=(yield f.h.getSchedule()).active.producers,n=t.map((e=>e.producer_name));e("setProducerSchedule",n);const o=yield m().get(k.getS3ProducerBucket()),r=new DOMParser,a=r.parseFromString(o.data,"text/xml").getElementsByTagName("Contents"),i=a[a.length-1],s=i.childNodes[0].textContent,c=(yield m().get(`${k.getS3ProducerBucket()}/${s}`)).data;let u=(yield f.h.getProducers()).rows;u=u.filter((e=>1===e.is_active)),u=u.map((e=>{const t=c.find((t=>t.owner===e.owner));if(!t)return Object.assign(Object.assign({},e),{name:e.owner,location:""});try{return Object.assign(Object.assign({},e),{name:t.org.candidate_name,location:t.org.location.name})}catch(n){return e}})),c.sort(((e,t)=>t.total_votes-e.total_votes)),u.sort(((e,t)=>t.total_votes-e.total_votes)),e("setProducers",u),e("setBpList",c)}catch(t){y.error(t)}}))},updateBlockData({commit:e}){return w(this,void 0,void 0,(function*(){try{const t=yield f.h.getInfo();e("setHead_block_num",t.head_block_num),e("setLIB",t.last_irreversible_block_num),e("setHead_block_producer",t.head_block_producer)}catch(t){y.error(t)}}))},updateRamPrice({commit:e}){return w(this,void 0,void 0,(function*(){try{const t={code:"eosio",scope:"eosio",table:"rammarket",json:!0},n=(yield f.h.getTableRows(t)).rows[0],o=Number(n.base.balance.split(" ")[0]),r=Number(n.quote.balance.split(" ")[0]),a=1e3*r/(o-1e3),i=(0,v.xG)(a/.995,4,null,!0);e("setRamPrice",i)}catch(t){y.error(t)}}))}},x={namespaced:!0,actions:P,getters:g,mutations:p,state:l};var C=n(61753);const S=(0,b.z)();function _(){return{loading:!1,accountName:"",accountPermission:"active",user:null,autoLogin:null,isAuthenticated:!1,linkedAccounts:[],data:{account_name:"",core_liquid_balance:C.UInt64.from(0)},authorization:[],rexActions:[],TransactionId:"",TransactionError:"",rexbal:{},vote:[],abi:{abi:null},coreRexBalance:`0 ${S.getSystemToken().symbol}`,maturingRex:`0 ${S.getSystemToken().symbol}`,maturedRex:`0 ${S.getSystemToken().symbol}`,savingsRex:`0 ${S.getSystemToken().symbol}`,tlosRexRatio:1,rexfund:0,chainId:""}}const A={account(e){return e},isAuthenticated(e){return e.isAuthenticated},accountName(e){return e.accountName},getAccountData(e){return e.data},getUser(e){return e.user}};var T=n(60499);const R=(0,b.z)().getSystemToken().symbol,I={setUser(e,t){e.user=t?(0,T.Xl)(t):t},setAccountName(e,t){e.accountName=t},setAutoLogin(e,t){e.autoLogin=t},setAccountData(e,t){var n;e.data=t,e.vote=(null===(n=null===t||void 0===t?void 0:t.voter_info)||void 0===n?void 0:n.producers.map((e=>e.toString())))||[]},setTransaction(e,t){e.TransactionId=t},setTransactionError(e,t){e.TransactionError=t},setRexActions(e,t){e.rexActions=t},setRexbal(e,t){e.rexbal=t.rexbal,e.coreRexBalance=(0,v.xG)(t.coreBalance,4,R),e.maturedRex=(0,v.xG)(t.maturedRex,4,R),e.maturingRex=(0,v.xG)(t.maturingRex,4,R),e.savingsRex=(0,v.xG)(t.savingsRex,4,R)},setVote(e,t){e.vote=t.sort()},setABI(e,t){e.abi=t},setTlosRexRatio(e,t){e.tlosRexRatio=t},setAccountPermission(e,t){e.accountPermission=t},setIsAuthenticated(e,t){e.isAuthenticated=t},setRexFund(e,t){e.rexfund=t},setChainId(e,t){e.chainId=t}};var E=n(68142),N=n(17779),O=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const F=(0,b.z)(),L=F.getSystemToken().symbol,D={login({commit:e},{account:t,authenticator:n}){return O(this,void 0,void 0,(function*(){if(yield n.init(),!t){const t=yield n.shouldRequestAccountName();if(t)return void e("setRequestAccount",!0)}const o=yield n.login();if(null===o||void 0===o?void 0:o.length){const t=new E.V(o[0]),r=t.requestPermission,a=yield t.getAccountName();e("setAccountPermission",r||"active"),e("setUser",t),e("setIsAuthenticated",!0),e("setAccountName",a),e("setChainId",n.chains[0].chainId),localStorage.setItem(`account_${n.chains[0].chainId}`,a),localStorage.setItem(`autoLogin_${n.chains[0].chainId}`,n.getName())}}))},logout({commit:e,state:t}){e("setIsAuthenticated",!1),e("setAccountName",""),e("setUser",null),localStorage.removeItem(`account_${t.chainId}`),localStorage.removeItem(`autoLogin_${t.chainId}`)},loadAccountData({commit:e,state:t}){return O(this,void 0,void 0,(function*(){try{const n=yield f.h.getAccount(t.accountName);e("setAccountData",n)}catch(n){return}}))},updateRexData({commit:e},{account:t}){return O(this,void 0,void 0,(function*(){const n={code:"eosio",limit:"2",lower_bound:t,scope:"eosio",table:"rexbal",reverse:!1,upper_bound:t},o=yield f.h.getTableRows(n),r={code:"eosio",scope:"eosio",table:"rexpool",json:!0,reverse:!1},a=(yield f.h.getTableRows(r)).rows[0],i={code:"eosio",limit:"1",lower_bound:t,scope:"eosio",table:"rexfund",reverse:!1,upper_bound:t},s=(yield f.h.getTableRows(i)).rows[0],c=(null===s||void 0===s?void 0:s.balance)?Number(s.balance.split(" ")[0]):0;e("setRexFund",c);const u=o.rows[0],d=u&&u.rex_balance?parseFloat(u.rex_balance.split(" ")[0]):0,l=Number(a.total_rex.split(" ")[0]),g=Number(a.total_lendable.split(" ")[0]),p=l>0?g/l:1;e("setTlosRexRatio",p);let h=l>0?p*d:0;h+=c;let m=0,b=u?p*(Number(u.matured_rex)/1e4):0,v=0;if(u&&u.rex_maturities&&u.rex_maturities.length>0){const e=(new Date).getFullYear(),t=(new Date).getTime();u.rex_maturities.forEach((n=>{const o=new Date(n.first).getFullYear(),r=new Date(n.first).getTime();o-e>1?m=p*(Number(n.second)/1e4):r-t<0?b+=p*(Number(n.second)/1e4):v=p*(Number(n.second)/1e4)}))}o.rows.length>0&&e("setRexbal",{rexbal:o.rows[0],coreBalance:h,maturingRex:v,savingsRex:m,maturedRex:b});const y=["eosio:sellrex","eosio:buyrex","eosio:deposit","eosio:withdraw","eosio:unstaketorex","eosio:cnclrexorder","eosio:rentcpu","eosio:rentnet","eosio:fundcpuloan","eosio:fundnetloan","eosio:defcpuloan","eosio:defnetloan","eosio:updaterex","eosio:consolidate","eosio:closerex","eosio:mvfrsavings","eosio:mvtosavings","eosio:rexexec"].join(","),w=(yield f.h.getActions(t,y)).actions;e("setRexActions",w)}))},sendAction({state:e,dispatch:t},{account:n,data:o,name:r,actor:a,permission:i}){var s,c,u;return O(this,void 0,void 0,(function*(){const d=[{account:null!==(s=n)&&void 0!==s?s:e.abi.account_name,name:r,authorization:[{actor:null!==(c=a)&&void 0!==c?c:e.accountName,permission:null!==(u=i)&&void 0!==u?u:e.accountPermission}],data:o}];return t("sendTransaction",d)}))},sendTransaction({commit:e,state:t},n){return O(this,void 0,void 0,(function*(){let o=null;try{o=yield t.user.signTransaction({actions:n},{blocksBehind:3,expireSeconds:180}),e("setTransaction",o.transactionId)}catch(r){N.error(r),e("setTransactionError",r)}return o}))},stakeRex({commit:e,dispatch:t,state:n},{amount:o}){return O(this,void 0,void 0,(function*(){let r=null;const a=(0,v.xG)(o,4,L,!0),i=[{account:"eosio",name:"deposit",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{owner:n.accountName,amount:a}},{account:"eosio",name:"buyrex",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{from:n.accountName,amount:a}}];try{r=yield n.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",r.transactionId),t("loadAccountData"),t("updateRexData",{account:n.accountName})}catch(s){e("setTransactionError",s)}}))},unstakeRex({commit:e,dispatch:t,state:n},{amount:o}){return O(this,void 0,void 0,(function*(){let r=null;const a=n.rexbal.rex_balance?Number(n.rexbal.rex_balance.split(" ")[0]):0;if(0===a)return;const i=(0,v.xG)(o,4,L,!0),s=(0,v.xG)(+o/n.tlosRexRatio,4,null,!0),c=[{account:"eosio",name:"sellrex",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{from:n.accountName,rex:`${s} REX`}},{account:"eosio",name:"withdraw",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{owner:n.accountName,amount:i}}];try{r=yield n.user.signTransaction({actions:c},{blocksBehind:3,expireSeconds:180}),e("setTransaction",r.transactionId),t("loadAccountData"),t("updateRexData",{account:n.accountName})}catch(u){e("setTransactionError",u)}}))},unstakeRexFund({commit:e,state:t},{amount:n}){return O(this,void 0,void 0,(function*(){let o=null;const r=(0,v.xG)(n,4,L,!0),a=[{account:"eosio",name:"withdraw",authorization:[{actor:t.accountName,permission:t.accountPermission}],data:{owner:t.accountName,amount:r}}];try{o=yield t.user.signTransaction({actions:a},{blocksBehind:3,expireSeconds:180}),e("setTransaction",o.transactionId)}catch(i){e("setTransactionError",i)}}))},stakeCpuNetRex({commit:e,dispatch:t,state:n},{cpuAmount:o,netAmount:r}){return O(this,void 0,void 0,(function*(){let a=null;const i=(0,v.xG)(o,4,L,!0),s=(0,v.xG)(r,4,L,!0),c=[{account:"eosio",name:"unstaketorex",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{owner:n.accountName,receiver:n.accountName,from_net:s,from_cpu:i}}];try{a=yield n.user.signTransaction({actions:c},{blocksBehind:3,expireSeconds:180}),e("setTransaction",a.transactionId),t("loadAccountData"),t("updateRexData",{account:n.accountName})}catch(u){e("setTransactionError",u)}}))},unstakeCpuNetRex({commit:e,dispatch:t,state:n},{cpuAmount:o,netAmount:r}){return O(this,void 0,void 0,(function*(){let a=null;const i=(0,v.xG)(o,4,L,!0),s=(0,v.xG)(r,4,L,!0),c=[{account:"eosio",name:"stakefromrex",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{owner:n.accountName,receiver:n.accountName,from_net:s,from_cpu:i}}];try{a=yield n.user.signTransaction({actions:c},{blocksBehind:3,expireSeconds:180}),e("setTransaction",a.transactionId),t("loadAccountData"),t("updateRexData",{account:n.accountName})}catch(u){e("setTransactionError",u)}}))},resetTransaction({commit:e}){e("setTransaction",""),e("setTransactionError","")},updateABI({commit:e},t){return O(this,void 0,void 0,(function*(){const n=yield f.h.getABI(t);e("setABI",n)}))},sendVoteTransaction({commit:e,state:t}){return O(this,void 0,void 0,(function*(){let n=null;const o=[{account:"eosio",name:"voteproducer",authorization:[{actor:t.accountName,permission:t.accountPermission}],data:{voter:t.accountName,proxy:"",producers:t.vote}}];try{n=yield t.user.signTransaction({actions:o},{blocksBehind:3,expireSeconds:180}),e("setTransaction",n.transactionId)}catch(r){e("setTransactionError",r)}}))},buyRam({commit:e,dispatch:t,state:n},{amount:o,receivingAccount:r}){return O(this,void 0,void 0,(function*(){let a=null;const i=[{account:"eosio",name:"buyram",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{payer:n.accountName,receiver:r,quant:o}}];try{a=yield n.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",a.transactionId),t("loadAccountData")}catch(s){e("setTransactionError",s)}}))},buyRamBytes({commit:e,dispatch:t,state:n},{amount:o,receivingAccount:r}){return O(this,void 0,void 0,(function*(){let a=null;const i=[{account:"eosio",name:"buyrambytes",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{payer:n.accountName,receiver:r,bytes:o}}];try{a=yield n.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",a.transactionId),t("loadAccountData")}catch(s){e("setTransactionError",s)}}))},sellRam({commit:e,dispatch:t,state:n},{amount:o}){return O(this,void 0,void 0,(function*(){let r=null;const a=[{account:"eosio",name:"sellram",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{account:n.accountName,bytes:o}}];try{r=yield n.user.signTransaction({actions:a},{blocksBehind:3,expireSeconds:180}),e("setTransaction",r.transactionId),t("loadAccountData")}catch(i){e("setTransactionError",i)}}))},moveToSavings({commit:e,dispatch:t,state:n},{amount:o}){return O(this,void 0,void 0,(function*(){let r=null;const a=(0,v.xG)(+o/n.tlosRexRatio,4,"REX",!0),i=[{account:"eosio",name:"mvtosavings",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{owner:n.accountName,rex:a}}];try{r=yield n.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",r.transactionId),t("loadAccountData"),t("updateRexData",{account:n.accountName})}catch(s){e("setTransactionError",s)}}))},moveFromSavings({commit:e,dispatch:t,state:n},{amount:o}){return O(this,void 0,void 0,(function*(){let r=null;const a=(0,v.xG)(+o/n.tlosRexRatio,4,"REX",!0),i=[{account:"eosio",name:"mvfrsavings",authorization:[{actor:n.accountName,permission:n.accountPermission}],data:{owner:n.accountName,rex:a}}];try{r=yield n.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",r.transactionId),t("loadAccountData"),t("updateRexData",{account:n.accountName})}catch(s){e("setTransactionError",s)}}))}},B={namespaced:!0,getters:A,mutations:I,actions:D,state:_};function j(){return{transaction:{},transactionId:"",blockNum:0,timestamp:"",executed:!1,cpuUsage:0,netUsage:0,actionCount:0,irreversable:!1,actions:[],transactionFound:!0}}var z=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const $={updateTransaction({commit:e,state:t}){return z(this,void 0,void 0,(function*(){const n=yield f.h.getTransaction(t.transactionId);n?e("setTransaction",n):e("setTransactionFound",!1)}))},updateTransactionId({commit:e},t){e("setTransactionId",t)}},U={getTransaction({transaction:e}){return e},getTransactionId({transactionId:e}){return e}},q={setTransaction(e,t){if(t&&t.actions&&t.actions.length>0){e.transaction=t,e.executed=t.executed||!1;const n=t.actions[0];e.blockNum=n.block_num,e.timestamp=n.timestamp,e.cpuUsage=n.cpu_usage_us,e.netUsage=8*n.net_usage_words,e.actionCount=t.actions.length,e.irreversable=t.lib>n.block_num,e.actions=t.actions,e.transactionFound=!0}else e.transactionFound=!1},setTransactionId(e,t){e.transactionId=t},setTimestamp(e,t){e.timestamp=t},setBlockNum(e,t){e.blockNum=t},setExecuted(e,t){e.executed=t},setCpuUsage(e,t){e.cpuUsage=t},setNetUsage(e,t){e.netUsage=t},setActionCount(e,t){e.actionCount=t},setIrreversable(e,t){e.irreversable=t},setTransactionFounde(e,t){e.transactionFound=t}},G={namespaced:!0,actions:$,getters:U,mutations:q,state:j};function M(){return{currentAccount:"",toOthers:[],toOthersAggregated:0,fromOthers:null,selfStaked:null,loading:[],forceUpdate:!1}}const Z={getDelegatedToOthers(e){var t;return null!==(t=e.toOthers)&&void 0!==t?t:[]},getDelegatedToOthersAggregated(e){var t;return null!==(t=e.toOthersAggregated)&&void 0!==t?t:0},getDelegatedFromOthers(e){return e.fromOthers},getSelfStaked(e){return e.selfStaked},getLoading(e){return e.loading},isLoading(e){return t=>e.loading.includes(t)}},H={setCurrentAccount(e,t){e.currentAccount=t},setDelegatedFromOthers(e,t){e.fromOthers=t},setDelegatedToOthers(e,t){e.toOthers=t},setDelegatedToOthersAggregated(e,t){e.toOthersAggregated=t},setSelfStaked(e,t){e.selfStaked=t},setLoading(e,t){e.loading.includes(t)||e.loading.push(t)},unsetLoading(e,t){e.loading=e.loading.filter((e=>e!==t))},setForceUpdate(e,t){e.forceUpdate=t}};var V=n(17779),J=function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(t){a(t)}}function s(e){try{c(o["throw"](e))}catch(t){a(t)}}function c(e){e.done?n(e.value):r(e.value).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const Y=(0,b.z)(),K=Y.getSystemToken().symbol,W=Y.getSystemToken().precision,X={updateResources(e,{account:t,force:n}){var o;return J(this,void 0,void 0,(function*(){const r=null!==(o=t)&&void 0!==o?o:e.rootState.account.accountName;try{e.commit("setLoading","updateResources"),e.commit("setForceUpdate",n),e.state.currentAccount===r&&e.rootState.account.data&&!n||(yield Promise.all([e.dispatch("updateSelfStaked",r),e.dispatch("updateDelegatedToOthers",r)]),e.commit("setCurrentAccount",r))}catch(a){V.error("Error:",a)}finally{e.commit("setForceUpdate",!1),e.commit("unsetLoading","updateResources")}}))},updateSelfStaked(e,t){var n,o,r,a,i,s,c,u,d,l;return J(this,void 0,void 0,(function*(){try{e.commit("setLoading","updateSelfStaked"),(e.state.currentAccount!==t||(null===(n=e.state.selfStaked)||void 0===n?void 0:n.from)!==t||(null===(o=e.state.selfStaked)||void 0===o?void 0:o.to)!==t||e.state.forceUpdate)&&(yield e.dispatch("account/loadAccountData",t,{root:!0}));const g=e.rootState.account.data,p=Number(null!==(a=null===(r=g.self_delegated_bandwidth)||void 0===r?void 0:r.net_weight.value)&&void 0!==a?a:0),h=Number(null!==(s=null===(i=g.self_delegated_bandwidth)||void 0===i?void 0:i.cpu_weight.value)&&void 0!==s?s:0),m=(0,v.xG)(p,W,K,!0),f=(0,v.xG)(h,W,K,!0),b={from:t,to:t,net_weight:m,cpu_weight:f},y=Number(null!==(u=null===(c=g.net_weight)||void 0===c?void 0:c.value)&&void 0!==u?u:0)/Math.pow(10,W),w=Number(null!==(l=null===(d=g.cpu_weight)||void 0===d?void 0:d.value)&&void 0!==l?l:0)/Math.pow(10,W),k=y-p,P=w-h,x=(0,v.xG)(k,W,K,!0),C=(0,v.xG)(P,W,K,!0),S={from:"not-available",to:t,net_weight:x,cpu_weight:C};e.commit("setDelegatedFromOthers",S),e.commit("setSelfStaked",b)}catch(g){V.error("Error:",g)}finally{e.commit("unsetLoading","updateSelfStaked")}}))},updateDelegatedToOthers({commit:e},t){return J(this,void 0,void 0,(function*(){try{e("setLoading","updateDelegatedToOthers");const n={code:"eosio",limit:"200",scope:t,table:"delband"},o=(yield f.h.getTableRows(n)).rows,r=o.filter((e=>e.to!==t)),a=r.reduce(((e,t)=>e+parseFloat(t.net_weight)),0),i=r.reduce(((e,t)=>e+parseFloat(t.cpu_weight)),0),s=i+a;e("setCurrentAccount",t),e("setDelegatedToOthers",o),e("setDelegatedToOthersAggregated",s)}catch(n){V.error("Error:",n)}finally{e("unsetLoading","updateDelegatedToOthers")}}))},delegateResources({commit:e,dispatch:t},n){return J(this,void 0,void 0,(function*(){const{from:o,to:r,net_weight:a,cpu_weight:i}=n;try{e("setLoading","delegateResources");const n=Number(null!==a&&void 0!==a?a:"0")+Number(null!==i&&void 0!==i?i:"0"),s=[{account:"eosio",name:"delegatebw",authorization:[{actor:o,permission:this.state.account.accountPermission}],data:{from:o,receiver:r,stake_net_quantity:a,stake_cpu_quantity:i,transfer:!1,amount:n}}];yield t("account/sendTransaction",s,{root:!0}),yield t("updateResources",{account:o,force:!0})}catch(s){e("setTransactionError",s)}finally{e("unsetLoading","delegateResources")}}))},undelegateResources({commit:e,dispatch:t},n){return J(this,void 0,void 0,(function*(){const{from:o,to:r,net_weight:a,cpu_weight:i}=n;try{e("setLoading","undelegateResources");const n=[{account:"eosio",name:"undelegatebw",authorization:[{actor:o,permission:"active"}],data:{from:o,receiver:r,unstake_net_quantity:a,unstake_cpu_quantity:i}}];yield t("account/sendTransaction",n,{root:!0}),yield t("updateResources",{account:o,force:!0})}catch(s){V.error("Error",s)}finally{e("unsetLoading","undelegateResources")}}))},resetResources({commit:e}){e("setDelegatedFromOthers",null),e("setDelegatedToOthers",[]),e("setSelfStaked",null)}},Q={namespaced:!0,actions:X,getters:Z,mutations:H,state:M},ee=Symbol("vuex-key"),te=(0,o.h)((function(){const e=(0,r.MT)({modules:{contract:d,chain:x,account:B,transaction:G,resources:Q},strict:!1});return e}));function ne(){return(0,r.oR)(ee)}},90347:(e,t,n)=>{"use strict";n.d(t,{Kf:()=>r,RJ:()=>a,p6:()=>u,pw:()=>c,sA:()=>s,vE:()=>d,xG:()=>i});var o=n(30229);function r(e){const t=/(^[a-z1-5.]{1,11}[a-z1-5]$)|(^[a-z1-5.]{12}[a-z1-5]$)/;return null!==t.exec(e)}function a(e){const t=/^([0-9A-Fa-f]){64}$/g;return null!==t.exec(e)}function i(e,t,n,o){const r=/^-?(0|[1-9]\d*)(\.\d+)?$/,a=("number"===typeof e||r.test(e))&&!Number.isNaN(e);if(!a)throw`${e} is not a valid number`;let i="number"===typeof e?e.toString():e;return i=(+i).toFixed(t),o||(i=(()=>{const[e,t]=i.split(".");return`${(+e).toLocaleString("en")}.${t}`})()),0!==+i||o||(i="0"),n&&(i+=` ${n}`),i}function s(e){try{const t=e.split(" ")[0];return parseFloat(t.replace(/,/g,""))}catch(t){return 0}}function c(e){return new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:20}).format(e)}function u(e,t=!0){return t?new Date(e).toLocaleDateString("en-US",{month:"long",year:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}):new Date(e).toLocaleDateString("en-US",{month:"long",year:"numeric",day:"numeric"})}function d(e){if(e.rex)return e.rex;if("number"===typeof e.amount){const t=(0,o.z)().getSystemToken().symbol;return`${e.amount} ${t}`}return e.amount}},46601:()=>{},89214:()=>{}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,(()=>{var e=[];n.O=(t,o,r,a)=>{if(!o){var i=1/0;for(d=0;d=a)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,r,a]}})(),(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,o)=>(n.f[o](e,t),t)),[]))})(),(()=>{n.u=e=>"js/"+(64===e?"chunk-common":e)+"."+{64:"1609122f",247:"559216c1",258:"f95eac38",371:"006261cc",397:"4a37addf",475:"fd8562d4",710:"12fc11cd",753:"cf805fe1",793:"76d1f2fe",827:"e1c79409",862:"56c8f538",895:"2c5dce85",909:"862a4d97",985:"7244d31c",987:"b11029f4"}[e]+".js"})(),(()=>{n.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{143:"31a7ead1",247:"af991343",258:"e21a34b0",371:"6e916095",397:"f4fe581c",475:"1628da7f",710:"209f1d33",736:"b507aab4",753:"a6e0aae4",827:"efd4746e",862:"21cd96e3",895:"46fa1f18",985:"b268a873"}[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="open-block-explorer:";n.l=(o,r,a,i)=>{if(e[o])e[o].push(r);else{var s,c;if(void 0!==a)for(var u=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(p);var r=e[o];if(delete e[o],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(g.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=g.bind(null,s.onerror),s.onload=g.bind(null,s.onload),c&&document.head.appendChild(s)}}})(),(()=>{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)})(),(()=>{n.p="/"})(),(()=>{var e=(e,t,n,o)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var a=a=>{if(r.onerror=r.onload=null,"load"===a.type)n();else{var i=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=s,r.parentNode.removeChild(r),o(c)}};return r.onerror=r.onload=a,r.href=t,document.head.appendChild(r),r},t=(e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;onew Promise(((r,a)=>{var i=n.miniCssF(o),s=n.p+i;if(t(i,s))return r();e(o,s,r,a)})),r={143:0};n.f.miniCss=(e,t)=>{var n={247:1,258:1,371:1,397:1,475:1,710:1,753:1,827:1,862:1,895:1,985:1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=o(e).then((()=>{r[e]=0}),(t=>{throw delete r[e],t})))}})(),(()=>{var e={143:0};n.f.j=(t,o)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var a=new Promise(((n,o)=>r=e[t]=[n,o]));o.push(r[2]=a);var i=n.p+n.u(t),s=new Error,c=o=>{if(n.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,r[1](s)}};n.l(i,c,"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[i,s,c]=o,u=0;if(i.some((t=>0!==e[t]))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(c)var d=c(n)}for(t&&t(o);un(20623)));o=n.O(o)})();
\ No newline at end of file
diff --git a/dist/spa/js/chunk-common.1609122f.js b/dist/spa/js/chunk-common.1609122f.js
new file mode 100644
index 0000000..30536a8
--- /dev/null
+++ b/dist/spa/js/chunk-common.1609122f.js
@@ -0,0 +1 @@
+(globalThis["webpackChunkopen_block_explorer"]=globalThis["webpackChunkopen_block_explorer"]||[]).push([[64],{13385:(e,t,a)=>{"use strict";a.d(t,{p:()=>n});var o=a(78504);function n(){const e=(0,o.useStore)(),t=e.state,a=e.getters;return{resources:{getDelegatedToOthers:()=>a["resources/getDelegatedToOthers"],getDelegatedFromOthers:()=>a["resources/getDelegatedFromOthers"],getSelfStaked:()=>a["resources/getSelfStaked"],getDelegatedToOthersAggregated:()=>a["resources/getDelegatedToOthersAggregated"],getLoading:()=>a["resources/getLoading"],isLoading:e=>a["resources/isLoading"](e),updateResources:t=>e.dispatch("resources/updateResources",t),updateSelfStaked:t=>e.dispatch("resources/updateSelfStaked",t),updateDelegatedToOthers:t=>e.dispatch("resources/updateDelegatedToOthers",t),delegateResources:t=>e.dispatch("resources/delegateResources",t),undelegateResources:t=>e.dispatch("resources/undelegateResources",t)},state:t,dispatch:(t,a,o)=>e.dispatch(t,a,o),commit:(t,a,o)=>e.commit(t,a,o)}}},71130:(e,t,a)=>{"use strict";function o(e=1e3){return new Promise((t=>setTimeout(t,e)))}a.d(t,{D:()=>n,_:()=>o});const n=(e,t)=>{let a;return(...o)=>{clearTimeout(a),a=setTimeout((()=>{e(...o)}),t)}}},52783:(e,t,a)=>{"use strict";a.d(t,{Z:()=>_});var o=a(59835),n=a(61957),l=a(86970);const s=(0,o.Uk)("Searching...");function i(e,t,a,i,r,c){const u=(0,o.up)("q-icon"),d=(0,o.up)("q-item-label"),p=(0,o.up)("q-item-section"),m=(0,o.up)("q-item"),g=(0,o.up)("q-select");return(0,o.wg)(),(0,o.j4)(g,{borderless:"",dense:"",filled:"","use-input":"","hide-selected":"","fill-input":"","hide-bottom-space":"",placeholder:"name",loading:e.isLoading,"model-value":e.inputValue,options:e.options,"option-disable":e=>e.isHeader,"reactive-rules":e.withValidation,rules:e.withValidation?[e=>!!e||"Field is required",t=>e.isLoading||1===e.options.filter((e=>e.label===t)).length||"Field invalid"]:[],error:e.withValidation&&e.isError,onInputValue:t[0]||(t[0]=t=>e.inputValue=t),onKeyup:(0,n.D2)(e.handleSelected,["enter"])},(0,o.Nv)({"no-option":(0,o.w5)((()=>[(0,o.Wm)(m,null,{default:(0,o.w5)((()=>[(0,o.Wm)(p,{class:"text-center"},{default:(0,o.w5)((()=>[e.isLoading?((0,o.wg)(),(0,o.j4)(d,{key:0},{default:(0,o.w5)((()=>[s])),_:1})):((0,o.wg)(),(0,o.j4)(d,{key:1},{default:(0,o.w5)((()=>[(0,o.Uk)((0,l.zw)(e.inputValue?"Nothing found":"Search for an account name"),1)])),_:1}))])),_:1})])),_:1})])),option:(0,o.w5)((t=>[t.opt.isHeader?((0,o.wg)(),(0,o.j4)(d,{key:0,header:""},{default:(0,o.w5)((()=>[(0,o.Uk)((0,l.zw)(t.opt.label),1)])),_:2},1024)):((0,o.wg)(),(0,o.j4)(m,(0,o.dG)({key:1},t.itemProps,{exact:"exact",clickable:"clickable",onClick:a=>e.handleSelected(t.opt.to)}),{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,l.zw)(t.opt.label),1)])),_:2},1024)])),_:2},1024)])),_:2},1040,["onClick"]))])),_:2},[e.removeSearchIcon?void 0:{name:"prepend",fn:(0,o.w5)((()=>[(0,o.Wm)(u,{class:"rotate-90",name:"search",size:"20px"})]))}]),1032,["loading","model-value","options","option-disable","reactive-rules","rules","error","onKeyup"])}var r=a(60499),c=a(21889),u=a(19302),d=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function s(e){try{r(o.next(e))}catch(t){l(t)}}function i(e){try{r(o["throw"](e))}catch(t){l(t)}}function r(e){e.done?a(e.value):n(e.value).then(s,i)}r((o=o.apply(e,t||[])).next())}))};const p=(0,o.aZ)({name:"AccountSearch",props:{modelValue:{type:String},withValidation:{type:Boolean,default:!1},removeSearchIcon:{type:Boolean,default:!1},emitUpdateOnInput:{type:Boolean,default:!1}},emits:["update:modelValue","remove"],setup(e,t){const a=(0,u.Z)(),n=(0,r.iH)([]),l=(0,r.iH)(!1),s=(0,r.iH)(!1),i=(0,r.iH)("");(0,o.YP)(i,(()=>d(this,void 0,void 0,(function*(){if(""===i.value)return void(n.value=[]);l.value=!0,s.value=!1;const e=i.value.toLowerCase(),t=yield m(e);n.value=[...t],l.value=!1})))),(0,o.YP)(e,(e=>d(this,void 0,void 0,(function*(){e.modelValue&&(i.value=e.modelValue,yield g(e.modelValue))})))),(0,o.bv)((()=>d(this,void 0,void 0,(function*(){e.modelValue&&(i.value=e.modelValue,yield g(e.modelValue))}))));const p=setTimeout((()=>0),0);function m(e){return clearTimeout(p),new Promise((t=>{setTimeout((()=>d(this,void 0,void 0,(function*(){const a=yield g(e);i.value===e&&t(a)}))),500)}))}function g(e){return d(this,void 0,void 0,(function*(){try{const t=[],a=yield c.h.getAccountByScope(v(e).toString());return a?t.push({label:v(e),to:v(e),isHeader:!1}):s.value=!0,t}catch(t){return void(s.value=!0)}}))}function v(e){return e.replace(/^[\s.]+|[\s.]+$/g,"")}function w(e){return d(this,void 0,void 0,(function*(){if(i.value){if("string"===typeof e)return i.value=e,void t.emit("update:modelValue",i.value);try{return yield c.h.getAccount(i.value.toLowerCase()),void t.emit("update:modelValue",i.value)}catch(o){a.notify(`account ${i.value} not found!`)}}}))}return{inputValue:i,options:n,isLoading:l,isError:s,handleSelected:w}}});var m=a(11639),g=a(32259),v=a(22857),w=a(490),f=a(76749),y=a(33115),h=a(69984),b=a.n(h);const j=(0,m.Z)(p,[["render",i]]),_=j;b()(p,"components",{QSelect:g.Z,QIcon:v.Z,QItem:w.Z,QItemSection:f.Z,QItemLabel:y.Z})},54397:(e,t,a)=>{"use strict";a.d(t,{Z:()=>z});var o=a(59835),n=a(86970);const l=e=>((0,o.dD)("data-v-6fab27e1"),e=e(),(0,o.Cn)(),e),s={key:0,class:"section-title"},i=["src"],r={class:"q-pl-md"},c={key:2,class:"section-title"},u={class:"testnet-logo-container"},d=["src"],p=l((()=>(0,o._)("div",{class:"testnet-text"},"TESTNET",-1))),m={class:"q-pl-md"};function g(e,t,a,l,g,v){const w=(0,o.up)("q-item-section"),f=(0,o.up)("q-item"),y=(0,o.up)("q-separator"),h=(0,o.up)("q-list"),b=(0,o.Q2)("ripple");return(0,o.wg)(),(0,o.j4)(h,null,{default:(0,o.w5)((()=>[e.mainnets.length>0?((0,o.wg)(),(0,o.iD)("div",s,"MAINNETS")):(0,o.kq)("",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.mainnets,((t,a)=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(f,{key:`mainnet-${a}`,class:(0,n.C_)({selected:e.isChainSelected(t)}),clickable:"",onClick:a=>e.chainSelected(t)},{default:(0,o.w5)((()=>[(0,o._)("img",{class:"sidebar-logo",src:t.getSmallLogoPath()},null,8,i),(0,o.Wm)(w,null,{default:(0,o.w5)((()=>[(0,o._)("div",r,(0,n.zw)(t.getDisplay()),1)])),_:2},1024)])),_:2},1032,["class","onClick"])),[[b]]))),128)),e.testnets.length>0&&e.mainnets.length>0?((0,o.wg)(),(0,o.j4)(y,{key:1,class:"separator"})):(0,o.kq)("",!0),e.testnets.length>0?((0,o.wg)(),(0,o.iD)("div",c,"TESTNETS")):(0,o.kq)("",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.testnets,((t,a)=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(f,{key:`testnet-${a}`,class:(0,n.C_)({selected:e.isChainSelected(t)}),clickable:"",onClick:a=>e.chainSelected(t)},{default:(0,o.w5)((()=>[(0,o._)("div",u,[(0,o._)("img",{class:"sidebar-logo sidebar-logo--testnet",src:t.getSmallLogoPath()},null,8,d),p]),(0,o.Wm)(w,null,{default:(0,o.w5)((()=>[(0,o._)("div",m,(0,n.zw)(t.getDisplay()),1)])),_:2},1024)])),_:2},1032,["class","onClick"])),[[b]]))),128))])),_:1})}var v=a(30229),w=a(18910);const f=v.Z.get(),y=(0,o.aZ)({name:"ChainsSelector",props:{onChainSelected:{type:Function,required:!1},isChainSelected:{type:Function,required:!1,default:()=>!1}},setup(e){const t=(0,w.yj)(),a=(0,w.tv)(),n=(0,o.Fl)((()=>s(f.getMainnets()))),l=(0,o.Fl)((()=>s(f.getTestnets())));function s(e){return e.sort(((e,t)=>e.getName().localeCompare(t.getName())))}function i(o){e.isChainSelected(o)||(a.push({path:t.path,query:{network:o.getName()}}),e.onChainSelected(o))}return{mainnets:n,testnets:l,chainSelected:i}}});var h=a(11639),b=a(13246),j=a(490),_=a(76749),k=a(50926),D=a(77741),x=a(51722),S=a(69984),q=a.n(S);const P=(0,h.Z)(y,[["render",g],["__scopeId","data-v-6fab27e1"]]),z=P;q()(y,"components",{QList:b.Z,QItem:j.Z,QItemSection:_.Z,QSeparator:k.Z,QColor:D.Z}),q()(y,"directives",{Ripple:x.Z})},97114:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var o=a(59835),n=a(86970);const l={class:"no-wrap"};function s(e,t,a,s,i,r){const c=(0,o.up)("q-tooltip");return(0,o.wg)(),(0,o.iD)("div",l,[(0,o.Uk)((0,n.zw)(e.friendlyDate)+" ",1),(0,o.Wm)(c,{anchor:"top middle",self:"bottom middle",offset:[10,10]},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e.tooltipDate),1)])),_:1})])}var i=a(43878);const r=(0,o.aZ)({name:"DateField",props:{timestamp:{type:String,default:""},showAge:{type:Boolean,default:!0}},setup(e){const t=(0,o.Fl)((()=>{const t=i.utc(e.timestamp,"YYYY-MM-DD HH:mm:ssZ");return e.showAge?t.fromNow():`${t.local().format("YYYY-MM-DD HH:mm:ss")}`})),a=(0,o.Fl)((()=>{const t=i.utc(e.timestamp,"YYYY-MM-DD HH:mm:ssZ");return e.showAge?`${t.local().format("YYYY-MM-DD HH:mm:ss")}`:t.fromNow()}));return{friendlyDate:t,tooltipDate:a}}});var c=a(11639),u=a(46858),d=a(69984),p=a.n(d);const m=(0,c.Z)(r,[["render",s]]),g=m;p()(r,"components",{QTooltip:u.Z})},59311:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Le});var o=a(59835),n=a(86970),l=a(61957);const s={class:"row col-12 q-mt-xs justify-center text-left trx-table container-max-width"},i={class:"row trx-table--main-container"},r={class:"row col-12 q-mt-lg"},c={class:"col-auto q-mr-xl justify-start trx-table--topleft-col"},u={class:"row flex-grow-1"},d={class:"col"},p={class:"trx-table--title"},m={class:"row"},g={class:"col"},v={key:0,class:"row"},w={class:"col"},f={key:0,class:"col trx-table--topright-col"},y={class:"row justify-end q-mb-xl"},h={class:"col-auto row flex trx-table--filter-buttons"},b=(0,o._)("span",{class:"q-pr-sm"},"clear filters",-1),j={class:"q-pa-md dropdown-filter"},_={class:"row"},k={class:"q-pa-md dropdown-filter"},D={class:"row"},x=(0,o.Uk)("OK"),S={class:"q-pa-md dropdown-filter"},q={class:"row"},P={class:"row items-center justify-end"},z={class:"row items-center justify-end"},Z={class:"row justify-center full-width q-py-xs"},M={class:"row"},T={class:"row items-center justify-end"},W={class:"row items-center justify-end"},C={class:"q-pa-md dropdown-filter"},A={class:"row"},I={key:0,class:"row justify-end"},H={class:"row col-12 table-container"},V={class:"col-auto"},N={class:"q-pt-xs"},O={class:"row justify-left text-weight-light"},F={class:"row col-12 items-center justify-end q-mt-md q-mb-sm"},Q={class:"col-auto"},L={class:"col-auto"},Y=(0,o.Uk)(" First "),U=(0,o.Uk)(" Last ");function E(e,t,a,E,B,R){const $=(0,o.up)("q-toggle"),K=(0,o.up)("q-btn"),G=(0,o.up)("AccountSearch"),J=(0,o.up)("q-btn-dropdown"),X=(0,o.up)("q-icon"),ee=(0,o.up)("q-input"),te=(0,o.up)("q-date"),ae=(0,o.up)("q-popup-proxy"),oe=(0,o.up)("q-time"),ne=(0,o.up)("TokenSearch"),le=(0,o.up)("q-separator"),se=(0,o.up)("q-th"),ie=(0,o.up)("q-tr"),re=(0,o.up)("AccountFormat"),ce=(0,o.up)("q-td"),ue=(0,o.up)("DateField"),de=(0,o.up)("ActionFormat"),pe=(0,o.up)("DataFormat"),me=(0,o.up)("q-table"),ge=(0,o.up)("q-item-section"),ve=(0,o.up)("q-item"),we=(0,o.up)("q-list"),fe=(0,o.up)("q-space"),ye=(0,o.Q2)("close-popup");return(0,o.wg)(),(0,o.iD)("div",s,[(0,o._)("div",i,[(0,o._)("div",r,[(0,o._)("div",c,[(0,o._)("div",u,[(0,o._)("div",d,[(0,o._)("p",p,(0,n.zw)(e.tableTitle),1)])]),(0,o._)("div",m,[(0,o._)("div",g,[(0,o.Wm)($,{modelValue:e.showAge,"onUpdate:modelValue":t[0]||(t[0]=t=>e.showAge=t),"left-label":"",label:"Show timestamp as relative"},null,8,["modelValue"])])]),e.toggleEnabled?((0,o.wg)(),(0,o.iD)("div",v,[(0,o._)("div",w,[(0,o.Wm)($,{modelValue:e.enableLiveTransactions,"onUpdate:modelValue":t[1]||(t[1]=t=>e.enableLiveTransactions=t),"left-label":"",label:"Live transactions",disable:1!==e.paginationSettings.page},null,8,["modelValue","disable"])])])):(0,o.kq)("",!0)]),e.filtersEnabled?((0,o.wg)(),(0,o.iD)("div",f,[(0,o._)("div",y,[(0,o._)("div",h,[""!==e.filter?((0,o.wg)(),(0,o.j4)(K,{key:0,dense:"",flat:"",round:"",icon:"close",color:"primary",onClick:e.clearFilters},{default:(0,o.w5)((()=>[b])),_:1},8,["onClick"])):(0,o.kq)("",!0),e.showAccountFilter?((0,o.wg)(),(0,o.j4)(J,{key:1,ref:"accounts_dropdown",class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform","no-caps":"",color:""===e.accountsDisplay?"primary":"secondary",label:""===e.accountsDisplay?"Accounts":e.accountsDisplay,onClick:t[4]||(t[4]=t=>e.accountsModel="")},{default:(0,o.w5)((()=>[(0,o._)("div",j,[(0,o._)("div",_,[(0,o.Wm)(G,{modelValue:e.accountsModel,"onUpdate:modelValue":[t[2]||(t[2]=t=>e.accountsModel=t),t[3]||(t[3]=t=>e.toggleDropdown(e.$refs.accounts_dropdown))]},null,8,["modelValue"])])])])),_:1},8,["color","label"])):(0,o.kq)("",!0),(0,o.Wm)(J,{ref:"actions_dropdown",class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform",color:""===e.actionsDisplay?"primary":"secondary",label:""===e.actionsDisplay?"Actions":e.actionsDisplay},{default:(0,o.w5)((()=>[(0,o._)("div",k,[(0,o._)("div",D,[(0,o.Wm)(ee,{modelValue:e.auxModel,"onUpdate:modelValue":t[6]||(t[6]=t=>e.auxModel=t),filled:"",dense:"",label:"actions",placeholder:"transfer, sellrex, etc.",onBlur:t[7]||(t[7]=t=>{e.actionsModel=e.auxModel,e.toggleDropdown(e.$refs.actions_dropdown)}),onKeyup:t[8]||(t[8]=(0,l.D2)((t=>{e.actionsModel=e.auxModel,e.toggleDropdown(e.$refs.actions_dropdown)}),["enter"]))},{prepend:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"search"})])),append:(0,o.w5)((()=>[(0,o.Wm)(K,{size:"sm",color:"primary",onClick:t[5]||(t[5]=t=>{e.actionsModel=e.auxModel,e.toggleDropdown(e.$refs.actions_dropdown)})},{default:(0,o.w5)((()=>[x])),_:1})])),_:1},8,["modelValue"])])])])),_:1},8,["color","label"]),(0,o.Wm)(J,{class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform",color:""===e.dateDisplay?"primary":"secondary",label:""===e.dateDisplay?"Date":e.dateDisplay},{default:(0,o.w5)((()=>[(0,o._)("div",S,[(0,o._)("div",q,[(0,o.Wm)(ee,{modelValue:e.fromDateModel,"onUpdate:modelValue":t[11]||(t[11]=t=>e.fromDateModel=t),filled:"",dense:"",label:"From"},{prepend:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"event"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(te,{modelValue:e.fromDateModel,"onUpdate:modelValue":t[9]||(t[9]=t=>e.fromDateModel=t),mask:"YYYY-MM-DD HH:mm"},{default:(0,o.w5)((()=>[(0,o._)("div",P,[(0,o.wy)((0,o.Wm)(K,{label:"Close",color:"primary",flat:""},null,512),[[ye]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),append:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"access_time"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"cover","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(oe,{modelValue:e.fromDateModel,"onUpdate:modelValue":t[10]||(t[10]=t=>e.fromDateModel=t),mask:"YYYY-MM-DD HH:mm",format24h:""},{default:(0,o.w5)((()=>[(0,o._)("div",z,[(0,o.wy)((0,o.Wm)(K,{label:"Close",color:"primary",flat:""},null,512),[[ye]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"])]),(0,o._)("div",Z,[(0,o.Wm)(X,{name:"arrow_downward"})]),(0,o._)("div",M,[(0,o.Wm)(ee,{modelValue:e.toDateModel,"onUpdate:modelValue":t[14]||(t[14]=t=>e.toDateModel=t),filled:"",dense:"",label:"To"},{prepend:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"event"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"cover","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(te,{modelValue:e.toDateModel,"onUpdate:modelValue":t[12]||(t[12]=t=>e.toDateModel=t),mask:"YYYY-MM-DD HH:mm"},{default:(0,o.w5)((()=>[(0,o._)("div",T,[(0,o.wy)((0,o.Wm)(K,{label:"Close",color:"primary",flat:""},null,512),[[ye]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),append:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"access_time"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(oe,{modelValue:e.toDateModel,"onUpdate:modelValue":t[13]||(t[13]=t=>e.toDateModel=t),mask:"YYYY-MM-DD HH:mm",format24h:""},{default:(0,o.w5)((()=>[(0,o._)("div",W,[(0,o.wy)((0,o.Wm)(K,{label:"Close",color:"primary",flat:""},null,512),[[ye]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"])])])])),_:1},8,["color","label"]),e.showTokenFilter?((0,o.wg)(),(0,o.j4)(J,{key:2,ref:"token_dropdown",class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform",color:e.tokenDisplay?"secondary":"primary",label:e.tokenDisplay?e.tokenDisplay:"Token"},{default:(0,o.w5)((()=>[(0,o._)("div",C,[(0,o._)("div",A,[(0,o.Wm)(ne,{modelValue:e.tokenModel,"onUpdate:modelValue":[t[15]||(t[15]=t=>e.tokenModel=t),t[16]||(t[16]=t=>e.toggleDropdown(e.$refs.token_dropdown))]},null,8,["modelValue"])])])])),_:1},8,["color","label"])):(0,o.kq)("",!0)])]),e.showPaginationExtras?((0,o.wg)(),(0,o.iD)("div",I," Viewing "+(0,n.zw)(e.paginationSettings.rowsPerPage>e.totalRows?e.totalRows:e.paginationSettings.rowsPerPage)+" of "+(0,n.zw)(1e4===e.totalRows?" over ":"")+" "+(0,n.zw)(e.totalRows.toLocaleString())+" total transactions ",1)):(0,o.kq)("",!0)])):(0,o.kq)("",!0)]),(0,o.Wm)(le,{class:"row col-12 q-mt-md separator"}),(0,o._)("div",H,[(0,o.Wm)(me,{ref:"main_table",pagination:e.paginationSettings,"onUpdate:pagination":t[17]||(t[17]=t=>e.paginationSettings=t),class:"q-mt-lg row trx-table--fixed-layout",flat:"","table-header-class":"table-header","hide-pagination":"",rows:e.filteredRows,columns:e.columns,"row-key":e=>e.name+e.action.action_ordinal+e.transaction.id,bordered:!1,square:!0,loading:e.loading,"rows-per-page-options":e.pageSizeOptions,dense:e.$q.screen.width<1024,onRequest:e.onPaginationChange},{header:(0,o.w5)((e=>[(0,o.Wm)(ie,{props:e},{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.cols,(t=>((0,o.wg)(),(0,o.j4)(se,{key:t.name,props:e},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,o.w5)((t=>[(0,o.Wm)(ie,{props:t},{default:(0,o.w5)((()=>[(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[(0,o.Wm)(re,{account:t.row.transaction.id,type:t.row.transaction.type},null,8,["account","type"])])),_:2},1024),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[(0,o.Wm)(ue,{timestamp:t.row.timestamp,showAge:e.showAge},null,8,["timestamp","showAge"])])),_:2},1024),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.row.actions,(t=>((0,o.wg)(),(0,o.iD)("div",{key:t.action.action_ordinal,class:"row justify-left text-weight-light"},[(0,o._)("div",V,[(0,o._)("div",N,[(0,o.Wm)(de,{action:t.action,showTransferLabel:e.showTransferLabel,account:e.account},null,8,["action","showTransferLabel","account"])])])])))),128))])),_:2},1024),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[1===t.row.actions.length?((0,o.wg)(),(0,o.j4)(pe,{key:0,actionData:t.row.data.data,actionName:t.row.data.name,"use-color":!1},null,8,["actionData","actionName"])):(0,o.kq)("",!0)])),_:2},1024)])),_:2},1032,["props"]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.row.actions,(a=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(ie,{key:a.action.action_ordinal,class:"expanded-row",props:t},{default:(0,o.w5)((()=>[(0,o.Wm)(ce,{"auto-width":""}),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[(0,o.Wm)(re,{account:t.row.transaction.id,type:t.row.transaction.type},null,8,["account","type"])])),_:2},1024),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[(0,o.Wm)(ue,{timestamp:a.timestamp,showAge:e.showAge},null,8,["timestamp","showAge"])])),_:2},1024),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[(0,o._)("div",O,[(0,o.Wm)(de,{action:a.action},null,8,["action"])])])),_:2},1024),(0,o.Wm)(ce,null,{default:(0,o.w5)((()=>[(0,o.Wm)(pe,{actionData:a.data.data,actionName:a.data.name,"use-color":!1},null,8,["actionData","actionName"])])),_:2},1024)])),_:2},1032,["props"])),[[l.F8,t.expand]]))),128))])),_:1},8,["pagination","rows","columns","row-key","loading","rows-per-page-options","dense","onRequest"])]),(0,o._)("div",F,[(0,o._)("div",Q,[(0,o._)("small",null,"Rows per page: "+(0,n.zw)(e.paginationSettings.rowsPerPage),1),(0,o.Wm)(X,{name:e.showPagesSizes?"expand_more":"expand_less",size:"sm",onClick:e.switchPageSelector},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{ref:"page_size_selector","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(we,null,{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.pageSizeOptions,(t=>((0,o.wg)(),(0,o.j4)(ve,{key:t,class:"cursor-pointer"},{default:(0,o.w5)((()=>[(0,o.Wm)(ge,{onClick:a=>{e.changePageSize(t),e.hidePopup(e.$refs.page_size_selector)}},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t),1)])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1},512)])),_:1},8,["name","onClick"])]),(0,o.Wm)(fe),(0,o._)("div",L,[(0,o.Wm)(K,{size:"sm",color:"primary",outline:"",disable:1===e.paginationSettings.page,onClick:t[18]||(t[18]=t=>e.moveTablePage(e.$refs.main_table,"first"))},{default:(0,o.w5)((()=>[Y])),_:1},8,["disable"]),(0,o.Wm)(K,{size:"sm",color:"primary",outline:"",class:"q-mx-sm",disable:1===e.paginationSettings.page,onClick:t[19]||(t[19]=t=>e.moveTablePage(e.$refs.main_table,"prev"))},{default:(0,o.w5)((()=>[(0,o.Wm)(X,{name:"chevron_left",size:"xs"})])),_:1},8,["disable"]),(0,o._)("small",null," Page "+(0,n.zw)(e.paginationSettings.page)+" "+(0,n.zw)(e.showPaginationExtras&&!1===e.enableLiveTransactions?0===e.lastPage?" of 1":` of ${e.lastPage}`:""),1),(0,o.Wm)(K,{size:"sm",color:"primary",outline:"",class:"q-mx-sm",disable:e.paginationSettings.page===e.lastPage||e.totalRowse.moveTablePage(e.$refs.main_table,"next"))},{default:(0,o.w5)((()=>[(0,o.Wm)(X,{name:"chevron_right",size:"xs"})])),_:1},8,["disable"]),e.showPaginationExtras&&!1===e.enableLiveTransactions?((0,o.wg)(),(0,o.j4)(K,{key:0,size:"sm",color:"primary",outline:"",disable:e.paginationSettings.page===e.lastPage||0===e.lastPage,onClick:t[21]||(t[21]=t=>e.moveTablePage(e.$refs.main_table,"last"))},{default:(0,o.w5)((()=>[U])),_:1},8,["disable"])):(0,o.kq)("",!0)])])])])}var B=a(60499),R=a(97114),$=a(53779),K=a(55298),G=a(49815),J=a(52783);const X=(0,o.Uk)("Searching..."),ee=["src"];function te(e,t,a,s,i,r){const c=(0,o.up)("q-icon"),u=(0,o.up)("q-item-label"),d=(0,o.up)("q-item-section"),p=(0,o.up)("q-item"),m=(0,o.up)("q-avatar"),g=(0,o.up)("q-select");return(0,o.wg)(),(0,o.j4)(g,{class:"search-input",borderless:"",dense:"",filled:"","use-input":"","hide-selected":"","fill-input":"","hide-bottom-space":"",placeholder:"token",loading:e.isLoading,"model-value":e.inputValue,options:e.options,onInputValue:t[0]||(t[0]=t=>e.inputValue=t),onKeyup:t[1]||(t[1]=(0,l.D2)((t=>e.handleSelected(e.inputValue)),["enter"]))},{prepend:(0,o.w5)((()=>[(0,o.Wm)(c,{class:"rotate-90",name:"search",size:"20px"})])),"no-option":(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d,{class:"text-center"},{default:(0,o.w5)((()=>[e.isLoading?((0,o.wg)(),(0,o.j4)(u,{key:0},{default:(0,o.w5)((()=>[X])),_:1})):((0,o.wg)(),(0,o.j4)(u,{key:1},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e.inputValue?"Nothing found":"Search for token symbol or contract"),1)])),_:1}))])),_:1})])),_:1})])),option:(0,o.w5)((t=>[(0,o.Wm)(p,(0,o.dG)(t.itemProps,{exact:"exact",clickable:"clickable",onClick:a=>e.handleSelected(t.opt)}),{default:(0,o.w5)((()=>[(0,o.Wm)(d,{class:"items-center",avatar:""},{default:(0,o.w5)((()=>[(0,o.Wm)(m,{size:"24px"},{default:(0,o.w5)((()=>{var e;return[(0,o._)("img",{src:null!==(e=t.opt.logo)&&void 0!==e?e:"~src/assets/token_placeholder.svg"},null,8,ee)]})),_:2},1024)])),_:2},1024),(0,o.Wm)(d,null,{default:(0,o.w5)((()=>[(0,o.Wm)(u,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t.opt.symbol)+" ("+(0,n.zw)(t.opt.contract)+")",1)])),_:2},1024)])),_:2},1024)])),_:2},1040,["onClick"])])),_:1},8,["loading","model-value","options"])}var ae=a(21889),oe=a(19302),ne=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function s(e){try{r(o.next(e))}catch(t){l(t)}}function i(e){try{r(o["throw"](e))}catch(t){l(t)}}function r(e){e.done?a(e.value):n(e.value).then(s,i)}r((o=o.apply(e,t||[])).next())}))};const le=(0,o.aZ)({name:"TokenSearch",props:{modelValue:{type:Object}},emits:["update:modelValue"],setup(e,t){const a=(0,oe.Z)(),n=(0,B.iH)(""),l=(0,B.iH)([]),s=(0,B.iH)(!1);function i(e){return ne(this,void 0,void 0,(function*(){try{const t=(yield ae.h.getTokens()).filter((t=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())));return t}catch(t){return}}))}function r(e){return ne(this,void 0,void 0,(function*(){if(!n.value)return;if("string"!==typeof e)return void t.emit("update:modelValue",e);const o=yield i(e.toLowerCase());0!==o.length?t.emit("update:modelValue",o[0]):a.notify(`account ${n.value} not found!`)}))}return(0,o.YP)(n,(()=>ne(this,void 0,void 0,(function*(){if(""===n.value)return void(l.value=[]);if("string"!==typeof n.value)return void(l.value=[]);s.value=!0;const e=n.value.toLowerCase();yield Promise.all([i(e)]).then((e=>{l.value=[].concat.apply([],e)})),s.value=!1})))),{inputValue:n,options:l,isLoading:s,handleSelected:r}}});var se=a(11639),ie=a(32259),re=a(22857),ce=a(490),ue=a(76749),de=a(33115),pe=a(61357),me=a(69984),ge=a.n(me);const ve=(0,se.Z)(le,[["render",te]]),we=ve;ge()(le,"components",{QSelect:ie.Z,QIcon:re.Z,QItem:ce.Z,QItemSection:ue.Z,QItemLabel:de.Z,QAvatar:pe.Z});var fe=a(18910),ye=a(30229),he=a(17779),be=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function s(e){try{r(o.next(e))}catch(t){l(t)}}function i(e){try{r(o["throw"](e))}catch(t){l(t)}}function r(e){e.done?a(e.value):n(e.value).then(s,i)}r((o=o.apply(e,t||[])).next())}))};const je=(0,ye.z)(),_e=2e3,ke=[10,20,50,100,200],De=()=>{const e=localStorage.getItem("txRowsPerPage");let t=parseInt(e);return isNaN(t)&&(t=ke[0],localStorage.setItem("txRowsPerPage",t.toString())),t},xe=(0,o.aZ)({name:"TransactionsTable",components:{DateField:R.Z,AccountFormat:$.Z,ActionFormat:K.Z,DataFormat:G.Z,AccountSearch:J.Z,TokenSearch:we},props:{account:{type:String||null,required:!1,default:null},actions:{type:Object,required:!1,default:null},showTransferLabel:{type:Boolean,default:!1},toggleEnabled:{type:Boolean,default:!0},filtersEnabled:{type:Boolean,default:!0},showPaginationExtras:{type:Boolean,default:!1}},setup(e){const t=(0,fe.yj)(),a=(0,fe.tv)(),{account:n,actions:l}=(0,B.BK)(e),s=[{name:"transaction",required:!0,label:"TRANSACTION",align:"left",field:"transaction",sortable:!0},{name:"timestamp",required:!0,align:"left",label:"TIMESTAMP",field:"timestamp",sortable:!0},{name:"action",required:!0,align:"left",label:"ACTION",field:"action",sortable:!0},{name:"data",required:!0,align:"left",label:"DATA",field:"data"}],i=(0,B.iH)([]),r=(0,B.iH)(0),c=(0,B.iH)([]),u=(0,B.iH)(!1),d=(0,B.iH)(!1),p=()=>{d.value=!d.value},m=e=>be(this,void 0,void 0,(function*(){w.value.rowsPerPage=e,w.value.page=1,yield L({pagination:w.value}),localStorage.setItem("txRowsPerPage",e.toString())})),g=(e,t)=>be(this,void 0,void 0,(function*(){w.value.page=e,w.value.rowsPerPage=t,yield L({pagination:w.value})})),v=(0,o.Fl)((()=>t.query["page"]||`1,${De()}`)),w=(0,B.iH)({sortBy:"timestamp",descending:!0,page:1,rowsPerPage:De(),rowsNumber:1e4}),f=(0,B.iH)(e.toggleEnabled),y=(0,B.iH)(0),h=(0,B.iH)(""),b=(0,B.iH)(""),j=(0,o.Fl)((()=>{if(b.value){const e=b.value.split(",");return e.length>1?e[0]+"...":e[0]}return""})),_=(0,B.iH)(je.getFiltersSupported("notified")),k=(0,B.iH)(""),D=(0,o.Fl)((()=>{if(k.value){const e=k.value.split(",");return e.length>1?e[0]+"...":e[0]}return""})),x=(0,B.iH)(!1),S=(0,B.iH)(null),q=(0,o.Fl)((()=>{var e,t;return S.value&&null!==(t=null===(e=S.value)||void 0===e?void 0:e.symbol)&&void 0!==t?t:""}));ae.h.getTokens().then((e=>{e.length>0&&(x.value=!0)}));const P=(new Date).toISOString(),z=(0,B.iH)(""),Z=(0,B.iH)(P),M=(0,o.Fl)((()=>{try{if(""!==z.value||Z.value!==P)return""===z.value?"Until "+Z.value.split("T")[0]:Z.value===P?"Since "+z.value.split("T")[0]:z.value.split("T")[0]+" - "+Z.value.split("T")[0]}catch(e){he.error(e)}return""})),T=(0,B.iH)(null),W=(0,B.iH)("true"===localStorage.getItem("showAge")),C=(0,o.Fl)((()=>null!==n.value&&n.value.length>12)),A=(0,o.Fl)((()=>C.value?"Actions":"Latest Transactions")),I=(0,o.Fl)((()=>{const e=w.value.rowsPerPage,t=r.value;return Math.ceil(t/e)})),H=(0,o.Fl)((()=>null!==l.value)),V=()=>{k.value="",b.value="",S.value=null,z.value="",Z.value=P},N=(0,o.Fl)((()=>D.value+j.value+M.value+q.value)),O=()=>{c.value=i.value},F=()=>be(this,void 0,void 0,(function*(){var e,t;let a;if(C.value)a=(yield ae.h.getTransaction(n.value)).actions;else if(H.value)a=l.value;else{const o=w.value.page;let l=w.value.rowsPerPage,s=null!==(e=k.value)&&void 0!==e?e:"",c="",u="";Z.value!==P&&(u=new Date(Z.value).toISOString()),""!==z.value&&(c=new Date(z.value).toISOString());const d=w.value.descending?"desc":"asc";let p=S.value?{"act.account":S.value.contract}:null;b.value&&(p=p?Object.assign(Object.assign({},p),{"act.name":b.value}):{"act.name":b.value}),o>1&&0===y.value&&(y.value=null===(t=i.value[0])||void 0===t?void 0:t.action.global_sequence),y.value>0&&(p=p?Object.assign(Object.assign({},p),{global_sequence:"0-"+y.value.toString()}):{global_sequence:"0-"+y.value.toString()}),S.value&&(l=100);const m=yield ae.h.getTransactions({page:o,limit:l,account:n.value,notified:s,before:u,after:c,sort:d,extras:p});a=m.data.actions,r.value=m.data.total.value}a&&(S.value&&(a=a.filter((e=>{var t;return null===(t=e.act.data.quantity)||void 0===t?void 0:t.includes(S.value.symbol)})),a=a.slice(0,w.value.rowsPerPage)),i.value=a.map((e=>({name:e.trx_id,transaction:{id:e.trx_id,type:"transaction"},timestamp:e["@timestamp"]||e.timestamp,action:e,data:H.value?{data:e.data,name:e.account}:{data:e.act.data,name:e.act.name},actions:[{name:e.trx_id,transaction:{id:e.trx_id,type:"transaction"},timestamp:e["@timestamp"],action:e,data:H.value?{data:e.data,name:e.account}:{data:e.act.data,name:e.act.name}}]})))),O()})),Q=e=>be(this,void 0,void 0,(function*(){u.value=!0;const{page:t,rowsPerPage:a,sortBy:o,descending:n}=e.pagination;w.value.page=t,w.value.rowsPerPage=a,w.value.sortBy=o,w.value.descending=n,yield F(),u.value=!1})),L=e=>be(this,void 0,void 0,(function*(){const{page:o,rowsPerPage:n}=e.pagination;yield a.push({hash:window.location.hash,query:Object.assign(Object.assign({},t.query),{page:`${o},${n}`})})})),Y=(e,t)=>be(this,void 0,void 0,(function*(){e&&(w.value.page=Number(e)),t&&(w.value.rowsPerPage=Number(t)),yield Q({pagination:w.value})})),U=e=>e.length>0&&e.split("\n").length>1,E=()=>{y.value=0,clearInterval(T.value),T.value=window.setInterval((()=>{F()}),_e)},R=()=>{clearInterval(T.value)};(0,o.Jd)((()=>{R()})),(0,o.YP)([n,l],(()=>be(this,void 0,void 0,(function*(){F(),yield g(1,w.value.rowsPerPage)})))),(0,o.YP)(N,(()=>be(this,void 0,void 0,(function*(){1!==w.value.page?yield g(1,w.value.rowsPerPage):(f.value=!1,yield F())})))),(0,o.YP)(W,(e=>{localStorage.setItem("showAge",e?"true":"false")}));const $=()=>be(this,void 0,void 0,(function*(){f.value?(V(),1!==w.value.page&&(yield g(1,w.value.rowsPerPage)),E()):R()}));(0,o.YP)(f,(()=>{$()})),(0,o.bv)((()=>{$()})),(0,o.YP)((()=>v.value),(()=>be(this,void 0,void 0,(function*(){let e=v.value,t=1,a=De();if("number"===typeof e)t=e;else if("string"===typeof e){const[o,n]=e.split(",");t=Number(o),a=Number(n)}1!==t&&(f.value=!1),yield Y(t,a)}))),{immediate:!0});const K=e=>{const t=e;t.toggle()},G=e=>{const t=e;t.hide()},J=(e,t)=>{const a=e;"next"===t?a.nextPage():"prev"===t?a.prevPage():"first"===t?a.firstPage():"last"===t&&g(I.value,w.value.rowsPerPage)};return{columns:s,rows:i,filteredRows:c,loading:u,showPagesSizes:d,paginationSettings:w,fromDateModel:z,toDateModel:Z,dateDisplay:M,actionsDisplay:j,actionsModel:b,auxModel:h,accountsDisplay:D,accountsModel:k,showAccountFilter:_,tokenDisplay:q,tokenModel:S,showTokenFilter:x,interval:T,showAge:W,tableTitle:A,lastPage:I,hasActions:H,filter:N,onRequest:Q,loadTableData:F,checkIsMultiLine:U,filterRows:O,totalRows:r,pageSizeOptions:ke,changePageSize:m,switchPageSelector:p,applyPagination:Y,changePagination:g,onPaginationChange:L,clearFilters:V,enableLiveTransactions:f,toggleDropdown:K,hidePopup:G,moveTablePage:J}}});var Se=a(23175),qe=a(68879),Pe=a(18479),ze=a(13119),Ze=a(52765),Me=a(14351),Te=a(86770),We=a(50926),Ce=a(82429),Ae=a(31233),Ie=a(21682),He=a(67220),Ve=a(13246),Ne=a(90136),Oe=a(77741),Fe=a(62146);const Qe=(0,se.Z)(xe,[["render",E]]),Le=Qe;ge()(xe,"components",{QToggle:Se.Z,QBtn:qe.Z,QBtnDropdown:Pe.Z,QInput:ze.Z,QIcon:re.Z,QPopupProxy:Ze.Z,QDate:Me.Z,QTime:Te.Z,QSeparator:We.Z,QTable:Ce.Z,QTr:Ae.Z,QTh:Ie.Z,QTd:He.Z,QList:Ve.Z,QItem:ce.Z,QItemSection:ue.Z,QSpace:Ne.Z,QColor:Oe.Z}),ge()(xe,"directives",{ClosePopup:Fe.Z})},1546:(e,t,a)=>{"use strict";a.d(t,{Z:()=>q});var o=a(59835),n=a(86970);const l={class:"Card"},s={class:"row"},i={class:"col-12"},r={class:"row"},c={class:"text-h6"},u={class:"row"},d={class:"col-12"},p={class:"row"};function m(e,t,a,m,g,v){const w=(0,o.up)("q-card-section"),f=(0,o.up)("q-btn"),y=(0,o.up)("q-card-actions"),h=(0,o.up)("q-dialog"),b=(0,o.Q2)("close-popup");return(0,o.wg)(),(0,o.j4)(h,null,{default:(0,o.w5)((()=>[(0,o._)("div",l,[e.Id?((0,o.wg)(),(0,o.j4)(w,{key:0},{default:(0,o.w5)((()=>[(0,o._)("div",s,[(0,o._)("div",i,[(0,o._)("div",r,[(0,o._)("div",c,(0,n.zw)(e.msg),1)]),(0,o._)("div",{class:"row ellipsis-overflow q-pt-lg q-pl-md",onClick:t[0]||(t[0]=(...t)=>e.navToTransaction&&e.navToTransaction(...t))},(0,n.zw)(e.Id),1)])])])),_:1})):((0,o.wg)(),(0,o.j4)(w,{key:1},{default:(0,o.w5)((()=>[(0,o._)("div",u,[(0,o._)("div",d,[(0,o._)("div",p,"Transaction Failed: "+(0,n.zw)(e.transactionE),1)])])])),_:1})),(0,o.Wm)(y,{class:"text-primary",align:"right"},{default:(0,o.w5)((()=>[(0,o.wy)((0,o.Wm)(f,{flat:"",label:"Close","text-color":"grey-3",onClick:e.reset},null,8,["onClick"]),[[b]]),e.Id?((0,o.wg)(),(0,o.j4)(f,{key:0,flat:"",label:"View transaction","text-color":"grey-3",onClick:e.navToTransaction},null,8,["onClick"])):(0,o.kq)("",!0)])),_:1})])])),_:1})}var g=a(78504),v=a(18910),w=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function s(e){try{r(o.next(e))}catch(t){l(t)}}function i(e){try{r(o["throw"](e))}catch(t){l(t)}}function r(e){e.done?a(e.value):n(e.value).then(s,i)}r((o=o.apply(e,t||[])).next())}))};const f=(0,o.aZ)({name:"ViewTransaction",props:{message:{type:String,required:!0}},setup(e){const t=(0,g.useStore)(),a=(0,v.tv)(),n=(0,o.Fl)((()=>e.message)),l=(0,o.Fl)((()=>t.state.account.TransactionId)),s=(0,o.Fl)((()=>t.state.account.TransactionError)),i=()=>{t.dispatch("account/resetTransaction")},r=()=>w(this,void 0,void 0,(function*(){yield a.push({name:"transaction",params:{transaction:l.value}}),a.go(0),t.dispatch("account/resetTransaction")}));return{msg:n,Id:l,transactionE:s,reset:i,navToTransaction:r}}});var y=a(11639),h=a(87743),b=a(63190),j=a(11821),_=a(68879),k=a(62146),D=a(69984),x=a.n(D);const S=(0,y.Z)(f,[["render",m],["__scopeId","data-v-b9294dd2"]]),q=S;x()(f,"components",{QDialog:h.Z,QCardSection:b.Z,QCardActions:j.Z,QBtn:_.Z}),x()(f,"directives",{ClosePopup:k.Z})},79870:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Z});var o=a(59835),n=a(86970);const l={class:"modal-header-container"},s=(0,o._)("h3",{class:"modal-header"},"Attach an account",-1),i=["src"],r=(0,o.Uk)("Get app");function c(e,t,a,c,u,d){const p=(0,o.up)("q-icon"),m=(0,o.up)("q-separator"),g=(0,o.up)("q-item-section"),v=(0,o.up)("q-spinner"),w=(0,o.up)("q-tooltip"),f=(0,o.up)("q-btn"),y=(0,o.up)("q-item"),h=(0,o.up)("q-list"),b=(0,o.up)("q-dialog"),j=(0,o.Q2)("ripple");return(0,o.wg)(),(0,o.j4)(b,{ref:"walletDialog",class:"modal-container"},{default:(0,o.w5)((()=>[(0,o._)("div",l,[(0,o.Wm)(p,{name:"add_circle_outline",color:"white",size:e.iconSize},null,8,["size"]),s]),(0,o.Wm)(m),(0,o.Wm)(h,null,{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.$ual.getAuthenticators().availableAuthenticators,((t,a)=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(y,{key:t.getStyle().text,style:(0,n.j5)({background:t.getStyle().background,color:t.getStyle().textColor})},{default:(0,o.w5)((()=>[(0,o.Wm)(g,{class:"cursor-pointer",avatar:"",onClick:t=>e.onLogin(a)},{default:(0,o.w5)((()=>[(0,o._)("img",{src:t.getStyle().icon,width:"30"},null,8,i)])),_:2},1032,["onClick"]),(0,o.Wm)(g,{class:"cursor-pointer",onClick:t=>e.onLogin(a)},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t.getStyle().text),1)])),_:2},1032,["onClick"]),(0,o.Wm)(g,{class:"flex",avatar:""},{default:(0,o.w5)((()=>[e.loading===t.getStyle().text?((0,o.wg)(),(0,o.j4)(v,{key:0,color:t.getStyle().textColor,size:"2em"},null,8,["color"])):((0,o.wg)(),(0,o.j4)(f,{key:1,color:t.getStyle().textColor,icon:"get_app",target:"_blank",dense:"",flat:"",size:"12px",onClick:a=>e.openUrl(t.getOnboardingLink())},{default:(0,o.w5)((()=>[(0,o.Wm)(w,null,{default:(0,o.w5)((()=>[r])),_:1})])),_:2},1032,["color","onClick"]))])),_:2},1024)])),_:2},1032,["style"])),[[j]]))),128)),e.error?((0,o.wg)(),(0,o.j4)(y,{key:0,active:!!e.error,"active-class":"bg-red-1 text-grey-8"},{default:(0,o.w5)((()=>[(0,o.Wm)(g,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e.error),1)])),_:1})])),_:1},8,["active"])):(0,o.kq)("",!0)])),_:1})])),_:1},512)}var u=a(60499),d=a(84284),p=a(78504),m=a(19302),g=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function s(e){try{r(o.next(e))}catch(t){l(t)}}function i(e){try{r(o["throw"](e))}catch(t){l(t)}}function r(e){e.done?a(e.value):n(e.value).then(s,i)}r((o=o.apply(e,t||[])).next())}))};const v=(0,o.aZ)({name:"WalletModal",setup(){const e=(0,d.getAuthenticators)(),t=(0,m.Z)(),a=(0,p.useStore)(),n=(0,u.iH)(null),l=(0,o.Fl)((()=>a.state.account.accountName)),s={},i=(0,u.iH)(null),r=(0,o.Fl)((()=>t.screen.width>420?"3em":"1.5em")),c=t=>g(this,void 0,void 0,(function*(){const o=e[t];n.value=null;try{yield a.dispatch("account/login",{account:l.value,authenticator:o})}catch(s){n.value=s}i.value.hide()})),v=e=>window.open(e,"_blank");return{error:n,loading:s,account:l,walletDialog:i,onLogin:c,openUrl:v,iconSize:r}}});var w=a(11639),f=a(87743),y=a(22857),h=a(50926),b=a(13246),j=a(490),_=a(76749),k=a(63940),D=a(68879),x=a(46858),S=a(51722),q=a(69984),P=a.n(q);const z=(0,w.Z)(v,[["render",c]]),Z=z;P()(v,"components",{QDialog:f.Z,QIcon:y.Z,QSeparator:h.Z,QList:b.Z,QItem:j.Z,QItemSection:_.Z,QSpinner:k.Z,QBtn:D.Z,QTooltip:x.Z}),P()(v,"directives",{Ripple:S.Z})},53779:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var o=a(59835),n=a(86970);const l=["href"];function s(e,t,a,s,i,r){return(0,o.wg)(),(0,o.iD)("a",{class:"hover-dec",href:"/"+e.type+"/"+e.accAccount},(0,n.zw)("transaction"===e.type?e.accAccount.slice(0,8):e.accAccount),9,l)}const i=(0,o.aZ)({name:"AccountFormat",props:{account:{type:String,default:()=>""},type:{type:String,required:!0}},setup(e){const t=(0,o.Fl)((()=>e.account));return{accType:e.type,accAccount:t}}});var r=a(11639);const c=(0,r.Z)(i,[["render",s],["__scopeId","data-v-a9e4aae2"]]),u=c},55298:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var o=a(59835),n=a(86970);const l={class:"action-container"},s={class:"action action-general"},i=(0,o._)("span",{class:"inline"}," → ",-1),r={key:0,class:"action action-transfer"};function c(e,t,a,c,u,d){const p=(0,o.up)("AccountFormat");return(0,o.wg)(),(0,o.iD)("div",l,[(0,o._)("div",s,[(0,o.Wm)(p,{account:e.tx.act.account,type:"account"},null,8,["account"]),i,(0,o._)("span",null,(0,n.zw)(e.tx.act.name),1)]),e.divContent?((0,o.wg)(),(0,o.iD)("div",r,(0,n.zw)(e.divContent),1)):(0,o.kq)("",!0)])}var u=a(60499),d=a(53779);const p=(0,o.aZ)({name:"ActionFormat",components:{AccountFormat:d.Z},props:{action:{type:Object,required:!0},showTransferLabel:{type:Boolean,default:!1},account:{type:String||null,required:!1,default:null}},setup(e){const t=(0,u.iH)(""),a=(0,u.iH)(""),n=(0,u.Vh)(e,"action"),l=(0,u.Vh)(e,"showTransferLabel"),s=(0,u.Vh)(e,"account");return(0,o.bv)((()=>{const e=n.value.act.data,t="transfer"===n.value.act.name;l.value&&s.value&&t&&(e.from===s.value?a.value="SEND":e.to===s.value&&(a.value="RECEIVE"))})),{divClass:t,divContent:a,tx:n}}});var m=a(11639);const g=(0,m.Z)(p,[["render",c]]),v=g},49815:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Q});var o=a(59835),n=a(86970);const l={key:0,ref:"dataBox",class:"row transfer-data"},s={class:"col-12"},i={class:"text-bold"},r={class:"text-bold"},c=(0,o.Uk)(" → "),u=(0,o.Uk)(" "),d={class:"text-bold"},p={class:"col-12"},m={class:"text-weight-bold"},g=(0,o.Uk)(" memo: "),v={key:0,class:"text-weight-regular"},w={key:1,class:"text-weight-regular"},f={key:1,ref:"dataBox",class:"row"};function y(e,t,a,y,h,b){const j=(0,o.up)("AccountFormat"),_=(0,o.up)("PrettyPayload"),k=(0,o.up)("q-btn");return(0,o.wg)(),(0,o.iD)("div",{class:(0,n.C_)(["relative-position overflow-hidden",{"div-compressed":!e.showOverflow}])},["transfer"===e.actionName?((0,o.wg)(),(0,o.iD)("div",l,[(0,o._)("div",s,[(0,o._)("span",i,[(0,o.Wm)(j,{account:e.transferData.from,type:"account"},null,8,["account"])]),(0,o._)("span",r,[c,(0,o.Wm)(j,{account:e.transferData.to,type:"account"},{default:(0,o.w5)((()=>[u])),_:1},8,["account"])]),(0,o._)("span",d,(0,n.zw)(" "+e.transferData.quantity),1)]),(0,o._)("div",p,[(0,o._)("div",m,[g,e.transferData.memo?((0,o.wg)(),(0,o.iD)("span",v,(0,n.zw)(e.transferData.memo),1)):((0,o.wg)(),(0,o.iD)("span",w,"n/a"))])])],512)):((0,o.wg)(),(0,o.iD)("div",f,[(0,o.Wm)(_,{depth:0,payload:e.formatGeneralData(e.actionData)},null,8,["payload"])],512)),e.isOverflowing?((0,o.wg)(),(0,o.j4)(k,{key:2,flat:"",size:"xs",icon:e.showOverflow?"expand_less":"expand_more",class:(0,n.C_)({"q-btn--use-color":e.useColor,"full-width":e.showOverflow,"q-btn--floating":!e.showOverflow}),onClick:e.toggleOverflow},null,8,["icon","class","onClick"])):(0,o.kq)("",!0)],2)}var h=a(60499),b=a(53779);const j={class:"text-bold"},_={key:0},k={key:1,class:"payload__list"},D={class:"text-bold"},x={class:"text-bold"},S=(0,o.Uk)(" "),q={key:1};function P(e,t,a,l,s,i){const r=(0,o.up)("PrettyPayload",!0),c=(0,o.up)("AccountFormat");return(0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.list,((t,a)=>((0,o.wg)(),(0,o.iD)("div",{key:a,class:(0,n.C_)(e.classObject)},[Array.isArray(e.payload[t])?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[(0,o._)("span",j,(0,n.zw)(t)+":",1),e.isArrayOfStringsOrNumbers(e.payload[t])?((0,o.wg)(),(0,o.iD)("span",_,(0,n.zw)(0===e.payload[t].length?" [ ]":[...e.payload[t]]),1)):((0,o.wg)(),(0,o.iD)("ul",k,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.payload[t],((t,a)=>((0,o.wg)(),(0,o.iD)("li",{key:a,class:"payload__list-item"},[(0,o.Wm)(r,{depth:e.depth+1,payload:t},null,8,["depth","payload"])])))),128))]))],64)):"object"===typeof e.payload[t]?((0,o.wg)(),(0,o.iD)(o.HY,{key:1},[(0,o._)("div",D,(0,n.zw)(t+":"),1),(0,o.Wm)(r,{depth:e.depth+1,payload:e.payload[t]},null,8,["depth","payload"])],64)):((0,o.wg)(),(0,o.iD)(o.HY,{key:2},[(0,o._)("span",x,(0,n.zw)(t)+": ",1),e.isAccount(t)?((0,o.wg)(),(0,o.j4)(c,{key:0,account:e.payload[t],type:"account"},{default:(0,o.w5)((()=>[S])),_:2},1032,["account"])):((0,o.wg)(),(0,o.iD)("span",q,(0,n.zw)(e.payload[t]),1))],64))],2)))),128)}const z=(0,o.aZ)({name:"PrettyPayload",components:{AccountFormat:b.Z},props:{depth:{type:Number,required:!0},payload:{type:Object,required:!1}},setup(e){const{depth:t,payload:a}=(0,h.BK)(e),n=null===a.value?"null":typeof a.value,l=(0,o.Fl)((()=>{if("object"===n)return Object.keys(a.value)}));function s(e){const t=["account","to","from","owner","account_name","voter"];return t.includes(e)}const i=(0,o.Fl)((()=>({payload:!0,payload__indent:t.value>0})));function r(e){return Array.isArray(e)&&e.every((e=>"string"===typeof e||"number"===typeof e))}return{type:n,list:l,classObject:i,isAccount:s,isArrayOfStringsOrNumbers:r}}});var Z=a(11639);const M=(0,Z.Z)(z,[["render",P],["__scopeId","data-v-e2f1df72"]]),T=M;var W=a(61957);const C=(0,o.aZ)({name:"DataFormat",components:{AccountFormat:b.Z,PrettyPayload:T},props:{actionName:{type:String,required:!0},actionData:{type:Object,required:!0},useColor:{type:Boolean,required:!0}},setup(e){const{actionName:t,actionData:a}=(0,h.BK)(e),n=(0,h.iH)(null),l=(0,h.iH)(!1),s=(0,h.iH)(!1),i=(0,o.Fl)((()=>a.value)),r=(0,o.Fl)((()=>{var e,t;return null!==(t=null===(e=n.value)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0}));let c=(0,h.iH)(null);const u=110,d=40,p=`calc(${u}px - ${d}px)`;function m(e,t){if("object"!==typeof e||"object"!==typeof t)return!1;const a=e,o=t;for(const n of Object.keys(e))if(a[n]){if(typeof a[n]!==typeof o[n])return!1;if("object"===typeof a[n]){if(!m(a[n],o[n]))return!1}else if(a[n]!==o[n])return!1}return!0}function g(e){return null===c.value?(c.value=e,c.value):m((0,h.IU)(c.value),e)?c.value:e}function v(){var e,t;s.value=(null!==(t=null===(e=n.value)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)>u}function w(){l.value=!l.value}return(0,o.YP)([a,r],(()=>{v()})),(0,o.ic)((()=>{v()})),{currentData:c,transferData:i,name:t,formatGeneralData:g,dataBox:n,isOverflowing:s,showOverflow:l,toggleOverflow:w,maxHeightStyle:p}}}),A=()=>{(0,W.sj)((e=>({c7e0c316:e.maxHeightStyle})))},I=C.setup;C.setup=I?(e,t)=>(A(),I(e,t)):A;const H=C;var V=a(68879),N=a(69984),O=a.n(N);const F=(0,Z.Z)(H,[["render",y],["__scopeId","data-v-7486e4c2"]]),Q=F;O()(H,"components",{QBtn:V.Z})},46700:(e,t,a)=>{var o={"./af":73902,"./af.js":73902,"./ar":36314,"./ar-dz":75666,"./ar-dz.js":75666,"./ar-kw":76591,"./ar-kw.js":76591,"./ar-ly":7900,"./ar-ly.js":7900,"./ar-ma":5667,"./ar-ma.js":5667,"./ar-sa":36335,"./ar-sa.js":36335,"./ar-tn":86916,"./ar-tn.js":86916,"./ar.js":36314,"./az":1699,"./az.js":1699,"./be":98988,"./be.js":98988,"./bg":97437,"./bg.js":97437,"./bm":97947,"./bm.js":97947,"./bn":12851,"./bn-bd":34905,"./bn-bd.js":34905,"./bn.js":12851,"./bo":97346,"./bo.js":97346,"./br":1711,"./br.js":1711,"./bs":63706,"./bs.js":63706,"./ca":70112,"./ca.js":70112,"./cs":36406,"./cs.js":36406,"./cv":41853,"./cv.js":41853,"./cy":39766,"./cy.js":39766,"./da":36836,"./da.js":36836,"./de":59320,"./de-at":14904,"./de-at.js":14904,"./de-ch":26710,"./de-ch.js":26710,"./de.js":59320,"./dv":73274,"./dv.js":73274,"./el":80286,"./el.js":80286,"./en-au":30143,"./en-au.js":30143,"./en-ca":237,"./en-ca.js":237,"./en-gb":82428,"./en-gb.js":82428,"./en-ie":53349,"./en-ie.js":53349,"./en-il":13764,"./en-il.js":13764,"./en-in":67809,"./en-in.js":67809,"./en-nz":59851,"./en-nz.js":59851,"./en-sg":95594,"./en-sg.js":95594,"./eo":4483,"./eo.js":4483,"./es":62184,"./es-do":25777,"./es-do.js":25777,"./es-mx":89356,"./es-mx.js":89356,"./es-us":68496,"./es-us.js":68496,"./es.js":62184,"./et":97578,"./et.js":97578,"./eu":2092,"./eu.js":2092,"./fa":15927,"./fa.js":15927,"./fi":50171,"./fi.js":50171,"./fil":82416,"./fil.js":82416,"./fo":89937,"./fo.js":89937,"./fr":55172,"./fr-ca":77495,"./fr-ca.js":77495,"./fr-ch":97541,"./fr-ch.js":97541,"./fr.js":55172,"./fy":93766,"./fy.js":93766,"./ga":66361,"./ga.js":66361,"./gd":2282,"./gd.js":2282,"./gl":52630,"./gl.js":52630,"./gom-deva":80680,"./gom-deva.js":80680,"./gom-latn":66220,"./gom-latn.js":66220,"./gu":57506,"./gu.js":57506,"./he":5540,"./he.js":5540,"./hi":46067,"./hi.js":46067,"./hr":79669,"./hr.js":79669,"./hu":13396,"./hu.js":13396,"./hy-am":36678,"./hy-am.js":36678,"./id":44812,"./id.js":44812,"./is":94193,"./is.js":94193,"./it":67863,"./it-ch":959,"./it-ch.js":959,"./it.js":67863,"./ja":41809,"./ja.js":41809,"./jv":28657,"./jv.js":28657,"./ka":33290,"./ka.js":33290,"./kk":98418,"./kk.js":98418,"./km":77687,"./km.js":77687,"./kn":21375,"./kn.js":21375,"./ko":32641,"./ko.js":32641,"./ku":83518,"./ku.js":83518,"./ky":85459,"./ky.js":85459,"./lb":91978,"./lb.js":91978,"./lo":86915,"./lo.js":86915,"./lt":8948,"./lt.js":8948,"./lv":12548,"./lv.js":12548,"./me":98608,"./me.js":98608,"./mi":50333,"./mi.js":50333,"./mk":76611,"./mk.js":76611,"./ml":10999,"./ml.js":10999,"./mn":54098,"./mn.js":54098,"./mr":86111,"./mr.js":86111,"./ms":73717,"./ms-my":90265,"./ms-my.js":90265,"./ms.js":73717,"./mt":28980,"./mt.js":28980,"./my":96895,"./my.js":96895,"./nb":15348,"./nb.js":15348,"./ne":31493,"./ne.js":31493,"./nl":34419,"./nl-be":85576,"./nl-be.js":85576,"./nl.js":34419,"./nn":46907,"./nn.js":46907,"./oc-lnc":12321,"./oc-lnc.js":12321,"./pa-in":89239,"./pa-in.js":89239,"./pl":97627,"./pl.js":97627,"./pt":15703,"./pt-br":91623,"./pt-br.js":91623,"./pt.js":15703,"./ro":22747,"./ro.js":22747,"./ru":64420,"./ru.js":64420,"./sd":52148,"./sd.js":52148,"./se":12461,"./se.js":12461,"./si":12783,"./si.js":12783,"./sk":93306,"./sk.js":93306,"./sl":341,"./sl.js":341,"./sq":8608,"./sq.js":8608,"./sr":72451,"./sr-cyrl":73371,"./sr-cyrl.js":73371,"./sr.js":72451,"./ss":8812,"./ss.js":8812,"./sv":53820,"./sv.js":53820,"./sw":43615,"./sw.js":43615,"./ta":12869,"./ta.js":12869,"./te":12044,"./te.js":12044,"./tet":65861,"./tet.js":65861,"./tg":66999,"./tg.js":66999,"./th":20926,"./th.js":20926,"./tk":97443,"./tk.js":97443,"./tl-ph":59786,"./tl-ph.js":59786,"./tlh":92812,"./tlh.js":92812,"./tr":16952,"./tr.js":16952,"./tzl":9573,"./tzl.js":9573,"./tzm":55990,"./tzm-latn":92851,"./tzm-latn.js":92851,"./tzm.js":55990,"./ug-cn":52610,"./ug-cn.js":52610,"./uk":9498,"./uk.js":9498,"./ur":83970,"./ur.js":83970,"./uz":19006,"./uz-latn":26,"./uz-latn.js":26,"./uz.js":19006,"./vi":9962,"./vi.js":9962,"./x-pseudo":68407,"./x-pseudo.js":68407,"./yo":91962,"./yo.js":91962,"./zh-cn":28909,"./zh-cn.js":28909,"./zh-hk":34014,"./zh-hk.js":34014,"./zh-mo":90996,"./zh-mo.js":90996,"./zh-tw":36327,"./zh-tw.js":36327};function n(e){var t=l(e);return a(t)}function l(e){if(!a.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=l,e.exports=n,n.id=46700},77122:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDMiIHZpZXdCb3g9IjAgMCA0MiA0MyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI5Ljc2NzIgMTIuNzE3M0wxNy45MzQxIDI0LjMxNDRDMTcuMzEwMiAyNC45MjU4IDE2LjM2MTcgMjUuMDYxNiAxNS41OTEzIDI0LjY0OThMMi45MzU2MyAxNy44ODQ1QzEuNDEyNDggMTcuMDcwMiAxLjU2ODA3IDE0LjgzODEgMy4xODk0NiAxNC4yNDMxTDM4LjA1NDcgMS40NDc4OEMzOS42MzU4IDAuODY3NjQyIDQxLjE4MjMgMi4zODE5MyA0MC42MzU0IDMuOTc0ODVMMjguMzY4NyAzOS43MDU1QzI3LjgwNCA0MS4zNTA1IDI1LjU1MzYgNDEuNTQwNSAyNC43MjExIDQwLjAxMzNMMTkuMjAyNiAyOS44OTAzIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"}}]);
\ No newline at end of file
diff --git a/dist/spa/js/chunk-common.cac51e83.js b/dist/spa/js/chunk-common.cac51e83.js
deleted file mode 100644
index a62788d..0000000
--- a/dist/spa/js/chunk-common.cac51e83.js
+++ /dev/null
@@ -1 +0,0 @@
-(globalThis["webpackChunkopen_block_explorer"]=globalThis["webpackChunkopen_block_explorer"]||[]).push([[64],{13385:(e,t,a)=>{"use strict";a.d(t,{p:()=>n});var o=a(78504);function n(){const e=(0,o.oR)(),t=e.state,a=e.getters;return{resources:{getDelegatedToOthers:()=>a["resources/getDelegatedToOthers"],getDelegatedFromOthers:()=>a["resources/getDelegatedFromOthers"],getSelfStaked:()=>a["resources/getSelfStaked"],getDelegatedToOthersAggregated:()=>a["resources/getDelegatedToOthersAggregated"],getLoading:()=>a["resources/getLoading"],isLoading:e=>a["resources/isLoading"](e),updateResources:t=>e.dispatch("resources/updateResources",t),updateSelfStaked:t=>e.dispatch("resources/updateSelfStaked",t),updateDelegatedToOthers:t=>e.dispatch("resources/updateDelegatedToOthers",t),delegateResources:t=>e.dispatch("resources/delegateResources",t),undelegateResources:t=>e.dispatch("resources/undelegateResources",t)},state:t,dispatch:(t,a,o)=>e.dispatch(t,a,o),commit:(t,a,o)=>e.commit(t,a,o)}}},78504:(e,t,a)=>{"use strict";a.d(t,{oR:()=>te});var o=a(23340),n=a(33100);function s(){return{address:"",creator:""}}var i=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const r={setContract({dispatch:e,commit:t},a){return i(this,void 0,void 0,(function*(){t("setContract",a),yield e("getContractInfo",a)}))},getContractInfo({commit:e}){const t={creator:"bob"};e("setCreator",t.creator)}},c={getCreatorAddress({creator:e}){return e}},l={setContract(e,t){e.address=t},setCreator(e,t){e.creator=t}},u={namespaced:!0,actions:r,getters:c,mutations:l,state:s};function d(){return{token:{symbol:"",precision:0,amount:0,contract:""},bpList:[],producers:[],head_block_num:0,last_irreversible_block_num:0,head_block_producer:"",producerSchedule:[],ram_price:"0"}}const m={getToken({token:e}){return e}},p={setToken(e,t){e.token=t},setSymbol(e,t){e.token.symbol=t},setPrecision(e,t){e.token.precision=t},setBpList(e,t){e.bpList=t},setHead_block_num(e,t){e.head_block_num=t},setLIB(e,t){e.last_irreversible_block_num=t},setHead_block_producer(e,t){e.head_block_producer=t},setProducerSchedule(e,t){e.producerSchedule=t},setProducers(e,t){e.producers=t},setRamPrice(e,t){e.ram_price=t}};var g=a(39981),v=a.n(g),f=a(21889),h=a(30229),w=a(90347),y=a(17779),b=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const _=(0,h.z)(),k={updateBpList({commit:e}){return b(this,void 0,void 0,(function*(){try{const t=(yield f.h.getSchedule()).active.producers,a=t.map((e=>e.producer_name));e("setProducerSchedule",a);const o=yield v().get(_.getS3ProducerBucket()),n=new DOMParser,s=n.parseFromString(o.data,"text/xml").getElementsByTagName("Contents"),i=s[s.length-1],r=i.childNodes[0].textContent,c=(yield v().get(`${_.getS3ProducerBucket()}/${r}`)).data;let l=(yield f.h.getProducers()).rows;l=l.filter((e=>1===e.is_active)),l=l.map((e=>{const t=c.find((t=>t.owner===e.owner));if(!t)return Object.assign(Object.assign({},e),{name:e.owner,location:""});try{return Object.assign(Object.assign({},e),{name:t.org.candidate_name,location:t.org.location.name})}catch(a){return e}})),c.sort(((e,t)=>t.total_votes-e.total_votes)),l.sort(((e,t)=>t.total_votes-e.total_votes)),e("setProducers",l),e("setBpList",c)}catch(t){y.error(t)}}))},updateBlockData({commit:e}){return b(this,void 0,void 0,(function*(){try{const t=yield f.h.getInfo();e("setHead_block_num",t.head_block_num),e("setLIB",t.last_irreversible_block_num),e("setHead_block_producer",t.head_block_producer)}catch(t){y.error(t)}}))},updateRamPrice({commit:e}){return b(this,void 0,void 0,(function*(){try{const t={code:"eosio",scope:"eosio",table:"rammarket",json:!0},a=(yield f.h.getTableRows(t)).rows[0],o=Number(a.base.balance.split(" ")[0]),n=Number(a.quote.balance.split(" ")[0]),s=1e3*n/(o-1e3),i=(0,w.xG)(s/.995,4,null,!0);e("setRamPrice",i)}catch(t){y.error(t)}}))}},x={namespaced:!0,actions:k,getters:m,mutations:p,state:d};var j=a(61753);const D=(0,h.z)();function T(){return{loading:!1,accountName:"",accountPermission:"active",user:null,autoLogin:null,isAuthenticated:!1,linkedAccounts:[],data:{account_name:"",core_liquid_balance:j.UInt64.from(0)},authorization:[],rexActions:[],TransactionId:"",TransactionError:"",rexbal:{},vote:[],abi:{abi:null},coreRexBalance:`0 ${D.getSystemToken().symbol}`,maturingRex:`0 ${D.getSystemToken().symbol}`,maturedRex:`0 ${D.getSystemToken().symbol}`,savingsRex:`0 ${D.getSystemToken().symbol}`,tlosRexRatio:1,rexfund:0,chainId:""}}const S={account(e){return e},isAuthenticated(e){return e.isAuthenticated},accountName(e){return e.accountName},getAccountData(e){return e.data},getUser(e){return e.user}};var P=a(60499);const A=(0,h.z)().getSystemToken().symbol,q={setUser(e,t){e.user=t?(0,P.Xl)(t):t},setAccountName(e,t){e.accountName=t},setAutoLogin(e,t){e.autoLogin=t},setAccountData(e,t){var a;e.data=t,e.vote=(null===(a=null===t||void 0===t?void 0:t.voter_info)||void 0===a?void 0:a.producers.map((e=>e.toString())))||[]},setTransaction(e,t){e.TransactionId=t},setTransactionError(e,t){e.TransactionError=t},setRexActions(e,t){e.rexActions=t},setRexbal(e,t){e.rexbal=t.rexbal,e.coreRexBalance=(0,w.xG)(t.coreBalance,4,A),e.maturedRex=(0,w.xG)(t.maturedRex,4,A),e.maturingRex=(0,w.xG)(t.maturingRex,4,A),e.savingsRex=(0,w.xG)(t.savingsRex,4,A)},setVote(e,t){e.vote=t.sort()},setABI(e,t){e.abi=t},setTlosRexRatio(e,t){e.tlosRexRatio=t},setAccountPermission(e,t){e.accountPermission=t},setIsAuthenticated(e,t){e.isAuthenticated=t},setRexFund(e,t){e.rexfund=t},setChainId(e,t){e.chainId=t}};var N=a(68142),I=a(17779),z=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const C=(0,h.z)(),M=C.getSystemToken().symbol,R={login({commit:e},{account:t,authenticator:a}){return z(this,void 0,void 0,(function*(){if(yield a.init(),!t){const t=yield a.shouldRequestAccountName();if(t)return void e("setRequestAccount",!0)}const o=yield a.login();if(null===o||void 0===o?void 0:o.length){const t=new N.V(o[0]),n=t.requestPermission,s=yield t.getAccountName();e("setAccountPermission",n||"active"),e("setUser",t),e("setIsAuthenticated",!0),e("setAccountName",s),e("setChainId",a.chains[0].chainId),localStorage.setItem(`account_${a.chains[0].chainId}`,s),localStorage.setItem(`autoLogin_${a.chains[0].chainId}`,a.getName())}}))},logout({commit:e,state:t}){e("setIsAuthenticated",!1),e("setAccountName",""),e("setUser",null),localStorage.removeItem(`account_${t.chainId}`),localStorage.removeItem(`autoLogin_${t.chainId}`)},loadAccountData({commit:e,state:t}){return z(this,void 0,void 0,(function*(){try{const a=yield f.h.getAccount(t.accountName);e("setAccountData",a)}catch(a){return}}))},updateRexData({commit:e},{account:t}){return z(this,void 0,void 0,(function*(){const a={code:"eosio",limit:"2",lower_bound:t,scope:"eosio",table:"rexbal",reverse:!1,upper_bound:t},o=yield f.h.getTableRows(a),n={code:"eosio",scope:"eosio",table:"rexpool",json:!0,reverse:!1},s=(yield f.h.getTableRows(n)).rows[0],i={code:"eosio",limit:"1",lower_bound:t,scope:"eosio",table:"rexfund",reverse:!1,upper_bound:t},r=(yield f.h.getTableRows(i)).rows[0],c=(null===r||void 0===r?void 0:r.balance)?Number(r.balance.split(" ")[0]):0;e("setRexFund",c);const l=o.rows[0],u=l&&l.rex_balance?parseFloat(l.rex_balance.split(" ")[0]):0,d=Number(s.total_rex.split(" ")[0]),m=Number(s.total_lendable.split(" ")[0]),p=d>0?m/d:1;e("setTlosRexRatio",p);let g=d>0?p*u:0;g+=c;let v=0,h=l?p*(Number(l.matured_rex)/1e4):0,w=0;if(l&&l.rex_maturities&&l.rex_maturities.length>0){const e=(new Date).getFullYear(),t=(new Date).getTime();l.rex_maturities.forEach((a=>{const o=new Date(a.first).getFullYear(),n=new Date(a.first).getTime();o-e>1?v=p*(Number(a.second)/1e4):n-t<0?h+=p*(Number(a.second)/1e4):w=p*(Number(a.second)/1e4)}))}o.rows.length>0&&e("setRexbal",{rexbal:o.rows[0],coreBalance:g,maturingRex:w,savingsRex:v,maturedRex:h});const y=["eosio:sellrex","eosio:buyrex","eosio:deposit","eosio:withdraw","eosio:unstaketorex","eosio:cnclrexorder","eosio:rentcpu","eosio:rentnet","eosio:fundcpuloan","eosio:fundnetloan","eosio:defcpuloan","eosio:defnetloan","eosio:updaterex","eosio:consolidate","eosio:closerex","eosio:mvfrsavings","eosio:mvtosavings","eosio:rexexec"].join(","),b=(yield f.h.getActions(t,y)).actions;e("setRexActions",b)}))},sendAction({state:e,dispatch:t},{account:a,data:o,name:n,actor:s,permission:i}){var r,c,l;return z(this,void 0,void 0,(function*(){const u=[{account:null!==(r=a)&&void 0!==r?r:e.abi.account_name,name:n,authorization:[{actor:null!==(c=s)&&void 0!==c?c:e.accountName,permission:null!==(l=i)&&void 0!==l?l:e.accountPermission}],data:o}];return t("sendTransaction",u)}))},sendTransaction({commit:e,state:t},a){return z(this,void 0,void 0,(function*(){let o=null;try{o=yield t.user.signTransaction({actions:a},{blocksBehind:3,expireSeconds:180}),e("setTransaction",o.transactionId)}catch(n){I.error(n),e("setTransactionError",n)}return o}))},stakeRex({commit:e,dispatch:t,state:a},{amount:o}){return z(this,void 0,void 0,(function*(){let n=null;const s=(0,w.xG)(o,4,M,!0),i=[{account:"eosio",name:"deposit",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{owner:a.accountName,amount:s}},{account:"eosio",name:"buyrex",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{from:a.accountName,amount:s}}];try{n=yield a.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",n.transactionId),t("loadAccountData"),t("updateRexData",{account:a.accountName})}catch(r){e("setTransactionError",r)}}))},unstakeRex({commit:e,dispatch:t,state:a},{amount:o}){return z(this,void 0,void 0,(function*(){let n=null;const s=a.rexbal.rex_balance?Number(a.rexbal.rex_balance.split(" ")[0]):0;if(0===s)return;const i=(0,w.xG)(o,4,M,!0),r=(0,w.xG)(+o/a.tlosRexRatio,4,null,!0),c=[{account:"eosio",name:"sellrex",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{from:a.accountName,rex:`${r} REX`}},{account:"eosio",name:"withdraw",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{owner:a.accountName,amount:i}}];try{n=yield a.user.signTransaction({actions:c},{blocksBehind:3,expireSeconds:180}),e("setTransaction",n.transactionId),t("loadAccountData"),t("updateRexData",{account:a.accountName})}catch(l){e("setTransactionError",l)}}))},unstakeRexFund({commit:e,state:t},{amount:a}){return z(this,void 0,void 0,(function*(){let o=null;const n=(0,w.xG)(a,4,M,!0),s=[{account:"eosio",name:"withdraw",authorization:[{actor:t.accountName,permission:t.accountPermission}],data:{owner:t.accountName,amount:n}}];try{o=yield t.user.signTransaction({actions:s},{blocksBehind:3,expireSeconds:180}),e("setTransaction",o.transactionId)}catch(i){e("setTransactionError",i)}}))},stakeCpuNetRex({commit:e,dispatch:t,state:a},{cpuAmount:o,netAmount:n}){return z(this,void 0,void 0,(function*(){let s=null;const i=(0,w.xG)(o,4,M,!0),r=(0,w.xG)(n,4,M,!0),c=[{account:"eosio",name:"unstaketorex",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{owner:a.accountName,receiver:a.accountName,from_net:r,from_cpu:i}}];try{s=yield a.user.signTransaction({actions:c},{blocksBehind:3,expireSeconds:180}),e("setTransaction",s.transactionId),t("loadAccountData"),t("updateRexData",{account:a.accountName})}catch(l){e("setTransactionError",l)}}))},unstakeCpuNetRex({commit:e,dispatch:t,state:a},{cpuAmount:o,netAmount:n}){return z(this,void 0,void 0,(function*(){let s=null;const i=(0,w.xG)(o,4,M,!0),r=(0,w.xG)(n,4,M,!0),c=[{account:"eosio",name:"stakefromrex",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{owner:a.accountName,receiver:a.accountName,from_net:r,from_cpu:i}}];try{s=yield a.user.signTransaction({actions:c},{blocksBehind:3,expireSeconds:180}),e("setTransaction",s.transactionId),t("loadAccountData"),t("updateRexData",{account:a.accountName})}catch(l){e("setTransactionError",l)}}))},resetTransaction({commit:e}){e("setTransaction",""),e("setTransactionError","")},updateABI({commit:e},t){return z(this,void 0,void 0,(function*(){const a=yield f.h.getABI(t);e("setABI",a)}))},sendVoteTransaction({commit:e,state:t}){return z(this,void 0,void 0,(function*(){let a=null;const o=[{account:"eosio",name:"voteproducer",authorization:[{actor:t.accountName,permission:t.accountPermission}],data:{voter:t.accountName,proxy:"",producers:t.vote}}];try{a=yield t.user.signTransaction({actions:o},{blocksBehind:3,expireSeconds:180}),e("setTransaction",a.transactionId)}catch(n){e("setTransactionError",n)}}))},buyRam({commit:e,dispatch:t,state:a},{amount:o,receivingAccount:n}){return z(this,void 0,void 0,(function*(){let s=null;const i=[{account:"eosio",name:"buyram",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{payer:a.accountName,receiver:n,quant:o}}];try{s=yield a.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",s.transactionId),t("loadAccountData")}catch(r){e("setTransactionError",r)}}))},buyRamBytes({commit:e,dispatch:t,state:a},{amount:o,receivingAccount:n}){return z(this,void 0,void 0,(function*(){let s=null;const i=[{account:"eosio",name:"buyrambytes",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{payer:a.accountName,receiver:n,bytes:o}}];try{s=yield a.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",s.transactionId),t("loadAccountData")}catch(r){e("setTransactionError",r)}}))},sellRam({commit:e,dispatch:t,state:a},{amount:o}){return z(this,void 0,void 0,(function*(){let n=null;const s=[{account:"eosio",name:"sellram",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{account:a.accountName,bytes:o}}];try{n=yield a.user.signTransaction({actions:s},{blocksBehind:3,expireSeconds:180}),e("setTransaction",n.transactionId),t("loadAccountData")}catch(i){e("setTransactionError",i)}}))},moveToSavings({commit:e,dispatch:t,state:a},{amount:o}){return z(this,void 0,void 0,(function*(){let n=null;const s=(0,w.xG)(+o/a.tlosRexRatio,4,"REX",!0),i=[{account:"eosio",name:"mvtosavings",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{owner:a.accountName,rex:s}}];try{n=yield a.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",n.transactionId),t("loadAccountData"),t("updateRexData",{account:a.accountName})}catch(r){e("setTransactionError",r)}}))},moveFromSavings({commit:e,dispatch:t,state:a},{amount:o}){return z(this,void 0,void 0,(function*(){let n=null;const s=(0,w.xG)(+o/a.tlosRexRatio,4,"REX",!0),i=[{account:"eosio",name:"mvfrsavings",authorization:[{actor:a.accountName,permission:a.accountPermission}],data:{owner:a.accountName,rex:s}}];try{n=yield a.user.signTransaction({actions:i},{blocksBehind:3,expireSeconds:180}),e("setTransaction",n.transactionId),t("loadAccountData"),t("updateRexData",{account:a.accountName})}catch(r){e("setTransactionError",r)}}))}},Z={namespaced:!0,getters:S,mutations:q,actions:R,state:T};function O(){return{transaction:{},transactionId:"",blockNum:0,timestamp:"",executed:!1,cpuUsage:0,netUsage:0,actionCount:0,irreversable:!1,actions:[],transactionFound:!0}}var W=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const L={updateTransaction({commit:e,state:t}){return W(this,void 0,void 0,(function*(){const a=yield f.h.getTransaction(t.transactionId);a?e("setTransaction",a):e("setTransactionFound",!1)}))},updateTransactionId({commit:e},t){e("setTransactionId",t)}},F={getTransaction({transaction:e}){return e},getTransactionId({transactionId:e}){return e}},H={setTransaction(e,t){if(t&&t.actions&&t.actions.length>0){e.transaction=t,e.executed=t.executed||!1;const a=t.actions[0];e.blockNum=a.block_num,e.timestamp=a.timestamp,e.cpuUsage=a.cpu_usage_us,e.netUsage=8*a.net_usage_words,e.actionCount=t.actions.length,e.irreversable=t.lib>a.block_num,e.actions=t.actions,e.transactionFound=!0}else e.transactionFound=!1},setTransactionId(e,t){e.transactionId=t},setTimestamp(e,t){e.timestamp=t},setBlockNum(e,t){e.blockNum=t},setExecuted(e,t){e.executed=t},setCpuUsage(e,t){e.cpuUsage=t},setNetUsage(e,t){e.netUsage=t},setActionCount(e,t){e.actionCount=t},setIrreversable(e,t){e.irreversable=t},setTransactionFounde(e,t){e.transactionFound=t}},V={namespaced:!0,actions:L,getters:F,mutations:H,state:O};function U(){return{currentAccount:"",toOthers:[],toOthersAggregated:0,fromOthers:null,selfStaked:null,loading:[],forceUpdate:!1}}const E={getDelegatedToOthers(e){var t;return null!==(t=e.toOthers)&&void 0!==t?t:[]},getDelegatedToOthersAggregated(e){var t;return null!==(t=e.toOthersAggregated)&&void 0!==t?t:0},getDelegatedFromOthers(e){return e.fromOthers},getSelfStaked(e){return e.selfStaked},getLoading(e){return e.loading},isLoading(e){return t=>e.loading.includes(t)}},B={setCurrentAccount(e,t){e.currentAccount=t},setDelegatedFromOthers(e,t){e.fromOthers=t},setDelegatedToOthers(e,t){e.toOthers=t},setDelegatedToOthersAggregated(e,t){e.toOthersAggregated=t},setSelfStaked(e,t){e.selfStaked=t},setLoading(e,t){e.loading.includes(t)||e.loading.push(t)},unsetLoading(e,t){e.loading=e.loading.filter((e=>e!==t))},setForceUpdate(e,t){e.forceUpdate=t}};var Q=a(17779),Y=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const $=(0,h.z)(),G=$.getSystemToken().symbol,K=$.getSystemToken().precision,J={updateResources(e,{account:t,force:a}){var o;return Y(this,void 0,void 0,(function*(){const n=null!==(o=t)&&void 0!==o?o:e.rootState.account.accountName;try{e.commit("setLoading","updateResources"),e.commit("setForceUpdate",a),e.state.currentAccount===n&&e.rootState.account.data&&!a||(yield Promise.all([e.dispatch("updateSelfStaked",n),e.dispatch("updateDelegatedToOthers",n)]),e.commit("setCurrentAccount",n))}catch(s){Q.error("Error:",s)}finally{e.commit("setForceUpdate",!1),e.commit("unsetLoading","updateResources")}}))},updateSelfStaked(e,t){var a,o,n,s,i,r,c,l,u,d;return Y(this,void 0,void 0,(function*(){try{e.commit("setLoading","updateSelfStaked"),(e.state.currentAccount!==t||(null===(a=e.state.selfStaked)||void 0===a?void 0:a.from)!==t||(null===(o=e.state.selfStaked)||void 0===o?void 0:o.to)!==t||e.state.forceUpdate)&&(yield e.dispatch("account/loadAccountData",t,{root:!0}));const m=e.rootState.account.data,p=Number(null!==(s=null===(n=m.self_delegated_bandwidth)||void 0===n?void 0:n.net_weight.value)&&void 0!==s?s:0),g=Number(null!==(r=null===(i=m.self_delegated_bandwidth)||void 0===i?void 0:i.cpu_weight.value)&&void 0!==r?r:0),v=(0,w.xG)(p,K,G,!0),f=(0,w.xG)(g,K,G,!0),h={from:t,to:t,net_weight:v,cpu_weight:f},y=Number(null!==(l=null===(c=m.net_weight)||void 0===c?void 0:c.value)&&void 0!==l?l:0)/Math.pow(10,K),b=Number(null!==(d=null===(u=m.cpu_weight)||void 0===u?void 0:u.value)&&void 0!==d?d:0)/Math.pow(10,K),_=y-p,k=b-g,x=(0,w.xG)(_,K,G,!0),j=(0,w.xG)(k,K,G,!0),D={from:"not-available",to:t,net_weight:x,cpu_weight:j};e.commit("setDelegatedFromOthers",D),e.commit("setSelfStaked",h)}catch(m){Q.error("Error:",m)}finally{e.commit("unsetLoading","updateSelfStaked")}}))},updateDelegatedToOthers({commit:e},t){return Y(this,void 0,void 0,(function*(){try{e("setLoading","updateDelegatedToOthers");const a={code:"eosio",limit:"200",scope:t,table:"delband"},o=(yield f.h.getTableRows(a)).rows,n=o.filter((e=>e.to!==t)),s=n.reduce(((e,t)=>e+parseFloat(t.net_weight)),0),i=n.reduce(((e,t)=>e+parseFloat(t.cpu_weight)),0),r=i+s;e("setCurrentAccount",t),e("setDelegatedToOthers",o),e("setDelegatedToOthersAggregated",r)}catch(a){Q.error("Error:",a)}finally{e("unsetLoading","updateDelegatedToOthers")}}))},delegateResources({commit:e,dispatch:t},a){return Y(this,void 0,void 0,(function*(){const{from:o,to:n,net_weight:s,cpu_weight:i}=a;try{e("setLoading","delegateResources");const a=Number(null!==s&&void 0!==s?s:"0")+Number(null!==i&&void 0!==i?i:"0"),r=[{account:"eosio",name:"delegatebw",authorization:[{actor:o,permission:this.state.account.accountPermission}],data:{from:o,receiver:n,stake_net_quantity:s,stake_cpu_quantity:i,transfer:!1,amount:a}}];yield t("account/sendTransaction",r,{root:!0}),yield t("updateResources",{account:o,force:!0})}catch(r){e("setTransactionError",r)}finally{e("unsetLoading","delegateResources")}}))},undelegateResources({commit:e,dispatch:t},a){return Y(this,void 0,void 0,(function*(){const{from:o,to:n,net_weight:s,cpu_weight:i}=a;try{e("setLoading","undelegateResources");const a=[{account:"eosio",name:"undelegatebw",authorization:[{actor:o,permission:"active"}],data:{from:o,receiver:n,unstake_net_quantity:s,unstake_cpu_quantity:i}}];yield t("account/sendTransaction",a,{root:!0}),yield t("updateResources",{account:o,force:!0})}catch(r){Q.error("Error",r)}finally{e("unsetLoading","undelegateResources")}}))},resetResources({commit:e}){e("setDelegatedFromOthers",null),e("setDelegatedToOthers",[]),e("setSelfStaked",null)}},X={namespaced:!0,actions:J,getters:E,mutations:B,state:U},ee=Symbol("vuex-key");(0,o.h)((function(){const e=(0,n.MT)({modules:{contract:u,chain:x,account:Z,transaction:V,resources:X},strict:!1});return e}));function te(){return(0,n.oR)(ee)}},71130:(e,t,a)=>{"use strict";function o(e=1e3){return new Promise((t=>setTimeout(t,e)))}a.d(t,{D:()=>n,_:()=>o});const n=(e,t)=>{let a;return(...o)=>{clearTimeout(a),a=setTimeout((()=>{e(...o)}),t)}}},52783:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var o=a(59835),n=a(61957),s=a(86970);const i=(0,o.Uk)("Searching...");function r(e,t,a,r,c,l){const u=(0,o.up)("q-icon"),d=(0,o.up)("q-item-label"),m=(0,o.up)("q-item-section"),p=(0,o.up)("q-item"),g=(0,o.up)("q-select");return(0,o.wg)(),(0,o.j4)(g,{borderless:"",dense:"",filled:"","use-input":"","hide-selected":"","fill-input":"","hide-bottom-space":"",placeholder:"name",loading:e.isLoading,"model-value":e.inputValue,options:e.options,"option-disable":e=>e.isHeader,"reactive-rules":e.withValidation,rules:e.withValidation?[e=>!!e||"Field is required",t=>e.isLoading||1===e.options.filter((e=>e.label===t)).length||"Field invalid"]:[],error:e.withValidation&&e.isError,onInputValue:t[0]||(t[0]=t=>e.inputValue=t),onKeyup:(0,n.D2)(e.handleSelected,["enter"])},(0,o.Nv)({"no-option":(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(m,{class:"text-center"},{default:(0,o.w5)((()=>[e.isLoading?((0,o.wg)(),(0,o.j4)(d,{key:0},{default:(0,o.w5)((()=>[i])),_:1})):((0,o.wg)(),(0,o.j4)(d,{key:1},{default:(0,o.w5)((()=>[(0,o.Uk)((0,s.zw)(e.inputValue?"Nothing found":"Search for an account name"),1)])),_:1}))])),_:1})])),_:1})])),option:(0,o.w5)((t=>[t.opt.isHeader?((0,o.wg)(),(0,o.j4)(d,{key:0,header:""},{default:(0,o.w5)((()=>[(0,o.Uk)((0,s.zw)(t.opt.label),1)])),_:2},1024)):((0,o.wg)(),(0,o.j4)(p,(0,o.dG)({key:1},t.itemProps,{exact:"exact",clickable:"clickable",onClick:a=>e.handleSelected(t.opt.to)}),{default:(0,o.w5)((()=>[(0,o.Wm)(m,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,s.zw)(t.opt.label),1)])),_:2},1024)])),_:2},1024)])),_:2},1040,["onClick"]))])),_:2},[e.removeSearchIcon?void 0:{name:"prepend",fn:(0,o.w5)((()=>[(0,o.Wm)(u,{class:"rotate-90",name:"search",size:"20px"})]))}]),1032,["loading","model-value","options","option-disable","reactive-rules","rules","error","onKeyup"])}var c=a(60499),l=a(21889),u=a(19302),d=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const m=(0,o.aZ)({name:"AccountSearch",props:{modelValue:{type:String},withValidation:{type:Boolean,default:!1},removeSearchIcon:{type:Boolean,default:!1},emitUpdateOnInput:{type:Boolean,default:!1}},emits:["update:modelValue","remove"],setup(e,t){const a=(0,u.Z)(),n=(0,c.iH)([]),s=(0,c.iH)(!1),i=(0,c.iH)(!1),r=(0,c.iH)("");(0,o.YP)(r,(()=>d(this,void 0,void 0,(function*(){if(""===r.value)return void(n.value=[]);s.value=!0,i.value=!1;const e=r.value.toLowerCase(),t=yield p(e);n.value=[...t],s.value=!1})))),(0,o.YP)(e,(e=>d(this,void 0,void 0,(function*(){e.modelValue&&(r.value=e.modelValue,yield g(e.modelValue))})))),(0,o.bv)((()=>d(this,void 0,void 0,(function*(){e.modelValue&&(r.value=e.modelValue,yield g(e.modelValue))}))));const m=setTimeout((()=>0),0);function p(e){return clearTimeout(m),new Promise((t=>{setTimeout((()=>d(this,void 0,void 0,(function*(){const a=yield g(e);r.value===e&&t(a)}))),500)}))}function g(e){return d(this,void 0,void 0,(function*(){try{const t=[],a=yield l.h.getAccountByScope(v(e).toString());return a?t.push({label:v(e),to:v(e),isHeader:!1}):i.value=!0,t}catch(t){return void(i.value=!0)}}))}function v(e){return e.replace(/^[\s.]+|[\s.]+$/g,"")}function f(e){return d(this,void 0,void 0,(function*(){if(r.value){if("string"===typeof e)return r.value=e,void t.emit("update:modelValue",r.value);try{return yield l.h.getAccount(r.value.toLowerCase()),void t.emit("update:modelValue",r.value)}catch(o){a.notify(`account ${r.value} not found!`)}}}))}return{inputValue:r,options:n,isLoading:s,isError:i,handleSelected:f}}});var p=a(11639),g=a(32259),v=a(22857),f=a(490),h=a(76749),w=a(33115),y=a(69984),b=a.n(y);const _=(0,p.Z)(m,[["render",r]]),k=_;b()(m,"components",{QSelect:g.Z,QIcon:v.Z,QItem:f.Z,QItemSection:h.Z,QItemLabel:w.Z})},54397:(e,t,a)=>{"use strict";a.d(t,{Z:()=>A});var o=a(59835),n=a(86970);const s=e=>((0,o.dD)("data-v-6fab27e1"),e=e(),(0,o.Cn)(),e),i={key:0,class:"section-title"},r=["src"],c={class:"q-pl-md"},l={key:2,class:"section-title"},u={class:"testnet-logo-container"},d=["src"],m=s((()=>(0,o._)("div",{class:"testnet-text"},"TESTNET",-1))),p={class:"q-pl-md"};function g(e,t,a,s,g,v){const f=(0,o.up)("q-item-section"),h=(0,o.up)("q-item"),w=(0,o.up)("q-separator"),y=(0,o.up)("q-list"),b=(0,o.Q2)("ripple");return(0,o.wg)(),(0,o.j4)(y,null,{default:(0,o.w5)((()=>[e.mainnets.length>0?((0,o.wg)(),(0,o.iD)("div",i,"MAINNETS")):(0,o.kq)("",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.mainnets,((t,a)=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(h,{key:`mainnet-${a}`,class:(0,n.C_)({selected:e.isChainSelected(t)}),clickable:"",onClick:a=>e.chainSelected(t)},{default:(0,o.w5)((()=>[(0,o._)("img",{class:"sidebar-logo",src:t.getSmallLogoPath()},null,8,r),(0,o.Wm)(f,null,{default:(0,o.w5)((()=>[(0,o._)("div",c,(0,n.zw)(t.getDisplay()),1)])),_:2},1024)])),_:2},1032,["class","onClick"])),[[b]]))),128)),e.testnets.length>0&&e.mainnets.length>0?((0,o.wg)(),(0,o.j4)(w,{key:1,class:"separator"})):(0,o.kq)("",!0),e.testnets.length>0?((0,o.wg)(),(0,o.iD)("div",l,"TESTNETS")):(0,o.kq)("",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.testnets,((t,a)=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(h,{key:`testnet-${a}`,class:(0,n.C_)({selected:e.isChainSelected(t)}),clickable:"",onClick:a=>e.chainSelected(t)},{default:(0,o.w5)((()=>[(0,o._)("div",u,[(0,o._)("img",{class:"sidebar-logo sidebar-logo--testnet",src:t.getSmallLogoPath()},null,8,d),m]),(0,o.Wm)(f,null,{default:(0,o.w5)((()=>[(0,o._)("div",p,(0,n.zw)(t.getDisplay()),1)])),_:2},1024)])),_:2},1032,["class","onClick"])),[[b]]))),128))])),_:1})}var v=a(30229),f=a(18910);const h=v.Z.get(),w=(0,o.aZ)({name:"ChainsSelector",props:{onChainSelected:{type:Function,required:!1},isChainSelected:{type:Function,required:!1,default:()=>!1}},setup(e){const t=(0,f.yj)(),a=(0,f.tv)(),n=(0,o.Fl)((()=>i(h.getMainnets()))),s=(0,o.Fl)((()=>i(h.getTestnets())));function i(e){return e.sort(((e,t)=>e.getName().localeCompare(t.getName())))}function r(o){e.isChainSelected(o)||(a.push({path:t.path,query:{network:o.getName()}}),e.onChainSelected(o))}return{mainnets:n,testnets:s,chainSelected:r}}});var y=a(11639),b=a(13246),_=a(490),k=a(76749),x=a(50926),j=a(77741),D=a(51722),T=a(69984),S=a.n(T);const P=(0,y.Z)(w,[["render",g],["__scopeId","data-v-6fab27e1"]]),A=P;S()(w,"components",{QList:b.Z,QItem:_.Z,QItemSection:k.Z,QSeparator:x.Z,QColor:j.Z}),S()(w,"directives",{Ripple:D.Z})},97114:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var o=a(59835),n=a(86970);const s={class:"no-wrap"};function i(e,t,a,i,r,c){const l=(0,o.up)("q-tooltip");return(0,o.wg)(),(0,o.iD)("div",s,[(0,o.Uk)((0,n.zw)(e.friendlyDate)+" ",1),(0,o.Wm)(l,{anchor:"top middle",self:"bottom middle",offset:[10,10]},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e.tooltipDate),1)])),_:1})])}var r=a(43878);const c=(0,o.aZ)({name:"DateField",props:{timestamp:{type:String,default:""},showAge:{type:Boolean,default:!0}},setup(e){const t=(0,o.Fl)((()=>{const t=r.utc(e.timestamp,"YYYY-MM-DD HH:mm:ssZ");return e.showAge?t.fromNow():`${t.local().format("YYYY-MM-DD HH:mm:ss")}`})),a=(0,o.Fl)((()=>{const t=r.utc(e.timestamp,"YYYY-MM-DD HH:mm:ssZ");return e.showAge?`${t.local().format("YYYY-MM-DD HH:mm:ss")}`:t.fromNow()}));return{friendlyDate:t,tooltipDate:a}}});var l=a(11639),u=a(46858),d=a(69984),m=a.n(d);const p=(0,l.Z)(c,[["render",i]]),g=p;m()(c,"components",{QTooltip:u.Z})},59311:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Ve});var o=a(59835),n=a(86970),s=a(61957);const i={class:"row col-12 q-mt-xs justify-center text-left trx-table container-max-width"},r={class:"row trx-table--main-container"},c={class:"row col-12 q-mt-lg"},l={class:"col-auto q-mr-xl justify-start trx-table--topleft-col"},u={class:"row flex-grow-1"},d={class:"col"},m={class:"trx-table--title"},p={class:"row"},g={class:"col"},v={key:0,class:"row"},f={class:"col"},h={key:0,class:"col trx-table--topright-col"},w={class:"row justify-end q-mb-xl"},y={class:"col-auto row flex trx-table--filter-buttons"},b=(0,o._)("span",{class:"q-pr-sm"},"clear filters",-1),_={class:"q-pa-md dropdown-filter"},k={class:"row"},x={class:"q-pa-md dropdown-filter"},j={class:"row"},D=(0,o.Uk)("OK"),T={class:"q-pa-md dropdown-filter"},S={class:"row"},P={class:"row items-center justify-end"},A={class:"row items-center justify-end"},q={class:"row justify-center full-width q-py-xs"},N={class:"row"},I={class:"row items-center justify-end"},z={class:"row items-center justify-end"},C={class:"q-pa-md dropdown-filter"},M={class:"row"},R={key:0,class:"row justify-end"},Z={class:"row col-12 table-container"},O={class:"col-auto"},W={class:"q-pt-xs"},L={class:"row justify-left text-weight-light"},F={class:"row col-12 items-center justify-end q-mt-md q-mb-sm"},H={class:"col-auto"},V={class:"col-auto"},U=(0,o.Uk)(" First "),E=(0,o.Uk)(" Last ");function B(e,t,a,B,Q,Y){const $=(0,o.up)("q-toggle"),G=(0,o.up)("q-btn"),K=(0,o.up)("AccountSearch"),J=(0,o.up)("q-btn-dropdown"),X=(0,o.up)("q-icon"),ee=(0,o.up)("q-input"),te=(0,o.up)("q-date"),ae=(0,o.up)("q-popup-proxy"),oe=(0,o.up)("q-time"),ne=(0,o.up)("TokenSearch"),se=(0,o.up)("q-separator"),ie=(0,o.up)("q-th"),re=(0,o.up)("q-tr"),ce=(0,o.up)("AccountFormat"),le=(0,o.up)("q-td"),ue=(0,o.up)("DateField"),de=(0,o.up)("ActionFormat"),me=(0,o.up)("DataFormat"),pe=(0,o.up)("q-table"),ge=(0,o.up)("q-item-section"),ve=(0,o.up)("q-item"),fe=(0,o.up)("q-list"),he=(0,o.up)("q-space"),we=(0,o.Q2)("close-popup");return(0,o.wg)(),(0,o.iD)("div",i,[(0,o._)("div",r,[(0,o._)("div",c,[(0,o._)("div",l,[(0,o._)("div",u,[(0,o._)("div",d,[(0,o._)("p",m,(0,n.zw)(e.tableTitle),1)])]),(0,o._)("div",p,[(0,o._)("div",g,[(0,o.Wm)($,{modelValue:e.showAge,"onUpdate:modelValue":t[0]||(t[0]=t=>e.showAge=t),"left-label":"",label:"Show timestamp as relative"},null,8,["modelValue"])])]),e.toggleEnabled?((0,o.wg)(),(0,o.iD)("div",v,[(0,o._)("div",f,[(0,o.Wm)($,{modelValue:e.enableLiveTransactions,"onUpdate:modelValue":t[1]||(t[1]=t=>e.enableLiveTransactions=t),"left-label":"",label:"Live transactions",disable:1!==e.paginationSettings.page},null,8,["modelValue","disable"])])])):(0,o.kq)("",!0)]),e.filtersEnabled?((0,o.wg)(),(0,o.iD)("div",h,[(0,o._)("div",w,[(0,o._)("div",y,[""!==e.filter?((0,o.wg)(),(0,o.j4)(G,{key:0,dense:"",flat:"",round:"",icon:"close",color:"primary",onClick:e.clearFilters},{default:(0,o.w5)((()=>[b])),_:1},8,["onClick"])):(0,o.kq)("",!0),e.showAccountFilter?((0,o.wg)(),(0,o.j4)(J,{key:1,ref:"accounts_dropdown",class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform","no-caps":"",color:""===e.accountsDisplay?"primary":"secondary",label:""===e.accountsDisplay?"Accounts":e.accountsDisplay,onClick:t[4]||(t[4]=t=>e.accountsModel="")},{default:(0,o.w5)((()=>[(0,o._)("div",_,[(0,o._)("div",k,[(0,o.Wm)(K,{modelValue:e.accountsModel,"onUpdate:modelValue":[t[2]||(t[2]=t=>e.accountsModel=t),t[3]||(t[3]=t=>e.toggleDropdown(e.$refs.accounts_dropdown))]},null,8,["modelValue"])])])])),_:1},8,["color","label"])):(0,o.kq)("",!0),(0,o.Wm)(J,{ref:"actions_dropdown",class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform",color:""===e.actionsDisplay?"primary":"secondary",label:""===e.actionsDisplay?"Actions":e.actionsDisplay},{default:(0,o.w5)((()=>[(0,o._)("div",x,[(0,o._)("div",j,[(0,o.Wm)(ee,{modelValue:e.auxModel,"onUpdate:modelValue":t[6]||(t[6]=t=>e.auxModel=t),filled:"",dense:"",label:"actions",placeholder:"transfer, sellrex, etc.",onBlur:t[7]||(t[7]=t=>{e.actionsModel=e.auxModel,e.toggleDropdown(e.$refs.actions_dropdown)}),onKeyup:t[8]||(t[8]=(0,s.D2)((t=>{e.actionsModel=e.auxModel,e.toggleDropdown(e.$refs.actions_dropdown)}),["enter"]))},{prepend:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"search"})])),append:(0,o.w5)((()=>[(0,o.Wm)(G,{size:"sm",color:"primary",onClick:t[5]||(t[5]=t=>{e.actionsModel=e.auxModel,e.toggleDropdown(e.$refs.actions_dropdown)})},{default:(0,o.w5)((()=>[D])),_:1})])),_:1},8,["modelValue"])])])])),_:1},8,["color","label"]),(0,o.Wm)(J,{class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform",color:""===e.dateDisplay?"primary":"secondary",label:""===e.dateDisplay?"Date":e.dateDisplay},{default:(0,o.w5)((()=>[(0,o._)("div",T,[(0,o._)("div",S,[(0,o.Wm)(ee,{modelValue:e.fromDateModel,"onUpdate:modelValue":t[11]||(t[11]=t=>e.fromDateModel=t),filled:"",dense:"",label:"From"},{prepend:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"event"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(te,{modelValue:e.fromDateModel,"onUpdate:modelValue":t[9]||(t[9]=t=>e.fromDateModel=t),mask:"YYYY-MM-DD HH:mm"},{default:(0,o.w5)((()=>[(0,o._)("div",P,[(0,o.wy)((0,o.Wm)(G,{label:"Close",color:"primary",flat:""},null,512),[[we]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),append:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"access_time"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"cover","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(oe,{modelValue:e.fromDateModel,"onUpdate:modelValue":t[10]||(t[10]=t=>e.fromDateModel=t),mask:"YYYY-MM-DD HH:mm",format24h:""},{default:(0,o.w5)((()=>[(0,o._)("div",A,[(0,o.wy)((0,o.Wm)(G,{label:"Close",color:"primary",flat:""},null,512),[[we]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"])]),(0,o._)("div",q,[(0,o.Wm)(X,{name:"arrow_downward"})]),(0,o._)("div",N,[(0,o.Wm)(ee,{modelValue:e.toDateModel,"onUpdate:modelValue":t[14]||(t[14]=t=>e.toDateModel=t),filled:"",dense:"",label:"To"},{prepend:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"event"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"cover","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(te,{modelValue:e.toDateModel,"onUpdate:modelValue":t[12]||(t[12]=t=>e.toDateModel=t),mask:"YYYY-MM-DD HH:mm"},{default:(0,o.w5)((()=>[(0,o._)("div",I,[(0,o.wy)((0,o.Wm)(G,{label:"Close",color:"primary",flat:""},null,512),[[we]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),append:(0,o.w5)((()=>[(0,o.Wm)(X,{class:"cursor-pointer",name:"access_time"},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(oe,{modelValue:e.toDateModel,"onUpdate:modelValue":t[13]||(t[13]=t=>e.toDateModel=t),mask:"YYYY-MM-DD HH:mm",format24h:""},{default:(0,o.w5)((()=>[(0,o._)("div",z,[(0,o.wy)((0,o.Wm)(G,{label:"Close",color:"primary",flat:""},null,512),[[we]])])])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"])])])])),_:1},8,["color","label"]),e.showTokenFilter?((0,o.wg)(),(0,o.j4)(J,{key:2,ref:"token_dropdown",class:"q-ml-xs q-mr-xs button-primary q-btn--no-text-transform",color:e.tokenDisplay?"secondary":"primary",label:e.tokenDisplay?e.tokenDisplay:"Token"},{default:(0,o.w5)((()=>[(0,o._)("div",C,[(0,o._)("div",M,[(0,o.Wm)(ne,{modelValue:e.tokenModel,"onUpdate:modelValue":[t[15]||(t[15]=t=>e.tokenModel=t),t[16]||(t[16]=t=>e.toggleDropdown(e.$refs.token_dropdown))]},null,8,["modelValue"])])])])),_:1},8,["color","label"])):(0,o.kq)("",!0)])]),e.showPaginationExtras?((0,o.wg)(),(0,o.iD)("div",R," Viewing "+(0,n.zw)(e.paginationSettings.rowsPerPage>e.totalRows?e.totalRows:e.paginationSettings.rowsPerPage)+" of "+(0,n.zw)(1e4===e.totalRows?" over ":"")+" "+(0,n.zw)(e.totalRows.toLocaleString())+" total transactions ",1)):(0,o.kq)("",!0)])):(0,o.kq)("",!0)]),(0,o.Wm)(se,{class:"row col-12 q-mt-md separator"}),(0,o._)("div",Z,[(0,o.Wm)(pe,{ref:"main_table",pagination:e.paginationSettings,"onUpdate:pagination":t[17]||(t[17]=t=>e.paginationSettings=t),class:"q-mt-lg row trx-table--fixed-layout",flat:"","table-header-class":"table-header","hide-pagination":"",rows:e.filteredRows,columns:e.columns,"row-key":e=>e.name+e.action.action_ordinal+e.transaction.id,bordered:!1,square:!0,loading:e.loading,"rows-per-page-options":e.pageSizeOptions,dense:e.$q.screen.width<1024,onRequest:e.onPaginationChange},{header:(0,o.w5)((e=>[(0,o.Wm)(re,{props:e},{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.cols,(t=>((0,o.wg)(),(0,o.j4)(ie,{key:t.name,props:e},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,o.w5)((t=>[(0,o.Wm)(re,{props:t},{default:(0,o.w5)((()=>[(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[(0,o.Wm)(ce,{account:t.row.transaction.id,type:t.row.transaction.type},null,8,["account","type"])])),_:2},1024),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[(0,o.Wm)(ue,{timestamp:t.row.timestamp,showAge:e.showAge},null,8,["timestamp","showAge"])])),_:2},1024),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.row.actions,(t=>((0,o.wg)(),(0,o.iD)("div",{key:t.action.action_ordinal,class:"row justify-left text-weight-light"},[(0,o._)("div",O,[(0,o._)("div",W,[(0,o.Wm)(de,{action:t.action,showTransferLabel:e.showTransferLabel,account:e.account},null,8,["action","showTransferLabel","account"])])])])))),128))])),_:2},1024),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[1===t.row.actions.length?((0,o.wg)(),(0,o.j4)(me,{key:0,actionData:t.row.data.data,actionName:t.row.data.name,"use-color":!1},null,8,["actionData","actionName"])):(0,o.kq)("",!0)])),_:2},1024)])),_:2},1032,["props"]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.row.actions,(a=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(re,{key:a.action.action_ordinal,class:"expanded-row",props:t},{default:(0,o.w5)((()=>[(0,o.Wm)(le,{"auto-width":""}),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[(0,o.Wm)(ce,{account:t.row.transaction.id,type:t.row.transaction.type},null,8,["account","type"])])),_:2},1024),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[(0,o.Wm)(ue,{timestamp:a.timestamp,showAge:e.showAge},null,8,["timestamp","showAge"])])),_:2},1024),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[(0,o._)("div",L,[(0,o.Wm)(de,{action:a.action},null,8,["action"])])])),_:2},1024),(0,o.Wm)(le,null,{default:(0,o.w5)((()=>[(0,o.Wm)(me,{actionData:a.data.data,actionName:a.data.name,"use-color":!1},null,8,["actionData","actionName"])])),_:2},1024)])),_:2},1032,["props"])),[[s.F8,t.expand]]))),128))])),_:1},8,["pagination","rows","columns","row-key","loading","rows-per-page-options","dense","onRequest"])]),(0,o._)("div",F,[(0,o._)("div",H,[(0,o._)("small",null,"Rows per page: "+(0,n.zw)(e.paginationSettings.rowsPerPage),1),(0,o.Wm)(X,{name:e.showPagesSizes?"expand_more":"expand_less",size:"sm",onClick:e.switchPageSelector},{default:(0,o.w5)((()=>[(0,o.Wm)(ae,{ref:"page_size_selector","transition-show":"scale","transition-hide":"scale"},{default:(0,o.w5)((()=>[(0,o.Wm)(fe,null,{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.pageSizeOptions,(t=>((0,o.wg)(),(0,o.j4)(ve,{key:t,class:"cursor-pointer"},{default:(0,o.w5)((()=>[(0,o.Wm)(ge,{onClick:a=>{e.changePageSize(t),e.hidePopup(e.$refs.page_size_selector)}},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t),1)])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1},512)])),_:1},8,["name","onClick"])]),(0,o.Wm)(he),(0,o._)("div",V,[(0,o.Wm)(G,{size:"sm",color:"primary",outline:"",disable:1===e.paginationSettings.page,onClick:t[18]||(t[18]=t=>e.moveTablePage(e.$refs.main_table,"first"))},{default:(0,o.w5)((()=>[U])),_:1},8,["disable"]),(0,o.Wm)(G,{size:"sm",color:"primary",outline:"",class:"q-mx-sm",disable:1===e.paginationSettings.page,onClick:t[19]||(t[19]=t=>e.moveTablePage(e.$refs.main_table,"prev"))},{default:(0,o.w5)((()=>[(0,o.Wm)(X,{name:"chevron_left",size:"xs"})])),_:1},8,["disable"]),(0,o._)("small",null," Page "+(0,n.zw)(e.paginationSettings.page)+" "+(0,n.zw)(e.showPaginationExtras&&!1===e.enableLiveTransactions?0===e.lastPage?" of 1":` of ${e.lastPage}`:""),1),(0,o.Wm)(G,{size:"sm",color:"primary",outline:"",class:"q-mx-sm",disable:e.paginationSettings.page===e.lastPage||e.totalRowse.moveTablePage(e.$refs.main_table,"next"))},{default:(0,o.w5)((()=>[(0,o.Wm)(X,{name:"chevron_right",size:"xs"})])),_:1},8,["disable"]),e.showPaginationExtras&&!1===e.enableLiveTransactions?((0,o.wg)(),(0,o.j4)(G,{key:0,size:"sm",color:"primary",outline:"",disable:e.paginationSettings.page===e.lastPage||0===e.lastPage,onClick:t[21]||(t[21]=t=>e.moveTablePage(e.$refs.main_table,"last"))},{default:(0,o.w5)((()=>[E])),_:1},8,["disable"])):(0,o.kq)("",!0)])])])])}var Q=a(60499),Y=a(97114),$=a(53779),G=a(55298),K=a(49815),J=a(52783);const X=(0,o.Uk)("Searching..."),ee=["src"];function te(e,t,a,i,r,c){const l=(0,o.up)("q-icon"),u=(0,o.up)("q-item-label"),d=(0,o.up)("q-item-section"),m=(0,o.up)("q-item"),p=(0,o.up)("q-avatar"),g=(0,o.up)("q-select");return(0,o.wg)(),(0,o.j4)(g,{class:"search-input",borderless:"",dense:"",filled:"","use-input":"","hide-selected":"","fill-input":"","hide-bottom-space":"",placeholder:"token",loading:e.isLoading,"model-value":e.inputValue,options:e.options,onInputValue:t[0]||(t[0]=t=>e.inputValue=t),onKeyup:t[1]||(t[1]=(0,s.D2)((t=>e.handleSelected(e.inputValue)),["enter"]))},{prepend:(0,o.w5)((()=>[(0,o.Wm)(l,{class:"rotate-90",name:"search",size:"20px"})])),"no-option":(0,o.w5)((()=>[(0,o.Wm)(m,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d,{class:"text-center"},{default:(0,o.w5)((()=>[e.isLoading?((0,o.wg)(),(0,o.j4)(u,{key:0},{default:(0,o.w5)((()=>[X])),_:1})):((0,o.wg)(),(0,o.j4)(u,{key:1},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e.inputValue?"Nothing found":"Search for token symbol or contract"),1)])),_:1}))])),_:1})])),_:1})])),option:(0,o.w5)((t=>[(0,o.Wm)(m,(0,o.dG)(t.itemProps,{exact:"exact",clickable:"clickable",onClick:a=>e.handleSelected(t.opt)}),{default:(0,o.w5)((()=>[(0,o.Wm)(d,{class:"items-center",avatar:""},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{size:"24px"},{default:(0,o.w5)((()=>{var e;return[(0,o._)("img",{src:null!==(e=t.opt.logo)&&void 0!==e?e:"~src/assets/token_placeholder.svg"},null,8,ee)]})),_:2},1024)])),_:2},1024),(0,o.Wm)(d,null,{default:(0,o.w5)((()=>[(0,o.Wm)(u,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t.opt.symbol)+" ("+(0,n.zw)(t.opt.contract)+")",1)])),_:2},1024)])),_:2},1024)])),_:2},1040,["onClick"])])),_:1},8,["loading","model-value","options"])}var ae=a(21889),oe=a(19302),ne=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const se=(0,o.aZ)({name:"TokenSearch",props:{modelValue:{type:Object}},emits:["update:modelValue"],setup(e,t){const a=(0,oe.Z)(),n=(0,Q.iH)(""),s=(0,Q.iH)([]),i=(0,Q.iH)(!1);function r(e){return ne(this,void 0,void 0,(function*(){try{const t=(yield ae.h.getTokens()).filter((t=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())));return t}catch(t){return}}))}function c(e){return ne(this,void 0,void 0,(function*(){if(!n.value)return;if("string"!==typeof e)return void t.emit("update:modelValue",e);const o=yield r(e.toLowerCase());0!==o.length?t.emit("update:modelValue",o[0]):a.notify(`account ${n.value} not found!`)}))}return(0,o.YP)(n,(()=>ne(this,void 0,void 0,(function*(){if(""===n.value)return void(s.value=[]);if("string"!==typeof n.value)return void(s.value=[]);i.value=!0;const e=n.value.toLowerCase();yield Promise.all([r(e)]).then((e=>{s.value=[].concat.apply([],e)})),i.value=!1})))),{inputValue:n,options:s,isLoading:i,handleSelected:c}}});var ie=a(11639),re=a(32259),ce=a(22857),le=a(490),ue=a(76749),de=a(33115),me=a(61357),pe=a(69984),ge=a.n(pe);const ve=(0,ie.Z)(se,[["render",te]]),fe=ve;ge()(se,"components",{QSelect:re.Z,QIcon:ce.Z,QItem:le.Z,QItemSection:ue.Z,QItemLabel:de.Z,QAvatar:me.Z});var he=a(18910),we=a(30229),ye=a(17779),be=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const _e=(0,we.z)(),ke=2e3,xe=[10,20,50,100,200],je=()=>{const e=localStorage.getItem("txRowsPerPage");let t=parseInt(e);return isNaN(t)&&(t=xe[0],localStorage.setItem("txRowsPerPage",t.toString())),t},De=(0,o.aZ)({name:"TransactionsTable",components:{DateField:Y.Z,AccountFormat:$.Z,ActionFormat:G.Z,DataFormat:K.Z,AccountSearch:J.Z,TokenSearch:fe},props:{account:{type:String||null,required:!1,default:null},actions:{type:Object,required:!1,default:null},showTransferLabel:{type:Boolean,default:!1},toggleEnabled:{type:Boolean,default:!0},filtersEnabled:{type:Boolean,default:!0},showPaginationExtras:{type:Boolean,default:!1}},setup(e){const t=(0,he.yj)(),a=(0,he.tv)(),{account:n,actions:s}=(0,Q.BK)(e),i=[{name:"transaction",required:!0,label:"TRANSACTION",align:"left",field:"transaction",sortable:!0},{name:"timestamp",required:!0,align:"left",label:"TIMESTAMP",field:"timestamp",sortable:!0},{name:"action",required:!0,align:"left",label:"ACTION",field:"action",sortable:!0},{name:"data",required:!0,align:"left",label:"DATA",field:"data"}],r=(0,Q.iH)([]),c=(0,Q.iH)(0),l=(0,Q.iH)([]),u=(0,Q.iH)(!1),d=(0,Q.iH)(!1),m=()=>{d.value=!d.value},p=e=>be(this,void 0,void 0,(function*(){f.value.rowsPerPage=e,f.value.page=1,yield V({pagination:f.value}),localStorage.setItem("txRowsPerPage",e.toString())})),g=(e,t)=>be(this,void 0,void 0,(function*(){f.value.page=e,f.value.rowsPerPage=t,yield V({pagination:f.value})})),v=(0,o.Fl)((()=>t.query["page"]||`1,${je()}`)),f=(0,Q.iH)({sortBy:"timestamp",descending:!0,page:1,rowsPerPage:je(),rowsNumber:1e4}),h=(0,Q.iH)(e.toggleEnabled),w=(0,Q.iH)(0),y=(0,Q.iH)(""),b=(0,Q.iH)(""),_=(0,o.Fl)((()=>{if(b.value){const e=b.value.split(",");return e.length>1?e[0]+"...":e[0]}return""})),k=(0,Q.iH)(_e.getFiltersSupported("notified")),x=(0,Q.iH)(""),j=(0,o.Fl)((()=>{if(x.value){const e=x.value.split(",");return e.length>1?e[0]+"...":e[0]}return""})),D=(0,Q.iH)(!1),T=(0,Q.iH)(null),S=(0,o.Fl)((()=>{var e,t;return T.value&&null!==(t=null===(e=T.value)||void 0===e?void 0:e.symbol)&&void 0!==t?t:""}));ae.h.getTokens().then((e=>{e.length>0&&(D.value=!0)}));const P=(new Date).toISOString(),A=(0,Q.iH)(""),q=(0,Q.iH)(P),N=(0,o.Fl)((()=>{try{if(""!==A.value||q.value!==P)return""===A.value?"Until "+q.value.split("T")[0]:q.value===P?"Since "+A.value.split("T")[0]:A.value.split("T")[0]+" - "+q.value.split("T")[0]}catch(e){ye.error(e)}return""})),I=(0,Q.iH)(null),z=(0,Q.iH)("true"===localStorage.getItem("showAge")),C=(0,o.Fl)((()=>null!==n.value&&n.value.length>12)),M=(0,o.Fl)((()=>C.value?"Actions":"Latest Transactions")),R=(0,o.Fl)((()=>{const e=f.value.rowsPerPage,t=c.value;return Math.ceil(t/e)})),Z=(0,o.Fl)((()=>null!==s.value)),O=()=>{x.value="",b.value="",T.value=null,A.value="",q.value=P},W=(0,o.Fl)((()=>j.value+_.value+N.value+S.value)),L=()=>{l.value=r.value},F=()=>be(this,void 0,void 0,(function*(){var e,t;let a;if(C.value)a=(yield ae.h.getTransaction(n.value)).actions;else if(Z.value)a=s.value;else{const o=f.value.page;let s=f.value.rowsPerPage,i=null!==(e=x.value)&&void 0!==e?e:"",l="",u="";q.value!==P&&(u=new Date(q.value).toISOString()),""!==A.value&&(l=new Date(A.value).toISOString());const d=f.value.descending?"desc":"asc";let m=T.value?{"act.account":T.value.contract}:null;b.value&&(m=m?Object.assign(Object.assign({},m),{"act.name":b.value}):{"act.name":b.value}),o>1&&0===w.value&&(w.value=null===(t=r.value[0])||void 0===t?void 0:t.action.global_sequence),w.value>0&&(m=m?Object.assign(Object.assign({},m),{global_sequence:"0-"+w.value.toString()}):{global_sequence:"0-"+w.value.toString()}),T.value&&(s=100);const p=yield ae.h.getTransactions({page:o,limit:s,account:n.value,notified:i,before:u,after:l,sort:d,extras:m});a=p.data.actions,c.value=p.data.total.value}a&&(T.value&&(a=a.filter((e=>{var t;return null===(t=e.act.data.quantity)||void 0===t?void 0:t.includes(T.value.symbol)})),a=a.slice(0,f.value.rowsPerPage)),r.value=a.map((e=>({name:e.trx_id,transaction:{id:e.trx_id,type:"transaction"},timestamp:e["@timestamp"]||e.timestamp,action:e,data:Z.value?{data:e.data,name:e.account}:{data:e.act.data,name:e.act.name},actions:[{name:e.trx_id,transaction:{id:e.trx_id,type:"transaction"},timestamp:e["@timestamp"],action:e,data:Z.value?{data:e.data,name:e.account}:{data:e.act.data,name:e.act.name}}]})))),L()})),H=e=>be(this,void 0,void 0,(function*(){u.value=!0;const{page:t,rowsPerPage:a,sortBy:o,descending:n}=e.pagination;f.value.page=t,f.value.rowsPerPage=a,f.value.sortBy=o,f.value.descending=n,yield F(),u.value=!1})),V=e=>be(this,void 0,void 0,(function*(){const{page:o,rowsPerPage:n}=e.pagination;yield a.push({hash:window.location.hash,query:Object.assign(Object.assign({},t.query),{page:`${o},${n}`})})})),U=(e,t)=>be(this,void 0,void 0,(function*(){e&&(f.value.page=Number(e)),t&&(f.value.rowsPerPage=Number(t)),yield H({pagination:f.value})})),E=e=>e.length>0&&e.split("\n").length>1,B=()=>{w.value=0,clearInterval(I.value),I.value=window.setInterval((()=>{F()}),ke)},Y=()=>{clearInterval(I.value)};(0,o.Jd)((()=>{Y()})),(0,o.YP)([n,s],(()=>be(this,void 0,void 0,(function*(){F(),yield g(1,f.value.rowsPerPage)})))),(0,o.YP)(W,(()=>be(this,void 0,void 0,(function*(){1!==f.value.page?yield g(1,f.value.rowsPerPage):(h.value=!1,yield F())})))),(0,o.YP)(z,(e=>{localStorage.setItem("showAge",e?"true":"false")}));const $=()=>be(this,void 0,void 0,(function*(){h.value?(O(),1!==f.value.page&&(yield g(1,f.value.rowsPerPage)),B()):Y()}));(0,o.YP)(h,(()=>{$()})),(0,o.bv)((()=>{$()})),(0,o.YP)((()=>v.value),(()=>be(this,void 0,void 0,(function*(){let e=v.value,t=1,a=je();if("number"===typeof e)t=e;else if("string"===typeof e){const[o,n]=e.split(",");t=Number(o),a=Number(n)}1!==t&&(h.value=!1),yield U(t,a)}))),{immediate:!0});const G=e=>{const t=e;t.toggle()},K=e=>{const t=e;t.hide()},J=(e,t)=>{const a=e;"next"===t?a.nextPage():"prev"===t?a.prevPage():"first"===t?a.firstPage():"last"===t&&g(R.value,f.value.rowsPerPage)};return{columns:i,rows:r,filteredRows:l,loading:u,showPagesSizes:d,paginationSettings:f,fromDateModel:A,toDateModel:q,dateDisplay:N,actionsDisplay:_,actionsModel:b,auxModel:y,accountsDisplay:j,accountsModel:x,showAccountFilter:k,tokenDisplay:S,tokenModel:T,showTokenFilter:D,interval:I,showAge:z,tableTitle:M,lastPage:R,hasActions:Z,filter:W,onRequest:H,loadTableData:F,checkIsMultiLine:E,filterRows:L,totalRows:c,pageSizeOptions:xe,changePageSize:p,switchPageSelector:m,applyPagination:U,changePagination:g,onPaginationChange:V,clearFilters:O,enableLiveTransactions:h,toggleDropdown:G,hidePopup:K,moveTablePage:J}}});var Te=a(23175),Se=a(68879),Pe=a(18479),Ae=a(13119),qe=a(52765),Ne=a(14351),Ie=a(86770),ze=a(50926),Ce=a(82429),Me=a(31233),Re=a(21682),Ze=a(67220),Oe=a(13246),We=a(90136),Le=a(77741),Fe=a(62146);const He=(0,ie.Z)(De,[["render",B]]),Ve=He;ge()(De,"components",{QToggle:Te.Z,QBtn:Se.Z,QBtnDropdown:Pe.Z,QInput:Ae.Z,QIcon:ce.Z,QPopupProxy:qe.Z,QDate:Ne.Z,QTime:Ie.Z,QSeparator:ze.Z,QTable:Ce.Z,QTr:Me.Z,QTh:Re.Z,QTd:Ze.Z,QList:Oe.Z,QItem:le.Z,QItemSection:ue.Z,QSpace:We.Z,QColor:Le.Z}),ge()(De,"directives",{ClosePopup:Fe.Z})},1546:(e,t,a)=>{"use strict";a.d(t,{Z:()=>S});var o=a(59835),n=a(86970);const s={class:"Card"},i={class:"row"},r={class:"col-12"},c={class:"row"},l={class:"text-h6"},u={class:"row"},d={class:"col-12"},m={class:"row"};function p(e,t,a,p,g,v){const f=(0,o.up)("q-card-section"),h=(0,o.up)("q-btn"),w=(0,o.up)("q-card-actions"),y=(0,o.up)("q-dialog"),b=(0,o.Q2)("close-popup");return(0,o.wg)(),(0,o.j4)(y,null,{default:(0,o.w5)((()=>[(0,o._)("div",s,[e.Id?((0,o.wg)(),(0,o.j4)(f,{key:0},{default:(0,o.w5)((()=>[(0,o._)("div",i,[(0,o._)("div",r,[(0,o._)("div",c,[(0,o._)("div",l,(0,n.zw)(e.msg),1)]),(0,o._)("div",{class:"row ellipsis-overflow q-pt-lg q-pl-md",onClick:t[0]||(t[0]=(...t)=>e.navToTransaction&&e.navToTransaction(...t))},(0,n.zw)(e.Id),1)])])])),_:1})):((0,o.wg)(),(0,o.j4)(f,{key:1},{default:(0,o.w5)((()=>[(0,o._)("div",u,[(0,o._)("div",d,[(0,o._)("div",m,"Transaction Failed: "+(0,n.zw)(e.transactionE),1)])])])),_:1})),(0,o.Wm)(w,{class:"text-primary",align:"right"},{default:(0,o.w5)((()=>[(0,o.wy)((0,o.Wm)(h,{flat:"",label:"Close","text-color":"grey-3",onClick:e.reset},null,8,["onClick"]),[[b]]),e.Id?((0,o.wg)(),(0,o.j4)(h,{key:0,flat:"",label:"View transaction","text-color":"grey-3",onClick:e.navToTransaction},null,8,["onClick"])):(0,o.kq)("",!0)])),_:1})])])),_:1})}var g=a(78504),v=a(18910),f=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const h=(0,o.aZ)({name:"ViewTransaction",props:{message:{type:String,required:!0}},setup(e){const t=(0,g.oR)(),a=(0,v.tv)(),n=(0,o.Fl)((()=>e.message)),s=(0,o.Fl)((()=>t.state.account.TransactionId)),i=(0,o.Fl)((()=>t.state.account.TransactionError)),r=()=>{t.dispatch("account/resetTransaction")},c=()=>f(this,void 0,void 0,(function*(){yield a.push({name:"transaction",params:{transaction:s.value}}),a.go(0),t.dispatch("account/resetTransaction")}));return{msg:n,Id:s,transactionE:i,reset:r,navToTransaction:c}}});var w=a(11639),y=a(87743),b=a(63190),_=a(11821),k=a(68879),x=a(62146),j=a(69984),D=a.n(j);const T=(0,w.Z)(h,[["render",p],["__scopeId","data-v-b9294dd2"]]),S=T;D()(h,"components",{QDialog:y.Z,QCardSection:b.Z,QCardActions:_.Z,QBtn:k.Z}),D()(h,"directives",{ClosePopup:x.Z})},79870:(e,t,a)=>{"use strict";a.d(t,{Z:()=>q});var o=a(59835),n=a(86970);const s={class:"modal-header-container"},i=(0,o._)("h3",{class:"modal-header"},"Attach an account",-1),r=["src"],c=(0,o.Uk)("Get app");function l(e,t,a,l,u,d){const m=(0,o.up)("q-icon"),p=(0,o.up)("q-separator"),g=(0,o.up)("q-item-section"),v=(0,o.up)("q-spinner"),f=(0,o.up)("q-tooltip"),h=(0,o.up)("q-btn"),w=(0,o.up)("q-item"),y=(0,o.up)("q-list"),b=(0,o.up)("q-dialog"),_=(0,o.Q2)("ripple");return(0,o.wg)(),(0,o.j4)(b,{ref:"walletDialog",class:"modal-container"},{default:(0,o.w5)((()=>[(0,o._)("div",s,[(0,o.Wm)(m,{name:"add_circle_outline",color:"white",size:e.iconSize},null,8,["size"]),i]),(0,o.Wm)(p),(0,o.Wm)(y,null,{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.$ual.getAuthenticators().availableAuthenticators,((t,a)=>(0,o.wy)(((0,o.wg)(),(0,o.j4)(w,{key:t.getStyle().text,style:(0,n.j5)({background:t.getStyle().background,color:t.getStyle().textColor})},{default:(0,o.w5)((()=>[(0,o.Wm)(g,{class:"cursor-pointer",avatar:"",onClick:t=>e.onLogin(a)},{default:(0,o.w5)((()=>[(0,o._)("img",{src:t.getStyle().icon,width:"30"},null,8,r)])),_:2},1032,["onClick"]),(0,o.Wm)(g,{class:"cursor-pointer",onClick:t=>e.onLogin(a)},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(t.getStyle().text),1)])),_:2},1032,["onClick"]),(0,o.Wm)(g,{class:"flex",avatar:""},{default:(0,o.w5)((()=>[e.loading===t.getStyle().text?((0,o.wg)(),(0,o.j4)(v,{key:0,color:t.getStyle().textColor,size:"2em"},null,8,["color"])):((0,o.wg)(),(0,o.j4)(h,{key:1,color:t.getStyle().textColor,icon:"get_app",target:"_blank",dense:"",flat:"",size:"12px",onClick:a=>e.openUrl(t.getOnboardingLink())},{default:(0,o.w5)((()=>[(0,o.Wm)(f,null,{default:(0,o.w5)((()=>[c])),_:1})])),_:2},1032,["color","onClick"]))])),_:2},1024)])),_:2},1032,["style"])),[[_]]))),128)),e.error?((0,o.wg)(),(0,o.j4)(w,{key:0,active:!!e.error,"active-class":"bg-red-1 text-grey-8"},{default:(0,o.w5)((()=>[(0,o.Wm)(g,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(e.error),1)])),_:1})])),_:1},8,["active"])):(0,o.kq)("",!0)])),_:1})])),_:1},512)}var u=a(60499),d=a(84284),m=a(78504),p=a(19302),g=function(e,t,a,o){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,s){function i(e){try{c(o.next(e))}catch(t){s(t)}}function r(e){try{c(o["throw"](e))}catch(t){s(t)}}function c(e){e.done?a(e.value):n(e.value).then(i,r)}c((o=o.apply(e,t||[])).next())}))};const v=(0,o.aZ)({name:"WalletModal",setup(){const e=(0,d.getAuthenticators)(),t=(0,p.Z)(),a=(0,m.oR)(),n=(0,u.iH)(null),s=(0,o.Fl)((()=>a.state.account.accountName)),i={},r=(0,u.iH)(null),c=(0,o.Fl)((()=>t.screen.width>420?"3em":"1.5em")),l=t=>g(this,void 0,void 0,(function*(){const o=e[t];n.value=null;try{yield a.dispatch("account/login",{account:s.value,authenticator:o})}catch(i){n.value=i}r.value.hide()})),v=e=>window.open(e,"_blank");return{error:n,loading:i,account:s,walletDialog:r,onLogin:l,openUrl:v,iconSize:c}}});var f=a(11639),h=a(87743),w=a(22857),y=a(50926),b=a(13246),_=a(490),k=a(76749),x=a(63940),j=a(68879),D=a(46858),T=a(51722),S=a(69984),P=a.n(S);const A=(0,f.Z)(v,[["render",l]]),q=A;P()(v,"components",{QDialog:h.Z,QIcon:w.Z,QSeparator:y.Z,QList:b.Z,QItem:_.Z,QItemSection:k.Z,QSpinner:x.Z,QBtn:j.Z,QTooltip:D.Z}),P()(v,"directives",{Ripple:T.Z})},53779:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var o=a(59835),n=a(86970);const s=["href"];function i(e,t,a,i,r,c){return(0,o.wg)(),(0,o.iD)("a",{class:"hover-dec",href:"/"+e.type+"/"+e.accAccount},(0,n.zw)("transaction"===e.type?e.accAccount.slice(0,8):e.accAccount),9,s)}const r=(0,o.aZ)({name:"AccountFormat",props:{account:{type:String,default:()=>""},type:{type:String,required:!0}},setup(e){const t=(0,o.Fl)((()=>e.account));return{accType:e.type,accAccount:t}}});var c=a(11639);const l=(0,c.Z)(r,[["render",i],["__scopeId","data-v-a9e4aae2"]]),u=l},55298:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var o=a(59835),n=a(86970);const s={class:"action-container"},i={class:"action action-general"},r=(0,o._)("span",{class:"inline"}," → ",-1),c={key:0,class:"action action-transfer"};function l(e,t,a,l,u,d){const m=(0,o.up)("AccountFormat");return(0,o.wg)(),(0,o.iD)("div",s,[(0,o._)("div",i,[(0,o.Wm)(m,{account:e.tx.act.account,type:"account"},null,8,["account"]),r,(0,o._)("span",null,(0,n.zw)(e.tx.act.name),1)]),e.divContent?((0,o.wg)(),(0,o.iD)("div",c,(0,n.zw)(e.divContent),1)):(0,o.kq)("",!0)])}var u=a(60499),d=a(53779);const m=(0,o.aZ)({name:"ActionFormat",components:{AccountFormat:d.Z},props:{action:{type:Object,required:!0},showTransferLabel:{type:Boolean,default:!1},account:{type:String||null,required:!1,default:null}},setup(e){const t=(0,u.iH)(""),a=(0,u.iH)(""),n=(0,u.Vh)(e,"action"),s=(0,u.Vh)(e,"showTransferLabel"),i=(0,u.Vh)(e,"account");return(0,o.bv)((()=>{const e=n.value.act.data,t="transfer"===n.value.act.name;s.value&&i.value&&t&&(e.from===i.value?a.value="SEND":e.to===i.value&&(a.value="RECEIVE"))})),{divClass:t,divContent:a,tx:n}}});var p=a(11639);const g=(0,p.Z)(m,[["render",l]]),v=g},49815:(e,t,a)=>{"use strict";a.d(t,{Z:()=>H});var o=a(59835),n=a(86970);const s={key:0,ref:"dataBox",class:"row transfer-data"},i={class:"col-12"},r={class:"text-bold"},c={class:"text-bold"},l=(0,o.Uk)(" → "),u=(0,o.Uk)(" "),d={class:"text-bold"},m={class:"col-12"},p={class:"text-weight-bold"},g=(0,o.Uk)(" memo: "),v={key:0,class:"text-weight-regular"},f={key:1,class:"text-weight-regular"},h={key:1,ref:"dataBox",class:"row"};function w(e,t,a,w,y,b){const _=(0,o.up)("AccountFormat"),k=(0,o.up)("PrettyPayload"),x=(0,o.up)("q-btn");return(0,o.wg)(),(0,o.iD)("div",{class:(0,n.C_)(["relative-position overflow-hidden",{"div-compressed":!e.showOverflow}])},["transfer"===e.actionName?((0,o.wg)(),(0,o.iD)("div",s,[(0,o._)("div",i,[(0,o._)("span",r,[(0,o.Wm)(_,{account:e.transferData.from,type:"account"},null,8,["account"])]),(0,o._)("span",c,[l,(0,o.Wm)(_,{account:e.transferData.to,type:"account"},{default:(0,o.w5)((()=>[u])),_:1},8,["account"])]),(0,o._)("span",d,(0,n.zw)(" "+e.transferData.quantity),1)]),(0,o._)("div",m,[(0,o._)("div",p,[g,e.transferData.memo?((0,o.wg)(),(0,o.iD)("span",v,(0,n.zw)(e.transferData.memo),1)):((0,o.wg)(),(0,o.iD)("span",f,"n/a"))])])],512)):((0,o.wg)(),(0,o.iD)("div",h,[(0,o.Wm)(k,{depth:0,payload:e.formatGeneralData(e.actionData)},null,8,["payload"])],512)),e.isOverflowing?((0,o.wg)(),(0,o.j4)(x,{key:2,flat:"",size:"xs",icon:e.showOverflow?"expand_less":"expand_more",class:(0,n.C_)({"q-btn--use-color":e.useColor,"full-width":e.showOverflow,"q-btn--floating":!e.showOverflow}),onClick:e.toggleOverflow},null,8,["icon","class","onClick"])):(0,o.kq)("",!0)],2)}var y=a(60499),b=a(53779);const _={class:"text-bold"},k={key:0},x={key:1,class:"payload__list"},j={class:"text-bold"},D={class:"text-bold"},T=(0,o.Uk)(" "),S={key:1};function P(e,t,a,s,i,r){const c=(0,o.up)("PrettyPayload",!0),l=(0,o.up)("AccountFormat");return(0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.list,((t,a)=>((0,o.wg)(),(0,o.iD)("div",{key:a,class:(0,n.C_)(e.classObject)},[Array.isArray(e.payload[t])?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[(0,o._)("span",_,(0,n.zw)(t)+":",1),e.isArrayOfStringsOrNumbers(e.payload[t])?((0,o.wg)(),(0,o.iD)("span",k,(0,n.zw)(0===e.payload[t].length?" [ ]":[...e.payload[t]]),1)):((0,o.wg)(),(0,o.iD)("ul",x,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.payload[t],((t,a)=>((0,o.wg)(),(0,o.iD)("li",{key:a,class:"payload__list-item"},[(0,o.Wm)(c,{depth:e.depth+1,payload:t},null,8,["depth","payload"])])))),128))]))],64)):"object"===typeof e.payload[t]?((0,o.wg)(),(0,o.iD)(o.HY,{key:1},[(0,o._)("div",j,(0,n.zw)(t+":"),1),(0,o.Wm)(c,{depth:e.depth+1,payload:e.payload[t]},null,8,["depth","payload"])],64)):((0,o.wg)(),(0,o.iD)(o.HY,{key:2},[(0,o._)("span",D,(0,n.zw)(t)+": ",1),e.isAccount(t)?((0,o.wg)(),(0,o.j4)(l,{key:0,account:e.payload[t],type:"account"},{default:(0,o.w5)((()=>[T])),_:2},1032,["account"])):((0,o.wg)(),(0,o.iD)("span",S,(0,n.zw)(e.payload[t]),1))],64))],2)))),128)}const A=(0,o.aZ)({name:"PrettyPayload",components:{AccountFormat:b.Z},props:{depth:{type:Number,required:!0},payload:{type:Object,required:!1}},setup(e){const{depth:t,payload:a}=(0,y.BK)(e),n=null===a.value?"null":typeof a.value,s=(0,o.Fl)((()=>{if("object"===n)return Object.keys(a.value)}));function i(e){const t=["account","to","from","owner","account_name","voter"];return t.includes(e)}const r=(0,o.Fl)((()=>({payload:!0,payload__indent:t.value>0})));function c(e){return Array.isArray(e)&&e.every((e=>"string"===typeof e||"number"===typeof e))}return{type:n,list:s,classObject:r,isAccount:i,isArrayOfStringsOrNumbers:c}}});var q=a(11639);const N=(0,q.Z)(A,[["render",P],["__scopeId","data-v-e2f1df72"]]),I=N;var z=a(61957);const C=(0,o.aZ)({name:"DataFormat",components:{AccountFormat:b.Z,PrettyPayload:I},props:{actionName:{type:String,required:!0},actionData:{type:Object,required:!0},useColor:{type:Boolean,required:!0}},setup(e){const{actionName:t,actionData:a}=(0,y.BK)(e),n=(0,y.iH)(null),s=(0,y.iH)(!1),i=(0,y.iH)(!1),r=(0,o.Fl)((()=>a.value)),c=(0,o.Fl)((()=>{var e,t;return null!==(t=null===(e=n.value)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0}));let l=(0,y.iH)(null);const u=110,d=40,m=`calc(${u}px - ${d}px)`;function p(e,t){if("object"!==typeof e||"object"!==typeof t)return!1;const a=e,o=t;for(const n of Object.keys(e))if(a[n]){if(typeof a[n]!==typeof o[n])return!1;if("object"===typeof a[n]){if(!p(a[n],o[n]))return!1}else if(a[n]!==o[n])return!1}return!0}function g(e){return null===l.value?(l.value=e,l.value):p((0,y.IU)(l.value),e)?l.value:e}function v(){var e,t;i.value=(null!==(t=null===(e=n.value)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)>u}function f(){s.value=!s.value}return(0,o.YP)([a,c],(()=>{v()})),(0,o.ic)((()=>{v()})),{currentData:l,transferData:r,name:t,formatGeneralData:g,dataBox:n,isOverflowing:i,showOverflow:s,toggleOverflow:f,maxHeightStyle:m}}}),M=()=>{(0,z.sj)((e=>({c7e0c316:e.maxHeightStyle})))},R=C.setup;C.setup=R?(e,t)=>(M(),R(e,t)):M;const Z=C;var O=a(68879),W=a(69984),L=a.n(W);const F=(0,q.Z)(Z,[["render",w],["__scopeId","data-v-7486e4c2"]]),H=F;L()(Z,"components",{QBtn:O.Z})},46700:(e,t,a)=>{var o={"./af":73902,"./af.js":73902,"./ar":36314,"./ar-dz":75666,"./ar-dz.js":75666,"./ar-kw":76591,"./ar-kw.js":76591,"./ar-ly":7900,"./ar-ly.js":7900,"./ar-ma":5667,"./ar-ma.js":5667,"./ar-sa":36335,"./ar-sa.js":36335,"./ar-tn":86916,"./ar-tn.js":86916,"./ar.js":36314,"./az":1699,"./az.js":1699,"./be":98988,"./be.js":98988,"./bg":97437,"./bg.js":97437,"./bm":97947,"./bm.js":97947,"./bn":12851,"./bn-bd":34905,"./bn-bd.js":34905,"./bn.js":12851,"./bo":97346,"./bo.js":97346,"./br":1711,"./br.js":1711,"./bs":63706,"./bs.js":63706,"./ca":70112,"./ca.js":70112,"./cs":36406,"./cs.js":36406,"./cv":41853,"./cv.js":41853,"./cy":39766,"./cy.js":39766,"./da":36836,"./da.js":36836,"./de":59320,"./de-at":14904,"./de-at.js":14904,"./de-ch":26710,"./de-ch.js":26710,"./de.js":59320,"./dv":73274,"./dv.js":73274,"./el":80286,"./el.js":80286,"./en-au":30143,"./en-au.js":30143,"./en-ca":237,"./en-ca.js":237,"./en-gb":82428,"./en-gb.js":82428,"./en-ie":53349,"./en-ie.js":53349,"./en-il":13764,"./en-il.js":13764,"./en-in":67809,"./en-in.js":67809,"./en-nz":59851,"./en-nz.js":59851,"./en-sg":95594,"./en-sg.js":95594,"./eo":4483,"./eo.js":4483,"./es":62184,"./es-do":25777,"./es-do.js":25777,"./es-mx":89356,"./es-mx.js":89356,"./es-us":68496,"./es-us.js":68496,"./es.js":62184,"./et":97578,"./et.js":97578,"./eu":2092,"./eu.js":2092,"./fa":15927,"./fa.js":15927,"./fi":50171,"./fi.js":50171,"./fil":82416,"./fil.js":82416,"./fo":89937,"./fo.js":89937,"./fr":55172,"./fr-ca":77495,"./fr-ca.js":77495,"./fr-ch":97541,"./fr-ch.js":97541,"./fr.js":55172,"./fy":93766,"./fy.js":93766,"./ga":66361,"./ga.js":66361,"./gd":2282,"./gd.js":2282,"./gl":52630,"./gl.js":52630,"./gom-deva":80680,"./gom-deva.js":80680,"./gom-latn":66220,"./gom-latn.js":66220,"./gu":57506,"./gu.js":57506,"./he":5540,"./he.js":5540,"./hi":46067,"./hi.js":46067,"./hr":79669,"./hr.js":79669,"./hu":13396,"./hu.js":13396,"./hy-am":36678,"./hy-am.js":36678,"./id":44812,"./id.js":44812,"./is":94193,"./is.js":94193,"./it":67863,"./it-ch":959,"./it-ch.js":959,"./it.js":67863,"./ja":41809,"./ja.js":41809,"./jv":28657,"./jv.js":28657,"./ka":33290,"./ka.js":33290,"./kk":98418,"./kk.js":98418,"./km":77687,"./km.js":77687,"./kn":21375,"./kn.js":21375,"./ko":32641,"./ko.js":32641,"./ku":83518,"./ku.js":83518,"./ky":85459,"./ky.js":85459,"./lb":91978,"./lb.js":91978,"./lo":86915,"./lo.js":86915,"./lt":8948,"./lt.js":8948,"./lv":12548,"./lv.js":12548,"./me":98608,"./me.js":98608,"./mi":50333,"./mi.js":50333,"./mk":76611,"./mk.js":76611,"./ml":10999,"./ml.js":10999,"./mn":54098,"./mn.js":54098,"./mr":86111,"./mr.js":86111,"./ms":73717,"./ms-my":90265,"./ms-my.js":90265,"./ms.js":73717,"./mt":28980,"./mt.js":28980,"./my":96895,"./my.js":96895,"./nb":15348,"./nb.js":15348,"./ne":31493,"./ne.js":31493,"./nl":34419,"./nl-be":85576,"./nl-be.js":85576,"./nl.js":34419,"./nn":46907,"./nn.js":46907,"./oc-lnc":12321,"./oc-lnc.js":12321,"./pa-in":89239,"./pa-in.js":89239,"./pl":97627,"./pl.js":97627,"./pt":15703,"./pt-br":91623,"./pt-br.js":91623,"./pt.js":15703,"./ro":22747,"./ro.js":22747,"./ru":64420,"./ru.js":64420,"./sd":52148,"./sd.js":52148,"./se":12461,"./se.js":12461,"./si":12783,"./si.js":12783,"./sk":93306,"./sk.js":93306,"./sl":341,"./sl.js":341,"./sq":8608,"./sq.js":8608,"./sr":72451,"./sr-cyrl":73371,"./sr-cyrl.js":73371,"./sr.js":72451,"./ss":8812,"./ss.js":8812,"./sv":53820,"./sv.js":53820,"./sw":43615,"./sw.js":43615,"./ta":12869,"./ta.js":12869,"./te":12044,"./te.js":12044,"./tet":65861,"./tet.js":65861,"./tg":66999,"./tg.js":66999,"./th":20926,"./th.js":20926,"./tk":97443,"./tk.js":97443,"./tl-ph":59786,"./tl-ph.js":59786,"./tlh":92812,"./tlh.js":92812,"./tr":16952,"./tr.js":16952,"./tzl":9573,"./tzl.js":9573,"./tzm":55990,"./tzm-latn":92851,"./tzm-latn.js":92851,"./tzm.js":55990,"./ug-cn":52610,"./ug-cn.js":52610,"./uk":9498,"./uk.js":9498,"./ur":83970,"./ur.js":83970,"./uz":19006,"./uz-latn":26,"./uz-latn.js":26,"./uz.js":19006,"./vi":9962,"./vi.js":9962,"./x-pseudo":68407,"./x-pseudo.js":68407,"./yo":91962,"./yo.js":91962,"./zh-cn":28909,"./zh-cn.js":28909,"./zh-hk":34014,"./zh-hk.js":34014,"./zh-mo":90996,"./zh-mo.js":90996,"./zh-tw":36327,"./zh-tw.js":36327};function n(e){var t=s(e);return a(t)}function s(e){if(!a.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=s,e.exports=n,n.id=46700},77122:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDMiIHZpZXdCb3g9IjAgMCA0MiA0MyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI5Ljc2NzIgMTIuNzE3M0wxNy45MzQxIDI0LjMxNDRDMTcuMzEwMiAyNC45MjU4IDE2LjM2MTcgMjUuMDYxNiAxNS41OTEzIDI0LjY0OThMMi45MzU2MyAxNy44ODQ1QzEuNDEyNDggMTcuMDcwMiAxLjU2ODA3IDE0LjgzODEgMy4xODk0NiAxNC4yNDMxTDM4LjA1NDcgMS40NDc4OEMzOS42MzU4IDAuODY3NjQyIDQxLjE4MjMgMi4zODE5MyA0MC42MzU0IDMuOTc0ODVMMjguMzY4NyAzOS43MDU1QzI3LjgwNCA0MS4zNTA1IDI1LjU1MzYgNDEuNTQwNSAyNC43MjExIDQwLjAxMzNMMTkuMjAyNiAyOS44OTAzIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"}}]);
\ No newline at end of file