import{x as N,X as j,f as k,b as e,p as v,E as i,B as l,N as M,d as c,G as D,s as o,A as $,J as V,ab as I,W as O,z as S,c as f,v as y,F as B,D as P,q as R,H as w,aa as E,a6 as G,aN as q,ac as H,U as J,m as Q,$ as U,V as L,aO as W,P as C,aP as X,aE as K,aQ as Y,aR as Z}from"./entry.DCZz6JvG.js";import{_ as T,a as tt,b as et}from"./base-lang.DjwrBNEa.js";import{_ as at}from"./base-search-block.CKB5ZpWk.js";const nt=["data-type"],ot=["src","alt"],st=["textContent"],lt={__name:"base-nav-item",props:{nav:{type:Object,require:!0},isSidebar:{type:Boolean,default:!1},isShrink:{type:Boolean,default:!1},activeColor:{type:String,default:"primary"}},setup(a){const{$localePath:u}=V(),m=j(),d=a,p=k(()=>m.path===u(d.nav.routeName)),t=k(()=>m.path.includes(u(d.nav.routeName)));return(_,s)=>{const r=I;return e(),v(r,{class:"base-nav-item",to:o(u)(a.nav.routeName)},{default:i(()=>[l(M,null,{default:i(({isHovering:n,props:g})=>[c("li",D(g,{class:["nav-item d-flex align-center px-4 mb-1",[{"py-2":!a.isShrink},{"sidebar-nav-item":a.isSidebar},o(p)||o(t)?`active text-${a.activeColor}`:"",n?a.nav.routeName==="chat"?"text-tertiary":`text-${a.activeColor}`:"text-floral-white"]],"data-type":a.nav.routeName}),[c("img",{class:"mr-2",src:`/img/${a.nav.icon}-${n||o(p)||o(t)?a.nav.routeName==="chat"?"primary":a.activeColor:"white"}.svg`,alt:a.nav.icon},null,8,ot),c("p",{class:"mt-1",textContent:$(_.$t(a.nav.title))},null,8,st)],16,nt)]),_:1})]),_:1},8,["to"])}}},z=N(lt,[["__scopeId","data-v-300a40e9"]]),it={class:"app-footer rem-0 lh-150 bg-dark-black text-center text-md-left mb-0 mb-md-4 px-3 py-4 pa-md-0"},rt={key:0,class:"mb-2",src:T,alt:"logo-jcard-verify"},ct={class:"d-flex justify-center justify-md-start flex-wrap mb-2 mb-md-4"},ut=["textContent"],dt={class:"text-light-gray"},mt={__name:"app-footer",setup(a){const{$localePath:u}=V(),{t:m}=O(),d=S([{title:m("terms"),routeName:"terms"},{title:m("privacy"),routeName:"privacy"},{title:"Contact Us",routeName:"/#contact"}]);return(p,t)=>{const _=I;return e(),f("footer",it,[p.$vuetify.display.smAndDown?(e(),f("img",rt)):y("",!0),c("ul",ct,[(e(!0),f(B,null,P(o(d),(s,r)=>(e(),v(_,{key:s.title,class:"text-white",to:o(u)(s.routeName)},{default:i(()=>[c("li",{class:R(["text-decoration-underline mx-2 ml-md-0",{"mr-md-5":r===o(d).length-1}]),textContent:$(s.title)},null,10,ut)]),_:2},1032,["to"]))),128))]),c("p",dt,[w($(p.$t("starbit")),1),t[0]||(t[0]=c("br",null,null,-1)),t[1]||(t[1]=c("a",{class:"text-light-gray",href:"mailto:service@jcardv.com"}," service@jcardv.com ",-1)),t[2]||(t[2]=c("br",null,null,-1)),t[3]||(t[3]=w(" Copyright 2024. STARBIT. All Rights Reserved. "))])])}}},F=N(mt,[["__scopeId","data-v-f12bc7d0"]]),pt={},_t={class:"d-flex flex-column h-100"},vt={class:"nav-link-wrap flex-grow-1 mb-10"},ft=["textContent"];function yt(a,u){const m=H,d=z,p=F;return e(),v(q,{class:"app-navbar px-3 px-lg-7 py-5 py-lg-6 text-floral-white h-100",width:a.$vuetify.display.lgAndUp?280:192,color:"dark-black","mobile-breakpoint":"md"},{default:i(()=>[c("div",_t,[l(m,{to:"/explore"},{default:i(()=>u[0]||(u[0]=[c("img",{class:"can-click d-block mx-auto mb-6",src:T,alt:"logo-jcard-verify"},null,-1)])),_:1}),c("div",vt,[(e(!0),f(B,null,P(("constData"in a?a.constData:o(E)).NAV_LIST,(t,_)=>(e(),v(G,{key:_},{default:i(()=>[t.title?(e(),f("p",{key:0,class:"text-disabled font-weight-light rem-2 mb-2",textContent:$(a.$t(t.title))},null,8,ft)):y("",!0),(e(!0),f(B,null,P(t.nav,s=>(e(),f("ul",{key:s.title},[l(d,{"is-sidebar":"",nav:s},null,8,["nav"])]))),128))]),_:2},1024))),128))]),l(p)])]),_:1},8,["width"])}const xt=N(pt,[["render",yt],["__scopeId","data-v-46c56c8e"]]),bt={class:"app-header"},gt={class:"d-flex justify-space-between align-center w-100 px-3 px-md-6 px-lg-10"},ht={key:0,src:T,alt:"logo-jcard-verify"},$t={class:"flex-grow-1 flex-end flex-md-start"},kt={key:0,class:"d-flex align-center"},wt={key:0,class:"search-wrap w-100"},Nt={__name:"app-header",setup(a){const{$store:u,$localePath:m}=V(),d=j(),{showDialog:p}=J(),t=S(!1),_=[{title:"logout",icon:"/img/icon-logout.svg",clickEvent:()=>p("logout")}];Q(()=>d.query.v,r=>{s.value=r});const s=S(null);return(r,n)=>{const g=I,A=tt,h=et,b=at;return e(),f("div",bt,[l(W,{app:"",fixed:"",flat:"",height:"60",color:r.$vuetify.display.smAndDown?"dark-black":"transparent"},{default:i(()=>[c("div",gt,[l(g,{to:o(m)("/explore")},{default:i(()=>[r.$vuetify.display.smAndDown?(e(),f("img",ht)):y("",!0)]),_:1},8,["to"]),c("div",$t,[r.$vuetify.display.smAndDown?(e(),v(U,{key:0,class:"d-block ml-auto",icon:"",onClick:n[0]||(n[0]=x=>t.value=!o(t))},{default:i(()=>[l(L,null,{default:i(()=>n[5]||(n[5]=[w("mdi-magnify")])),_:1})]),_:1})):y("",!0)]),o(u).isLogin?(e(),v(A,{key:1,"open-on-hover":"",list:_},{button:i(()=>[l(L,{class:"rem-18 mr-3 ml-0 mx-md-7 can-click",icon:"mdi-account-circle"})]),_:1})):(e(),f("div",kt,[l(U,{class:"rem-2 font-weight-medium",flat:"",type:"text",onClick:n[1]||(n[1]=x=>o(p)("login"))},{default:i(()=>[w($(`${r.$t("login")}/${r.$t("register")}`),1)]),_:1})])),l(h)])]),_:1},8,["color"]),r.$vuetify.display.mdAndUp?(e(),f("div",wt,[l(b,{"input-text":o(s),"onUpdate:inputText":n[2]||(n[2]=x=>C(s)?s.value=x:null),"is-absolute":""},null,8,["input-text"])])):y("",!0),r.$vuetify.display.smAndDown?(e(),v(q,{key:1,modelValue:o(t),"onUpdate:modelValue":n[4]||(n[4]=x=>C(t)?t.value=x:null),class:R(["mobile-search-drawer text-center pa-3",{"is-ios":r.$vuetify.display.platform.ios}]),mobile:"",temporary:"",elevation:"0",location:"top",color:"dark-black",width:"fit-content"},{default:i(()=>[l(b,{"input-text":o(s),"onUpdate:inputText":n[3]||(n[3]=x=>C(s)?s.value=x:null)},null,8,["input-text"])]),_:1},8,["modelValue","class"])):y("",!0)])}}},Vt={class:"pa-4 py-sm-6 px-md-6 px-lg-10"},At={__name:"default",setup(a){const{$localePath:u}=V(),m=j(),d=k(()=>E.NAV_LIST.map(t=>t.nav).flat()),p=k(()=>{const t=d.value.find(_=>m.path===u(`/${_.routeName}`)||m.path.includes(u(`/${_.routeName}`)));return t?t.title:d.value[0].title});return(t,_)=>{const s=xt,r=Nt,n=z,g=Z,A=F;return e(),v(X,{class:"bg-default text-floral-white"},{default:i(()=>[t.$vuetify.display.mdAndUp?(e(),v(s,{key:0})):y("",!0),l(Y,{class:"main-container"},{default:i(()=>[l(r),t.$vuetify.display.smAndDown?(e(),v(K,{key:0,class:"mobile-nav-select bg-dark-black w-100 px-4 pb-4","model-value":o(p),"hide-details":"",density:"compact",variant:"underlined","base-color":"disabled",color:"disabled","item-value":"title","menu-icon":"mdi-chevron-down",items:o(d)},{item:i(({props:h,item:b})=>[l(n,D(h,{"active-color":"white",nav:b.raw}),null,16,["nav"])]),selection:i(({props:h,item:b})=>[l(n,D(h,{"is-shrink":"","active-color":"white",nav:b.raw}),null,16,["nav"])]),_:1},8,["model-value","items"])):y("",!0),c("div",Vt,[l(g)])]),_:1}),t.$vuetify.display.smAndDown?(e(),v(A,{key:1})):y("",!0)]),_:1})}}},Bt=N(At,[["__scopeId","data-v-19e25064"]]);export{Bt as default};