1import{a as xe}from"./chunk-M4VS7QFS.js";import{a as ue,b as ve}from"./chunk-GJSGLT2R.js";import{a as _e}from"./chunk-YPG2CFM6.js";import"./chunk-YQBZKNVB.js";import"./chunk-GBIXIRSG.js";import{a as ge}from"./chunk-LXH2IT56.js";import{d as me,f as ce}from"./chunk-QAWWEUT7.js";import{h as se,i as de}from"./chunk-FESQWCIX.js";import{a as fe}from"./chunk-2VOO6NVM.js";import{b as pe}from"./chunk-454TCL33.js";import"./chunk-LGXSVZH7.js";import"./chunk-3NK43RSF.js";import{f as B}from"./chunk-GKGIEY7V.js";import{a as le}from"./chunk-RKXUWUTB.js";import{D as J}from"./chunk-ZS2OXNLI.js";import{a as he,d as re}from"./chunk-IR3OPULX.js";import"./chunk-BADTTNHX.js";import{Ua as ne,Va as oe,Wa as ae,b as X,c as Z,m as ee,n as te,s as ie}from"./chunk-7EE3VBNK.js";import{I as K,K as W,ab as y,f as z,i as Y,t as q}from"./chunk-T6L5Z5LD.js";import"./chunk-CXHL3I57.js";import"./chunk-LG3BIUXE.js";import"./chunk-YUNOCBLG.js";import"./chunk-2NIBOUWM.js";import"./chunk-I547WOKC.js";import"./chunk-E6YWHTVF.js";import"./chunk-HUDPNBJZ.js";import"./chunk-QUJFQN2Y.js";import"./chunk-TEHWSHZH.js";import"./chunk-LKVA7K6Q.js";import"./chunk-JLDKWX44.js";import"./chunk-27C32SXV.js";import"./chunk-CHWZIQOC.js";import"./chunk-N6PJ4FN4.js";import"./chunk-WQFHSECC.js";import"./chunk-37TIA23S.js";import"./chunk-TJ73HFNB.js";import"./chunk-CKP3SGE2.js";import{$ as S,$a as A,Dc as R,Ec as j,Fc as U,Jc as I,Kb as v,Mb as f,Nb as G,Ob as H,Pb as V,Qb as _,Rb as a,Sb as l,Sc as r,Tb as s,Tc as m,Uc as g,Za as F,ac as C,bb as o,fc as T,hc as c,l as M,la as x,lc as k,mc as N,nc as O,qc as Q,ra as h,sa as E,sb as $,vc as p,xc as d,yb as D,yc as w}from"./chunk-DBWECNXB.js";import"./chunk-EU4O7KIS.js";import"./chunk-64ENIEDM.js";import"./chunk-4BXV374Q.js";import"./chunk-TU24IGQZ.js";import"./chunk-YJ5TA4PT.js";import"./chunk-O7PURTE2.js";import"./chunk-NMFL75IO.js";import"./chunk-4CWOFCCH.js";import"./chunk-BWZ34KWX.js";import"./chunk-5PX5TMUV.js";import"./chunk-IWJIXUL3.js";import"./chunk-MTHZ7MWU.js";import"./chunk-WI5MSH4N.js";import{h as ye}from"./chunk-XURXW4KG.js";var P=ye(he());var Ee=()=>({"padding-top":"56.25%"}),Ce=()=>({top:"0"});function Te(e,i){if(e&1&&(a(0,"div",14),s(1,"iframe",16),l()),e&2){let t=c().$implicit;_("ngStyle",I(3,Ee)),o(),_("ngStyle",I(4,Ce))("src",t.url,A)}}function we(e,i){if(e&1&&s(0,"app-picture-banner",15),e&2){let t=c().$implicit;_("myfile",t)}}function Ie(e,i){if(e&1&&v(0,Te,2,5,"div",14)(1,we,1,1,"app-picture-banner",15),e&2){let t=i.$implicit;f(t!=null&&t.youtubeId?0:1)}}function Be(e,i){if(e&1){let t=C();a(0,"div",5)(1,"p-carousel",12,0),T("onPage",function(){h(t);let u=Q(2),b=c();return E(b.utils.onCarouselNavigatorClick(u))}),D(3,Ie,2,1,"ng-template",13),l()()}if(e&2){let t=c();o(),_("value",t.eventCarouselList)("numVisible",1)("numScroll",1)("autoplayInterval",t.autoplayInterval)("showNavigators",!1)("circular",t.eventCarouselList.length>1)}}function Pe(e,i){if(e&1&&(s(0,"i",17),p(1),r(2,"fieldByLanguage")),e&2){let t=c();o(),d(" ",g(2,1,t.groupEvent,"name")," ")}}function Le(e,i){e&1&&(s(0,"i",18),p(1),r(2,"transloco")),e&2&&(o(),d(" ",m(2,1,"event")," "))}function Me(e,i){if(e&1&&(s(0,"div",9),r(1,"nl2br")),e&2){c();let t=U(10);_("innerHTML",m(1,1,t),F)}}function Se(e,i){e&1&&s(0,"i",17)}function Fe(e,i){e&1&&s(0,"i",20)}function Ae(e,i){e&1&&(p(0),r(1,"transloco")),e&2&&d(" ",m(1,1,"men")," ")}function $e(e,i){e&1&&(p(0),r(1,"transloco")),e&2&&d(" ",m(1,1,"women")," ")}function De(e,i){e&1&&(p(0),r(1,"transloco")),e&2&&d(" ",m(1,1,"bothGender")," ")}function Ge(e,i){if(e&1&&p(0),e&2){let t=c().$implicit;d(" - ",t==null?null:t.maxAge," ")}}function He(e,i){e&1&&p(0," + ")}function Ve(e,i){e&1&&(a(0,"span",33),s(1,"i",35),p(2),r(3,"transloco"),l()),e&2&&(o(2),d(" ",m(3,1,"ageCountYearOnly")," "))}function ke(e,i){if(e&1){let t=C();a(0,"button",36),r(1,"transloco"),T("click",function(){h(t);let u=c().$implicit,b=c();return E(b.routeToMyEventGroup(u))}),l()}e&2&&_("label",m(1,1,"details"))}function Ne(e,i){if(e&1){let t=C();a(0,"button",36),r(1,"transloco"),T("click",function(){h(t);let u=c().$implicit,b=c();return E(b.routerToMyEventDetails(u))}),l()}e&2&&_("label",m(1,1,"details"))}function Oe(e,i){if(e&1&&(a(0,"div",11)(1,"h2",19),v(2,Se,1,0,"i",17)(3,Fe,1,0,"i",20),p(4),r(5,"fieldByLanguage"),l(),a(6,"div",21)(7,"div",22)(8,"div",23)(9,"div",24),s(10,"i",25),a(11,"span",26),p(12),r(13,"transloco"),l()(),a(14,"span",27),p(15),r(16,"date"),r(17,"date"),l()(),a(18,"div",23)(19,"div",24),s(20,"i",28),a(21,"span",26),p(22),r(23,"transloco"),l()(),a(24,"span",27),p(25),r(26,"date"),r(27,"date"),r(28,"date"),r(29,"date"),l()(),a(30,"div",23)(31,"div",24),s(32,"i",29),a(33,"span",26),p(34),r(35,"transloco"),l()(),a(36,"span",27),v(37,Ae,2,3)(38,$e,2,3)(39,De,2,3),l()(),a(40,"div",30)(41,"div",24),s(42,"i",31),a(43,"span",26),p(44),r(45,"transloco"),l()(),a(4
16,"span",32),p(47),v(48,Ge,1,1)(49,He,1,0),v(50,Ve,4,3,"span",33),l()()(),v(51,ke,2,3,"button",34)(52,Ne,2,3,"button",34),l()()),e&2){let t,n=i.$implicit;o(2),f(n.asEventGroup?2:3),o(2),d(" ",g(5,15,n,"name")," "),o(8),d("",m(13,18,"date"),":"),o(3),w("",g(16,20,n.startDateTime,"dd/MM/yyyy")," - ",g(17,23,n.endDateTime,"dd/MM/yyyy")),o(7),d("",m(23,26,"time"),":"),o(3),w(" ",g(27,31,g(26,28,n.startDateTime,"yyyy-MM-dd")+" "+n.startTime,"HH:mm")," - ",g(29,37,g(28,34,n.endDateTime,"yyyy-MM-dd")+" "+n.endTime,"HH:mm")," "),o(9),d("",m(35,40,"gender"),":"),o(3),f((t=n.gender)==="M"?37:t==="F"?38:39),o(7),d("",m(45,42,"age"),":"),o(3),d(" ",n==null?null:n.minAge," "),o(),f(((n==null?null:n.maxAge)??0)<99?48:((n==null?null:n.maxAge)??0)>=99?49:-1),o(2),f(n!=null&&n.ageCountYearOnly?50:-1),o(),f(n.asEventGroup?51:52)}}var be=class L{constructor(){this.apollo=x(q),this.transloco=x(X),this.router=x(W),this.route=x(K),this.utils=x(re),this.myEventList=[],this.eventCarouselList=[],this.autoplayInterval=y.carouselAutoplayInterval,this.env=y,this.url=`${y.baseurl}${this.router.url}`,this.defaultHref=`/${this.transloco.getActiveLang()}/event`}ngOnInit(){this.route.params.pipe(S(()=>{this.myEventList=[],this.eventCarouselList=[]})).subscribe(i=>{this.groupEventId=isNaN(+i.eventId)?void 0:+i.eventId,this.searchMyEvent(),this.groupEventId?this.getGroupEvent(this.groupEventId):(this.defaultHref=`/${this.transloco.getActiveLang()}/event`,new ae(this.apollo).fetch({variables:{input:{myfileType:te.MyEventBannerPhotos}}}).subscribe(({data:t})=>{this.eventCarouselList=t?.getBannerList??[]}))})}ionViewDidEnter(){this.content?.scrollToTop()}isBetweenEnrolmentDate(i){return(0,P.default)().isSameOrAfter(i.enrolmentStartDateForMember,"d")&&(0,P.default)().isBefore(i.enrolmentEndDateForMember,"d")}routeToMyEventGroup(i){this.router.navigate([`/${this.transloco.getActiveLang()}/event/${i.id}`])}routerToMyEventDetails(i){this.router.navigate([`/${this.transloco.getActiveLang()}/event/details/${i.id}`])}searchMyEvent(){new ne(this.apollo).fetch({variables:{input:{noOfItemsPerPage:9999,gender:ee.Any,orderBy:ie.OrderIdAsc,withQuotaOnly:!1,parentMyEventId:this.groupEventId??null}}}).subscribe(({data:i})=>{this.myEventList=i?.searchMyEventCustom.itemList??[]})}getGroupEvent(i){new oe(this.apollo).fetch({variables:{input:{id:i}}}).subscribe(({data:t})=>{this.groupEvent=t?.guestGetMyEvent,this.groupEvent?.parentMyEventId?this.defaultHref=`/${this.transloco.getActiveLang()}/event/${this.groupEvent?.parentMyEventId}`:this.defaultHref=`/${this.transloco.getActiveLang()}/event`,this.groupEvent?.youtubeId?this.eventCarouselList.push({youtubeId:this.groupEvent.youtubeId,url:this.utils.youtubeEmbedLink(this.groupEvent.youtubeId)}):this.autoplayInterval=y.carouselAutoplayInterval,this.groupEvent?.photoList?.length&&(this.eventCarouselList=[...this.eventCarouselList,...this.groupEvent.photoList])})}static{this.\u0275fac=function(t){return new(t||L)}}static{this.\u0275cmp=$({type:L,selectors:[["app-event"]],viewQuery:function(t,n){if(t&1&&k(B,5),t&2){let u;N(u=O())&&(n.content=u.first)}},decls:17,vars:11,consts:[["carousel",""],[3,"showTitleBar","title","defaultHref"],[3,"fullscreen"],[1,"min-h-screen","bg-linear-to-r","from-[#b783b3]","to-[#5299ef]","py-4","md:py-6"],[1,"max-w-4xl","mx-auto","px-3","md:px-6"],[1,"mb-5"],[1,"bg-white/90","rounded-xl","shadow-lg","p-3","lg:p-5"],[1,"flex","items-center","justify-between","mb-1"],[1,"text-2xl","font-bold","text-[#b783b3]","mt-0!","mb-3!","md:mb-4!","flex","items-center","gap-3"],[1,"px-3","mb-4","font-semibold","text-gray-500",3,"innerHTML"],[1,"flex","flex-col","gap-5"],[1,"rounded-xl","border-2","border-[#b783b3]","shadow-md","p-4","md:p-5","hover:shadow-xl","transition"],[3,"onPage","value","numVisible","numScroll","autoplayInterval","showNavigators","circular"],["pTemplate","item"],[1,"relative","mb-4",3,"ngStyle"],[3,"myfile"],["frameborder","0","allowfullscreen","",1,"absolute","inset-0","w-full","h-full",3,"ngStyle","src"],[1,"fa-solid","fa-folder"],[1,"fa-solid","fa-calendar-days"],[1,"text-xl","font-bold","text-[#b783b3]","mt-0!","mb-4!","flex","items-center","gap-3","border-b","border-b-[#b783b3]","pb-2!"],[1,"fa-solid","fa-calendar-check"],[1,"flex-col","md:flex","md:flex-row","items-end","justify-between","gap-2"],[1,"flex","flex-col","gap-2"],[1,"flex","items-center","gap-2"],[1,"flex","items-center","gap-4","min-w-26"],[1,"fa-regular","fa-calendar-days","text-[#b783b3]","min-w-5"],[1,"font-bold","text-gray-600"],[1,"font-semibold","text-gray-800"],[1,"fa-solid","fa-clock","text-[#b783b3]","min-w-5"],[1,"fa-solid","fa-venus-mars","text-[#b783b3]","min-w-5"],[1,"flex","items-start","md:items-center","gap-2"],[1,"fa-solid","fa-user","text-[#b783b3]","min-w-5"],[1,"font-semibold","text-gray-800","flex-col","md:flex","md:flex-row","items-center"],[1,"inline-flex","items-center","gap-1","px-2","py-0.5","md:ml-3","rounded-full","text-xs","font-bold","bg-blue-100","text-blue-700","border","border-blue-300"],["pButton","","pRipple","","icon","pi fa-solid fa-angle-right","iconPos","right",1,"bg-[#b783b3]!","hover:bg-[#a06ca0]!","border-[#b783b3]!","text-white!","font-semibold!","rounded-lg!","shadow!","transition-colors!","duration-200!","mt-5",3,"label"],[1,"fa-solid","fa-calendar-check","text-xs"],["pButton","","pRipple","","icon","pi fa-solid fa-angle-right","iconPos","right",1,"bg-[#b783b3]!","hover:bg-[#a06ca0]!","border-[#b783b3]!","text-white!","font-semibold!","rounded-lg!","shadow!","transition-colors!","duration-200!","mt-5",3,"click","label"]],template:function(t,n){if(t&1&&(s(0,"app-ave-header",1),a(1,"ion-content",2)(2,"div",3)(3,"div",4),v(4,Be,4,6,"div",5),a(5,"div",6)(6,"div",7)(7,"h2",8),v(8,Pe,3,4)(9,Le,3,3),l()(),R(10),r(11,"fieldByLanguage"),v(12,Me,2,3,"div",9),a(13,"div",10),H(14,Oe,53,44,"div",11,G),l()()()(),s(16,"app-ave-footer"),l()),t&2){_("showTitleBar",!!n.groupEvent)("title",n.groupEvent?"event":"")("defaultHref",n.defaultHref),o(),_("fullscreen",!1),o(3),f(n.eventCarouselList.length?4:-1),o(4),f(n.groupEvent?8:9),o(2);let u=j(g(11,7,n.groupEvent,"desc"));o(2),f(n.groupEvent&&u?12:-1),o(2),V(n.myEventList)}},dependencies:[z,B,ve,ue,J,ce,me,de,se,pe,fe,_e,Y,Z,ge,xe],encapsulation:2})}};be=M([le()],be);export{be as EventPage};
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.