import{d as e,c as a,s,v as t,r as i,o as c,b as n,e as l,A as o,F as r,f as u,k as p,t as d}from"./index.0c4ea2bd.js";var m=e({name:"SiteSelector",setup(){const e=a((()=>s.state.curView.type)),i=a((()=>[...s.state.viewOptions,...s.state.communityOptions])),c=t();return{curViewType:e,options:i,handleChange:e=>{s.commit("SET_CURRENT_VIEW",i.value.find((a=>e===a.type))),s.state.curView.id&&s.dispatch("initStationData",s.state.curView.id),console.log(e),isNaN(+e)&&"lfs"!=e?c.push({name:"main"}):isNaN(+e)&&"lfs"==e?c.push({name:"raffles"}):c.push({name:"community",query:{id:e}})}}}});m.render=function(e,a,s,t,m,w){const y=i("a-select-option"),f=i("a-select");return c(),n("div",{id:"site-selector",class:"site-selector",style:"left:"+(isNaN(+e.curViewType)&&"lfs"!=e.curViewType?"calc(20vw + .1rem)":isNaN(+e.curViewType)&&"lfs"==e.curViewType?"calc(32vw + .1rem)":"calc(16vw + .1rem)")},[l(f,{value:e.curViewType,"dropdown-class-name":"site-selector-drop-down",onSelect:e.handleChange},{default:o((()=>[(c(!0),n(r,null,u(e.options,(e=>(c(),n(y,{key:e.type,value:e.type},{default:o((()=>[p(d(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value","onSelect"])],4)};export{m as _};
