PageSourceSearch

https://codeworldbagel.com/_nuxt/IjGJNz7T.js

js codeworldbagel.com collected 2026-10-08 20:19:19 UTC 6,786 bytes, 1 lines download raw bytes

1import{_ as S}from"./CiRwtc3L.js";import{e as j,c as l,o as n,a as e,b as $,q as D,w,F as p,r as M,h as B,n as L,u as v,i as y,d as h,t as f,J as N,j as g,K as F,_ as E,z as O,y as z,L as K,M as W,g as q,T as A,N as G}from"./sGTd26T-.js";import{_ as V}from"./BwW846gc.js";const H={class:"navbar"},I={class:"navbar-container"},J={class:"navbar-nav desktop-nav"},P=["onMouseenter","onClick"],U=["onMouseenter"],Y=["href"],Z=["href"],Q={class:"mobile-nav"},R=["onClick"],X={class:"mobile-dropdown"},ee=["href","target","rel"],oe=["href"],ne=j({__name:"NavBar",setup(T){const s=[{label:"產品列表",dropdown:[{label:"熊好算 TravelBudget",href:"/travel-budget"},{label:"喝啦 DrinkLa",href:"/drinkla"},{label:"旅行日記 TravelDiary",href:"/travel-diary"},{label:"柴米油鹽 PantryStock",href:"/pantrystock"},{label:"團卡 TeamCard",href:"/teamcard"}]},{label:"獲獎記錄",href:"/awards"},{label:"合作夥伴",dropdown:[]},{label:"聯絡我們",href:"/#contact"}],t=y(null),d=y(!1);let i=null;function m(_){i&&(clearTimeout(i),i=null),t.value=_}function k(_){i&&(clearTimeout(i),i=null),t.value=t.value===_?null:_}function b(){i&&clearTimeout(i),i=setTimeout(()=>{t.value=null,i=null},150)}function r(){d.value=!d.value,d.value||(t.value=null)}function c(){d.value=!1,t.value=null}function C(){b(),c();const _=document.getElementById("contact");_?_.scrollIntoView({behavior:"smooth"}):F("/#contact")}return(_,u)=>{const x=S;return n(),l("header",H,[e("div",I,[$(x,{to:"/",class:"navbar-logo",onClick:b},{default:w(()=>[...u[0]||(u[0]=[e("img",{src:V,alt:"扣握貝果",class:"logo-image"},null,-1),e("span",{class:"logo-text"},"扣握貝果 CodeWorldBagel",-1)])]),_:1}),e("nav",J,[(n(),l(p,null,M(s,o=>e("div",{key:o.label,class:"nav-item",onMouseleave:b},[o.dropdown?(n(),l(p,{key:0},[e("button",{class:L(["nav-link dropdown-toggle",{active:v(t)===o.label}]),onMouseenter:a=>m(o.label),onClick:a=>k(o.label)},[h(f(o.label)+" ",1),(n(),l("svg",{class:L(["dropdown-icon",{rotated:v(t)===o.label}]),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[...u[1]||(u[1]=[e("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2))],42,P),D(e("div",{class:"dropdown-menu",onMouseenter:a=>m(o.label)},[o.dropdown.length>0?(n(!0),l(p,{key:0},M(o.dropdown,a=>(n(),l(p,{key:a.label},[a.external?(n(),l("a",{key:0,href:a.href,target:"_blank",rel:"noopener noreferrer",class:"dropdown-item",onClick:b},[h(f(a.label)+" ",1),u[2]||(u[2]=e("svg",{class:"external-icon",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[e("path",{d:"M9 3L3 9M9 3H5M9 3V7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,Y)):(n(),B(x,{key:1,to:a.href,class:"dropdown-item",onClick:b},{default:w(()=>[h(f(a.label),1)]),_:2},1032,["to"]))],64))),128)):(n(),l("a",{key:1,class:"dropdown-item dropdown-contact",href:"/#contact",onClick:g(C,["prevent"])},"歡迎加入"))],40,U),[[N,v(t)===o.label]])],64)):o.href?.includes("#")?(n(),l("a",{key:1,href:o.href,class:"nav-link",onClick:g(C,["prevent"])},f(o.label),9,Z)):(n(),B(x,{key:2,to:o.href,class:"nav-link"},{default:w(()=>[h(f(o.label),1)]),_:2},1032,["to"]))],32)),64))]),e("button",{class:L(["hamburger-btn",{open:v(d)}]),onClick:r},[...u[3]||(u[3]=[e("span",{class:"hamburger-line"},null,-1),e("span",{class:"hamburger-line"},null,-1),e("span",{class:"hamburger-line"},null,-1)])],2),D(e("nav",Q,[(n(),l(p,null,M(s,o=>e("div",{key:o.label,class:"mobile-nav-group"},[o.dropdown?(n(),l(p,{key:0},[e("button",{class:"mobile-nav-label",onClick:a=>k(o.label)},[h(f(o.label)+" ",1),(n(),l("svg",{class:L(["dropdown-icon",{rotated:v(t)===o.label}]),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[...u[4]||(u[4]=[e("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2))],8,R),D(e("div",X,[o.dropdown.length>0?(n(!0),l(p,{key:0},M(o.dropdown,a=>(n(),l("a",{key:a.label,href:a.href,target:a.external?"_blank":void 0,rel:a.external?"noopener noreferrer":void 0,class:"mobile-dropdown-item",onClick:c},f(a.label),9,ee))),128)):(n(),l("a",{key:1,class:"mobile-dropdown-item",href:"/#contact",onClick:g(C,["prevent"])},"歡迎加入"))],512),[[N,v(t)===o.label]])],64)):(n(),l(p,{key:1},[o.href?.includes("#")?(n(),l("a",{key:0,href:o.href,class:"mobile-nav-label",onClick:g(C,["prevent"])},f(o.label),9,oe)):(n(),B(x,{key:1,to:o.href,class:"mobile-nav-label",onClick:c},{default:w(()=>[h(f(o.label),1)]),_:2},1032,["to"]))],64))])),64))],512),[[N,v(d)]])])])}}}),le=Object.assign(E(ne,[["__scopeId","data-v-b89d9093"]]),{__name:"NavBar"}),te=["src","alt"],ae=j({__name:"ImageLightbox",setup(T){const s=y(!1),t=y(""),d=y("");function i(r){return!!r&&r.tagName==="IMG"&&!!r.closest('[class*="showcase-image"]')}function m(r){const c=r.target;i(c)&&(r.preventDefault(),t.value=c.currentSrc||c.src,d.value=c.alt||"",s.value=!0)}function k(){s.value=!1}function b(r){r.key==="Escape"&&k()}return O(s,r=>{document.body.style.overflow=r?"hidden":""}),z(()=>{document.addEventListener("click",m),document.addEventListener("keydown",b)}),K(()=>{document.removeEventListener("click",m),document.removeEventListener("keydown",b),document.body.style.overflow=""}),(r,c)=>(n(),B(A,{to:"body"},[$(W,{name:"lb"},{default:w(()=>[v(s)?(n(),l("div",{key:0,class:"lb-overlay",role:"dialog","aria-modal":"true",onClick:k},[e("button",{class:"lb-close",type:"button","aria-label":"關閉",onClick:g(k,["stop"])},[...c[1]||(c[1]=[e("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[e("path",{d:"M6 6l12 12M18 6L6 18"})],-1)])]),e("img",{src:v(t),alt:v(d),class:"lb-image",onClick:c[0]||(c[0]=g(()=>{},["stop"]))},null,8,te)])):q("",!0)]),_:1})]))}}),se=Object.assign(E(ae,[["__scopeId","data-v-fce7e5f2"]]),{__name:"ImageLightbox"}),re={},ce={class:"layout"},ie={class:"main-content"},de={class:"footer"},ue={class:"container"},fe={class:"footer-content"},ve={class:"footer-copyright"};function be(T,s){const t=le,d=se;return n(),l("div",ce,[$(t),e("main",ie,[G(T.$slots,"default",{},void 0)]),e("footer",de,[e("div",ue,[e("div",fe,[s[2]||(s[2]=e("div",{class:"footer-brand"},[e("img",{src:V,alt:"扣握貝果",class:"footer-logo"}),e("span",{class:"footer-name"},"扣握貝果 CodeWorldBagel")],-1)),e("p",ve,[h(" © "+f(new Date().getFullYear())+" 扣握貝果. All rights reserved. ",1),s[0]||(s[0]=e("span",{class:"footer-divider"},"|",-1)),s[1]||(s[1]=e("a",{href:"mailto:[email protected]",class:"footer-email"},"[email protected]",-1))])])])]),$(d)])}const ke=E(re,[["render",be],["__scopeId","data-v-35ab428f"]]);export{ke as default};

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.