PageSourceSearch

https://www.gtfutures.com.cn/assets/MobileMenu-C01mrtdP.js

js gtfutures.com.cn collected 2026-10-04 15:19:28 UTC 2,425 bytes, 1 lines download raw bytes

1import{_ as f,r as D,u as V,c as u,S as j,k as q,d as r,e,f as h,i as _,D as c,x as m,w as d,q as L,t as T,n as $,M as A,j as F,A as S,F as g,h as x,a9 as y,T as W}from"./index-DfMvKG5q.js";const Q="/assets/footer-logo-CtZ2yL7c.png",z={class:"relative"},E={class:"flex items-center"},P={key:0,class:"pl-4 mt-1 space-y-1"},R={__name:"MobileMenuItem",props:{menuItem:{type:Object,required:!0},level:{type:Number,default:0}},setup(n){const s=n,a=D(!1),p=V(),i=u(()=>s.menuItem.children?.length>0),o=u(()=>{const t=s.menuItem.url;return t?t.startsWith("http")?null:t:null}),l=u(()=>{const t=s.menuItem.url;return t?.startsWith("http")?t:null}),b=u(()=>l.value?"a":o.value?"router-link":"span"),M=j("closeMobileMenu",()=>{}),k=()=>{M(),o.value?p.push(o.value):l.value&&window.open(l.value,"_self")};function I(){i.value&&(a.value=!a.value)}const C=u(()=>{const t=["hover:text-indigo-600","hover:bg-gray-100"],v=["text-gray-700","text-gray-600","text-gray-500","text-gray-400"];return[...t,v[Math.min(s.level,3)]]});return(t,v)=>{const w=S,N=q("MobileMenuItem",!0);return e(),r("div",z,[h("div",E,[(e(),c(A(b.value),{to:o.value,href:l.value,class:$(["flex-1 px-3 py-2 rounded-md text-base font-medium transition-colors duration-200",C.value]),onClick:k},{default:d(()=>[L(T(n.menuItem.name),1)]),_:1},8,["to","href","class"])),i.value?(e(),r("button",{key:0,onClick:F(I,["stop"]),class:"p-2 text-gray-500 hover:text-indigo-600","aria-label":"toggle submenu"},[_(w,{icon:a.value?"up-arrow":"down-arrow",class:"text-xs transition-transform duration-200"},null,8,["icon"])])):m("",!0)]),_(y,{name:"fade"},{default:d(()=>[a.value&&i.value?(e(),r("div",P,[(e(!0),r(g,null,x(n.menuItem.children,(O,B)=>(e(),c(N,{key:B,"menu-item":O,level:n.level+1},null,8,["menu-item","level"]))),128))])):m("",!0)]),_:1})])}}},Z=f(R,[["__scopeId","data-v-3df90fb3"]]),G={key:0,class:"lg:hidden bg-white border-t border-gray-200"},H={class:"px-2 pt-2 pb-3 space-y-1"},J={__name:"MobileMenu",props:{menuItems:{type:Array,required:!0},isOpen:{type:Boolean,default:!1}},emits:["update:isOpen"],setup(n,{emit:s}){const a=s;return W("closeMobileMenu",()=>{a("update:isOpen",!1)}),(p,i)=>(e(),c(y,{name:"slide"},{default:d(()=>[n.isOpen?(e(),r("div",G,[h("div",H,[(e(!0),r(g,null,x(n.menuItems,(o,l)=>(e(),c(Z,{key:l,"menu-item":o,level:0},null,8,["menu-item"]))),128))])])):m("",!0)]),_:1}))}},U=f(J,[["__scopeId","data-v-30d058ce"]]);export{U as M,Q as _};

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.