1import{d as Ie,r as T,a as H,c as d,o as v,b as g,e as n,f as u,w as p,g as C,t as b,u as $,Q as U,h as be,i as M,j as Ne,k as ye,l as V,m as de,n as w,F as D,p as He,q as Ae,s as $e,v as O,x as xe,y as Re,z,A as we,B as Be,C as De,D as le,E as X,G as W,H as ke,I as ce,J as j,K as ne,L as ie,M as B,N as L,O as qe,P as Z,R as x,T as Oe,S as ve,U as Se,V as Me,W as fe,X as _e,Y as re,Z as Ue,$ as je,a0 as Ke,a1 as me,a2 as We,a3 as Ve,a4 as Ge,a5 as Xe,a6 as Ce,a7 as Ye,a8 as Je,a9 as Ze,aa as et,ab as tt,ac as te,ad as G,ae as ot}from"./app-CDKoYX-5.js";import{C as at}from"./ClosePopup-CyB94wDK.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{Q as st,a as nt,_ as Te}from"./QBtnDropdown-CcbWPDZo.js";import{u as lt,P as K,a as oe,o as it,D as rt,b as ze,f as ut,c as dt,d as ct,e as vt,Q as ft,g as Le,_ as _t,h as mt,i as pt,j as ae,k as se}from"./QSkeleton-BUMy0vbP.js";import{Q as ht,a as gt,b as bt,u as yt,_ as $t,c as wt}from"./arrow-grow-eMXN9XmJ.js";import{Q as kt,a as Y}from"./QBadge-CnAVVpcQ.js";import{Q as qt,h as St}from"./QImg-IxV7OlVP.js";import{i as pe}from"./time-DR6v7Esr.js";const Vt=Ie("cluster",()=>{const e=T(),l=T(!0);return{tps:e,tpsLoading:l}}),Ct={class:"priority-fee-wrap"},Tt={class:"priority-fee"},zt={class:"text-secondary"},Lt={key:1},Pt={class:"column"},Qt=H({__name:"PriorityFee",setup(e){const l=lt(),o=T(!1),a=d(()=>l.mode===K.ExactFee?l.exactFee:l.level),t=[{label:"Max Cap",value:K.MaxCap},{label:"Exact Fee",value:K.ExactFee}],i=[{label:"Fast",value:oe.Fast},{label:"Turbo",value:oe.Turbo},{label:"Ultra",value:oe.Ultra}];function r(){o.value=!1,l.exactFee<=0&&(l.exactFee=rt)}return(m,s)=>(v(),g(D,null,[n("div",Ct,[n("div",Tt,[u(U,{ripple:!1,rounded:"",unelevated:"",onClick:s[0]||(s[0]=c=>o.value=!0)},{default:p(()=>[s[6]||(s[6]=C(" Priority fee: Â ")),n("span",zt,b($(a)),1)]),_:1})])]),u($e,{modelValue:$(o),"onUpdate:modelValue":s[5]||(s[5]=c=>Ae(o)?o.value=c:null),"transition-duration":"150","transition-show":"fade","transition-hide":"fade"},{default:p(()=>[u(be,{class:"dialog",style:{width:"500px"}},{default:p(()=>[u(M,{class:"relative-position"},{default:p(()=>[s[7]||(s[7]=n("div",{class:"text-h6 text-center"}," Global Priority Fee ",-1)),u(U,{padding:"md",color:"transparent","text-color":"primary-gray",unelevated:"",icon:$(Ne),class:"absolute-right",onClick:s[1]||(s[1]=c=>o.value=!1)},null,8,["icon"])]),_:1}),u(ye),$(l).mode===$(K).MaxCap?(v(),V(M,{key:0},{default:p(()=>[s[8]||(s[8]=n("div",{class:"q-mb-sm"},[n("b",null,"Priority level:")],-1)),u(de,{modelValue:$(l).level,"onUpdate:modelValue":s[2]||(s[2]=c=>$(l).level=c),spread:"",rounded:"",color:"primary","toggle-color":"accent",options:i,ripple:!1},null,8,["modelValue"])]),_:1})):w("",!0),u(M,null,{default:p(()=>[s[9]||(s[9]=n("div",{class:"q-mb-sm"},[n("b",null,"Priority Mode:")],-1)),u(de,{modelValue:$(l).mode,"onUpdate:modelValue":s[3]||(s[3]=c=>$(l).mode=c),rounded:"",color:"primary","toggle-color":"accent",size:"sm",options:t,ripple:!1},null,8,["modelValue"])]),_:1}),u(M,null,{default:p(()=>[$(l).mode===$(K).MaxCap?(v(),g(D,{key:0},[s[10]||(s[10]=n("b",null,"Set Max Cap",-1)),s[11]||(s[11]=n("p",null," Set a max cap to prevent overpaying. ",-1))],64)):(v(),g("b",Lt,"Exact fee")),u(He,{modelValue:$(l).exactFee,"onUpdate:modelValue":s[4]||(s[4]=c=>$(l).exactFee=c),placeholder:"Enter custom value",clearable:"",suffix:"SOL",onKeypress:$(it)},null,8,["modelValue","onKeypress"])]),_:1}),u(M,null,{default:p(()=>[n("div",Pt,[u(U,{color:"primary",unelevated:"",ripple:!1,onClick:r},{default:p(()=>s[12]||(s[12]=[C(" Save changes ")])),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),Ft=O({name:"QCardActions",props:{...xe,vertical:Boolean},setup(e,{slots:l}){const o=Re(e),a=d(()=>`q-card__actions ${o.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>z("div",{class:a.value},we(l.default))}}),Et=H({setup(){const e=Be("cookie-accepted",!1);return{isAccepted:e,hide:()=>{e.value=!0}}}});function It(e,l,o,a,t,i){return v(),V($e,{"model-value":!e.isAccepted,persistent:"",position:"bottom",onHide:e.hide},{default:p(()=>[u(be,{class:"q-pa-sm"},{default:p(()=>[u(M,{class:"q-pb-none"},{default:p(()=>l[0]||(l[0]=[C(" Our third-party tools use cookies, which are necessary for its functioning and required to achieve the purposes illustrated in the cookie policy. ")])),_:1}),u(Ft,{align:"right"},{default:p(()=>[u(U,{flat:"",label:"More info",color:"info",target:"_blank",type:"a",href:"https://policies.google.com/technologies/cookie
1s"}),De(u(U,{flat:"",label:"Accept",color:"info"},null,512),[[at]])]),_:1})]),_:1})]),_:1},8,["model-value","onHide"])}const Nt=R(Et,[["render",It]]),Ht={props:{fill:{type:String,default:"#455A64"}}},At={viewBox:"0 0 210 167.4",xmlns:"http://www.w3.org/2000/svg"},xt=["fill"];function Rt(e,l,o,a,t,i){return v(),g("svg",At,[n("path",{d:"m199.4 15.1-30.3 142.2c-2.2 10-8.1 12.5-16.6 7.8l-45.9-33.4-22.2 21.2c-2.5 2.5-4.4 4.4-9.4 4.4l3.4-46.9 85.3-76.9c3.8-3.4-.9-5-5.6-1.9l-105.5 66.4-45.4-14.1c-10-3.1-10-10 2.2-14.7l177.2-68.4c8.5-2.8 15.6 1.9 12.8 14.3z",fill:o.fill},null,8,xt)])}const Bt=R(Ht,[["render",Rt]]);function Dt(){const e=T(!le.value);return e.value===!1&&X(()=>{e.value=!0}),{isHydrated:e}}const Pe=typeof ResizeObserver<"u",he=Pe===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},J=O({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:l}){let o=null,a,t={width:-1,height:-1};function i(s){s===!0||e.debounce===0||e.debounce==="0"?r():o===null&&(o=setTimeout(r,e.debounce))}function r(){if(o!==null&&(clearTimeout(o),o=null),a){const{offsetWidth:s,offsetHeight:c}=a;(s!==t.width||c!==t.height)&&(t={width:s,height:c},l("resize",t))}}const{proxy:m}=j();if(m.trigger=i,Pe===!0){let s;const c=q=>{a=m.$el.parentNode,a?(s=new ResizeObserver(i),s.observe(a),r()):q!==!0&&ce(()=>{c(!0)})};return X(()=>{c()}),W(()=>{o!==null&&clearTimeout(o),s!==void 0&&(s.disconnect!==void 0?s.disconnect():a&&s.unobserve(a))}),ke}else{let s=function(){o!==null&&(clearTimeout(o),o=null),k!==void 0&&(k.removeEventListener!==void 0&&k.removeEventListener("resize",i,ne.passive),k=void 0)},c=function(){s(),a&&a.contentDocument&&(k=a.contentDocument.defaultView,k.addEventListener("resize",i,ne.passive),r())};const{isHydrated:q}=Dt();let k;return X(()=>{ce(()=>{a=m.$el,a&&c()})}),W(s),()=>{if(q.value===!0)return z("object",{class:"q--avoid-card-border",style:he.style,tabindex:-1,type:"text/html",data:he.url,"aria-hidden":"true",onLoad:c})}}}}),Ot=O({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:l,emit:o}){const{proxy:{$q:a}}=j(),t=ie(Z,B);if(t===B)return console.error("QFooter needs to be child of QLayout"),B;const i=T(parseInt(e.heightHint,10)),r=T(!0),m=T(le.value===!0||t.isContainer.value===!0?0:window.innerHeight),s=d(()=>e.reveal===!0||t.view.value.indexOf("F")!==-1||a.platform.is.ios&&t.isContainer.value===!0),c=d(()=>t.isContainer.value===!0?t.containerHeight.value:m.value),q=d(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return r.value===!0?i.value:0;const f=t.scroll.value.position+c.value+i.value-t.height.value;return f>0?f:0}),k=d(()=>e.modelValue!==!0||s.value===!0&&r.value!==!0),I=d(()=>e.modelValue===!0&&k.value===!0&&e.reveal===!0),y=d(()=>"q-footer q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(k.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(s.value!==!0?" hidden":""):"")),F=d(()=>{const f=t.rows.value.bottom,S={};return f[0]==="l"&&t.left.space===!0&&(S[a.lang.rtl===!0?"right":"left"]=`${t.left.size}px`),f[2]==="r"&&t.right.space===!0&&(S[a.lang.rtl===!0?"left":"right"]=`${t.right.size}px`),S});function P(f,S){t.update("footer",f,S)}function Q(f,S){f.value!==S&&(f.value=S)}function N({height:f}){Q(i,f),P("size",f)}function _(){if(e.reveal!==!0)return;const{direction:f,position:S,inflectionPoint:A}=t.scroll.value;Q(r,f==="up"||S-A<100||t.height.value-c.value-S-i.value<300)}function E(f){I.value===!0&&Q(r,!0),o("focusin",f)}L(()=>e.modelValue,f=>{P("space",f),Q(r,!0),t.animate()}),L(q,f=>{P("offset",f)}),L(()=>e.reveal,f=>{f===!1&&Q(r,e.modelValue)}),L(r,f=>{t.animate(),o("reveal",f)}),L([i,t.scroll,t.height],_),L(()=>a.screen.height,f=>{t.isContainer.value!==!0&&Q(m,f)});const h={};return t.instances.footer=h,e.modelValue===!0&&P("size",i.value),P("space",e.modelValue),P("offset",q.value),W(()=>{t.instances.footer===h&&(t.instances.footer=void 0,P("size",0),P("offset",0),P("space",!1))}),()=>{const f=qe(l.default,[z(J,{debounce:0,onResize:N})]);return e.elevated===!0&&f.push(z("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),z("footer",{class:y.value,style:F.value,onFocusin:E},f)}}}),Mt={class:"container"},Ut={class:"row justify-between items-center q-mb-xs"},jt={class:"text-left"},Kt={class:"justify-between d-flex column"},Wt=H({__name:"AppFooter",setup(e){const l=new Date().getFullYear();return(o,a)=>{const t=Bt;return v(),V(Ot,{class:x(o.$style.footer)},{default:p(()=>[n("div",Mt,[n("div",Ut,[n("div",{class:x(["justify-start d-flex column",{"order-last q-mx-auto q-mt-xs":o.$q.screen.lt.md,"q-mr-auto":o.$q.screen.gt.sm}])},[n("div",jt," © Copyright "+b($(l))+" Staking Kiwi Validator. All rights reserved. ",1),a[0]||(a[0]=n("div",{class:"text-left"},[C(" Powered by "),n("a",{href:"https://solanastaking.kiwi/",target:"_blank"},"staking.kiwi")],-1))],2),n("div",Kt,[n("div",{class:x(["row",{"q-mx-auto":o.$q.screen.lt.sm}])},[n("div",{class:x(o.$style.buttons)},[n("div",{class:x(o.$style.links)},null,2),u(U,{href:$(Oe),color:"white",class:"q-ml-md",round:"",target:"_blank",type:"a",unelevated:""},{default:p(()=>[u(t,{class:"q-icon"})]),_:1}
1,8,["href"])],2)],2)])])])]),_:1},8,["class"])}}}),Gt="_footer_1clx8_56",Xt="_nav_1clx8_72",Yt="_buttons_1clx8_86",Jt="_links_1clx8_103",Zt={footer:Gt,nav:Xt,buttons:Yt,links:Jt},eo={$style:Zt},to=R(Wt,[["__cssModules",eo],["__scopeId","data-v-3b9b5fd2"]]),oo={class:"epoch-circle"},ao={class:"epoch-circle__label"},so={class:"epoch-circle__label-number"},no={class:"epoch-circle__label-value"},lo=H({__name:"EpochCircle",setup(e){const l=ze(),o=d(()=>l.epochNumber),a=d(()=>+l.epochProgress),t=d(()=>{const r=+l.epochTimeRemaining/1e3/60/60,m=Math.floor(r),s=Math.floor((r-m)*60),c=Math.ceil(((r-m)*60-s)*60);return{h:m,m:s<10?`0${s}`:s,s:c<10?`0${c}`:c}});return(i,r)=>(v(),g("div",oo,[u(st,{"show-value":"",class:"q-mt-xs epoch-circle__progress",value:a.value,size:"110px",thickness:.2,color:"natural-light-gray","track-color":"warning","center-color":"white"},{default:p(()=>[n("div",ao,[r[1]||(r[1]=n("div",{class:"epoch-circle__label-title"}," Epoch ",-1)),n("div",so,b(o.value),1),n("div",no,[C(b(t.value.h)+":"+b(t.value.m),1),r[0]||(r[0]=n("br",null,null,-1)),C(b(t.value.s),1)])])]),_:1},8,["value"])]))}}),io=R(lo,[["__scopeId","data-v-78ebbdab"]]),ro={class:"kiwi-banner"},uo=["href"],co=["href"],Qe=H({__name:"KiwiBanner",setup(e){return(l,o)=>(v(),g("div",ro,[n("a",{href:$(ve),class:"kiwi-banner__support"}," support us ",8,uo),n("a",{href:$(ve),class:"kiwi-banner__btn"},o[0]||(o[0]=[n("div",{class:"kiwi-banner__text"},[C(" Stake your SOL with "),n("span",{class:"kiwi-banner__text--blue"},"KIWI")],-1)]),8,co)]))}}),vo=H({setup(){const e=Se(),{connected:l,connect:o,disconnect:a,autoConnect:t}=Me();return{groups:[fe.filter(i=>i.cluster==="mainnet-beta"),fe.filter(i=>i.cluster!=="mainnet-beta")],endpoint:d(()=>e.endpoint),select:i=>{l&&e.cluster!==i.cluster&&(a(),t.value&&o()),e.setRpc(i.id)}}}}),fo={class:"text-blue-grey"};function _o(e,l,o,a,t,i){return v(),V(nt,{class:"app-header__cluster-btn",label:e.endpoint.name,"model-value":!1,"auto-close":"",color:"text-white","text-color":"primary",rounded:"",unelevated:"",ripple:!1},{default:p(()=>[u(kt,null,{default:p(()=>[(v(!0),g(D,null,_e(e.groups,(r,m)=>(v(),g(D,{key:`${m}-cluster-group`},[(v(!0),g(D,null,_e(r,s=>(v(),V(ht,{key:s.id,clickable:"",onClick:c=>e.select(s)},{default:p(()=>[u(gt,null,{default:p(()=>[u(bt,null,{default:p(()=>[n("b",null,b(s.name),1)]),_:2},1024),n("span",fo,b(s.url.substring(0,30)),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),m!==e.groups.length-1?(v(),V(ye,{key:0})):w("",!0)],64))),128))]),_:1})]),_:1},8,["label"])}const Fe=R(vo,[["render",_o]]),mo=H({setup(){const e=yt();return{loading:d(()=>e.loading),growIsNegative:d(()=>e.solChangePercentage24<0),price:d(()=>ut(e.solPrice)),grow:d(()=>dt.format(e.solChangePercentage24/100)),last24:d(()=>ct(Math.abs(e.solChange24),2)),value:d(()=>vt(e.solVol24,2).replace("G","B"))}}}),po={class:"price-stats-header row"},ho={class:"column q-mr-dm"},go={class:"price-stats-header__price"},bo={class:"column q-ml-md"},yo={class:"row price-stats-header__additional"},$o={class:"q-pl-sm"};function wo(e,l,o,a,t,i){return v(),g("div",po,[n("div",ho,[l[0]||(l[0]=n("div",{class:"price-stats-header__title"}," SOL PRICE ",-1)),n("div",go," $"+b(e.price),1)]),n("div",bo,[n("div",{class:x(["price-stats-header__grow",{"price-stats-header__grow--negative":e.growIsNegative}])},[l[1]||(l[1]=n("img",{src:$t,class:"price-stats-header-arrow",alt:""},null,-1)),C(" "+b(e.grow),1)],2),n("div",yo,[n("div",null," LAST 24H: "+b(e.growIsNegative?"-":"+")+"$"+b(e.last24),1),n("div",$o," $"+b(e.value),1)])]),u(ft,{showing:e.loading},null,8,["showing"])])}const ko=R(mo,[["render",wo],["__scopeId","data-v-aff4c8af"]]),qo=H({props:{alt:{type:Boolean,default:!1}},setup(){const e=ze(),l=Le(),o=d(()=>e.epochNumber);return{validatorsCount:d(()=>l.loading?"...":`${l.itemsTotal}`),epochNumber:o}}}),So={key:0,class:"total-validators row"},Vo={key:1,class:"total-validators row"},Co={class:"column total-validators__text"},To={class:"column total-validators__text__total"},zo={key:2,class:"total-validators row"},Lo={class:"column total-validators__text"},Po={class:"total-validators__text__total"};function Qo(e,l,o,a,t,i){const r=_t;return v(),g(D,null,[e.$q.screen.lt.md&&!e.alt?(v(),g("div",So," EPOCH "+b(e.epochNumber),1)):w("",!0),e.alt?w("",!0):(v(),g("div",Vo,[n("div",null,[u(r,{class:"total-validators__logo q-icon",fill:"#1CE4B0"})]),n("div",Co,[l[0]||(l[0]=n("div",{class:"text-left"}," VALIDATORS ",-1)),n("div",To," TOTAL: "+b(e.validatorsCount),1)])])),e.alt?(v(),g("div",zo,[n("div",null,[u(r,{class:"total-validators__logo q-icon",fill:"#1CE4B0"})]),n("div",Lo,[n("div",null,"EPOCH "+b(e.epochNumber),1),n("div",null,[l[1]||(l[1]=C(" VALIDATORS TOTAL: ")),n("span",Po,b(e.validatorsCount),1)])])])):w("",!0)],64)}const Fo=R(qo,[["render",Qo],["__scopeId","data-v-62637272"]]),Ee="/assets/kiwi-logo-2-jpi7y3V0.svg",Eo={key:0,class:"staking-header__top text-right"},Io={class:"container row items-center justify-end"}
1,No={class:"staking-header__validators-desktop"},Ho={class:"staking-header__main row items-end"},Ao={class:"container relative-position"},xo={class:"row items-end justify-between full-width"},Ro={key:0,class:"total-validators-nxs q-mr-auto"},Bo={key:1,class:"column q-ml-auto"},Do={class:"staking-header__btn q-mb-sm"},Oo={class:"staking-header__btn"},Mo={key:2,class:"row items-center col-grow"},Uo={class:"row q-ml-auto q-mt-auto"},jo={class:"q-mr-md staking-header__btn"},Ko={class:"staking-header__btn"},Wo={key:0,class:"row items-center full-width total-validators-xs"},Go={class:"q-mt-sm"},Xo=H({__name:"HomeHeader",setup(e){const l="1.3.12";return(o,a)=>{const t=Fo,i=ko,r=re("router-link"),m=Fe,s=Te,c=Qe,q=io;return v(),g(D,null,[o.$q.screen.gt.sm?(v(),g("div",Eo,[n("div",Io,[n("div",No,[u(t)]),u(i)])])):w("",!0),n("div",Ho,[n("div",Ao,[n("div",xo,[u(r,{class:x(["row items-center",{"q-mr-md":o.$q.screen.lt.sm,"q-mr-lg":o.$q.screen.gt.xs}]),to:"/"},{default:p(()=>[a[0]||(a[0]=n("img",{src:Ee,alt:"",class:"staking-header__logo"},null,-1)),o.$q.screen.gt.sm?(v(),V(Y,{key:0,class:"staking-header__beta",color:"accent","text-color":"text-white"},{default:p(()=>[C(" v"+b($(l)),1)]),_:1})):w("",!0)]),_:1},8,["class"]),o.$q.screen.lt.md?(v(),g("div",Ro,[u(t)])):w("",!0),o.$q.screen.lt.md?(v(),g("div",Bo,[n("div",Do,[u(m)]),n("div",Oo,[u(s,{class:"app-header__wallet-btn"})])])):w("",!0),o.$q.screen.gt.sm?(v(),g("div",Mo,[u(c,{class:"q-mr-auto q-ml-lg"}),u(q),n("div",Uo,[n("div",jo,[u(m)]),n("div",Ko,[u(s,{class:"app-header__wallet-btn"})])])])):w("",!0)]),o.$q.screen.lt.sm?(v(),g("div",Wo,[n("div",Go,[u(t,{alt:!0})])])):w("",!0)])])],64)}}}),Yo=H({props:{noIcon:{type:Boolean,default:!1},noBadges:{type:Boolean,default:!1}},setup(){const e=mt(),l=d(()=>e.savedValidator),o=d(()=>e.validatorName),a=d(()=>e.validatorDetails),t=d(()=>e.validatorImage),i=d(()=>e.validatorUrl),r=d(()=>e.validatorInKiwi),m=d(()=>e.validatorDelinquent),s=d(()=>e.validatorSVM),c=d(()=>e.validatorLastVote),q=d(()=>e.validatorNotFound),k=d(()=>e.commission),I=Le(),y=d(()=>I.loading),F=Se(),P=d(()=>F.cluster),Q=d(()=>{var h;return y.value?(h=l.value)==null?void 0:h.validatorDelinquent:m.value}),N=d(()=>{var h;return y.value?(h=l.value)==null?void 0:h.validatorLastVote:c.value}),_=T("");return L([Q,N],()=>{Q.value&&N.value&&(_.value=pe(N.value))},{immediate:!0}),je().on(pt,()=>{Q.value&&N.value&&(_.value=pe(N.value))}),{evaPerson:Ue,savedValidator:l,validatorName:o,validatorDetails:a,validatorImage:t,validatorUrl:i,validatorInKiwi:r,validatorFee:k,isDelinquent:Q,validatorSVM:s,validatorLastVote:c,cluster:P,loading:y,delinquentTime:_,validatorNotFound:q}}}),Jo={class:"validator-name row no-wrap items-center"},Zo={key:0,class:"validator-name__logo column q-mr-md justify-center relative-position"},ea=["href"],ta={class:"validator-name__text column justify-start relative-position"},oa={key:0,class:"validator-name__badges row no-wrap absolute"},aa={key:1,class:"text-red"},sa={key:3,class:"q-mt-sm"},na={key:5,class:"validator-name__details"};function la(e,l,o,a,t,i){return v(),g("div",Jo,[e.noIcon?w("",!0):(v(),g("div",Zo,[e.loading&&!e.savedValidator?(v(),V(ae,{key:0,type:"QAvatar",class:"shadow-5",size:"56px"})):(v(),g("a",{key:1,href:e.loading&&e.savedValidator?e.savedValidator.validatorUrl:e.validatorUrl,target:"_blank"},[u(We,{class:"shadow-1",size:"56px"},{default:p(()=>[u(qt,{src:e.loading&&e.savedValidator?e.savedValidator.validatorImage:e.validatorImage,"spinner-size":"30px","spinner-color":"white"},Ke({error:p(()=>[u(me,{name:e.evaPerson},null,8,["name"])]),_:2},[e.loading&&e.savedValidator&&e.savedValidator.validatorImage||e.validatorImage?void 0:{name:"default",fn:p(()=>[u(me,{name:e.evaPerson},null,8,["name"])]),key:"0"}]),1032,["src"])]),_:1})],8,ea))])),n("div",ta,[(!e.loading||e.savedValidator)&&!e.noBadges?(v(),g("div",oa,[e.isDelinquent?(v(),V(Y,{key:0,class:"validator-name__badges__item q-mr-sm",color:"negative","text-color":"text-white"},{default:p(()=>[C(" DELINQUENT "+b(e.delinquentTime?"FOR":"")+" "+b(e.delinquentTime)+" ",1),u(se,{class:"text-body2"},{default:p(()=>[C(" Delinquent "+b(e.delinquentTime?"for":"")+" "+b(e.delinquentTime),1)]),_:1})]),_:1})):w("",!0),(e.loading&&e.savedValidator?e.savedValidator.validatorFee===100:e.validatorFee===100)?(v(),V(Y,{key:1,class:"validator-row__status-badge",color:"negative",outline:"","text-color":"text-white"},{default:p(()=>l[0]||(l[0]=[C(" PRIVATE ")])),_:1})):w("",!0)])):w("",!0),!e.loading&&e.validatorNotFound?(v(),g("div",aa," Validator not found in this cluster. ")):w("",!0),e.loading&&e.savedValidator?(v(),V(ae,{key:2,width:"250px"})):(v(),g("div",sa,[C(b(e.loading&&e.savedValidator?e.savedValidator.validatorName:e.validatorName)+" ",1),u(se,{class:"text-body2"},{default:p(()=>[C(b(e.loading&&e.savedValidator?e.savedValidator.validatorName:e.validatorName),1)]),_:1})])),e.loading&&!e.savedValidator?(v(),V(ae,{key:4,width:"250px",class:"q-mt-sm"})):(v(),g("div",na,[C(b(e.loading&&e.savedValidator?e.savedValidator.validatorDetails:e.validatorDetails)+" ",1),u(se,{class:"text-body2"},{default:p(()=>[C(b(e.loading&&e.savedValidator?e.savedValidator.validatorDetails:e.validatorDetails),1)]),_:1})]))])])}const ia=R(Yo,[["render",la]]),ra={class:"staking-header__top text-right"},ua={class:"row container justify-end items-center"},da={key:1,style:{width:"284px"}},ca={class:"staking-header__faq-btn q-ml-md"},va={class:"staking-header__main row items-end"},fa={class:"container relative-position"},_a={class:"row items-end justify-between full-width"},ma={key:0,class:"column q-ml-auto"},pa={class:"staking-header__btn q-mb-sm"},ha={class:"staking-header__btn"},ga={key:1,class:"row items-center col-grow"},ba={class:"row q-ml-auto q-mt-auto"},ya={class:"q-mr-md staking-header__btn"},$a={class:"staking-header__btn"},wa=H({__name:"StakingHeader",setup(e){const l=Ve(),o="1.3.12",a=d(()=>l.path.includes("/app/"));function t(i){const r=document.querySelector(".q-header");St(i,Number((r==null?void 0:r.offsetHeight)-10)||0)}return(i,r)=>{const m=Qe,s=re("router-link"),c=Fe,q=Te,k=ia;return v(),g(D,null,[n("div",ra,[n("div",ua,[i.$q.screen.gt.sm?(v(),V(m,{key:0,class:"kiwi-banner--staking"})):w("",!0),$(a)?w("",!0):(v(),g("div",da)),$(a)?(v(),g("div",{key:2,class:"staking-header__faq-btn q-ml-md",onClick:r[0]||(r[0]=I=>t("widget-section"))}," widget ")):w("",!0),n("div",ca,[u($(Qt))])])]),n("div",va,[n("div",fa,[n("div",_a,[u(s,{class:x(["row items-center",{"q-mr-md":i.$q.screen.lt.sm,"q-mr-lg":i.$q.screen.gt.xs}]),to:"/"},{default:p(()=>[r[1]||(r[1]=n("img",{src:Ee,alt:"",class:"staking-header__logo"},null,-1)),i.$q.screen.gt.sm?(v(),V(Y,{key:0,class:"staking-header__beta",color:"accent","text-color":"text-white"},{default:p(()=>[C(" v"+b($(o)),1)]),_:1})):w("",!0)]),_:1},8,["class"]),i.$q.screen.lt.md?(v(),g("div",ma,[n("div",pa,[u(c)]),n("div",ha,[u(q,{class:"app-header__wallet-btn"})])])):w("",!0),n("div",{class:x(["col-12 column col-md-auto q-mr-auto col-grow",{"q-mt-md":i.$q.screen.lt.md}])},[u(k)],2),i.$q.screen.gt.sm?(v(),g("div",ga,[n("div",ba,[n("div",ya,[u(c)]),n("div",$a,[u(q)])])])):w("",!0)])])])],64)}}}),ka=H({__name:"NetworkPerformance",props:{tpsThreshold:{default:1500}},setup(e){const l=Vt(),o=d(()=>l.tpsLoading),a=d(()=>l.tps),t=T(),i=T(),r=()=>{let m,s;
1console.log("[TPS]:",a.value),o.value||(a.value<=0?(m="Solana cluster failure. Try refreshing the page; if the problem persists, please contact us via Discord.",s="var(--q-negative)"):a.value<e.tpsThreshold?(m="Solana network is experiencing degraded performance. Transactions may fail to send or confirm.",s="var(--q-info)"):m=void 0),i.value=m,t.value={backgroundColor:s??"none",height:m?"auto":0,padding:m?"5px":0}};return L(a,async()=>{setTimeout(r,500)},{immediate:!0}),(m,s)=>(v(),V(wt,null,{default:p(()=>[i.value?(v(),g("div",{key:0,class:x(m.$style.root),style:Ge(t.value)},b(i.value),7)):w("",!0)]),_:1}))}}),qa="_root_1rwx9_56",Sa={root:qa},Va={$style:Sa},Ca=R(ka,[["__cssModules",Va]]),Ta=O({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:l,emit:o}){const{proxy:{$q:a}}=j(),t=ie(Z,B);if(t===B)return console.error("QHeader needs to be child of QLayout"),B;const i=T(parseInt(e.heightHint,10)),r=T(!0),m=d(()=>e.reveal===!0||t.view.value.indexOf("H")!==-1||a.platform.is.ios&&t.isContainer.value===!0),s=d(()=>{if(e.modelValue!==!0)return 0;if(m.value===!0)return r.value===!0?i.value:0;const _=i.value-t.scroll.value.position;return _>0?_:0}),c=d(()=>e.modelValue!==!0||m.value===!0&&r.value!==!0),q=d(()=>e.modelValue===!0&&c.value===!0&&e.reveal===!0),k=d(()=>"q-header q-layout__section--marginal "+(m.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(c.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),I=d(()=>{const _=t.rows.value.top,E={};return _[0]==="l"&&t.left.space===!0&&(E[a.lang.rtl===!0?"right":"left"]=`${t.left.size}px`),_[2]==="r"&&t.right.space===!0&&(E[a.lang.rtl===!0?"left":"right"]=`${t.right.size}px`),E});function y(_,E){t.update("header",_,E)}function F(_,E){_.value!==E&&(_.value=E)}function P({height:_}){F(i,_),y("size",_)}function Q(_){q.value===!0&&F(r,!0),o("focusin",_)}L(()=>e.modelValue,_=>{y("space",_),F(r,!0),t.animate()}),L(s,_=>{y("offset",_)}),L(()=>e.reveal,_=>{_===!1&&F(r,e.modelValue)}),L(r,_=>{t.animate(),o("reveal",_)}),L(t.scroll,_=>{e.reveal===!0&&F(r,_.direction==="up"||_.position<=e.revealOffset||_.position-_.inflectionPoint<100)});const N={};return t.instances.header=N,e.modelValue===!0&&y("size",i.value),y("space",e.modelValue),y("offset",s.value),W(()=>{t.instances.header===N&&(t.instances.header=void 0,y("size",0),y("offset",0),y("space",!1))}),()=>{const _=Xe(l.default,[]);return e.elevated===!0&&_.push(z("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),_.push(z(J,{debounce:0,onResize:P})),z("header",{class:k.value,style:I.value,onFocusin:Q},_)}}}),za=H({__name:"AppHeader",setup(e){const l=Ve(),o=d(()=>!!l.params.name);return(a,t)=>{const i=Ca,r=wa,m=Xo;return v(),V(Ta,{id:"app-header",class:"staking-header"},{default:p(()=>[u(i),$(o)?(v(),V(r,{key:0})):(v(),V(m,{key:1}))]),_:1})}}}),La=O({name:"QPageContainer",setup(e,{slots:l}){const{proxy:{$q:o}}=j(),a=ie(Z,B);if(a===B)return console.error("QPageContainer needs to be child of QLayout"),B;Ce(Ye,!0);const t=d(()=>{const i={};return a.header.space===!0&&(i.paddingTop=`${a.header.size}px`),a.right.space===!0&&(i[`padding${o.lang.rtl===!0?"Left":"Right"}`]=`${a.right.size}px`),a.footer.space===!0&&(i.paddingBottom=`${a.footer.size}px`),a.left.space===!0&&(i[`padding${o.lang.rtl===!0?"Right":"Left"}`]=`${a.left.size}px`),i});return()=>z("div",{class:"q-page-container",style:t.value},we(l.default))}}),{passive:ge}=ne,Pa=["both","horizontal","vertical"],Qa=O({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Pa.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Je},emits:["scroll"],setup(e,{emit:l}){const o={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a=null,t,i;L(()=>e.scrollTarget,()=>{s(),m()});function r(){a!==null&&a();
1const k=Math.max(0,et(t)),I=tt(t),y={top:k-o.position.top,left:I-o.position.left};if(e.axis==="vertical"&&y.top===0||e.axis==="horizontal"&&y.left===0)return;const F=Math.abs(y.top)>=Math.abs(y.left)?y.top<0?"up":"down":y.left<0?"left":"right";o.position={top:k,left:I},o.directionChanged=o.direction!==F,o.delta=y,o.directionChanged===!0&&(o.direction=F,o.inflectionPoint=o.position),l("scroll",{...o})}function m(){t=Ze(i,e.scrollTarget),t.addEventListener("scroll",c,ge),c(!0)}function s(){t!==void 0&&(t.removeEventListener("scroll",c,ge),t=void 0)}function c(k){if(k===!0||e.debounce===0||e.debounce==="0")r();else if(a===null){const[I,y]=e.debounce?[setTimeout(r,e.debounce),clearTimeout]:[requestAnimationFrame(r),cancelAnimationFrame];a=()=>{y(I),a=null}}}const{proxy:q}=j();return L(()=>q.$q.lang.rtl,r),X(()=>{i=q.$el.parentNode,m()}),W(()=>{a!==null&&a(),s()}),Object.assign(q,{trigger:c,getPosition:()=>o}),ke}}),Fa=O({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:l,emit:o}){const{proxy:{$q:a}}=j(),t=T(null),i=T(a.screen.height),r=T(e.container===!0?0:a.screen.width),m=T({position:0,direction:"down",inflectionPoint:0}),s=T(0),c=T(le.value===!0?0:te()),q=d(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),k=d(()=>e.container===!1?{minHeight:a.screen.height+"px"}:null),I=d(()=>c.value!==0?{[a.lang.rtl===!0?"left":"right"]:`${c.value}px`}:null),y=d(()=>c.value!==0?{[a.lang.rtl===!0?"right":"left"]:0,[a.lang.rtl===!0?"left":"right"]:`-${c.value}px`,width:`calc(100% + ${c.value}px)`}:null);function F(h){if(e.container===!0||document.qScrollPrevented!==!0){const f={position:h.position.top,direction:h.direction,directionChanged:h.directionChanged,inflectionPoint:h.inflectionPoint.top,delta:h.delta.top};m.value=f,e.onScroll!==void 0&&o("scroll",f)}}function P(h){const{height:f,width:S}=h;let A=!1;i.value!==f&&(A=!0,i.value=f,e.onScrollHeight!==void 0&&o("scrollHeight",f),N()),r.value!==S&&(A=!0,r.value=S),A===!0&&e.onResize!==void 0&&o("resize",h)}function Q({height:h}){s.value!==h&&(s.value=h,N())}function N(){if(e.container===!0){const h=i.value>s.value?te():0;c.value!==h&&(c.value=h)}}let _=null;const E={instances:{},view:d(()=>e.view),isContainer:d(()=>e.container),rootRef:t,height:i,containerHeight:s,scrollbarWidth:c,totalWidth:d(()=>r.value+c.value),rows:d(()=>{const h=e.view.toLowerCase().split(" ");return{top:h[0].split(""),middle:h[1].split(""),bottom:h[2].split("")}}),header:G({size:0,offset:0,space:!1}),right:G({size:300,offset:0,space:!1}),footer:G({size:0,offset:0,space:!1}),left:G({size:300,offset:0,space:!1}),scroll:m,animate(){_!==null?clearTimeout(_):document.body.classList.add("q-body--layout-animate"),_=setTimeout(()=>{_=null,document.body.classList.remove("q-body--layout-animate")},155)},update(h,f,S){E[h][f]=S}};if(Ce(Z,E),te()>0){let h=function(){A=null,ee.classList.remove("hide-scrollbar")},f=function(){if(A===null){if(ee.scrollHeight>a.screen.height)return;ee.classList.add("hide-scrollbar")}else clearTimeout(A);A=setTimeout(h,300)},S=function(ue){A!==null&&ue==="remove"&&(clearTimeout(A),h()),window[`${ue}EventListener`]("resize",f)},A=null;const ee=document.body;L(()=>e.container!==!0?"add":"remove",S),e.container!==!0&&S("add"),ot(()=>{S("remove")})}return()=>{const h=qe(l.default,[z(Qa,{onScroll:F}),z(J,{onResize:P})]),f=z("div",{class:q.value,style:k.value,ref:e.container===!0?void 0:t,tabindex:-1},h);return e.container===!0?z("div",{class:"q-layout-container overflow-hidden",ref:t},[z(J,{onResize:Q}),z("div",{class:"absolute-full",style:I.value},[z("div",{class:"scroll",style:y.value},[f])])]):f}}}),Ea={};function Ia(e,l){const o=za,a=re("router-view"),t=to,i=Nt;return v(),V(Fa,{view:"hhh lpr fFf"},{default:p(()=>[u(o),u(La,null,{default:p(()=>[u(a)]),_:1}),u(t),u(i)]),_:1})}const Ua=R(Ea,[["render",Ia]]);export{Ua as default}; 2//# sourceMappingURL=default-CnIoEMC2.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.