import{l as h,u as v,C as f,D as k,n as y,o as n,c as r,a,f as c,h as _,d as C,t as d,F as $,r as g,E as b,q as w,G as S,p as I,e as V,_ as B}from"./entry.50a7f06e.js";import{_ as M}from"./back.cade9a5c.js";import{_ as N}from"./menu.cc1f466b.js";import{_ as O}from"./close.d23c3c83.js";const p=o=>(I("data-v-6ca9ab85"),o=o(),V(),o),D={class:"twdltM"},E={class:"header"},F=p(()=>a("img",{src:M},null,-1)),R=[F],q=p(()=>a("img",{src:N},null,-1)),x=[q],z={key:1},A=p(()=>a("img",{src:O},null,-1)),G=[A],H=["onClick"],L=h({__name:"twdlt-m",setup(o){v({htmlAttrs:{class:"mobile"}});const l=f(),u=[{name:"首頁",path:"/",isOnly:!0},{name:"遊戲介紹",path:"/game-introduction"},{name:"開獎結果",path:"/result"},{name:"聯繫我們",path:"/contact"}],m=k(()=>{const s=l.currentRoute.value.path;return s==="/activity"?"感人影片":S(u.filter(t=>t.isOnly?s===t.path:s.includes(t.path))[0],"name")||""}),i=y(!1);return(s,t)=>(n(),r("div",D,[a("div",E,[s.$route.path!=="/"?(n(),r("span",{key:0,onClick:t[0]||(t[0]=e=>c(l).push("/"))},R)):_("",!0),C(" "+d(c(m))+" ",1),a("picture",{onClick:t[1]||(t[1]=e=>i.value=!0)},x),i.value?(n(),r("div",z,[a("picture",{onClick:t[2]||(t[2]=e=>i.value=!1)},G),(n(),r($,null,g(u,e=>a("span",{key:e.name,class:w({active:e.isOnly?s.$route.path===e.path:s.$route.path.includes(e.path)}),onClick:T=>c(l).push(e.path)},d(e.name),11,H)),64))])):_("",!0)]),b(s.$slots,"default",{},void 0,!0)]))}});const Q=B(L,[["__scopeId","data-v-6ca9ab85"]]);export{Q as default};
