1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[2575],{17090:function(e,t,n){n.d(t,{A:function(){return h}});var i=n(20641),s=n(90033);const o=["id"],a={class:"o-wb-shell"};function l(e,t,n,l,r,u){const c=(0,i.g2)("WebsiteSectionHead");return(0,i.uX)(),(0,i.CE)("section",{id:n.id,class:(0,s.C4)(["o-w-section",{"o-wb-surface-alt":n.alt}])},[(0,i.Lk)("div",a,[(0,i.bF)(c,{eyebrow:n.eyebrow,"show-eyebrow":n.showEyebrow,icon:n.icon,title:n.title,subtitle:n.subtitle,editing:n.editing,onUpdate:t[0]||(t[0]=t=>e.$emit("update",t))},null,8,["eyebrow","show-eyebrow","icon","title","subtitle","editing"]),(0,i.RG)(e.$slots,"default",{},void 0,!0)])],10,o)}var r=n(92736),u={name:"WebsiteSection",components:{WebsiteSectionHead:r.A},props:{id:{type:String,default:null},eyebrow:{type:String,default:null},showEyebrow:{type:Boolean,default:!0},icon:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},alt:{type:Boolean,default:!1},editing:{type:Boolean,default:!1}},emits:["update"]},c=n(66262);const d=(0,c.A)(u,[["render",l],["__scopeId","data-v-7a3f38c8"]]);var h=d},32575:function(e,t,n){n.r(t),n.d(t,{default:function(){return k}});var i=n(20641),s=n(90033);const o={class:"o-we-tabs"},a=["onClick"],l={key:0,class:"o-we-grid"},r={key:1,class:"o-we-empty"},u={key:0,class:"o-we-month__label"},c={class:"o-we-grid"},d={key:0,class:"o-we-more"},h=["disabled"];function p(e,t,n,p,v,b){const m=(0,i.g2)("WebsiteIcon"),y=(0,i.g2)("WebsiteEventCard"),g=(0,i.g2)("WebsiteSection");return(0,i.uX)(),(0,i.Wv)(g,{id:"events","show-eyebrow":!1,title:e.$t("Events"),subtitle:e.$t("Browse what is coming up and join us. Everyone is welcome.")},{default:(0,i.k6)(()=>[(0,i.Lk)("div",o,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(b.tabs,e=>((0,i.uX)(),(0,i.CE)("button",{key:e.key,type:"button",class:(0,s.C4)(["o-we-tabs__tab",{"is-active":v.period===e.key}]),onClick:t=>b.selectPeriod(e.key)},(0,s.v_)(e.label),11,a))),128))]),v.isLoading?((0,i.uX)(),(0,i.CE)("div",l,[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(6,e=>(0,i.Lk)("div",{key:e,class:"o-we-skeleton"})),64))])):v.events.length?((0,i.uX)(),(0,i.CE)(i.FK,{key:2},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(b.groups,e=>((0,i.uX)(),(0,i.CE)("section",{key:e.key,class:"o-we-month"},[e.label?((0,i.uX)(),(0,i.CE)("h3",u,(0,s.v_)(e.label),1)):(0,i.Q3)("",!0),(0,i.Lk)("div",c,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.events,e=>((0,i.uX)(),(0,i.Wv)(y,{key:e.uuid,event:e},null,8,["event"]))),128))])]))),128)),v.hasMore?((0,i.uX)(),(0,i.CE)("div",d,[(0,i.Lk)("button",{type:"button",class:"o-wb-btn o-wb-btn--quiet",disabled:v.isLoadingMore,onClick:t[1]||(t[1]=(...e)=>b.loadMore&&b.loadMore(...e))},(0,s.v_)(v.isLoadingMore?e.$t("Please wait..."):e.$t("Load more")),9,h)])):(0,i.Q3)("",!0)],64)):((0,i.uX)(),(0,i.CE)("div",r,[(0,i.bF)(m,{name:"calendar-days",class:"o-we-empty__icon"}),(0,i.Lk)("p",null,(0,s.v_)("upcoming"===v.period?e.$t("No upcoming events right now. Subscribe below to stay in the loop."):e.$t("No events found")),1),"upcoming"===v.period?((0,i.uX)(),(0,i.CE)("button",{key:0,type:"button",class:"o-wb-btn o-wb-btn--quiet",onClick:t[0]||(t[0]=e=>b.selectPeriod("past"))},(0,s.v_)(e.$t("Past events")),1)):(0,i.Q3)("",!0)]))]),_:1},8,["title","subtitle"])}n(44114),n(18111),n(7588);var v=n(34042),b=n(17090),m=n(19318),y=n(59843);const g=12;var w={name:"EventsPublic",components:{WebsiteSection:b.A,WebsiteEventCard:y.A,WebsiteIcon:m.A},mixins:[v.A],data(){return{events:[],period:"upcoming",isLoading:!1,isLoadingMore:!1,hasMore:!1}},computed:{tabs(){return[{key:"upcoming",label:this.$t("Upcoming")},{key:"past",label:this.$t("Past")}]},groups(){const e=[];return"past"===this.period?[{key:"past",label:null,events:this.events}]:(this.events.forEach(t=>{const n=this.eventMonthKey(t),i=e[e.length-1];i&&i.key===n?i.events.push(t):e.push({key:n,label:this.eventMonthLabel(t),events:[t]})}),e)}},watch:{publicEventsTenantSlug(e){e&&!this.events.length&&this.loadEvents()}},created(){"past"===this.$route.query.period&&(this.period="past"),this.loadEvents()},methods:{selectPeriod(e){this.period!==e&&(this.period=e,this.$router.replace({query:{...this.$route.query,period:e}}).catch(()=>{}),this.loadEvents())},loadEvents(){this.isLoading=!0,this.events=[],this.hasMore=!1,this.fetchPage(0).then(e=>{this.events=e}).catch(e=>console.error(e)).finally(()=>{this.isLoading=!1})}
1,loadMore(){this.isLoadingMore=!0,this.fetchPage(this.events.length).then(e=>{this.events=[...this.events,...e]}).catch(e=>console.error(e)).finally(()=>{this.isLoadingMore=!1})},fetchPage(e){const t={limit:g,offset:e};return t[this.period]=1,this.fetchPublicEvents(t).then(e=>(this.hasMore=e.length===g,e))}}},_=n(66262);const f=(0,_.A)(w,[["render",p],["__scopeId","data-v-0e68f10e"]]);var k=f},34042:function(e,t,n){n(18111),n(7588),n(14603),n(47566),n(98721);var i=n(84743),s=n.n(i),o=n(40834),a=n(28782),l=n(61486),r=n(95256);t.A={inject:{website:{default:null}},created(){const e=this.website?.site?.tenant?.language;e&&s().locale()!==e&&s().locale(e)},computed:{...(0,o.L8)(["tenant","user"]),publicEventsTenantSlug(){return this.website?.site?.tenant?.slug||this.tenant?.slug||this.$route.query.workspace||null},publicEventsAppHost(){return this.website?.site?.tenant?.appHost||this.tenant?.appHost||null}},methods:{eventAppUrl(e){return(0,l._h)(this.publicEventsAppHost,`/public/event/${e?.uuid||""}`)},fetchPublicEvents(e={}){const t=this.publicEventsTenantSlug;if(!t)return Promise.resolve([]);const n=new URLSearchParams({tenant:t});return Object.keys(e).forEach(t=>{null!==e[t]&&void 0!==e[t]&&n.append(t,e[t])}),this.$http.plain.get(`/public_events?${n.toString()}`).then(e=>e.data["hydra:member"]||[])},eventCoverUrl(e){const t=e?(0,r.EM)(e,"event"):null;if(t)return t;const n=e?.logoFromAlbum;return n?n.includes("https")?n:`${a.ze}${a.DJ}eventimage/${n}`:null},eventTimezone(e){return(0,r.q3)(e,this.user)||s().tz.guess()},eventShowsLocalTime(e){return(0,r.Gp)(e,this.user,this.eventTimezone(e))},eventMoment(e,t="dateTimeBegin"){return e?.[t]?s()(e[t]).tz(this.eventTimezone(e)):null},eventDay(e){return this.eventMoment(e)?.format("D")||""},eventMonthAbbr(e){return this.eventMoment(e)?.format("MMM").replace(".","").toUpperCase()||""},eventWeekday(e){return this.eventMoment(e)?.format("ddd").replace(".","").toUpperCase()||""},eventTime(e){return this.eventMoment(e)?.format("HH:mm")||""},eventMonthKey(e){return this.eventMoment(e)?.format("YYYY-MM")||""},eventMonthLabel(e){return this.eventMoment(e)?.format("MMMM YYYY")||""},isOnlineEvent(e){const t=(e?.location||"").trim();return!!t&&(/^https?:\/\//i.test(t)||["zoom","teams","online","meet"].includes(t.toLowerCase()))},eventLocationLabel(e){return this.isOnlineEvent(e)?null:e?.location||null},eventIsPast(e){if("boolean"===typeof e?.isPast)return e.isPast;const t=this.eventMoment(e,"dateTimeEnd")||this.eventMoment(e);return!!t&&t.isBefore(s()())}}}},45456:function(e,t,n){n.d(t,{A:function(){return c}});var i=n(20641),s=n(90033),o=n(53751);function a(e,t,n,a,l,r){return(0,i.uX)(),(0,i.Wv)((0,i.$y)(n.tag),{class:(0,s.C4)([e.$attrs.class,{"o-we-editable":n.editing,"is-empty":n.editing&&!n.modelValue}]),contenteditable:n.editing?"plaintext-only":null,"data-placeholder":n.placeholder,spellcheck:n.editing?"true":null,onInput:r.onInput,onBlur:r.onBlur,onKeydown:[(0,o.jR)((0,o.D$)(r.onEnter,["prevent"]),["enter"]),(0,o.jR)((0,o.D$)(r.onEscape,["prevent"]),["esc"])],onPaste:r.onPaste},{default:(0,i.k6)(()=>[(0,i.eW)((0,s.v_)(n.modelValue),1)]),_:1},40,["class","contenteditable","data-placeholder","spellcheck","onInput","onBlur","onKeydown","onPaste"])}var l={name:"WebsiteEditable",inheritAttrs:!1,props:{modelValue:{type:String,default:""},tag:{type:String,default:"span"},editing:{type:Boolean,default:!1},placeholder:{type:String,default:""}},emits:["update:modelValue"],methods:{onInput(e){this.$emit("update:modelValue",e.target.innerText.trim())},onBlur(e){this.$emit("update:modelValue",e.target.innerText.trim())},onEnter(e){e.target.blur()},onEscape(e){e.target.innerText=this.modelValue,e.target.blur()},onPaste(e){e.preventDefault();const t=(e.clipboardData||window.clipboardData).getData("text/plain");document.execCommand("insertText",!1,t.replace(/\s+/g," "))}}},r=n(66262);const u=(0,r.A)(l,[["render",a],["__scopeId","data-v-464dcad8"]]);var c=u},59843:function(e,t,n){n.d(t,{A:function(){return L}});var i=n(20641),s=n(90033);const o=["href"],a={class:"o-we-card__media"},l=["src","alt"],r={key:1,class:"o-we-card__placeholder"},u={class:"o-we-card__date"},c={class:"o-we-card__date-day"},d={class:"o-we-card__date-month"},h={class:"o-we-card__body"},p={class:"o-we-card__when"},v={class:"o-we-card__name"},b={key:0,class:"o-we-card__location"},m={class:"o-we-card__chips"},y={key:0,class:"o-we-card__chip"},g={key:1,class:"o-we-card__chip is-accent"},w={key:2,class:"o-we-card__chip"},_={class:"o-we-card__cta"};function f(e,t,n,f,k,E){const C=(0,i.g2)("WebsiteIcon");return(0,i.uX)(),(0,i.CE)("a",{class:(0,s.C4)(["o-we-card",{"is-past":E.isPast}]),href:E.url,target:"_blank",rel:"noopener"},[(0,i.Lk)("div",a,[E.cover?((0,i.uX)(),(0,i.CE)("img",{key:0,src:E.cover,alt:n.event.name,loading:"lazy"},null,8,l)):((0,i.uX)(),(0,i.CE)("span",r,[(0,i.bF)(C,{name:"calendar-days"})])),(0,i.Lk)("span",u,[(0,i.Lk)("span",c,(0,s.v_)(E.day),1),(0,i.Lk)("span",d,(0,s.v_)(E.month),1)])]),(0,i.Lk)("div",h,[(0,i.Lk)("span",p,[(0,i.bF)(C,{name:"clock"}),(0,i.eW)(" "+(0,s.v_)(E.weekday)+" · "+(0,s.v_)(E.time),1)]),(0,i.Lk)("h3",v,(0,s.v_)(n.event.name),1),E.location?((0,i.uX)(),(0,i.CE)("span",b,[(0,i.bF)(C,{name:"location-dot"}),(0,i.eW)(" "+(0,s.v_)(E.location),1)])):(0,i.Q3)("",!0),(0,i.Lk)("div",m,[E.isOnline?((0,i.uX)(),(0,i.CE)("span",y,[(0,i.bF)(C,{name:"video"}),(0,i.eW)(" "+(0,s.v_)(e.$t("Online")),1)])):(0,i.Q3)("",!0),n.event.hasEventTicketing?((0,i.uX)(),(0,i.CE)("span",g,[(0,i.bF)(C,{name:"ticket"}),(0,i.eW)(" "+(0,s.v_)(e.$t("Ticket")),1)])):(0,i.Q3)("",!0),E.isPast?((0,i.uX)(),(0,i.CE)("span",w,(0,s.v_)(e.$t("Past")),1)):(0,i.Q3)("",!0)]),(0,i.Lk)("span",_,[(0,i.eW)((0,s.v_)(e.$t("View event"))+" ",1),(0,i.bF)(C,{name:"arrow-right"})])])],10,o)}var k=n(34042),E=n(19318),C={name:"WebsiteEventCard",components:{WebsiteIcon:E.A},mixins:[k.A],props:{event:{type:Object,required:!0}},computed:{url(){return this.eventAppUrl(this.event)},cover(){return this.eventCoverUrl(this.event)},day(){return this.eventDay(this.event)},month(){return this.eventMonthAbbr(this.event)},weekday(){return this.eventWeekday(this.event)},time(){return this.eventTime(this.event)},location(){return this.eventLocationLabel(this.event)},isOnline(){return this.isOnlineEvent(this.event)}
1,isPast(){return this.eventIsPast(this.event)}}},$=n(66262);const M=(0,$.A)(C,[["render",f],["__scopeId","data-v-6eede162"]]);var L=M},92736:function(e,t,n){n.d(t,{A:function(){return h}});var i=n(20641),s=n(90033);const o={key:0,class:"o-wh__eyebrow"};function a(e,t,n,a,l,r){const u=(0,i.g2)("WebsiteIcon"),c=(0,i.g2)("WebsiteEditable");return r.hasContent?((0,i.uX)(),(0,i.CE)("header",{key:0,class:(0,s.C4)(["o-wh",`is-${n.align}`])},[n.showEyebrow&&(n.eyebrow||n.editing)?((0,i.uX)(),(0,i.CE)("span",o,[n.icon?((0,i.uX)(),(0,i.Wv)(u,{key:0,name:n.icon,class:"o-wh__eyebrow-icon"},null,8,["name"])):(0,i.Q3)("",!0),(0,i.bF)(c,{"model-value":n.eyebrow,editing:n.editing,placeholder:e.$t("Eyebrow"),"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update",{eyebrow:t}))},null,8,["model-value","editing","placeholder"])])):(0,i.Q3)("",!0),n.showTitle&&(n.title||n.editing)?((0,i.uX)(),(0,i.Wv)(c,{key:1,tag:"h2",class:"o-wh__title","model-value":n.title,editing:n.editing,placeholder:e.$t("Section title"),"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update",{title:t}))},null,8,["model-value","editing","placeholder"])):(0,i.Q3)("",!0),n.subtitle||n.editing?((0,i.uX)(),(0,i.Wv)(c,{key:2,tag:"p",class:"o-wh__subtitle","model-value":n.subtitle,editing:n.editing,placeholder:e.$t("Short intro"),"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update",{subtitle:t}))},null,8,["model-value","editing","placeholder"])):(0,i.Q3)("",!0)],2)):(0,i.Q3)("",!0)}var l=n(45456),r=n(19318),u={name:"WebsiteSectionHead",components:{WebsiteEditable:l.A,WebsiteIcon:r.A},props:{eyebrow:{type:String,default:null},showEyebrow:{type:Boolean,default:!0},icon:{type:String,default:null},title:{type:String,default:null},showTitle:{type:Boolean,default:!0},subtitle:{type:String,default:null},align:{type:String,default:"center"},editing:{type:Boolean,default:!1}},emits:["update"],computed:{hasContent(){return this.editing||!!(this.showEyebrow&&this.eyebrow||this.title||this.subtitle)}}},c=n(66262);const d=(0,c.A)(u,[["render",a],["__scopeId","data-v-20e9e71d"]]);var h=d}}]);
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.