1import{_ as yt,a as vt,b as gt,u as Ht}from"./BenqGniG.js";import{_ as Nt}from"./C77e7LPx.js";import{_ as kt}from"./Cyg0ILCn.js";import{d as P,u as V,a as h,o as a,k as v,g as m,w as y,c as g,n as St,e,t as N,i as q,G as C,I as O,s as b,y as xt,b as T,F as U,v as K,aW as lt,aX as rt,a0 as D,f as G,aF as j,q as Lt,aY as _t,r as Tt,aM as F,aN as $t,aP as wt,R as Ct,S as Ot,T as Q,X as Pt,V as M}from"./BBKurOgx.js";import{_ as mt}from"./WN3fExy9.js";import{i as Vt,a as X,b as At}from"./DqS7qbwB.js";import{_ as It}from"./B0NgYvLY.js";import{_ as jt}from"./8OAhEEfC.js";import{_ as pt}from"./D26n8Hh3.js";import{u as B,b as z,a as Y,H as Z}from"./C16N9MUK.js";import{_ as Rt}from"./C8zCtk4u.js";import{_ as qt}from"./CdlRHQzL.js";import{R as tt}from"./CSbnGII3.js";import{_ as Bt}from"./CVvBK8PI.js";import{c as R,b as Et,h as et}from"./DkJsfXBo.js";import"./s2ZSndgg.js";import"./BOqnTihC.js";import"./BHE8rT2q.js";import"./39HTn8qj.js";import"./sj7z3y0c.js";import"./CNB_kDo5.js";import"./B1jidDPb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"a09ff98ccc30a3bad24dc4ea763b05c76982fc94"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="8e6ed0be-6437-40f9-884c-e8045c821457",s._sentryDebugIdIdentifier="sentry-dbid-8e6ed0be-6437-40f9-884c-e8045c821457")}catch{}})();const Ft={class:"ho-hub-switch-tab-target"},Mt={class:"list"},Ut={class:"item"},Kt={class:"text"},Dt={class:"item"},zt={class:"text"},dt=P({__name:"HoHubSwitchTabTarget",props:{selectedOption:{default:"item1"}},emits:["switchSelectedOption"],setup(s,{emit:t}){const i=s,p=t,n=V(),r=d=>{p("switchSelectedOption",d)};return(d,u)=>{const _=St,c=mt;return a(),h("div",Ft,[v("ul",Mt,[v("li",Ut,[m(c,{"aria-selected":i.selectedOption==="item1",class:"link custom-button",type:"button",size:"lg",onClick:u[0]||(u[0]=l=>r("item1"))},{default:y(()=>[i.selectedOption!=="item1"?(a(),g(_,{key:0,src:e(Vt),class:"icon"},null,8,["src"])):(a(),g(_,{key:1,src:e(X),class:"icon"},null,8,["src"])),v("span",Kt,N(e(n).t("options.item1")),1)]),_:1},8,["aria-selected"])]),v("li",Dt,[m(c,{"aria-selected":i.selectedOption==="item2",class:"link custom-button",type:"button",size:"lg",onClick:u[1]||(u[1]=l=>r("item2"))},{default:y(()=>[i.selectedOption!=="item2"?(a(),g(_,{key:0,src:e(At),class:"icon"},null,8,["src"])):(a(),g(_,{key:1,src:e(X),class:"icon"},null,8,["src"])),v("span",zt,N(e(n).t("options.item2")),1)]),_:1},8,["aria-selected"])])])])}}});function ot(s){const t=s;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{options:{item1:{t:0,b:{t:2,i:[{t:3}],s:"é
ä¿¡ã¹ã±ã¸ã¥ã¼ã«"}},item2:{t:0,b:{t:2,i:[{t:3}],s:"ã¢ã³ããµãã¼ä¸è¦§"}}}},en:{options:{item1:{t:0,b:{t:2,i:[{t:3}],s:"Stream Schedules"}},item2:{t:0,b:{t:2,i:[{t:3}],s:"List of Ambassadors"}}}}}})}typeof ot=="function"&&ot(dt);const Jt=Object.assign(q(dt,[["__scopeId","data-v-3753d3d3"]]),{__name:"HoHubSwitchTabTarget"}),Wt={class:"ho-hub-official-ambassador-section-user"},Gt={key:0,class:"empty-state"},Qt={class:"text"},bt=P({__name:"HoHubOfficialAmbassadorSectionUser",setup(s){const t=V(),i=C(B)??O("useHubNotificationInjectionKey not provided"),p=b(()=>i.ambassadorList.value??new Array(20).fill(null));return(n,r)=>{const d=jt,u=pt;return a(),h("div",Wt,[m(u,{class:xt({"-ambassador-container":!0})},{default:y(()=>[(a(!0),h(U,null,K(e(p),(_,c)=>(a(),g(d,{key:_?.id?_.id:`empty-${c}`,model:_,"hub-type":"ambassador_user"},null,8,["model"]))),128)),e(p).length===0?(a(),h("div",Gt,[v("p",Qt,N(e(t).t("no_ambassadors")),1)])):T("",!0)]),_:1})])}}});function st(s){const t=s;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{no_ambassadors:{t:0,b:{t:2,i:[{t:3}],s:"ã¢ã³ããµãã¼ãè¦ã¤ããã¾ããã§ãã"}}},en:{no_ambassadors:{t:0,b:{t:2,i:[{t:3}],s:"No ambassadors found"}}}}})}typeof st=="function"&&st(bt);const Xt=Object.assign(q(bt,[["__scopeId","data-v-909a53b3"]]),{__name:"HoHubOfficialAmbassadorSectionUser"}),Yt={class:"ho-hub-official-ambassador-section-hub"},Zt={key:0,class:"empty-state"},te={class:"empty-message"},ee={key:1,class:"more-container"},oe={class:"text"},se={key:2,class:"empty-state"},ae={class:"empty-message"},ne={key:3,class:"more-container"},ie={class:"text"},ft=P({__name:"HoHubOfficialAmbassadorSectionHub",props:lt({permalink:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const t=s,i=rt(s,"modelValue"),p=V(),n=D(),r=C(B)??O("useHubNotificationInjectionKey not provided"),d=C(z)??O("useHubNotificationPastInjectionKey not provided"),u=b(()=>r.hubNotificationList.value===null?Array(15).fill(null):r.hubNotificationList.value||[]),_=b(()=>d.hubNotificationList.value===null?Array(15).fill(null):d.hubNotificationList.value||[]),c=b(()=>r.pagination.value),l=b(()=>d.pagination.value),$=b(()=>!!c.value?.next),w=b(()=>!!l.value?.next),S=b(()=>r.hubNotificationList.value!==null&&r.hubNotificationList.value?.length===0),o=b(()=>d.hubNotificationList.value!==null&&d.hubNotificationList.value?.length===0),f=async()=>
1{if(!c.value?.next)return;const H=(c.value.page||1)+1;i.value=!0,await j({path:n.path,query:{...n.query,page:H,is_past:"false"}})},L=async()=>{if(!l.value?.next)return;const H=(l.value.page||1)+1;i.value=!0,await j({path:n.path,query:{...n.query,page:H,is_past:"true"}})};return(H,A)=>{const I=Rt,x=qt,J=pt,W=mt;return a(),h("div",Yt,[m(I,{class:"future"},{default:y(()=>[G(N(e(p).t("future")),1)]),_:1}),m(J,null,{default:y(()=>[(a(!0),h(U,null,K(e(u),(k,E)=>(a(),g(x,{key:k?.id||`future-skeleton-${E}`,model:k,"link-to":k?`/hub/${t.permalink}/official_ambassador/${k.id}`:void 0},null,8,["model","link-to"]))),128))]),_:1}),e(S)?(a(),h("div",Zt,[v("p",te,N(e(p).t("empty.future")),1)])):T("",!0),e($)&&!e(S)?(a(),h("div",ee,[m(W,{class:"button",visual:"purple","fixed-size":"",disabled:i.value,onClick:f},{default:y(()=>[m(e(tt),{class:"icon"}),v("span",oe,N(e(p).t("more")),1)]),_:1},8,["disabled"])])):T("",!0),m(I,{class:"past"},{default:y(()=>[G(N(e(p).t("past")),1)]),_:1}),m(J,null,{default:y(()=>[(a(!0),h(U,null,K(e(_),(k,E)=>(a(),g(x,{key:k?.id||`past-skeleton-${E}`,model:k,"link-to":k?`/hub/${t.permalink}/official_ambassador/${k.id}`:void 0},null,8,["model","link-to"]))),128))]),_:1}),e(o)?(a(),h("div",se,[v("p",ae,N(e(p).t("empty.past")),1)])):T("",!0),e(w)&&!e(o)?(a(),h("div",ne,[m(W,{class:"button",visual:"purple","fixed-size":"",disabled:i.value,onClick:L},{default:y(()=>[m(e(tt),{class:"icon"}),v("span",ie,N(e(p).t("more")),1)]),_:1},8,["disabled"])])):T("",!0)])}}});function at(s){const t=s;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{future:{t:0,b:{t:2,i:[{t:3}],s:"éå¬äºå®ã®ã¤ãã³ã"}},past:{t:0,b:{t:2,i:[{t:3}],s:"çµäºããã¤ãã³ã"}},more:{t:0,b:{t:2,i:[{t:3}],s:"ããã«è¡¨ç¤º"}},empty:{future:{t:0,b:{t:2,i:[{t:3}],s:"éå¬äºå®ã®ã¤ãã³ãã¯ããã¾ãã"}},past:{t:0,b:{t:2,i:[{t:3}],s:"çµäºããã¤ãã³ãã¯ããã¾ãã"}}}},en:{future:{t:0,b:{t:2,i:[{t:3}],s:"Upcoming Events"}},past:{t:0,b:{t:2,i:[{t:3}],s:"Finished Events"}},more:{t:0,b:{t:2,i:[{t:3}],s:"View More"}},empty:{future:{t:0,b:{t:2,i:[{t:3}],s:"No upcoming events yet!"}},past:{t:0,b:{t:2,i:[{t:3}],s:"No finished events yet!"}}}}}})}typeof at=="function"&&at(ft);const ue=Object.assign(q(ft,[["__scopeId","data-v-dbd81614"]]),{__name:"HoHubOfficialAmbassadorSectionHub"}),nt=Lt("/images/hub/hero-ambassador.webp?url"),ce={class:"ht-hub-official-ambassador"},ht=P({__name:"HtHubOfficialAmbassador",props:lt({hubType:{},permalink:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const t=s,i=rt(s,"modelValue"),p=V(),n=D(),r=C(B)??O("useHubNotificationInjectionKey not provided"),d=C(z)??O("useHubNotificationPastInjectionKey not provided"),u=b({get:()=>String(n.query.locale)==="global"?"en":"ja",set:c=>{const l=c==="ja"?R.JP:R.GLOBAL;r.setState({ambassadorList:null,hubNotificationList:null}),d.setState({hubNotificationList:null}),j({path:n.path,query:{hub_type:t.hubType||"ambassador_user",locale:l,page:1}})}}),_=async c=>{const l=c==="item1"?"ambassador_hub":"ambassador_user";r.setState({ambassadorList:null,hubNotificationList:null}),d.setState({hubNotificationList:null}),await j({path:n.path,query:{hub_type:l,page:1}})};return(c,l)=>{const $=yt,w=vt,S=Nt,o=kt,f=Jt,L=It,H=Xt,A=ue,I=Bt;return a(),h("section",ce,[m($),m(w,{current:"item2",name:"official-ambassador",permalink:t.permalink},null,8,["permalink"]),m(I,null,{default:y(()=>[m(o,null,{banner:y(()=>[m(S,{"src-pc":e(nt),"src-sp":e(nt)},null,8,["src-pc","src-sp"])]),description:y(()=>[v("p",null,N(e(p).t("description")),1)]),_:1}),m(f,{"selected-option":c.hubType==="ambassador_user"?"item2":"item1",onSwitchSelectedOption:_},null,8,["selected-option"]),t.hubType==="ambassador_hub"?(a(),g(L,{key:0,modelValue:e(u),"onUpdate:modelValue":l[0]||(l[0]=x=>_t(u)?u.value=x:null)},null,8,["modelValue"])):T("",!0),t.hubType==="ambassador_user"?(a(),g(H,{key:1,modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=x=>i.value=x)},null,8,["modelValue"])):t.hubType==="ambassador_hub"?(a(),g(A,{key:2,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=x=>i.value=x),permalink:t.permalink},null,8,["modelValue","permalink"])):T("",!0)]),_:1})])}}});function it(s){const t=s;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{description:{t:0,b:{t:2,i:[{t:3}],s:"å
¬å¼é
ä¿¡ã§ã¯éä¼å¼ãéä¼å¼ã®ã»ããVketã¹ã¿ããã豪è¯ãªåºæ¼ã²ã¹ãããã¼ãã£ã«ãã¼ã±ããã®é
åãçºä¿¡ãã¾ãï¼"}}},en:{description:{t:0,b:{t:2,i:[{t:3}],s:"Watch Vket's official streams, including the Opening and Closing Ceremonies, where Vket staff and special guests showcase the excitement of Virtual Market!"}}}}})}typeof it=="function"&&it(ht);const le=Object.assign(q(ht,[["__scopeId","data-v-646e7005"]]),{__name:"HtHubOfficialAmbassador"}),ut=1,re=P({__name:"index",async setup(s){let t,i;const p=V(),n=D(),r=Tt(!1),d=gt(),u=Y(),_=Y();M(B,u),M(z,_),M(Ht,d);const c=b(()=>{const o=String(n.query.hub_type||"ambassador_hub");return F(Et,o)?o:"ambassador_hub"}),l=b(()=>({})),$=b(()=>{const o=String(n.query.locale||R.JP);return{category:"user_event",locale:F(et,o)?o:"jp",page:Number(n.query.page)||ut,limit:Z,afterToday:!0,by_ambassador:!0}}),w=b(()=>{const o=String(n.query.locale||R.JP);return{category:"user_event",locale:F(et,o)?o:"jp",page:Number(n.query.page)||ut,limit:Z,past:!0,by_ambassador:!0}}),S=$t(wt,n.params.permalink);return[t,i]=Ct(async()=>Ot(async()=>{r.value=!0;
1try{if(c.value==="ambassador_user")return{ammbassadorResponse:{ambassadors:await u.fetchAllAmbassadors(l.value)}};{const o=n.query.is_past===void 0||u.hubNotificationList.value===null&&_.hubNotificationList.value===null,f=o||n.query.is_past==="false",L=o||n.query.is_past==="true",[H,A]=await Promise.all([f?u.fetchHubNotificationsWithLoadMore(S,$.value):null,L?_.fetchHubNotificationsWithLoadMore(S,w.value):null]);return{hubNotificationResponse:H,hubNotificationPastResponse:A}}}finally{r.value=!1}},{watch:[l,$,w]},"$KJj50nKCus").then(({data:o,error:f})=>{if(f.value)return console.error(f.value),Q({statusCode:f.value.statusCode,statusMessage:"Failed to load ambassador data",fatal:!0,cause:f.value});o.value&&(c.value==="ambassador_user"&&o.value.ammbassadorResponse?u.setState({ambassadorList:o.value.ammbassadorResponse.ambassadors}):c.value==="ambassador_hub"&&(o.value.hubNotificationResponse&&u.setState({hubNotificationList:o.value.hubNotificationResponse.hubNotifications,pagination:o.value.hubNotificationResponse.pagination}),o.value.hubNotificationPastResponse&&_.setState({hubNotificationList:o.value.hubNotificationPastResponse.hubNotifications,pagination:o.value.hubNotificationPastResponse.pagination})))}).catch(o=>(console.error(o),Q({statusCode:404,statusMessage:"Ambassador page not found",fatal:!0,cause:o})))),await t,i(),Pt({title:()=>p.t("title"),ogTitle:()=>p.t("title")}),(o,f)=>{const L=le;return a(),g(L,{modelValue:e(r),"onUpdate:modelValue":f[0]||(f[0]=H=>_t(r)?r.value=H:null),"hub-type":e(c),permalink:e(S)},null,8,["modelValue","hub-type","permalink"])}}});function ct(s){const t=s;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{ja:{title:{t:0,b:{t:2,i:[{t:3}],s:"å ¬å¼é ä¿¡"}}},en:{title:{t:0,b:{t:2,i:[{t:3}],s:"Official Streams"}}}}})}typeof ct=="function"&&ct(re);export{re as default}; 2//# sourceMappingURL=CJCTV9Bf.js.map
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.