1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./u8ct8HhC.js","./CyZptx9T.js","../entry/CvOj14bM.js","../css/Cw8wwzH5.css","./B0s2JZZk.js","./C8cQM8HF.js","./C_uwkErf.js","../css/ZJGnYcO4.css","./MnpE2Aw6.js","./CYGtrTG9.js","../css/DqZiiLLn.css","../css/Du7Q3SEd.css","./CssAQtqy.js","../css/C9wlchkK.css","../css/x1fzkVuC.css","./BHejKjRt.js","../css/C5uUWUJU.css","../css/C-OFH2j0.css","./dpYHGOFd.js","./BQZUoKP-.js","./B5RRF-O3.js","../css/VvP2Tft8.css","./B0HU3hll.js","../css/BhERWSAo.css","./C9F9XaXj.js","../css/DlofjD8-.css","../css/CP3XVIlA.css","./CjX0g9xF.js","../css/DTAPzOQk.css","./79eXbm6j.js","./Dz2ttmSP.js","../css/BKBF43be.css","./CRTrpBzT.js","../css/DqsGZ9Eb.css","../css/CUCheLhY.css","../css/Ks_QtDyl.css","./CHcjeMlP.js","./DCU0DltL.js","../css/DhwVGDnL.css","./pEfTBITk.js","./CGiZAl_v.js","./nOfLpEe8.js","../css/Cg1UlRUw.css","../css/C7aF_wWQ.css","./lLOq5S6-.js","../css/B76EETiD.css","../css/BltlYoS6.css","../css/FRC-qW7e.css","./Bi_NcBG3.js","../css/Df0P9vLT.css","./BdDWqpwj.js","../css/BubsdaOg.css","./DW7HbfmE.js","./DOp3H2-C.js","../css/CCPc7OqZ.css","../css/CyJlzk-O.css","./MbgbJGxV.js","../css/DfmDDaSK.css","./CgFLUfPS.js","./qylac7sR.js","./C1qmAfHs.js","./SqAzaIDF.js","../css/CXy65TB0.css","../css/CSd7gwGe.css","./DEcad6WP.js","../css/CU4kZ6r0.css","../css/CvIgHCNx.css","../css/BAVnMgV9.css","./CJ-5EA4Q.js","./Bg5dqnz5.js","../css/B-XverpW.css","../css/DObw3Wrb.css","./DSEVmHMA.js","./C75ljDn-.js","../css/CIQdc7nh.css","../css/CU9hnQjP.css","./DfK0Fulr.js","./BKoWzbU3.js","../css/Bx00yiTk.css","../css/BiTVLV-x.css","./DX6vfA_C.js","./C3meeeJG.js","../css/B0qk9PmS.css","../css/drHUcV-f.css","./BkFEACOJ.js","../css/MccNm6dN.css"])))=>i.map(i=>d[i]); 2import{_}from"../entry/CvOj14bM.js";import{_ as Ze}from"./79eXbm6j.js";import{a as ce}from"./MbgbJGxV.js";import{_ as x,y as le,s as ue,L as Ee,x as Ie,G as pe,N as de,H as U,a6 as z,a7 as me,b2 as se,bI as Qe,c as l,P as $e,F as B,e,k as P,n as s,b5 as Ge,f as y,aw as qe,b as v,ag as _e,o as a,b8 as Je,i as f,l as Ke,bl as Xe,a as u,t as c,C as Te,h as Pe,j as T,u as Ye,p as De,K as Se,I as Ae,w as L,v as Re,z as ke,a5 as xe,ak as et,a4 as tt,bG as nt,a8 as ot,ai as st,m as Y}from"./CyZptx9T.js";import{A as at}from"./pEfTBITk.js";import{_ as Me}from"./C9F9XaXj.js";import{a as rt}from"./B0s2JZZk.js";import{_ as it}from"./BHejKjRt.js";import{_ as ct}from"./u8ct8HhC.js";import{c as lt,a as ut}from"./CGiZAl_v.js";const pt="_component_container",dt="_component_containerWhithoutAccess",mt="_component_content",_t="_component_error",vt={container:pt,containerWhithoutAccess:dt,content:mt,error:_t},Ct={key:1},yt={__name:"[component]",setup(b){const M=le(),p=ue(),d=Ee(),D=Ie(),g=pe(),{$getPageTitle:S,$getPageSocialData:w,$getChannelMetaDescription:A,$device:F,$bus:C}=de();function W(){const{config:n}=M,$={},I=p.getCurrentComponent;if(!I||g.name!=="component")return;$.title=S(),$.meta=[];let k=null;I.descriptionHtml&&(k=A(),$.meta.push({property:"description",name:"description",content:k})),I.isIndexableByRobots||$.meta.push({name:"robots",content:"noindex"});const r=`https://${n.bepDomain}${g.fullPath}`,Q=F.isMobile?I.config?.mobileBannerUrl:I.config?.desktopBannerUrl;$.meta=$.meta.concat(w(r,I.name,k,Q)),_e($)}const{getCurrentComponentType:h}=U(p),{isReadonly:q}=U(M),{getCurrentBrandCategoryId:J}=U(D),{getCurrentComponentId:R}=U(p),V=f(()=>h.value&&!p.isMetapostChannel(h.value)?Ke({loader:()=>Xe(Object.assign({
2"../../../../components/tokyComponents/CCategoryFeed.vue":()=>_(()=>import("./u8ct8HhC.js").then(n=>n.C),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),
2"../../../../components/tokyComponents/CChatroom.vue":()=>_(()=>import("./dpYHGOFd.js").then(n=>n.C),__vite__mapDeps([18,1,2,3,19,20,12,5,6,7,8,9,10,11,13,21,22,23,24,25,26,27,15,4,14,16,28,29,30,31,32,33,34,35]),import.meta.url),
2"../../../../components/tokyComponents/CContest.vue":()=>_(()=>import("./CHcjeMlP.js"),__vite__mapDeps([36,37,1,2,3,12,5,6,7,8,9,10,11,13,38,4,14,39,40,15,16,0,17,19,20,21,22,23,24,25,26,41,42,43,44,45,46,47]),import.meta.url),
2"../../../../components/tokyComponents/CContestId.vue":()=>_(()=>Promise.resolve().then(()=>Ft),void 0,import.meta.url),
2"../../../../components/tokyComponents/CCustomPage.vue":()=>_(()=>import("./CssAQtqy.js").then(n=>n.C),__vite__mapDeps([12,1,2,3,5,6,7,8,9,10,11,13]),import.meta.url),
2"../../../../components/tokyComponents/CEvents.vue":()=>_(()=>import("./Bi_NcBG3.js"),__vite__mapDeps([48,37,1,2,3,12,5,6,7,8,9,10,11,13,38,20,21,4,14,49]),import.meta.url),
2"../../../../components/tokyComponents/CEventsId.vue":()=>_(()=>Promise.resolve().then(()=>An),void 0,import.meta.url),
2"../../../../components/tokyComponents/CHome.vue":()=>_(()=>import("./BdDWqpwj.js").then(n=>n.C),__vite__mapDeps([50,29,1,2,3,24,6,7,5,8,9,10,11,25,30,4,12,13,14,31,32,33,34,0,15,16,17,20,21,51]),import.meta.url),
2"../../../../components/tokyComponents/CMetapostDetails.vue":()=>_(()=>import("./DW7HbfmE.js").then(n=>n.C),__vite__mapDeps([52,2,29,1,3,24,6,7,5,8,9,10,11,25,30,4,12,13,14,31,32,33,34,40,15,16,0,17,19,20,21,22,23,26,41,42,43,53,39,44,45,46,54,55]),import.meta.url),
2"../../../../components/tokyComponents/CMetapostList.vue":()=>_(()=>import("./MbgbJGxV.js").then(n=>n.b),__vite__mapDeps([56,1,2,3,20,12,5,6,7,8,9,10,11,13,21,4,14,39,40,15,16,0,17,19,22,23,24,25,26,41,42,43,44,45,46,57]),import.meta.url),
2"../../../../components/tokyComponents/CModeration.vue":()=>_(()=>import("./CgFLUfPS.js"),__vite__mapDeps([58,20,1,2,3,12,5,6,7,8,9,10,11,13,21,0,4,14,15,16,17,59,19,22,23,24,25,26,60,61,62,63,64,27,28,65,66,67]),import.meta.url),
2"../../../../components/tokyComponents/CProductFeed.vue":()=>_(()=>import("./CJ-5EA4Q.js"),__vite__mapDeps([68,5,1,2,3,6,7,8,9,10,11,20,12,13,21,69,70,56,4,14,39,40,15,16,0,17,19,22,23,24,25,26,41,42,43,44,45,46,57,71]),import.meta.url),
2"../../../../components/tokyComponents/CProductFeedId.vue":()=>_(()=>import("./MbgbJGxV.js").then(n=>n.c),__vite__mapDeps([56,1,2,3,20,12,5,6,7,8,9,10,11,13,21,4,14,39,40,15,16,0,17,19,22,23,24,25,26,41,42,43,44,45,46,57]),import.meta.url),
2"../../../../components/tokyComponents/CProductTestingCampaign.vue":()=>_(()=>import("./DSEVmHMA.js"),__vite__mapDeps([72,37,1,2,3,12,5,6,7,8,9,10,11,13,38,4,14,73,74,75]),import.meta.url),
2"../../../../components/tokyComponents/CProductTestingCampaignId.vue":()=>_(()=>import("./DfK0Fulr.js"),__vite__mapDeps([76,1,2,3,20,12,5,6,7,8,9,10,11,13,21,73,4,14,74,77,78,56,39,40,15,16,0,17,19,22,23,24,25,26,41,42,43,44,45,46,57,79]),import.meta.url),
2"../../../../components/tokyComponents/CQuestions.vue":()=>_(()=>import("./qylac7sR.js").then(n=>n.b),__vite__mapDeps([59,1,2,3,5,6,7,8,9,10,11,12,13,4,14,15,16,0,17,19,20,21,22,23,24,25,26,60,61,62,63,64,27,28,65,66]),import.meta.url),
2"../../../../components/tokyComponents/CRewardShop.vue":()=>_(()=>import("./DX6vfA_C.js").then(n=>n.C),__vite__mapDeps([80,1,2,3,81,82,5,6,7,8,9,10,11,0,4,12,13,14,15,16,17,83]),import.meta.url),
2"../../../../components/tokyComponents/CRewardShopId.vue":()=>_(()=>import("./DX6vfA_C.js").then(n=>n.a),__vite__mapDeps([80,1,2,3,81,82,5,6,7,8,9,10,11,0,4,12,13,14,15,16,17,83]),import.meta.url),
2"../../../../components/tokyComponents/CSurvey.vue":()=>_(()=>import("./BkFEACOJ.js"),__vite__mapDeps([84,1,2,3,85]),import.meta.url),
2"../../../../components/tokyComponents/CTokyQuestionsQuestion.vue":()=>_(()=>import("./qylac7sR.js").then(n=>n.a),__vite__mapDeps([59,1,2,3,5,6,7,8,9,10,11,12,13,4,14,15,16,0,17,19,20,21,22,23,24,25,26,60,61,62,63,64,27,28,65,66]),import.meta.url),
2"../../../../components/tokyComponents/CTokyQuestionsQuestionAnswer.vue":()=>_(()=>import("./DEcad6WP.js").then(n=>n.a),__vite__mapDeps([64,1,2,3,15,4,5,6,7,8,9,10,11,12,13,14,16,0,17,19,20,21,22,23,24,25,26,27,28,65]),import.meta.url)
2}),`../../../../components/tokyComponents/C${h.value}.vue`,7)}):null),H=f(()=>p.getPermissionTypeNeededForComponentType(h.value)),Z=f(()=>{const n=H.value;return n?d.isCurrentUserAllowedTo(n,J.value,R.value):!1});if(z(g,()=>{W()}),me(()=>{C.$on("reloadComponent",n=>{n[0]===R.value&&Je()?.proxy?.$forceUpdate()})}),!g.params.component||!p.components)throw se({statusCode:404,fatal:!0});let i=null;if(/^([0-9]+)$/.test(g.params.component.toString()))i=Number.parseInt(g.params.component.toString());else{const n=g.params.component.toString().match(/^([a-z0-9-]+)-([0-9]+)$/);n.length===3&&(i=Number.parseInt(n[2]))}const E=p.components.find(n=>n.id===i);if(!i||!E||!Qe().filterLimitedComponentsWithRoleOnly([E]).some(n=>n.id===i))throw se({statusCode:404,fatal:!0});return W(),(n,$)=>{const I=Ze,k=ce,r=qe;return a(),l("div",{class:s({[n.$style.container]:!0,[n.$style.containerWhithoutAccess]:!e(Z)})},[(n._.provides[$e]||n.$route).name==="component"?(a(),l(B,{key:0},[e(Z)?e(p).isMetapostChannel(e(h))?(a(),P(k,{key:1,"headless-horizontal":e(q)},null,8,["headless-horizontal"])):(a(),l("div",{key:2,class:s(n.$style.content)},[(a(),P(Ge(e(V))))],2)):(a(),P(I,{key:0,"component-id":e(R),"permission-type":e(H),class:s(n.$style.error)},null,8,["component-id","permission-type","class"]))],64)):(n._.provides[$e]||n.$route).name==="details"?(a(),l("div",Ct,[y(r)])):v("",!0)],2)}}},bt={$style:vt},gt=x(yt,[["__cssModules",bt]]),jn=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),ft="AppContestTodo_container",ht="AppContestTodo_completed",$t="AppContestTodo_header",kt={container:ft,completed:ht,header:$t},Et={components:{AppCondition:Me},props:{unlockable:{type:Object,default:()=>{}}},computed:{allConditionsCompleted(){return this.unlockable?.conditions?.every(b=>b.progression?.completed)}},methods:{onSnakeLink(){this.$analytics.track("contest:snakelinksocial:click")}}},It={key:0},Tt=["innerHTML"];function Pt(b,M,p,d,D,g){const S=Me,w=Pe;return p.unlockable?(a(),l("div",It,[g.allConditionsCompleted?(a(),l("div",{key:1,"data-testid":"contest-todo-completed-container",class:s([b.$style.container,b.$style.completed])},[y(w,{icon:["fas","check"]}),T(" "+c(b.$t("contest.thank_you_for_your_participation_stay_tuned_for_the_results")),1)],2)):(a(),l("div",{key:0,class:s(b.$style.container)},[u("div",{class:s(b.$style.header)},[u("div",null,c(b.$t("contest.to_do")),1),p.unlockable.nbPointsEarnt>0?(a(),l("div",{key:0,innerHTML:b.$t("general.nbExp_exp",{nbExp:p.unlockable.nbPointsEarnt})},null,8,Tt)):v("",!0)],2),u("div",null,[(a(!0),l(B,null,Te(p.unlockable.conditions,A=>(a(),P(S,{key:A.id,condition:A,onSnakeLink:g.onSnakeLink},null,8,["condition","onSnakeLink"]))),128))])],2))])):v("",!0)}const Dt={$style:kt},St=x(Et,[["render",Pt],["__cssModules",Dt]]),At="CContestId_conditionsContainer",Rt="CContestId_title",Mt="CContestId_text",wt="CContestId_cta",Lt="CContestId_todo",Ot="CContestId_metaposts",Bt={conditionsContainer:At,title:Rt,text:Mt,cta:wt,todo:Lt,metaposts:Ot},Ut={key:0},Vt=["innerHTML"],Ht={key:1},Nt={__name:"CContestId",props:{id:{type:Number,default:null}},async setup(b){let M,p;const d=b,D=Ye(),g=De(),S=le(),w=ue(),{currentUser:A}=U(g),{openPopupRegister:F}=Se(),C=f(()=>D.getContestById(d.id)),W=f(()=>S.isReadonly),h=f(()=>{const i=new Date(`${C.value.beginDate}Z`),E=new Date(`${C.value.endDate}Z`),n=new Date;return i<n&&E>n}),q=f(()=>h.value&&!C.value.currentUserHasAcceptedTAndC&&(C.value.tAndC||A.value)),J=f(()=>h.value||C.value.unlockable?.conditions?.every(i=>i.progression?.completed));async function R(i,E=!1){try{await D.fetchContest(i,E)}catch{throw se({statusCode:404,fatal:!0})}}function V(i){const{config:E}=S,{$getContestTitle:n,$getContestMetaDescription:$,$getPageSocialData:I}=de(),k={};if(k.meta=[],i){const Q=n(i);k.title=Q;const ee=$(i);k.meta.push({property:"description",name:"description",content:ee});const ae=`https://${E.bepDomain}${pe().fullPath}`;k.meta=k.meta.concat(I(ae,Q,ee,i.coverPictureUrl))}const r=w.getCurrentComponent;(!r||!r.isIndexableByRobots)&&k.meta.push({name:"robots",content:"noindex"}),_e(k)}async function H(){A.value&&C.value&&!C.value.currentUserHasAcceptedTAndC&&(C.value.tAndC===null||C.value.tAndC==="")&&await D.joinContest(d.id)}function Z(){if(!A.value){F();return}D.joinContest(d.id)}return me(()=>{H()}),z(A,async(i,E)=>{!i||E&&i.id===E.id||(D.deleteContestFromStore(d.id),await R(d.id),H())}),z(()=>d.id,()=>{V(C.value)}),[M,p]=Ae(()=>R(d.id,!0)),await M,p(),V(C.value),(i,E)=>e(C)?(a(),l("div",Ut,[y(e(at),{contest:e(C),"is-detail":""},null,8,["contest"]),e(q)?(a(),l("div",{key:0,class:s(i.$style.conditionsContainer)},[u("div",{class:s(i.$style.title)},c(i.$t("contest.t&cs")),3),u("div",{class:s(i.$style.text),innerHTML:e(C).tAndC},null,10,Vt),y(e(Re),{class:s(i.$style.cta),onClick:Z},{default:L(()=>[T(c(i.$t("contest.accept")),1)]),_:1},8,["class"])],2)):(a(),l("div",Ht,[e(J)?(a(),P(e(St),{key:0,unlockable:e(C).unlockable,class:s(i.$style.todo)},null,8,["unlockable","class"])):v("",!0),y(e(ce),{"headless-horizontal":e(W),class:s(i.$style.metaposts)},null,8,["headless-horizontal","class"])]))])):v("",!0)}},jt={$style:Bt},zt=x(Nt,[["__cssModules",jt]]),Ft=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"})),Wt="AppMapWithPoint_container",Zt={container:Wt},Qt={props:{coord:{type:Object,default:null}}};function Gt(b,M,p,d,D,g){const S=ke("g-map-marker"),w=ke("g-map-map");return p.coord?(a(),P(w,{key:0,center:p.coord,zoom:15,"disable-default-u-i":!0,class:s(b.$style.container)},{default:L(()=>[y(S,{position:p.coord},null,8,["position"])]),_:1},8,["center","class"])):v("",!0)}const qt={$style:Zt},Jt=x(Qt,[["render",Gt],["__cssModules",qt]]),Kt="CEventsId_container",Xt="CEventsId_header",Yt="CEventsId_coverImage",xt="CEventsId_content",en="CEventsId_channelName",tn="CEventsId_title",nn="CEventsId_date",on="CEventsId_subHeader",sn="CEventsId_tags",an="CEventsId_theme",rn="CEventsId_category",cn="CEventsId_hostedBy",ln="CEventsId_avatar",un="CEventsId_registered",pn="CEventsId_buttons",dn="CEventsId_button",mn="CEventsId_icon",_n="CEventsId_primaryColor",vn="CEventsId_attendeesCount",Cn="CEventsId_participants",yn="CEventsId_nbParticipants",bn="CEventsId_avatarContainer",gn="CEventsId_otherLink",fn="CEventsId_seeOnMapLink",hn="CEventsId_map",$n="CEventsId_forum",kn={container:Kt,header:Xt,coverImage:Yt,content:xt,channelName:en,title:tn,date:nn,subHeader:on,tags:sn,theme:an,category:rn,hostedBy:cn,avatar:ln,registered:un,buttons:pn,button:dn,icon:mn,primaryColor:_n,attendeesCount:vn,participants:Cn,nbParticipants:yn,avatarContainer:bn,otherLink:gn,seeOnMapLink:fn,map:hn,forum:$n},En=["href"],In=["href"],Tn={key:1},Pn={__name:"CEventsId",props:{id:{type:Number,default:null}},async setup(b){let M,p;const d=b,D=Y(new Date),g=Y(6),S=Y(!1),w=Y(null),A=Y(null),F=pe(),C=xe(),W=le(),h=et(),q=De(),J=Ie(),R=ue(),{isCurrentUserAllowedTo:V}=Ee(),{$getEventTitle:H,$getEventMetaDescription:Z,$getPageSocialData:i,$getMetapostTitle:E,$bus:n,$analytics:$,$toast:I}=de(),{openPopupRegister:k}=Se(),{t:r}=tt(),{config:Q,isPlatformLoading:ee,isReadonly:ae}=U(W),{currentUser:N}=U(q),{getCurrentBrandCategoryId:re}=U(J),o=f(()=>h.getEvent(d.id)),K=f(()=>N.value&&o.value&&o.value.participants&&o.value.participants.find(t=>t.user&&t.user.id===N.value.id)),we=f(()=>{const t=new Date(`${o.value.beginDate}Z`),m=D.value.getTime(),G=t.getTime(),j=new Date(G-Be()).getTime(),X=new Date(`${o.value.endDate}Z`).getTime();return m>j&&m<X}),ve=f(()=>{const t=new Date().getTime(),m=new Date(`${o.value.endDate}Z`).getTime();return t>m}),Ce=f(()=>{if(!N.value)return!1;const t=N.value.id===o.value.userCreator?.id?"CreateEvent":"EditOthersEvents";return V(t,re.value,R.getCurrentComponentId)}),ye=f(()=>E(o.value)),Le=f(()=>o.value&&o.value.replayUrl),te=f(()=>(o.value?.nbParticipants||0)-(o.value?.nbCompanions||0)),ie=f(()=>A.value?.nbCompanions||0);async function Oe(t){try{await h.fetchEvent(t)}catch{throw se({statusCode:404,fatal:!0})}}function Be(){return(new Date(`${o.value.beginDate}Z`).getMinutes()===30?1.5:1)*60*60*1e3}function be(){const t={};if(t.meta=[],o.value){const G=H(o.value);t.title=G;const j=Z(o.value);t.meta.push({property:"description",name:"description",content:j});const X=`https://${Q.bepDomain}${F.fullPath}`;t.meta=t.meta.concat(i(X,G,j,o.value.imageUrl))}const m=R.getCurrentComponent;(!m||!m.isIndexableByRobots)&&t.meta.push({name:"robots",content:"noindex"}),_e(t)}function ge(){if(!N.value){k();return}if(!V("SubscribeToEvents",re.value,R.getCurrentComponentId)){n.$emit("popup_open","PermissionDenied",r("permissions.SubscribeToEvents"),{permission:"SubscribeToEvents"});return}n.$emit("popup_open","EventRegistration",r("events.register"),{eventId:d.id,onRegistered:Ve})}function Ue(){n.$emit("popup_open","EventRegistration",r("popup_event_registration.edit_my_registration"),{eventId:d.id,isEditing:!0,onSaved:ne,onCancelRegistration:fe})}async function Ve(){await ne(),n.$emit("popup_open","OptinPopup",null,{context:"event"}),$.track("eventpage:register")}async function ne(){A.value=K.value?await h.fetchMyRegistration(d.id):null}function fe(){o.value.participants.find(m=>m.user&&m.user.id===N.value.id)&&n.$emit("popup_open","ConfirmDialog",null,{displayMode:"danger",title:r("events.unsubscribe"),content:r("events.are_you_sure_you_want_to_unsubscribe_from_this_event"),dismissDefaultTextButton:r("events.no_my_mistake"),confirmDefaultTextButton:r("events.yes_unsubscribe"),onConfirmCallBack:async()=>{await h.unsubscribeToEvent({eventId:d.id}),await ne(),$.track("eventpage:deregister")}})}function He(){n.$emit("popup_open","ConfirmDialog",null,{displayMode:"danger",title:r("events.delete"),content:r("events.are_you_sure_to_delete_this_event"),dismissDefaultTextButton:r("events.cancel"),confirmDefaultTextButton:r("events.delete"),onConfirmCallBack:t=>{Ne()},onDismissCallBack:()=>{$.track("event:delete:cancel")}})}async function Ne(){const t=re.value;C.push({name:"component",params:{brandCategoryId:t,component:R.getFirstComponentForBrandCategoryAndType(t,"Events",!0).semanticUri}}),await h.deleteEvent(o.value.id),I.success(r("events.deleted"))}function je(){n.$emit("popup_open","EventParticipants",r("events.nbParticipant_register",{nbParticipant:te.value}),{eventId:o.value.id,nbSubscribers:te.value})}return z(N,async(t,m)=>{!t||m&&t.id===m.id||await h.fetchEvent(d.id,!0)}),z(()=>d.id,()=>{be()}),z(ee,(t,m)=>{m&&!t&&d.id&&F.query.register&&!K.value&&ge()}),z(o,()=>{n.$emit("setMenuHeaderComponent","EventHeader",{event:o.value})}),w.value=nt(()=>{D.value=new Date},1e3),[M,p]=Ae(()=>Oe(d.id)),await M,p(),be(),me(ne),ot(()=>{clearInterval(w.value)}),(t,m)=>{const G=rt,j=it,X=ct,he=Pe,O=Re,ze=lt,Fe=ut,We=Jt;return e(o)?(a(),l("div",{key:0,class:s(t.$style.container)},[u("div",{class:s(t.$style.header)}
2,[y(G,{src:e(o).imageUrl,class:s(t.$style.coverImage),preset:"cover"},null,8,["src","class"]),u("div",{class:s(t.$style.content)},[u("div",{class:s(t.$style.channelName)},[e(ye)?(a(),l("h1",{key:0,class:s(t.$style.title),"data-testid":"event-detail-title"},c(e(ye)),3)):v("",!0)],2),y(e(st),{begin:e(o).localeBeginDate,end:e(o).localeEndDate,"is-local-date":"",class:s(t.$style.date)},null,8,["begin","end","class"]),u("div",{class:s(t.$style.subHeader)},[u("div",{class:s(t.$style.tags)},[e(o).theme?(a(),l("div",{key:0,class:s(t.$style.theme)},c(e(o).theme.label),3)):v("",!0),e(o).category?(a(),l("div",{key:1,class:s(t.$style.category)},c(e(o).category.label),3)):v("",!0)],2),u("div",{class:s(t.$style.hostedBy)},[u("span",null,c(e(r)("events.by")),1),y(j,{user:e(o).userCreator,size:32,"show-online-indicator":!1,class:s(t.$style.avatar)},null,8,["user","class"]),y(X,{user:e(o).userCreator,clickable:""},null,8,["user"])],2),e(K)?(a(),l("div",{key:0,class:s(t.$style.registered),"data-testid":"event-registration-summary"},[y(he,{icon:["fas","check-circle"]}),T(" "+c(e(r)("events.youre_registered"))+" ",1),e(ie)?(a(),l(B,{key:0},[T(" · "+c(e(r)("events.you_plus_nbCompanions_companions",{nbCompanions:e(ie)},e(ie))),1)],64)):v("",!0)],2)):v("",!0),u("div",{class:s(t.$style.buttons)},[e(Le)&&e(ve)?(a(),P(O,{key:0},{default:L(()=>[u("a",{href:t.$cleanUrl(e(o).replayUrl),class:s(t.$style.primaryColor),target:"_blank"},c(e(r)("events.watch_the_replay")),11,En)]),_:1})):v("",!0),y(ze,{class:s(t.$style.button),label:e(r)("general.share"),"hide-label":""},null,8,["class","label"]),e(we)&&e(o).type==="Remote"&&e(K)?(a(),P(O,{key:1},{default:L(()=>[u("a",{href:t.$cleanUrl(e(o).remoteUrl),target:"_blank",class:s(t.$style.primaryColor)},c(e(r)("events.go_to_the_event")),11,In)]),_:1})):e(ve)?v("",!0):(a(),l(B,{key:2},[e(K)?(a(),l(B,{key:0},[y(O,{type:"light","data-testid":"event-edit-registration-button",onClick:Ue},{default:L(()=>[T(c(e(r)("events.edit_my_details_and_companions")),1)]),_:1}),y(O,{type:"danger","data-testid":"event-unjoin-button",onClick:fe},{default:L(()=>[T(c(e(r)("events.cancel_registration")),1)]),_:1})],64)):e(o).maxParticipants===0||e(o).maxParticipants>e(o).nbParticipants?(a(),P(O,{key:1,"data-testid":"event-join-button",onClick:ge},{default:L(()=>[T(c(e(r)("events.register")),1)]),_:1})):(a(),P(O,{key:2,"is-disabled":!0},{default:L(()=>[T(c(e(r)("events.sold_out")),1)]),_:1}))],64)),e(Ce)?(a(),P(O,{key:3,type:"secondary","data-testid":"event-edit-button",onClick:m[0]||(m[0]=oe=>e(n).$emit("popup_open","EventEdition",null,{id:b.id}))},{default:L(()=>[T(c(e(r)("general.edit")),1)]),_:1})):v("",!0),e(Ce)?(a(),P(O,{key:4,type:"danger","data-testid":"event-delete-button",onClick:He},{default:L(()=>[T(c(e(r)("general.delete")),1)]),_:1})):v("",!0)],2)],2),u("div",{class:s(t.$style.title)},c(e(r)("events.description")),3),y(Fe,{text:e(o).description,class:s(["md-body",t.$style.description])},null,8,["text","class"]),u("div",{class:s(t.$style.title)},c(e(r)("events.venue")),3),e(o).type==="Physical"?(a(),l("div",{key:0,class:s(t.$style.location)},[u("span",null,c(e(o).address.split("|")[0]),1),e(o).address.split("|")[1]?(a(),l("a",{key:0,class:s(t.$style.seeOnMapLink),onClick:m[1]||(m[1]=oe=>S.value=!e(S))},c(e(r)("events.see_on_map")),3)):v("",!0),e(S)?(a(),P(We,{key:1,coord:JSON.parse(e(o).address.split("|")[1]),class:s(t.$style.map)},null,8,["coord","class"])):v("",!0)],2)):(a(),l("div",Tn,[u("span",null,c(e(r)("events.online"))+": ",1),u("span",null,c(e(o).remoteService),1)])),u("div",{class:s(t.$style.title)},c(e(r)("events.attendees")),3),u("div",{class:s(t.$style.attendeesCount),"data-testid":"event-attendees-count"},[y(he,{icon:["fas","users"]}),u("span",null,[T(c(e(r)("events.nbParticipants_registered",{nbParticipants:e(o).nbParticipants},e(o).nbParticipants)),1),e(o).maxParticipants>0?(a(),l(B,{key:0},[T(" / "+c(e(o).maxParticipants),1)],64)):v("",!0),e(o).nbCompanions>0?(a(),l(B,{key:1},[T(" · "+c(e(r)("events.incl_nbCompanions_companions",{nbCompanions:e(o).nbCompanions},e(o).nbCompanions)),1)],64)):v("",!0)])],2),u("div",{class:s(t.$style.participants)},[(a(!0),l(B,null,Te(e(o).participants.slice(0,e(g)),oe=>(a(),l("div",{key:oe.id,class:s(t.$style.avatarContainer)},[y(j,{user:oe.user,size:32,"show-online-indicator":!1},null,8,["user"])],2))),128)),e(te)>e(g)?(a(),l("a",{key:0,class:s(t.$style.otherLink),onClick:je},c(e(r)("events.nbParticipant_other",{nbParticipant:e(te)-e(g)}
2)),3)):v("",!0)],2)],2)],2),y(e(ce),{class:s(t.$style.forum),"headless-horizontal":e(ae)},null,8,["class","headless-horizontal"])],2)):v("",!0)}}},Dn={$style:kn},Sn=x(Pn,[["__cssModules",Dn]]),An=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"}));export{Ft as C,jn as _,An as a};
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.