import{P as p}from"./index-97-mhYEo.js";import{b7 as f,aS as i,aT as s,bf as h,a$ as e,aY as r,bg as b,bh as g,ba as n,ci as k,b9 as v,bc as T,b0 as w,a_ as x,cX as C,cY as y,cZ as B,aX as L}from"./index-xnhGKCfe.js";import"./pre-D84pmYLY.js";import"./currency-DTUBf2lI.js";import"./useProtocol-DJp7lFWi.js";const $={class:"theme_container"},D={class:"c box_shadow_1"},N=["onClick"],P=f({__name:"index",setup(S){const{currentTheme:t,availableThemes:l,switchTheme:m,getThemeDisplayName:d,isLoading:_}=k(),u=async o=>{if(_.value)return;if(o===t.value){C.go(-1);return}y({message:"Loading...",forbidClick:!0});const c=await m(o);B(),c&&window.location.reload()};return(o,c)=>(s(),i(p,null,{default:h(()=>[e("div",$,[e("div",D,[(s(!0),r(b,null,g(n(l),a=>(s(),r("div",{key:a.name,class:"i",onClick:V=>u(a.name)},[e("div",null,[e("span",{class:T(["theme-preview",a.name===n(t)&&"theme-"+a.name])},null,2),e("span",null,w(n(d)(a.name)),1)]),a.name===n(t)?(s(),i(x,{key:0,name:"tick",class:"tick"})):v("",!0)],8,N))),128))])])]),_:1}))}}),I=L(P,[["__scopeId","data-v-d7ce735c"]]);export{I as default};
