1import"./chunk-VCN5RBOA.js";import{c as ai,d as li}from"./chunk-BY3HFSK6.js";import{f as ri}from"./chunk-54ES2JGG.js";import"./chunk-2UQLM24P.js";import{a as oi}from"./chunk-QESY7IOY.js";import{a as _i}from"./chunk-3CAPBYLM.js";import{b as Ke}from"./chunk-T6WZFY42.js";import{a as ci}from"./chunk-XJ7UWEE5.js";import{a as Je}from"./chunk-U6XPV4VW.js";import{Aa as Ue,Fa as je,Fb as ti,I as be,Jb as V,Ka as Qe,Kb as ni,Pa as L,Q as Le,Ta as G,X as De,Y as Ge,Z as Ve,b as Oe,ba as Ne,cb as Ye,db as qe,eb as Xe,la as ke,n as He,o as Re,qa as ze,r as ye,ra as Be,tb as $e,ub as ii,w as we,ya as Fe}from"./chunk-TERLY23H.js";import{$a as te,$d as F,Aa as l,Ab as ne,Ba as r,Ca as p,Cb as oe,Db as ae,Fb as le,Ga as J,Gd as Se,H as h,Ha as ee,I as T,Ia as I,Ic as de,J as j,Ja as H,La as E,Lb as re,Mb as ce,Na as c,Nd as Ie,Oc as me,Qd as Pe,Ra as ie,Rb as _e,Sa as N,Sb as se,Ta as k,Ua as P,Xc as pe,Ya as _,Za as M,Zc as ge,_ as t,_a as u,_c as Ce,ad as ue,ae as Ae,be as U,ce as Ze,da as f,dd as ve,de as R,eb as z,fa as Z,fb as D,fd as fe,jb as O,jd as xe,ka as x,kb as B,la as Q,ma as W,nb as s,ob as d,pa as Y,pe as We,qa as q,qb as w,rd as Ee,sd as he,ta as g,te as ei,ua as C,wa as X,xa as $,ya as K,yd as Te,za as m}from"./chunk-TOHPD7SX.js";import"./chunk-V6CTPBFR.js";import"./chunk-3A2TMJPV.js";import{a as Me}from"./chunk-7H4NF54W.js";import"./chunk-XLGJ4HPL.js";import"./chunk-SIQ6EJS7.js";import"./chunk-7F6QV3JC.js";import"./chunk-7VME35EZ.js";import"./chunk-SKAK35RR.js";import"./chunk-MFYR3QIS.js";import"./chunk-XL6IFRLT.js";import"./chunk-UQQSCILL.js";import"./chunk-JHF72XYQ.js";import"./chunk-NMFL75IO.js";import{i as A}from"./chunk-6BLKG2UM.js";var Pi=["fabContainer"],Ai=["pwaInstall"],Mi=()=>[F],si=e=>({updateHomeZone:e}),di=()=>({activitiesExist:!1}),Oi=()=>({activitiesExist:!1,updateHomeZone:!1}),Hi=()=>({activitiesExist:!1,updateHomeZone:!0}),mi=()=>({activitiesExist:!0}),Ri=()=>({activitiesExist:!0,updateHomeZone:!1}),yi=()=>({activitiesExist:!0,updateHomeZone:!0});function wi(e,n){if(e&1&&(p(0,"app-pageHeader",9),s(1,"translate")),e&2){let i=c();m("title",z(d(1,3,"MAIN_MENU.HOME_TXT")))("loginResultDetails",i.loginResultDetails)}}function bi(e,n){if(e&1){let i=H();l(0,"ion-fab",11,0)(2,"ion-fab-button"),p(3,"ion-icon",14),r(),l(4,"ion-fab-list",15)(5,"ion-button",16),E("click",function(){h(i);let a=c();return T(a.gotoCreation())}),p(6,"ion-icon",17),_(7),s(8,"translate"),r()(),l(9,"ion-fab-list",18)(10,"ion-button",16),E("click",function(){h(i);let a=c();return T(a.gotoCreationPool())}),p(11,"ion-icon",19),_(12),s(13,"translate"),r()()()}e&2&&(t(7),u(" \xA0 ",d(8,2,"PAGE_HOME.FAB_ADD")," "),t(5),u(" \xA0 ",d(13,4,"PAGE_HOME.FAB_ADD_POOL")," "))}function Li(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.ACTIVITIES_ALL_SHORT")," ")}function Di(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.ACTIVITIES_MY_SHORT")," ")}function Gi(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.ACTIVITIES_PAST_SHORT")," ")}function Vi(e,n){if(e&1){let i=H();l(0,"ion-content")(1,"ion-radio-group",26),E("ionChange",function(a){h(i);let v=c(2);return T(v.manageModeChange(a))}),l(2,"ion-item")(3,"ion-radio",27),_(4),s(5,"translate"),p(6,"br"),l(7,"small"),_(8),s(9,"translate"),r()()(),l(10,"ion-item")(11,"ion-button",28),_(12),s(13,"translate"),r()(),l(14,"ion-item")(15,"ion-radio",29),_(16),s(17,"translate"),p(18,"br"),l(19,"small"),_(20),s(21,"translate"),r()()(),l(22,"ion-item")(23,"ion-radio",29),_(24),s(25,"translate"),p(26,"br"),l(27,"small"),_(28),s(29,"translate"),r()()()()()}if(e&2){let i=c(2);t(),m("value",i.manageMode),t(2),m("value",i.MatchesSelector.ALL),t(),u(" ",d(5,15,"PAGE_HOME.ACTIVITIES_ALL")," "),t(4),M(d(9,17,"PAGE_HOME.ACTIVITIES_ALL_DESCR")),t(3),m("routerLink",i.utilitiesService.createMapURL(i.currentActivity,i.localizationService.getLangCode()))("queryParams",B(29,si,i.circleAreas&&i.circleAreas.length>0)),t(),u(" ",d(13,19,"PAGE_HOME.UPDATE_VENUES")," "),t(3),m("value",i.MatchesSelector.MY)("disabled",!i.loginResultDetails.sessionID),t(),u(" ",d(17,21,"PAGE_HOME.ACTIVITIES_MY")," "),t(4),M(d(21,23,"PAGE_HOME.ACTIVITIES_MY_DESCR")),t(3),m("value",i.MatchesSelector.PAST)("disabled",!i.loginResultDetails.sessionID),t(),u(" ",d(25,25,"PAGE_HOME.ACTIVITIES_PAST")," "),t(4),M(d(29,27,"PAGE_HOME.ACTIVITIES_MY_DESCR"))}}function Ni(e,n){if(e&1){let i=H();l(0,"ion-button",30),E("click",function(){h(i);let a=c(2);return T(a.toogleCommercialSetting())}),p(1,"ion-icon",31),_(2," \xA0 "),l(3,"ion-badge",32),_(4),r()()}if(e&2){let i=c(2);m("disabled",i.matchesResult.commercialMatches===0),t(),m("color",i.commercialOn?"warning":"medium"),t(2),m("color",i.commercialOn?"warning":"medium"),t(),M(i.matchesResult.commercialMatches)}}function ki(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME_TS.GENDER_MIXED")," ")}function zi(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME_TS.GENDER_FEMALE")," ")}function Bi(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME_TS.GENDER_MEN")," ")}function Fi(e,n){e&1&&(J(0),_(1,","),ee())}function Ui(e,n){if(e&1&&(g(0,ki,2,3)(1,zi,2,3)(2,Bi,2,3),x(3,Fi,2,0,"ng-container",33)),e&2){let i,o=n.$implicit,a=n.$index,v=n.$count,S=c(2);C((i=o.key)===S.Gender.EQUAL?0:i===S.Gender.FEMALE?1:i===S.Gender.MALE?2:-1),t(3),m("ngIf",a!==v-1)}}function ji(e,n){if(e&1){let i=H();l(0,"ion-content")(1,"ion-item")(2,"ion-checkbox",34),E("ionChange",function(){h(i);let a=c(2);return T(a.genderModeChange(a.Gender.EQUAL))}),_(3),s(4,"translate"),r()(),l(5,"ion-item")(6,"ion-checkbox",34),E("ionChange",function(){h(i);let a=c(2);return T(a.genderModeChange(a.Gender.FEMALE))}),_(7),s(8,"translate"),r()(),l(9,"ion-item")(10,"ion-checkbox",34),E("ionChange",function(){h(i);let a=c(2);return T(a.genderModeChange(a.Gender.MALE))}),_(11),s(12,"translate"),r()()()}if(e&2){let i=c(2);t(2),m("disabled",i.genderMode.has(i.Gender.EQUAL)&&i.genderMode.size===1)("checked",i.genderMode.has(i.Gender.EQUAL)),t(),u(" ",d(4,9,"PAGE_HOME_TS.GENDER_MIXED")," "),t(3),m("disabled",i.genderMode.has(i.Gender.FEMALE)&&i.genderMode.size===1)("checked",i.genderMode.has(i.Gender.FEMALE)),t(),u(" ",d(8,11,"PAGE_HOME_TS.GENDER_FEMALE")," "),t(3),m("disabled",i.genderMode.has(i.Gender.MALE)&&i.genderMode.size===1)("checked",i.genderMode.has(i.Gender.MALE)),t(),u(" ",d(12,13,"PAGE_HOME_TS.GENDER_MEN")," ")}}function Zi(e,n){if(e&1){let i=H();l(0,"header")(1,"div",20),_(2," \xA0 "),l(3,"ion-button",21),E("click",function(a){h(i);let v=c();return v.popoverEvent=a,T(v.manageModePopoverOpen=!0)}),g(4,Li,2,3)(5,Di,2,3)(6,Gi,2,3),r(),l(7,"ion-popover",22),E("didDismiss",function(){h(i);let a=c();return T(a.manageModePopoverOpen=!1)}),x(8,Vi,30,31,"ng-template"),r(),_(9," \xA0 "),g(10,Ni,5,4,"ion-button",23),l(11,"ion-button",24),E("click",function(a){h(i);let v=c();return v.popoverEvent=a,T(v.genderModePopoverOpen=!0)}),l(12,"small"),$(13,Ui,4,2,null,null,X),s(15,"keyvalue"),r()(),l(16,"i
1on-popover",25),E("didDismiss",function(){h(i);let a=c();return T(a.genderModePopoverOpen=!1)}),x(17,ji,13,15,"ng-template"),r()()()}if(e&2){let i,o=c();t(4),C((i=o.manageMode)===o.MatchesSelector.ALL?4:i===o.MatchesSelector.MY?5:i===o.MatchesSelector.PAST?6:-1),t(3),m("isOpen",o.manageModePopoverOpen)("event",o.popoverEvent),t(3),C(o.matchesResult?10:-1),t(3),K(d(15,6,o.genderMode)),t(3),m("isOpen",o.genderModePopoverOpen)("event",o.popoverEvent)}}function Qi(e,n){e&1&&I(0)}function Wi(e,n){if(e&1&&(l(0,"div")(1,"div",35)(2,"div",36),x(3,Qi,1,0,"ng-container",37),r(),p(4,"ion-skeleton-text",38)(5,"ion-skeleton-text",39)(6,"ion-skeleton-text",40)(7,"ion-skeleton-text",41)(8,"ion-skeleton-text",42),r(),l(9,"div",35),p(10,"ion-skeleton-text",38)(11,"ion-skeleton-text",39)(12,"ion-skeleton-text",40)(13,"ion-skeleton-text",41)(14,"ion-skeleton-text",42),r()()),e&2){let i=c();t(3),m("ngTemplateOutlet",i.noActivities_svg)}}function Yi(e,n){e&1&&I(0)}function qi(e,n){if(e&1&&(l(0,"div",44),x(1,Yi,1,0,"ng-container",46),r()),e&2){c(2);let i=P(5);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,di))}}function Xi(e,n){e&1&&I(0)}function $i(e,n){if(e&1&&(l(0,"div",44),x(1,Xi,1,0,"ng-container",46),r()),e&2){c(2);let i=P(9);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,Oi))}}function Ki(e,n){e&1&&I(0)}function Ji(e,n){if(e&1&&(l(0,"div",44),x(1,Ki,1,0,"ng-container",46),r()),e&2){c(3);let i=P(9);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,Hi))}}function et(e,n){e&1&&I(0)}function it(e,n){if(e&1&&x(0,et,1,0,"ng-container",37),e&2){c(3);let i=P(7);
1m("ngTemplateOutlet",i)}}function tt(e,n){if(e&1&&g(0,Ji,2,3,"div",44)(1,it,1,1,"ng-container"),e&2){let i=c(4);C(i.circleAreas.length===1&&i.circleAreas[0].radius==11223?0:1)}}function nt(e,n){e&1&&I(0)}function ot(e,n){if(e&1&&(l(0,"div",45),x(1,nt,1,0,"ng-container",46),r()),e&2){c(2);let i=P(13);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,di))}}function at(e,n){if(e&1&&(g(0,qi,2,3,"div",44),g(1,$i,2,3,"div",44),g(2,tt,2,1),g(3,ot,2,3,"div",45)),e&2){let i=c(3);C(i.loginResultDetails.sessionID&&!i.preferencesComplete?0:-1),t(),C(i.loginResultDetails.sessionID&&i.preferencesComplete&&i.circleAreas&&i.circleAreas.length===0?1:-1),t(),C(i.loginResultDetails.sessionID&&i.preferencesComplete&&i.circleAreas&&i.circleAreas.length>0?2:-1),t(),C(i.loginResultDetails.sessionID?-1:3)}}function lt(e,n){e&1&&I(0)}function rt(e,n){if(e&1&&(l(0,"div",47),x(1,lt,1,0,"ng-container",46),r()),e&2){c(2);let i=P(5);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,mi))}}function ct(e,n){e&1&&I(0)}function _t(e,n){if(e&1&&(l(0,"div",47),x(1,ct,1,0,"ng-container",46),r()),e&2){c(2);let i=P(9);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,Ri))}}function st(e,n){e&1&&I(0)}function dt(e,n){if(e&1&&(l(0,"div",44),x(1,st,1,0,"ng-container",46),r()),e&2){c(3);let i=P(9);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,yi))}}function mt(e,n){e&1&&I(0)}function pt(e,n){if(e&1&&(l(0,"div",47),x(1,mt,1,0,"ng-container",37),r()),e&2){c(4);let i=P(11);t(),m("ngTemplateOutlet",i)}}function gt(e,n){if(e&1&&g(0,pt,2,1,"div",47),e&2){let i=c(5);C(i.pushNotificationService.askToJoin()?0:-1)}}function Ct(e,n){if(e&1&&g(0,dt,2,3,"div",44)(1,gt,1,1),e&2){let i=c(4);C(i.circleAreas.length===1&&i.circleAreas[0].radius==11223?0:1)}}function ut(e,n){e&1&&I(0)}function vt(e,n){if(e&1&&(l(0,"div",47),x(1,ut,1,0,"ng-container",46),r()),e&2){c(2);let i=P(13);t(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",O(2,mi))}}function ft(e,n){if(e&1&&(p(0,"app-activitiesView",43),g(1,rt,2,3,"div",47),g(2,_t,2,3,"div",47),g(3,Ct,2,1),g(4,vt,2,3,"div",47)),e&2){let i=c(3);m("langCode",i.localizationService.getLangCode())("theActivities",i.matches)("showWeather",!0),t(),C(i.loginResultDetails.sessionID&&!i.preferencesComplete?1:-1),t(),C(i.preferencesComplete&&i.circleAreas&&i.circleAreas.length===0?2:-1),t(),C(i.preferencesComplete&&i.circleAreas&&i.circleAreas.length>0?3:-1),t(),C(i.loginResultDetails.sessionID?-1:4)}}function xt(e,n){e&1&&(j(),l(0,"svg",48),p(1,"path",49),r())}function Et(e,n){e&1&&(l(0,"div",50),p(1,"ion-img",56),l(2,"h5")(3,"b"),_(4),s(5,"translate"),r(),p(6,"br")(7,"br"),_(8),s(9,"translate"),r()()),e&2&&(t(4),M(d(5,2,"PAGE_HOME.NO_ACTIVITIES_PREFERENCE")),t(4),u(" ",d(9,4,"PAGE_HOME.NO_ACTIVITIES_PREFERENCE_MSG")," "))}function ht(e,n){e&1&&(p(0,"br"),_(1),s(2,"translate")),e&2&&(t(),u(" ",d(2,1,"PAGE_HOME.NO_ACTIVITIES_PREFERENCE_MSG")," "))}function Tt(e,n){if(e&1&&(g(0,Et,10,6,"div",50),l(1,"ion-row",51)(2,"ion-col",52)(3,"ion-item",53),p(4,"ion-icon",54),l(5,"ion-label",55)(6,"b"),_(7),s(8,"translate"),r(),g(9,ht,3,3),r()()()()),e&2){let i=n.activitiesExist,o=c(3);C(i?-1:0),t(3),m("routerLink",D("/",o.localizationService.getRoutePath(o.RouteID.PREFERENCES,o.localizationService.getLangCode()))),t(4),u(" ",d(8,5,"PAGE_HOME.NO_ACTIVITIES_PREFERENCE_ACTION")," "),t(2),C(i?9:-1)}}function St(e,n){e&1&&I(0)}function It(e,n){if(e&1){let i=H();l(0,"div",57)(1,"div",36),x(2,St,1,0,"ng-container",37),r(),l(3,"h5")(4,"b"),_(5),s(6,"translate"),r(),p(7,"br"),_(8),s(9,"translate"),r()(),l(10,"ion-row",51)(11,"ion-col",58)(12,"ion-item",59),E("click",function(){h(i);let a=c(3);return T(a.gotoCreation())}),p(13,"ion-icon",60),l(14,"ion-label",55)(15,"b"),_(16),s(17,"translate"),r(),p(18,"br"),_(19),s(20,"translate"),r()()(),l(21,"ion-col",58)(22,"ion-item",59),E("click",function(){h(i);let a=c(3);return T(a.gotoCreationPool())}),p(23,"ion-icon",61),l(24,"ion-label",55)(25,"b"),_(26),s(27,"translate"),r(),p(28,"br"),_(29),s(30,"translate"),r()()()()}if(e&2){c();let i=P(3);t(2),m("ngTemplateOutlet",i),t(3),M(d(6,7,"PAGE_HOME.NO_ACTIVITIES_CREATE")),t(3),u(" ",d(9,9,"PAGE_HOME.NO_ACTIVITIES_CREATE_MSG")," "),t(8),u("",d(17,11,"PAGE_HOME.NO_ACTIVITIES_CREATE_ACTIVITY"),":"),t(3),u(" ",d(20,13,"PAGE_HOME.NO_ACTIVITIES_CREATE_ACTIVITY_INFO")," "),t(7),u("",d(27,15,"PAGE_HOME.NO_ACTIVITIES_CREATE_POOL"),":"),t(3),u(" ",d(30,17,"PAGE_HOME.NO_ACTIVITIES_CREATE_POOL_INFO")," ")}}function Pt(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.UPDATE_VENUES")," ")}function At(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.NO_ACTIVITIES_LOCATIONS")," ")}function Mt(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.UPDATE_VENUES_MIGRATION")," ")}function Ot(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.NO_ACTIVITIES_LOCATIONS_MSG")," ")}function Ht(e,n){if(e&1&&(l(0,"div",50),p(1,"ion-img",64),l(2,"h5")(3,"b"),g(4,Pt,2,3)(5,At,2,3),r(),p(6,"br")(7,"br"),g(8,Mt,2,3)(9,Ot,2,3),r()()),e&2){let i=c().updateHomeZone;t(4),C(i?4:5),t(4),C(i?8:9)}}function Rt(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.UPDATE_VENUES_MIGRATION")," ")}function yt(e,n){e&1&&(_(0),s(1,"translate")),e&2&&u(" ",d(1,1,"PAGE_HOME.NO_ACTIVITIES_LOCATIONS_MSG")," ")}function wt(e,n){if(e&1&&(p(0,"br"),g(1,Rt,2,3)(2,yt,2,3)),e&2){let i=c().updateHomeZone;t(),C(i?1:2)}}function bt(e,n){if(e&1&&(g(0,Ht,10,2,"div",50),l(1,"ion-item",62),p(2,"ion-icon",63),l(3,"ion-label",55)(4,"b"),_(5),s(6,"translate"),r(),g(7,wt,3,1),r()()),e&2){let i=n.activitiesExist,o=n.updateHomeZone,a=c(3);C(i?-1:0),t(),m("routerLink",a.utilitiesService.createMapURL(a.activitiesPreference[0],a.localizationService.getLangCode()))("queryParams",B(7,si,o)),t(4),u(" ",d(6,5,"PAGE_HOME.NO_ACTIVITIES_LOCATIONS_ACTION")," "),t(2),C(i?7:-1)}}function Lt(e,n){if(e&1){let i=H();l(0,"ion-item",65),E("click",function(){h(i);let a=c(3);return T(a.openNotificationsModal())}),p(1,"ion-icon",66),l(2,"ion-label",55),_(3),s(4,"translate"),r()()}e&2&&(t(3),u(" ",d(4,1,"PAGE_HOME.PUSH_REMINDER_MSG")," "))}function Dt(e,n){e&1&&I(0)}function Gt(e,n){if(e&1&&(l(0,"div",57)(1,"div",36),x(2,Dt,1,0,"ng-container",37),r(),l(3,"h5")(4,"b"),_(5),s(6,"translate"),r(),p(7,"br"),_(8),s(9,"translate"),r()()),e&2){c(2);let i=P(3);t(2),m("ngTemplateOutlet",i),t(3),M(d(6,3,"PAGE_HOME.NO_ACTIVITIES_REGIST
1ER")),t(3),u(" ",d(9,5,"PAGE_HOME.NO_ACTIVITIES_REGISTER_MSG")," ")}}function Vt(e,n){e&1&&(p(0,"br"),_(1),s(2,"translate")),e&2&&(t(),u(" ",d(2,1,"PAGE_HOME.NO_ACTIVITIES_CREATE_MSG")," "))}function Nt(e,n){if(e&1&&(l(0,"ion-col",58)(1,"ion-item",53),p(2,"ion-icon",68),l(3,"ion-label",55)(4,"b"),_(5),s(6,"translate"),r()()()()),e&2){let i=c(4);t(),m("routerLink",D("/",i.localizationService.getRoutePath(i.RouteID.START,i.localizationService.getLangCode()))),t(4),M(d(6,3,"PAGE_HOME.LEARN_ABOUT_SPORTSDATE"))}}function kt(e,n){if(e&1&&(g(0,Gt,10,7,"div",57),l(1,"ion-row",51)(2,"ion-col",58)(3,"ion-item",53),p(4,"ion-icon",67),l(5,"ion-label",55)(6,"b"),_(7),s(8,"translate"),s(9,"translate"),r(),g(10,Vt,3,3),r()()(),g(11,Nt,7,5,"ion-col",58),r()),e&2){let i=n.activitiesExist,o=c(3);C(i?-1:0),t(3),m("routerLink",D("/",o.localizationService.getRoutePath(o.RouteID.ACCOUNT,o.localizationService.getLangCode()))),t(4),te("",d(8,7,"PAGE_ACCOUNT.BUTTON_LOGIN")," / ",d(9,9,"PAGE_HOME.NO_ACTIVITIES_REGISTER_ACTION")),t(3),C(i?10:-1),t(),C(o.isRecurringUser?-1:11)}}function zt(e,n){if(e&1&&(g(0,at,4,4)(1,ft,5,7),x(2,xt,2,0,"ng-template",null,1,w)(4,Tt,10,7,"ng-template",null,2,w)(6,It,31,19,"ng-template",null,3,w)(8,bt,8,9,"ng-template",null,4,w)(10,Lt,5,3,"ng-template",null,5,w)(12,kt,12,11,"ng-template",null,6,w)),e&2){let i=c(2);C(i.matches.length===0?0:1)}}function Bt(e,n){if(e&1&&p(0,"app-activitiesView",43),e&2){let i=c(2);m("langCode",i.localizationService.getLangCode())("theActivities",i.matches)("showWeather",!1)}}function Ft(e,n){if(e&1&&(g(0,zt,14,1),g(1,Bt,1,3,"app-activitiesView",43)),e&2){let i=c();C(i.manageMode!==i.MatchesSelector.PAST?0:-1),t(),C(i.manageMode===i.MatchesSelector.PAST?1:-1)}}function Ut(e,n){e&1&&(p(0,"pwa-install",71,7),s(2,"translate")),e&2&&m("description",z(d(2,2,"PAGE_HEADER.START_TITLE")))}function jt(e,n){}function Zt(e,n){if(e&1&&(l(0,"ion-footer",13),p(1,"app-navigation-tab-bar",69),l(2,"p",70),Q(3,Ut,3,4)(4,jt,0,0),Y(5,3,Mi,null,4,null,null,8,W),q(),r()()),e&2){let i=c();t(),m("langCode",i.localizationService.getLangCode())("currentActivity",i.currentActivity)("selectedRoute",i.RouteID.ACTIVITIES)("userID",i.loginResultDetails.player.id)}}var Gn=(()=>{let n=class n{constructor(o,a,v,S,y,b,pi,gi,Ci,ui,vi,fi,xi,Ei,hi,Ti,Si,Ii){this.title=o,this.meta=a,this.router=v,this.modalController=S,this.messageService=y,this.storage=b,this.privateMessengerService=pi,this.pushNotificationService=gi,this.utilitiesService=Ci,this.localizationService=ui,this.locationService=vi,this.activitiesService=fi,this.seoService=xi,this.activityTypesService=Ei,this.loginService=hi,this.singleton=Ti,this.preferenceService=Si,this.toastController=Ii,this.ActivityObjectType=ti,this.Gender=L,this.manageModePopoverOpen=!1,this.genderMode=new Map,this.genderModePopoverOpen=!1,this.popoverEvent=null,this.circleAreas=null,this.matchesResult=null,this.commercialOn=!0,this.loginResultDetails=null,this.isRecurringUser=!1,this.activitiesPreference=null,this.preferencesComplete=!0,this.currentActivity=1,this.foldingDates=null,this.MatchesSelector=V,this.RouteID=R,Me({logInOutline:Le,homeOutline:be,add:Oe,rocket:ze,people:Ne,rocketOutline:Be,sunnyOutline:Ue,mapOutline:Ve,pushOutline:ke,cogOutline:we,cashOutline:He,checkboxOutline:Re,stopOutline:Fe,chevronDownOutline:ye,man:Ge,woman:je,maleFemaleOutline:De}),this.matches=[],this.manageMode=V.ALL}ngOnInit(){return A(this,null,function*(){let o=yield this.localizationService.localizedStringForKey("PAGE_HEADER.ACTIVITIES_TITLE"),a=yield this.localizationService.localizedStringForKey("PAGE_HEADER.ACTIVITIES_DESCRIPTION");this.currentActivity=yield this.singleton.getCurrentActivity(),this.title.setTitle(o),this.meta.updateTag({name:"description",content:a}),this.meta.updateTag({name:"robots",content:"index, follow"}),this.seoService.createLinkForCanonicalURL(encodeURI(this.singleton.baseUrl+this.localizationService.getRoutePath(R.ACTIVITIES,this.localizationService.getLangCode()))),this.seoService.updateOpenGraphTags(o,a,this.singleton.baseUrl+this.localizationService.getRoutePath(R.ACTIVITIES,this.localizationService.getLangCode()),this.localizationService.getLangCode()),this.messageService.clearMessages(),this.messageSubscription=this.messageService.getMessage().subscribe(v=>{v.text===qe.WINDOW_GOT_VISIBLE&&(this.activitiesService.resetTimeStamps(),this.ionViewWillEnter()
1)}),setTimeout(()=>{this.pwaInstall&&(this.pwaInstall.nativeElement.externalPromptEvent=this.singleton.beforeInstallEvent)},7e3)})}ngOnDestroy(){this.messageSubscription.unsubscribe()}openNotificationsModal(){return A(this,null,function*(){(yield this.modalController.create({component:li,componentProps:{}})).present()})}updateFromServer(){return A(this,null,function*(){let o=[new Promise(a=>A(this,null,function*(){a(yield this.privateMessengerService.getConversations(this.localizationService.getLangCode()))})),new Promise(a=>A(this,null,function*(){a(yield this.loadMatches(!1))}))];yield Promise.all(o)})}doRefresh(o){this.loginService.getUserLoginDetails().then(a=>{this.loginResultDetails=a,this.activitiesPreference=this.activityTypesService.getActivitiesForNumber(this.loginResultDetails.player.activities),this.preferencesComplete=this.preferenceService.getPreferencesComplete(this.loginResultDetails.player)}),this.utilitiesService.isRecurringUser().then(a=>{this.isRecurringUser=a}),this.locationService.getCircleAreas().then(a=>{this.circleAreas=a,this.manageMode===V.ALL?(this.activitiesService.resetTimeStamps(),this.updateFromServer().then(v=>{o.target.complete()})):o.target.complete()})}ionViewWillEnter(){return A(this,null,function*(){this.loginResultDetails=yield this.loginService.getUserLoginDetails(),this.genderMode.set(L.EQUAL,!0),this.genderMode.set(L.FEMALE,!0),this.genderMode.set(L.MALE,!0),this.isRecurringUser=yield this.utilitiesService.isRecurringUser(),this.activitiesPreference=yield this.activityTypesService.getActivitiesForNumber(this.loginResultDetails.player.activities),this.preferencesComplete=this.preferenceService.getPreferencesComplete(this.loginResultDetails.player),this.circleAreas=yield this.locationService.getCircleAreas();let o=yield this.storage.get(U.COMMERCIALS);this.commercialOn=o===null?!0:o,this.updateFromServer(),this.fabContainer&&this.fabContainer.close()})}ionViewDidLeave(){this.seoService.removeTags(),this.seoService.removeLinkElements("canonical")}manageModeChange(o){o&&this.manageMode!==o.detail.value&&(this.manageMode=o.detail.value,this.loadMatches(!1))}genderModeChange(o){o!=null&&(this.genderMode.has(o)?this.genderMode.delete(o):this.genderMode.set(o,!0),this.loadMatches(!1))}toogleCommercialSetting(){this.commercialOn=!this.commercialOn,this.storage.set(U.COMMERCIALS,this.commercialOn),this.loadMatches(!1),this.toastController.create({message:this.localizationService.localizedStringInstant(this.commercialOn?"PAGE_HOME.COMMERCIAL_ON":"PAGE_HOME.COMMERCIAL_OFF"),duration:2e3,color:this.commercialOn?"warning":"dark",position:"bottom",positionAnchor:"footer"}).then(o=>o.present())}loadMatches(o){return A(this,null,function*(){return new Promise(a=>A(this,null,function*(){this.matchesResult=null,this.matches.length=0;let v=yield this.activitiesService.getMatches(this.manageMode,this.genderMode,this.commercialOn),S=[],y=!1;switch(v.code){case G.SUCCESS:S=v.matches;break;case G.SESSION_INVALID:if(o===!1){let b=yield this.loginService.loginUser();if(b&&b.sessionID)return this.activitiesService.resetTimeStamps(),a(this.loadMatches(!0))}else y=!0;break;case G.SERVER_ERROR:y=!0;break}y&&this.toastController.create({message:this.localizationService.localizedStringInstant("COMMON_TS.CALL_RESULT_SERVER_ERROR_MSG"),duration:2e3,color:"dark",position:"top"}).then(b=>b.present()),this.matches=S,this.matchesResult=v,a(!0)}))})}gotoCreation(){this.loginResultDetails.sessionID?this.router.navigateByUrl(this.localizationService.getRoutePath(R.CREATE,this.localizationService.getLangCode())):this.router.navigateByUrl(this.localizationService.getRoutePath(R.ACCOUNT,this.localizationService.getLangCode()))}gotoCreationPool(){this.loginResultDetails.sessionID?this.router.navigateByUrl(this.localizationService.getRoutePath(R.CREATE_POOL,this.localizationService.getLangCode())):this.router.navigateByUrl(this.localizationService.getRoutePath(R.ACCOUNT,this.localizationService.getLangCode()))}};n.\u0275fac=function(a){return new(a||n)(f(ce),f(re),f(_e),f(Se),f(Xe),f(Ze),f(Ke),f(ai),f(ii),f(We),f(Ye),f(ni),f(oi),f(ei),f($e),f(Qe),f(Je),f(Ie))},n.\u0275cmp=Z({type:n,selectors:[["app-home"]],viewQuery:function(a,v){if(a&1&&ie(Pi,5)(Ai,5),a&2){let S;N(S=k())&&(v.fabContainer=S.first),N(S=k())&&(v.pwaInstall=S.first)}},decls:10,vars:6,consts:[["fabContainer",""],["noActivities_svg",""],["incompletePreferencesTemplate",""],["locationsTemplate",""],["noLocationsTemplate",""],["pushNotificationTemplate",""],["registerTemplate",""],["pwaInstall",""],[6e3],[3,"title","loginResultDetails"],["slot","fixed",3,"ionRefresh"],["vertical","bottom","horizontal","end","slot","fixed"],[1,"main-container"],["id","footer"],["size","large","name","add"],["side","to
1p"],["shape","round","color","light",3,"click"],["size","large","color","danger","name","rocket"],["side","start"],["size","large","color","warning","name","people"],[2,"display","flex","justify-content","start","align-items","center","flex-direction","row"],["mode","md","color","primary","fill","outline","shape","round",1,"toolBarButton",3,"click"],["reference","event","dismissOnSelect","true",3,"didDismiss","isOpen","event"],["mode","md","slot","icon-only","fill","clear",3,"disabled"],["mode","md","fill","outline","color","primary","shape","round",1,"toolBarButton",3,"click"],["reference","event","dismissOnSelect","false",3,"didDismiss","isOpen","event"],[3,"ionChange","value"],[1,"ion-margin-end",3,"value"],["mode","md","size","small","shape","round","fill","outline","routerDirection","forward",1,"ion-margin-end",3,"routerLink","queryParams"],[1,"ion-margin-end",3,"value","disabled"],["mode","md","slot","icon-only","fill","clear",3,"click","disabled"],["size","large","name","cash-outline",3,"color"],[3,"color"],[4,"ngIf"],[1,"ion-margin-end",3,"ionChange","disabled","checked"],[1,"ion-padding","ion-margin-start"],[1,"center","max_image_size"],[4,"ngTemplateOutlet"],["animated","",2,"width","85%","height","1.1em"],["animated","",2,"width","80%","height","1.1em"],["animated","",2,"width","75%","height","1.1em"],["animated","",2,"width","70%","height","1.1em"],["animated","",2,"width","60%","height","1.1em"],[3,"langCode","theActivities","showWeather"],[1,"ion-margin-top"],[1,"ion-margin"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ion-padding"],["ver
1sion","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","width","100%","height","100%","viewBox","0 0 187.072 187.072","fill","var(--ion-color-medium)",0,"xml","space","preserve"],["d",`M38.917,95.012c0.28,0.098,0.566,0.135,0.847,0.135c0.542,0,1.084-0.158,1.534-0.5c0.697-0.48,1.108-1.291,1.108-2.143 2 V62.926c0-1.446,1.188-2.625,2.646-2.625c1.452,0,2.636,1.172,2.636,2.625v8.482c0,1.413,1.124,2.573,2.54,2.636l4.262,0.168 3 c0.825,0.106,1.403-0.216,1.921-0.734c0.518-0.487,0.81-1.169,0.825-1.884l0.061-6.035c0-11.792,9.59-21.376,21.376-21.376 4 c2.317,0,4.676,0.435,7.237,1.339c0.283,0.113,0.582,0.152,0.88,0.152c0.076,0,0.119,0,0.131,0c1.458,0,2.643-1.181,2.643-2.646 5 c0-0.648-0.229-1.221-0.603-1.69c-6.33-15.089-20.834-24.792-37.18-24.792c-22.256,0-40.356,18.097-40.356,40.356 6 C11.418,74.164,22.473,89.465,38.917,95.012z M51.774,21.861c12.602,0,23.949,6.628,30.184,17.284 7 c-14.066-1.852-26.786,7.971-29.432,21.187c-1.078-3.093-4.021-5.325-7.48-5.325c-4.372,0-7.925,3.556-7.925,7.913v25.696 8 c-12.358-5.669-20.42-17.988-20.42-31.7C16.701,37.586,32.432,21.861,51.774,21.861z M115.676,76.818 9 c1.626,1.69,5.779,16.379-19.089,32.601c0,0,10.284-18.745,10.638-30.107C107.28,77.12,111.353,72.319,115.676,76.818z 10 M180.343,55.412c-0.518-0.417-1.278-0.728-1.82-0.633L82.433,58.6c-0.262,0.018-0.518,0.07-0.773,0.149 11 c-0.493,0.162-4.914,1.815-5.282,5.807c-0.311,3.248,2.213,6.366,7.587,9.483c0.438,0.286,1.111,0.953,1.224,0.965 12 c0,0.012-0.438,0.707-2.986,1.522c-1.321,0.399-2.095,1.803-1.766,3.154c0.012,0.058,1.309,5.712-1.958,9.898 13 c-2.637,3.389-7.627,5.112-14.815,5.112l-1.559-0.03c0-0.024-26.941-2.399-45.26,16.757c-12.178,12.727-17.796,31.773-16.712,56.6 14 c0.049,1.175,0.892,2.174,2.04,2.441c0.204,0.049,0.399,0.066,0.603,0.066c0.938,0,1.842-0.518,2.32-1.369 15 c0.119-0.189,12.06-20.277,81.726-32.273c19.223-3.3,37.758-9.9,53.11-54.145c0.024-0.155,0.578-3.879,5.772-3.879l31.883,1.124 16 c0.469-0.083,0.98-0.125,1.406-0.351c0.299-0.18,7.386-4.314,8.031-11.298C187.437,63.9,185.191,59.546,180.343,55.412z 17 M176.933,74.693l-30.099-1.042c-8.5-0.761-11.733,5.361-12.02,7.901c-14.279,41.007-31.271,47.121-48.899,50.141 18 c-51.152,8.817-72.354,22.019-80.626,29.459c0.155-20.069,5.307-35.542,15.356-46.059c13.168-13.761,31.158-15.24,38.28-15.24 19 c1.65,0,2.643,0.091,2.85,0.104c9.8,0.194,16.916-2.047,20.868-7.119c3.312-4.229,3.517-9.185,3.273-12.059 20 c1.873-0.843,4.123-2.332,4.472-4.92c0.472-3.529-3.142-5.979-3.671-6.305c-4.253-2.469-5.115-4.107-5.079-4.481 21 c0.027-0.274,0.725-0.862,1.474-1.197l94.57-3.766c2.923,2.713,4.3,5.319,4.086,7.742 22 C181.458,71.208,178.273,73.758,176.933,74.693z M71.265,60.962c2.549,0,4.588,2.058,4.588,4.576c0,2.539-2.04,4.597-4.588,4.597 23 c-2.539,0-4.597-2.058-4.597-4.597C66.668,63.026,68.72,60.962,71.265,60.962z`],[1,"ion-text-center"],[1,"ion-justify-content-center"],["size","12","size-Xs","12","size-Md","7"],["button","true","detail","true","routerDirection","root","color","warning",1,"new_activity",3,"routerLink"],["size","large","name","cog-outline"],[1,"ion-padding-start","ion-text-wrap"],["src","assets/images/advice.svg",1,"center","max_image_size","ion-padding"],[1,"ion-text-center","ion-padding"],["size","12","size-Xs","12","size-Md","5",1,"ion-padding"],["button","true","detail","true","color","warning",1,"new_activity",3,"click"],["size","large","name","rocket-outline"],["size","large","name","sunny-outline"],["button","true","detail","true","routerDirection","root","color","warning",1,"ion-margin","new_activity",3,"routerLink","queryParams"],["size","large","name","map-outline"],["src","assets/images/map.svg",1,"center","max_image_size","ion-padding"],["button","true","detail","true","color","warning",1,"ion-margin","new_activity",3,"click"],["size","large","name","push-outline"],["size","large","name","log-in-outline"],["size","large","name","home-outline"],[3,"langCode","currentActivity","selectedRoute","userID"],[1,"ion-no-margin"],["manifest-url","/manifest.json","name","SportsDate.app","icon","assets/icons/favicon-192.png",3,"de
23scription"]],template:function(a,v){a&1&&(g(0,wi,2,5,"app-pageHeader",9),l(1,"ion-content")(2,"ion-refresher",10),E("ionRefresh",function(y){return v.doRefresh(y)}),p(3,"ion-refresher-content"),r(),g(4,bi,14,6,"ion-fab",11),l(5,"main",12),g(6,Zi,18,8,"header"),g(7,Wi,15,1,"div"),g(8,Ft,2,2),r()(),g(9,Zt,7,4,"ion-footer",13)),a&2&&(C(v.loginResultDetails?0:-1),t(4),C(v.circleAreas&&v.circleAreas.length>0&&v.loginResultDetails.sessionID?4:-1),t(2),C(v.manageMode?6:-1),t(),C(v.matchesResult?-1:7),t(),C(v.matchesResult?8:-1),t(),C(v.loginResultDetails?9:-1))},dependencies:[le,ne,oe,se,ri,ci,_i,Ae,pe,ue,de,Te,me,ve,Pe,fe,xe,ge,Ce,Ee,he,ae,F],styles:["ion-list-header.list-header[_ngcontent-%COMP%]{margin-bottom:0}ion-fab[horizontal=end][_ngcontent-%COMP%] ion-fab-list[_ngcontent-%COMP%]{right:0;align-items:flex-end}ion-item[_ngcontent-%COMP%]{--inner-padding-end: 2%;--background: var(--ion-color-light);--color-activated: var(--ion-color-light);--detail-icon-color: var(--app-muted);--detail-icon-opacity: 70%}ion-item.new_activity[_ngcontent-%COMP%]{--inner-padding-end: 5%;--detail-icon-color: var(--ion-color-light);border-radius:15px}.toolBarButton[_ngcontent-%COMP%]{--padding-start: 1.1em;--padding-end: 1.1em}.center[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto}.max_image_size[_ngcontent-%COMP%]{width:8rem}"]});let e=n;return e})();export{Gn as HomePage};
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.