1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5372],{5372:(ce,G,u)=>{u.r(G),u.d(G,{ActivitiesPageModule:()=>ne});var f=u(8434),y=u(9417),p=u(3092),E=u(9262),h=u(467),t=u(1360),k=u(3594),et=u(7159),O=u(7862),b=u(8291),nt=u(2921),v=u(8391),it=u(8941),at=u(4962);function ot(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-checkbox",27),t.mxI("ngModelChange",function(n){const a=t.eBV(i).$implicit;return t.DH7(a.checked,n)||(a.checked=n),t.Njj(n)}),t.bIt("ionChange",function(){t.eBV(i);const n=t.XpG(2).$implicit,a=t.XpG();return t.Njj(a.verifyCategory(n))}),t.j41(1,"ion-label"),t.EFF(2),t.k0s()()}if(2&o){const i=r.$implicit,e=t.XpG(3);t.R50("ngModel",i.checked),t.R7$(2),t.SpI(" ",i.isNoCategory?"["+((null==e.translations||null==e.translations.activity?null:e.translations.activity.noSubcategory)||"No Subcategory")+"]":i.name," ")}}function st(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",20)(1,"ion-accordion-group")(2,"ion-accordion",21)(3,"ion-item",22)(4,"ion-label",23),t.EFF(5),t.k0s()(),t.j41(6,"ion-list",4)(7,"div",24)(8,"ion-button",25),t.bIt("click",function(){t.eBV(i);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.toggleAllSubcategories(n))}),t.EFF(9),t.k0s()(),t.DNE(10,ot,3,2,"ion-checkbox",26),t.k0s()()()()}if(2&o){const i=t.XpG().$implicit,e=t.XpG();t.R7$(5),t.JRh(i.name),t.R7$(3),t.Y8G("color",e.isAllChecked(i)?"danger":"mpp"),t.R7$(),t.SpI(" ",e.isAllChecked(i)?(null==e.translations||null==e.translations.common?null:e.translations.common.uncheckAllFilters)||"Uncheck All":(null==e.translations||null==e.translations.common?null:e.translations.common.checkAllFilters)||"Check all"," "),t.R7$(),t.Y8G("ngForOf",i.subcategories)}}function rt(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",28)(1,"ion-checkbox",29),t.mxI("ngModelChange",function(n){t.eBV(i);const a=t.XpG().$implicit;return t.DH7(a.checked,n)||(a.checked=n),t.Njj(n)}),t.bIt("ionChange",function(){t.eBV(i);const n=t.XpG(2);return t.Njj(n.emitChanges())}),t.j41(2,"ion-label"),t.EFF(3),t.k0s()()()}if(2&o){const i=t.XpG().$implicit;t.R7$(),t.R50("ngModel",i.checked),t.R7$(2),t.JRh(i.name)}}function lt(o,r){if(1&o&&(t.j41(0,"div",7),t.DNE(1,st,11,4,"div",18)(2,rt,4,2,"div",19),t.k0s()),2&o){const i=r.$implicit;t.R7$(),t.Y8G("ngIf",i.subcategories.length>0),t.R7$(),t.Y8G("ngIf",0===i.subcategories.length)}}function ct(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",30)(1,"ion-button",31),t.bIt("click",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.changeRange())}),t.EFF(2),t.k0s()()}if(2&o){const i=t.XpG();t.R7$(2),t.SpI(" ",(null==i.translations||null==i.translations.common?null:i.translations.common.apply)||"Apply"," ")}}let $=(()=>{var o;class r{constructor(){this.ISOFORMAT="yyyy-MM-dd'T'HH:mm:ss'Z'",this.dateStartPickerId="ActivitieDateStartline",this.dateEndPickerId="ActivitieDateEndline",this.dateDeadlinePickerId="ActivitieDateDeadline",this.showOnMobile=!1,this.changeEmitter=new t.bkB}ngOnInit(){}ngOnChanges(e){e.dateList&&void 0!==e.dateList.currentValue&&(this.filterStartDate=e.dateList.currentValue.start?this.dateList.start.toISOString():null,this.filterEndDate=e.dateList.currentValue.end?this.dateList.end.toISOString():null,this.filterDeadlineDate=e.dateList.currentValue.deadline?this.dateList.deadline.toISOString():null)}isAllChecked(e){return e.subcategories.every(n=>n.checked)}isSomeChecked(e){return e.subcategories.some(n=>n.checked)&&!this.isAllChecked(e)}verifyCategory(e){e.checked=!!this.isAllChecked(e),this.emitChanges()}emitChanges(){this.changeEmitter.emit()}toggleAllSubcategories(e){var n,a;this.isAllChecked(e)?null==(n=e.subcategories)||n.map(s=>(s.checked=!1,s)):null==(a=e.subcategories)||a.map(s=>(s.checked=!0,s)),this.verifyCategory(e)}changeRange(){(this.priceRangeList.lower.new<0||isNaN(this.priceRangeList.lower.new))&&(this.priceRangeList.lower.new=0),this.priceRangeList.lower.new>this.priceRangeList.upper.original&&(this.priceRangeList.lower.new=this.priceRangeList.upper.original),(this.priceRangeList.upper.new>this.priceRangeList.upper.original||isNaN(this.priceRangeList.upper.new))&&(this.priceRangeList.upper.new=this.priceRangeList.upper.original),this.emitChanges()}rangeHasChanged(){return this.priceRangeList.lower.new!==this.priceRangeList.lower.original||this.priceRangeList.upper.new!==this.priceRangeList.upper.original}changeDate(){this.emitChanges()}onInputFocus(e){const n=e.currentTarget;n.type="text",n.setSelectionRange(0,n.value.length),n.type="date"}getDateValue(e,n){if(null==e||!e.isValid){switch(n){case"start":this.dateList.start=null,this.filterStartDate=null;break;case"end":this.dateList.end=null,this.filterEndDate=null;break;case"deadline":this.dateList.deadline=null,this.filterDeadlineDate=null}return void this.changeDate()}
1const a=new Date(null==e?void 0:e.date).toLocaleString("en-US",{timeZone:"UTC"}),s=new Date(a);if(e){switch(n){case"start":this.dateList.start=s,this.filterStartDate=(0,O.GP)(s,this.ISOFORMAT);break;case"end":this.dateList.end=s,this.filterEndDate=(0,O.GP)(s,this.ISOFORMAT);break;case"deadline":this.dateList.deadline=s,this.filterDeadlineDate=(0,O.GP)(s,this.ISOFORMAT)}this.changeDate()}}}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275cmp=t.VBU({type:o,selectors:[["activity-filters"]],inputs:{categoriesList:"categoriesList",priceRangeList:"priceRangeList",dateList:"dateList",dateStartPickerId:"dateStartPickerId",dateEndPickerId:"dateEndPickerId",dateDeadlinePickerId:"dateDeadlinePickerId",showOnMobile:"showOnMobile",translations:"translations"},outputs:{changeEmitter:"changeEmitter"},standalone:!1,features:[t.OA$],decls:47,vars:29,consts:[[1,"filter-type"],["value","categories","toggle-icon","caret-down","mode","ios",1,"filterAccordion"],["slot","header","lines","none",1,"backgroundItem"],[1,"filter-title"],["slot","content",1,"filter-content"],["class","filter-item",4,"ngFor","ngForOf"],["slot","header",1,"backgroundItem"],[1,"filter-item"],[1,"range-inputs"],["lines","none"],["type","number","labelPlacement","stacked",3,"ngModelChange","ngModel","label"],["class","range-actions",4,"ngIf"],[1,"date-inputs"],[1,"date"],["lines","none",1,"dateItem"],["position","fixed"],[3,"dateData","translations","hideBorderButton","id","textAlign","dateValue"],["lines","none",1,"lastDateItem"],["class","filter-multiple",4,"ngIf"],["class","filter-single",4,"ngIf"],[1,"filter-multiple"],["value","categories","toggle-icon","caret-down","mode","ios"],["slot","header",1,"multipleIontem"],[1,"multipleTitle"],[1,"check-btn"],["expand","block","size","small",3,"click","color"],["slot","start","color","mpp","mode","md","labelPlacement","end","justify","start","class","filter-subitem",3,"ngModel","ngModelChange","ionChange",4,"ngFor","ngForOf"],["slot","start","color","mpp","mode","md","labelPlacement","end","justify","start",1,"filter-subitem",3,"ngModelChange","ionChange","ngModel"],[1,"filter-single"],["slot","start","color","mpp","mode","md","labelPlacement","end","justify","start",3,"ngModelChange","ionChange","ngModel"],[1,"range-actions"],["expand","block","color","mpp","size","small",3,"click"]],template:function(e,n){1&e&&(t.j41(0,"div")(1,"div",0)(2,"ion-accordion-group")(3,"ion-accordion",1)(4,"ion-item",2)(5,"ion-label",3),t.EFF(6),t.k0s()(),t.j41(7,"ion-list",4),t.DNE(8,lt,3,2,"div",5),t.k0s()()()(),t.j41(9,"div",0)(10,"ion-accordion-group")(11,"ion-accordion",1)(12,"ion-item",6)(13,"ion-label",3),t.EFF(14),t.k0s()(),t.j41(15,"ion-list",4)(16,"div",7)(17,"div",8)(18,"ion-item",9)(19,"ion-input",10),t.mxI("ngModelChange",function(s){return t.DH7(n.priceRangeList.lower.new,s)||(n.priceRangeList.lower.new=s),s}),t.k0s()(),t.j41(20,"ion-item",9)(21,"ion-input",10),t.mxI("ngModelChange",function(s){return t.DH7(n.priceRangeList.upper.new,s)||(n.priceRangeList.upper.new=s),s}),t.k0s()()(),t.DNE(22,ct,3,1,"div",11),t.k0s()()()()(),t.j41(23,"div",0)(24,"ion-accordion-group")(25,"ion-accordion",1)(26,"ion-item",6)(27,"ion-label",3),t.EFF(28),t.k0s()(),t.j41(29,"ion-list",4)(30,"div",7)(31,"div",12)(32,"div",13)(33,"ion-item",14)(34,"ion-label",15),t.EFF(35),t.k0s(),t.j41(36,"date-picker",16),t.bIt("dateData",function(s){return n.getDateValue(s,"start")}),t.k0s()()(),t.j41(37,"div",13)(38,"ion-item",14)(39,"ion-label",15),t.EFF(40),t.k0s(),t.j41(41,"date-picker",16),t.bIt("dateData",function(s){return n.getDateValue(s,"end")}),t.k0s()()(),t.j41(42,"div",13)(43,"ion-item",17)(44,"ion-label",15),t.EFF(45),t.k0s(),t.j41(46,"date-picker",16),t.bIt("dateData",function(s){return n.getDateValue(s,"deadline")}),t.k0s()()()()()()()()()()),2&e&&(t.HbH(n.showOnMobile?"filter filter-show ":"filter filter-hide"),t.R7$(6),t.JRh((null==n.translations||null==n.translations.activity?null:n.translations.activity.categories)||"Categories"),t.R7$(2),t.Y8G("ngForOf",n.categoriesList),t.R7$(6),t.JRh((null==n.translations||null==n.translations.common?null:n.translations.common.price)||"Price"),t.R7$(5),t.R50("ngModel",n.priceRangeList.lower.new),t.Y8G("label",(null==n.translations||null==n.translations.common?null:n.translations.common.minimum)||"Minimum"),t.R7$(2),t.R50("ngModel",n.priceRangeList.upper.new),t.Y8G("label",(null==n.translations||null==n.translations.common?null:n.translations.common.maximum)||"Maximum"),t.R7$(),t.Y8G("ngIf",n.rangeHasChanged()),t.R7$(6),t.JRh((null==n.translations||null==n.translations.common?null:n.translations.common.dates)||"Dates"),t.R7$(7),t.JRh((null==n.translations||null==n.translations.common?null:n.translations.common.startDate)||"Start Date"),t.R7$(),t.Y8G("translations",n.translations)("hideBorderButton",!0)("id",n.dateStartPickerId)("textAlign","left")("dateValue",n.filterStartDate),t.R7$(4),t.JRh((null==n.translations||null==n.translations.common?null:n.translations.common.endDate)||"End Date"),t.R7$(),t.Y8G("translations",n.translations)("hideBorderButton",!0)("id",n.dateEndPickerId)("textAlign","left")("dateValue",n.filterEndDate),t.R7$(4),t.JRh((null==n.translations||null==n.translations.activity?null:n.translations.activity.signUpDeadline)||"Sign up Deadline"),t.R7$(),t.Y8G("translations",n.translations)("hideBorderButton",!0)("id",n.dateDeadlinePickerId)("textAlign","left")("dateValue",n.filterDeadlineDate))},dependencies:[f.Sq,f.bT,p.xk,p.YH,p.Jm,p.eY,p.$w,p.uz,p.he,p.nf,p.hB,p.su,y.BC,y.vS,at.I],styles:[".filter-show[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5em}.filter-hide[_ngcontent-%COMP%]{display:none}@media screen and (min-width: 1200px){.filter-hide[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5em}}.filter[_ngcontent-%COMP%]{overflow:auto;padding:.5em;position:relative}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%]{width:100%}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filterAccordion[_ngcontent-%COMP%]{border:2px solid var(--alpha-10);border-radius:.5em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:medium}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .check-btn[_ngcontent-%COMP%]{padding:0 3em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-border[_ngcontent-%COMP%]{border-bottom:2px solid var(--alpha-20)}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;width:100%;border-bottom:1px solid var(--alpha-20)}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .range-inputs[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;padding:0 1em;gap:1em;margin:.8em 0}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .range-inputs[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{border:1px solid var(--alpha-20);border-radius:.5em;text-align:end}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .range-actions[_ngcontent-%COMP%]{padding:0 1em 1em;width:100%;gap:1em;display:none}@media screen and (min-width: 1200px){.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .range-actions[_ngcontent-%COMP%]{display:flex}}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .range-actions[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:100%}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-inputs[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;width:100%;gap:1em;margin:.8em 0}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-inputs[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-inputs[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{color:var(--alpha-80);font-weight:500}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-inputs[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .dateItem[_ngcontent-%COMP%]{border-bottom:1px solid var(--alpha-20);padding-bottom:.3em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-inputs[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .lastDateItem[_ngcontent-%COMP%]{padding-bottom:.3em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-actions[_ngcontent-%COMP%]{padding:0 1em 1em;display:none;width:100%;gap:1em}@media screen and (min-width: 1200px){.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-actions[_ngcontent-%COMP%]{display:flex}}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .date-actions[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:100%}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .range[_ngcontent-%COMP%]{width:100%}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .filter-single[_ngcontent-%COMP%]{width:100%;color:var(--alpha-90);padding:.5em 0}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .filter-multiple[_ngcontent-%COMP%]{width:100%;padding:.5em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .filter-multiple[_ngcontent-%COMP%] .multipleIontem[_ngcontent-%COMP%]{--padding-start: 0;--background: var(--darker-white);border-radius:.4em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .filter-multiple[_ngcontent-%COMP%] .multipleIontem[_ngcontent-%COMP%] .multipleTitle[_ngcontent-%COMP%]{color:var(--alpha-50);font-weight:500}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] .filter-multiple[_ngcontent-%COMP%] .check-multiple[_ngcontent-%COMP%]{opacity:1;max-width:90%}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{padding:0 .5em;white-space:normal}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] ion-checkbox[_ngcontent-%COMP%]{margin:0 .5em;padding:.5em .3em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%] .filter-content[_ngcontent-%COMP%] .filter-subitem[_ngcontent-%COMP%]{padding:0 2em;--background: var(--darker-white);margin:0 .4em}.filter[_ngcontent-%COMP%] .filter-type[_ngcontent-%COMP%]:last-child{border-bottom:none}.filter[_ngcontent-%COMP%] .backgroundItem[_ngcontent-%COMP%]{--background: var(--white)}"]}),r})(),dt=(()=>{var o;
1class r{constructor(e){this.modalCtrl=e,it.q.addListener("backButton",()=>{this.modalCtrl.dismiss()})}ngOnInit(){this.categoriesListClone=v.C.deepCopy(this.categoriesList),this.priceRangeListClone=v.C.deepCopy(this.priceRangeList),this.dateListClone=v.C.deepCopy(this.dateList)}cancel(){this.modalCtrl.dismiss()}emitChanges(){this.modalCtrl.dismiss({categoryList:this.categoriesListClone,priceRangeList:this.priceRangeListClone,dateList:this.dateListClone})}}return(o=r).\u0275fac=function(e){return new(e||o)(t.rXU(p.W3))},o.\u0275cmp=t.VBU({type:o,selectors:[["activity-filters-modal"]],inputs:{categoriesList:"categoriesList",translations:"translations",priceRangeList:"priceRangeList",dateList:"dateList"},standalone:!1,decls:11,vars:11,consts:[[1,"modal",3,"keydown.escape"],[1,"header"],["shape","round","fill","clear","color","black",1,"close",3,"click"],["slot","icon-only","name","close"],["mode","md","color","black",1,"title"],[1,"content"],[3,"categoriesList","priceRangeList","dateList","showOnMobile","translations","dateStartPickerId","dateEndPickerId","dateDeadlinePickerId"],[1,"footer"],["expand","block","color","mpp",3,"click"]],template:function(e,n){1&e&&(t.j41(0,"ion-card",0),t.bIt("keydown.escape",function(){return n.cancel()}),t.j41(1,"div",1)(2,"ion-button",2),t.bIt("click",function(){return n.cancel()}),t.nrm(3,"ion-icon",3),t.k0s(),t.j41(4,"ion-label",4),t.EFF(5),t.k0s()(),t.j41(6,"div",5),t.nrm(7,"activity-filters",6),t.k0s(),t.j41(8,"div",7)(9,"ion-button",8),t.bIt("click",function(){return n.emitChanges()}),t.EFF(10),t.k0s()()()),2&e&&(t.R7$(2),t.BMQ("aria-label",(null==n.translations||null==n.translations.reader?null:n.translations.reader.closeDialog)||"Close dialog box"),t.R7$(3),t.JRh((null==n.translations||null==n.translations.activity?null:n.translations.activity.filters)||"Filters"),t.R7$(2),t.Y8G("categoriesList",n.categoriesListClone)("priceRangeList",n.priceRangeListClone)("dateList",n.dateListClone)("showOnMobile",!0)("translations",n.translations)("dateStartPickerId","ActivitieDateStartlineMobile")("dateEndPickerId","ActivitieDateEndlineMobile")("dateDeadlinePickerId","ActivitieDateDeadlineMobile"),t.R7$(3),t.SpI(" ",(null==n.translations||null==n.translations.activity?null:n.translations.activity.applyFilters)||"Apply filters"," "))},dependencies:[p.Jm,p.b_,p.iq,p.he,$],styles:[".modal[_ngcontent-%COMP%]{max-width:900px;min-width:300px;max-height:85vh;width:90%;height:80vh;margin:auto;display:flex;flex-direction:column;border-radius:1em;border:1px solid var(--alpha-10);box-shadow:var(--alpha-40) 0 0 3px;background:var(--white)}@media screen and (min-height: 768px){.modal[_ngcontent-%COMP%]{max-height:80vh}}.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.5em;font-size:1.2em}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:large;color:var(--alpha-80);white-space:normal;font-weight:600}.header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;align-self:end;height:-moz-fit-content;height:fit-content;--padding-start: 0;--padding-end: 0;margin:0 .5em}.header[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{font-size:1em;text-align:center;color:var(--alpha-80)}.content[_ngcontent-%COMP%]{flex-grow:1;overflow:auto}.footer[_ngcontent-%COMP%]{padding:1em}"]}),r})();var gt=u(146),pt=u(1847),N=u(3672),ut=u(4807),mt=u(1384),V=u(3021),_t=u(5831),ft=u(9983),ht=u(7955),Ct=u(8083),vt=u(4804);function yt(o,r){if(1&o&&t.nrm(0,"img",19),2&o){const i=t.XpG();t.Y8G("src",i.activity.s3UriFull,t.B4B)("alt",i.activity.activityName)}}function Pt(o,r){if(1&o&&t.nrm(0,"img",20),2&o){const i=t.XpG();t.Y8G("alt",(null==i.translations||null==i.translations.reader?null:i.translations.reader.noActivityImage)||"No activity image")}}function Mt(o,r){if(1&o&&(t.j41(0,"ion-label"),t.EFF(1),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&o){const i=t.XpG();t.R7$(),t.SpI("",(null==i.translations||null==i.translations.activity?null:i.translations.activity.location)||"Location",": "),t.R7$(2),t.JRh(i.activity.location)}}function Ot(o,r){if(1&o&&(t.j41(0,"ion-label",21)(1,"span"),t.EFF(2),t.j41(3,"sup"),t.EFF(4,"*"),t.k0s()()()),2&o){const i=t.XpG();t.R7$(2),t.Lme(" ",i.activity.requireStudentEmail&&i.activity.activityFormId?(null==i.translations||null==i.translations.activity?null:i.translations.activity.studentEmailUpdateForm)||"Student Email Update & Form":i.activity.requireStudentEmail?(null==i.translations||null==i.translations.activity?null:i.translations.activity.studentEmailUpdate)||"Student Email Update":i.activity.activityFormId?(null==i.translations||null==i.translations.activity?null:i.translations.activity.form)||"Form":""," ",(null==i.translations||null==i.translations.common?null:i.translations.common.required)||"required","")}}function bt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-icon",22),t.bIt("click",function(n){t.eBV(i);const a=t.XpG();return t.Njj(a.showTooltip(n,null!=a.activity&&a.activity.isVariable?(null==a.translations||null==a.translations.activity?null:a.translations.activity.thisPriceCanBeEdited)||"This price can be edited":a.activity.isPartialPay?(null==a.translations||null==a.translations.activity?null:a.translations.activity.partialPaymentAreSupported)||"Partial payments are supported":(null==a.translations||null==a.translations.activity?null:a.translations.activity.theQuantityCanBeChanged)||"The quantity can be changed"))}),t.k0s()}if(2&o){const i=t.XpG();t.Y8G("color",null!=i.activity&&i.activity.isVariable?"dark":i.activity.isPartialPay?"mpp":"danger"),t.BMQ("aria-label",null!=i.activity&&i.activity.isVariable?(null==i.translations||null==i.translations.activity?null:i.translations.activity.thisPriceCanBeEdited)||"This price can be edited":i.activity.isPartialPay?(null==i.translations||null==i.translations.activity?null:i.translations.activity.partialPaymentAreSupported)||"Partial payments are supported":(null==i.translations||null==i.translations.activity?null:i.translations.activity.theQuantityCanBeChanged)||"The quantity can be changed")}}function wt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-icon",26),t.bIt("click",function(n){t.eBV(i);const a=t.XpG(2);return t.Njj(a.showTooltip(n,a.quantityOnCart+" "+((null==a.translations||null==a.translations.activity?null:a.translations.activity.itemsInCart)||"items in cart")))}),t.k0s()}}function At(o,r){if(1&o&&(t.j41(0,"div",23)(1,"ion-label",24),t.EFF(2),t.nI1(3,"currency"),t.k0s(),t.DNE(4,wt,1,0,"ion-icon",25),t.k0s()),2&o){const i=t.XpG();t.R7$(2),t.Lme("",t.bMT(3,3,i.activity.amountInCart)," ",(null==i.translations||null==i.translations.common?null:i.translations.common.inCart)||"in cart",""),t.R7$(2),t.Y8G("ngIf",i.activity.isQuantity)}}function kt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-button",27),t.bIt("click",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.addToCart())}),t.nrm(1,"ion-icon",28),t.j41(2,"ion-label"),t.EFF(3),t.k0s()()}if(2&o){const i=t.XpG();t.R7$(3),t.JRh((null==i.translations||null==i.translations.common?null:i.translations.common.addToCart)||"ADD TO CART")}}function Rt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-button",29),t.bIt("click",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.editCart())}),t.nrm(1,"ion-icon",30),t.EFF(2),t.k0s()}if(2&o){const i=t.XpG();t.R7$(2),t.SpI(" ",(null==i.translations||null==i.translations.common?null:i.translations.common.edit)||"EDIT"," ")}}function Ft(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-button",31),t.bIt("click",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.removeFromCart())}),t.nrm(1,"ion-icon",32),t.EFF(2),t.k0s()}if(2&o){const i=t.XpG();t.Y8G("size",null!=i.activity&&i.activity.isVariable?"small":""),t.R7$(2),t.SpI("",(null==i.translations||null==i.translations.common?null:i.translations.common.removeFromCart)||"REMOVE FROM CART"," ")}}let St=(()=>{var o;
1class r{constructor(e,n,a){this.modalCtrl=e,this.utilitiesProvider=n,this.activitiesProv=a,this.isLoading=!1,this.isEdit=!1}ngOnInit(){var e;if(this.activity.isInCart&&this.activity.isQuantity){const n=null==(e=this.cart.items)?void 0:e.find(a=>"activity"===a.liteItemType&&a.itemKey===this.activity.activityKey&&a.accountBalanceID===this.student.accountKey);n&&(this.quantityOnCart=n.quantity)}}showTooltip(e,n){this.utilitiesProvider.presentToolTip(e,n)}showDetails(){var e=this;return(0,h.A)(function*(){const n=yield e.modalCtrl.create({component:_t.Q,cssClass:"modal-global-darken",componentProps:{activity:e.activity,student:e.student,paymentSuspended:e.paymentSuspended,activitiesSuspended:e.activitiesSuspended},backdropDismiss:!1});yield n.present();const a=yield n.onDidDismiss();if(a.data)switch(a.data.action){case"add":e.addToCart();break;case"edit":e.editCart();break;case"remove":e.removeFromCart()}})()}addToCart(){var e=this;return(0,h.A)(function*(){var a;const n=(null==(a=e.activity)?void 0:a.isVariable)||e.activity.isPartialPay||e.activity.isQuantity;e.activity.activityFormId||n||e.activity.requireStudentEmail?n?yield e.openPartialAmount():(e.activity.activityFormId||e.activity.requireStudentEmail)&&(yield e.allowsPhysicalStatus())&&(yield e.openForm()):(yield e.allowsPhysicalStatus())&&(yield e.activitiesProv.addActivityToCart(e.student,e.activity))&&(e.activity.amountInCart=e.activity.amount,e.activity.isInCart=!0)})()}allowsPhysicalStatus(){var e=this;return(0,h.A)(function*(){var n,a;if(e.activity.physicalStatus===V.H.Required||e.activity.physicalStatus===V.H.Expired){const s=e.activity.availabilityNotes.join("\n");return yield e.utilitiesProvider.presentToast(`${e.activity.activityName} - ${(null==(a=null==(n=e.translations)?void 0:n.failing)?void 0:a.errorWhileAddingActivity)||"Error occurred while adding activity."}`,s,{duration:vt.R.extra},"error"),!1}return!0})()}editCart(){var e=this;return(0,h.A)(function*(){var a;(null==(a=e.activity)?void 0:a.isVariable)||e.activity.isPartialPay||e.activity.isQuantity?yield e.openPartialAmount(null,null,!0):(e.activity.activityFormId||e.activity.requireStudentEmail)&&(yield e.openForm(null,null,!0))})()}openPartialAmount(){var e=this;return(0,h.A)(function*(n=null,a=null,s=!1){const g=yield e.modalCtrl.create({component:ht.G,cssClass:"modal-global-darken",backdropDismiss:!1,componentProps:{activity:e.activity,student:e.student,isEdit:s,amountPaying:n,quantityOnCart:a}});yield g.present();const l=yield g.onDidDismiss();if(l.data){const c=l.data.amountToPay,m=l.data.quantityToAdd;e.activity.activityFormId||e.activity.requireStudentEmail?yield e.openForm(c,m,s):s?(yield e.activitiesProv.editActivityOnCart(e.student,e.activity,c,m))&&(e.activity.amountInCart=c,e.activity.isInCart=!0):(yield e.activitiesProv.addActivityToCart(e.student,e.activity,c,m))&&(e.activity.amountInCart=c,e.activity.isInCart=!0)}}).apply(this,arguments)}openForm(){var e=this;return(0,h.A)(function*(n=null,a=null,s=!1){let g=null;e.activity.activityFormId&&(g=yield e.utilitiesProvider.getForm(e.activity.activityFormId,e.student.accountKey));const l=yield e.modalCtrl.create({component:Ct.s,cssClass:"modal-global-darken",backdropDismiss:!1,componentProps:{activity:e.activity,student:e.student,isEdit:s,amountToPay:n,quantityToAdd:a,form:g}});yield l.present();const c=yield l.onDidDismiss();c.data&&(c.data.previous?e.openPartialAmount(n,a,!1):(n||(n=e.activity.amount),s?e.activity.requireStudentEmail?(yield e.activitiesProv.editActivityOnCart(e.student,e.activity,n,a,c.data.email))&&(e.activity.amountInCart=n,e.activity.isInCart=!0,e.student.studentEmailAddress=c.data.email):(yield e.activitiesProv.editActivityOnCart(e.student,e.activity,n,a))&&(e.activity.amountInCart=n,e.activity.isInCart=!0):e.activity.requireStudentEmail?(yield e.activitiesProv.addActivityToCartWithEmail(e.student,e.activity,n,a,c.data.email))&&(e.activity.amountInCart=n,e.activity.isInCart=!0,e.student.studentEmailAddress=c.data.email):(yield e.activitiesProv.addActivityToCart(e.student,e.activity,n,a))&&(e.activity.amountInCart=n,e.activity.isInCart=!0)))}).apply(this,arguments)}removeFromCart(){var e=this;return(0,h.A)(function*(){var n;if(e.activity.activityFormId){const a=yield e.modalCtrl.create({component:ft.F,cssClass:"modal-global-darken",backdropDismiss:!1,componentProps:{activity:e.activity,student:e.student}});yield a.present(),null!=(n=(yield a.onDidDismiss()).data)&&n.remove&&(yield e.activitiesProv.deleteActivityFromCart(e.activity.activityKey,e.student.accountKey))&&(e.activity.amountInCart=0,e.activity.isInCart=!1)}else(yield e.activitiesProv.deleteActivityFromCart(e.activity.activityKey,e.student.accountKey))&&(e.activity.amountInCart=0,e.activity.isInCart=!1)})()}}return(o=r).\u0275fac=function(e){return new(e||o)(t.rXU(p.W3),t.rXU(v.C),t.rXU(N.j))},o.\u0275cmp=t.VBU({type:o,selectors:[["activity-card"]],inputs:{activity:"activity",student:"student",paymentSuspended:"paymentSuspended",activitiesSuspended:"activitiesSuspended",cart:"cart",isEdit:"isEdit",translations:"translations"},standalone:!1,decls:35,vars:27,consts:[[1,"card-container"],[1,"card-header"],[1,"card-img"],["class","full-img",3,"src","alt",4,"ngIf"],["src","/assets/images/nophoto.png",3,"alt",4,"ngIf"],[1,"card-content"],["tabindex","0",1,"title","ion-activatable","ripple-parent","activityTitle",3,"click","keydown.enter"],[1,"dates"],[4,"ngIf"],["class","required-label",4,"ngIf"],[1,"footer"],[1,"balances"],[1,"current"],["name","help-circle-outline","class","category-icon",3,"color","click",4,"ngIf"],["class","in-cart","color","mpp",4,"ngIf"],[1,"actions"],["expand","block","fill","solid","color","mpp","mode","md",3,"click",4,"ngIf"],["expand","block","fill","solid","color","mpp-warning","mode","md","size","small",3,"click",4,"ngIf"],["expand","block","fill","solid","color","danger","mode","md","class","remove",3,"size","click",4,"ngIf"],[1,"full-img",3,"src","alt"],["src","/assets/images/nophoto.png",3,"alt"],[1,"required-label"],["name","help-circle-outline",1,"category-icon",3,"click","color"],["color","mpp",1,"in-cart"],["color","mpp"],["name","alert-circle-outline","class","category-icon","color","mpp",3,"click",4,"ngIf"],["name","alert-circle-outline","color","mpp",1,"category-icon",3,"click"],["expand","block","fill","solid","color","mpp","mode","md",3,"click"],["name","add-circle","slot","start"],["expand","block","fill","solid","color","mpp-warning","mode","md","size","small",3,"click"],["name","create","slot","start"],["expand","block","fill","solid","color","danger","mode","md",1,"remove",3,"click","
1size"],["name","trash","slot","start"]],template:function(e,n){1&e&&(t.j41(0,"ion-card",0)(1,"ion-card-header",1)(2,"div",2),t.DNE(3,yt,1,2,"img",3)(4,Pt,1,1,"img",4),t.k0s()(),t.j41(5,"ion-card-content",5)(6,"div",6),t.bIt("click",function(){return n.showDetails()})("keydown.enter",function(){return n.showDetails()}),t.j41(7,"ion-label"),t.EFF(8),t.k0s()(),t.j41(9,"div",7)(10,"ion-label"),t.EFF(11),t.j41(12,"span"),t.EFF(13),t.nI1(14,"date"),t.nI1(15,"date"),t.k0s()(),t.j41(16,"ion-label"),t.EFF(17),t.j41(18,"span"),t.EFF(19),t.nI1(20,"date"),t.k0s()(),t.DNE(21,Mt,4,2,"ion-label",8)(22,Ot,5,2,"ion-label",9),t.k0s(),t.j41(23,"div",10)(24,"div",11)(25,"div",12)(26,"ion-label"),t.EFF(27),t.nI1(28,"currency"),t.k0s(),t.DNE(29,bt,1,2,"ion-icon",13),t.k0s(),t.DNE(30,At,5,5,"div",14),t.k0s(),t.j41(31,"div",15),t.DNE(32,kt,4,1,"ion-button",16)(33,Rt,3,1,"ion-button",17)(34,Ft,3,2,"ion-button",18),t.k0s()()()()),2&e&&(t.R7$(3),t.Y8G("ngIf",!!n.activity.s3UriFull),t.R7$(),t.Y8G("ngIf",!n.activity.s3UriFull),t.R7$(4),t.JRh(n.activity.activityName),t.R7$(3),t.SpI("",(null==n.translations||null==n.translations.common?null:n.translations.common.dates)||"Dates",": "),t.R7$(2),t.Lme("",t.i5U(14,16,n.activity.startDate,"longDate")," - ",t.i5U(15,19,n.activity.endDate,"longDate"),""),t.R7$(4),t.SpI("",(null==n.translations||null==n.translations.activity?null:n.translations.activity.signUpDeadline)||"Sign up Deadline",": "),t.R7$(2),t.JRh(t.i5U(20,22,n.activity.signupEndDate,"medium")),t.R7$(2),t.Y8G("ngIf",!!n.activity.location),t.R7$(),t.Y8G("ngIf",n.activity.requireStudentEmail||!!n.activity.activityFormId),t.R7$(5),t.JRh(t.bMT(28,25,n.activity.amount)),t.R7$(2),t.Y8G("ngIf",(null==n.activity?null:n.activity.isVariable)||n.activity.isQuantity||n.activity.isPartialPay),t.R7$(),t.Y8G("ngIf",n.activity.isInCart),t.R7$(2),t.Y8G("ngIf",!(n.activity.isInCart||n.paymentSuspended||n.activitiesSuspended||n.isLoading)),t.R7$(),t.Y8G("ngIf",n.activity.isInCart&&((null==n.activity?null:n.activity.isVariable)||n.activity.isQuantity||n.activity.isPartialPay||n.activity.activityFormId||n.activity.requireStudentEmail)&&!n.paymentSuspended&&!n.activitiesSuspended&&!n.isLoading),t.R7$(),t.Y8G("ngIf",n.activity.isInCart&&!n.paymentSuspended&&!n.isLoading))},dependencies:[f.bT,p.Jm,p.b_,p.I9,p.ME,p.iq,p.he,f.oe,f.vh],styles:[".card-container[_ngcontent-%COMP%]{border:1px solid var(--alpha-10);max-width:600px;box-shadow:var(--alpha-20) 0 0 5px;display:flex;flex-direction:column;margin:0 auto;height:100%;min-height:185px;max-height:380px;max-width:95%;background:transparent}@media screen and (min-width: 768px){.card-container[_ngcontent-%COMP%]{max-width:350px}}.card-header[_ngcontent-%COMP%]{padding:0}.card-header[_ngcontent-%COMP%] .blur-img[_ngcontent-%COMP%]{filter:blur(3px);height:180px;position:absolute;z-index:0;display:flex;width:100%;background-size:cover}.card-header[_ngcontent-%COMP%] .card-img[_ngcontent-%COMP%]{height:120px;display:flex;align-items:center;justify-content:center;position:relative;padding:.5em}@media screen and (min-width: 768px){.card-header[_ngcontent-%COMP%] .card-img[_ngcontent-%COMP%]{height:180px}}.card-header[_ngcontent-%COMP%] .card-img[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%]{width:150px;height:150px}.card-header[_ngcontent-%COMP%] .card-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%!important}.card-header[_ngcontent-%COMP%] .card-img[_ngcontent-%COMP%] .full-img[_ngcontent-%COMP%]{height:180px}.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow-x:auto;padding-top:.1em}.card-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:600;font-size:large;color:var(--mpp-color);text-decoration:underline}.card-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:1.625}.card-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:hover{cursor:pointer;color:var(--mpp-hover)}
1.card-content[_ngcontent-%COMP%] .cardActivityName[_ngcontent-%COMP%]{margin:0;width:-moz-fit-content;width:fit-content}.card-content[_ngcontent-%COMP%] .cardActivityName[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{text-align:left;width:100%;line-height:1.625;font-weight:600;font-size:110%;color:var(--mpp-color);text-decoration:underline}.card-content[_ngcontent-%COMP%] .cardActivityName[_ngcontent-%COMP%]::part(native){padding:.5em}.card-content[_ngcontent-%COMP%] .dates[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.3em;margin-top:.5em;overflow:auto}.card-content[_ngcontent-%COMP%] .dates[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{font-size:small;color:var(--alpha-80)}.card-content[_ngcontent-%COMP%] .dates[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;color:var(--alpha-90)}.card-content[_ngcontent-%COMP%] .dates[_ngcontent-%COMP%] .required-label[_ngcontent-%COMP%]{color:var(--alpha-70)!important}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:space-between}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{color:var(--alpha-90);font-weight:600;font-size:large;display:flex;align-items:center;gap:.3em}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%] .current[_ngcontent-%COMP%] .category-icon[_ngcontent-%COMP%]{font-size:1.2em}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%] .current[_ngcontent-%COMP%] .category-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%] .in-cart[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.3em}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%] .in-cart[_ngcontent-%COMP%] .category-icon[_ngcontent-%COMP%]{font-size:1.2em}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .balances[_ngcontent-%COMP%] .in-cart[_ngcontent-%COMP%] .category-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;max-width:100%}.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{white-space:break-spaces}@media screen and (min-width: 1200px){.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{max-width:50%}}@media screen and (min-width: 1200px){.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .remove[_ngcontent-%COMP%]{white-space:normal}}@media (min-width: 1200px) and (max-width: 1860px){.card-content[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .remove[_ngcontent-%COMP%]{font-size:small}}"]}),r})();var L=u(2796);const It=["grid"],Lt=["searchBar"],xt=["refresher"],Dt=o=>({itemsPerPage:20,currentPage:o});function jt(o,r){if(1&o&&(t.j41(0,"div",13)(1,"ion-chip",14)(2,"ion-label"),t.EFF(3),t.k0s()()()),2&o){const i=t.XpG();t.R7$(3),t.JRh(i.translatePaymentSuspendedMsg(i.paymentsSuspendedMsg))}}function Tt(o,r){if(1&o&&(t.j41(0,"div",13)(1,"ion-chip",14)(2,"ion-label"),t.EFF(3),t.k0s()()()),2&o){const i=t.XpG();t.R7$(3),t.JRh(i.translatePaymentSuspendedMsg(i.activitiesSuspendedMsg))}}function Gt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-searchbar",15),t.bIt("keyup.enter",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.search())}),t.mxI("ngModelChange",function(n){t.eBV(i);const a=t.XpG();return t.DH7(a.searchValue,n)||(a.searchValue=n),t.Njj(n)}),t.k0s()}if(2&o){const i=t.XpG();t.Y8G("placeholder",(null==i.translations||null==i.translations.activity?null:i.translations.activity.searchByName)||"Search by name, description, category or subcategory"),t.R50("ngModel",i.searchValue),t.BMQ("aria-label",(null==i.translations||null==i.translations.activity?null:i.translations.activity.searchByName)||"Search by name, description, category or subcategory")}}
1function Et(o,r){1&o&&(t.j41(0,"div",16),t.nrm(1,"ion-spinner",17),t.k0s())}function $t(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",18)(1,"error-reload",19),t.bIt("refresh",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.getActivities())}),t.k0s()()}}function Nt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-button",26),t.bIt("click",function(){t.eBV(i);const n=t.XpG(3);return t.Njj(n.removeAllFilters())}),t.EFF(1),t.nrm(2,"ion-icon",31),t.k0s()}if(2&o){const i=t.XpG(3);t.R7$(),t.SpI(" ",(null==i.translations||null==i.translations.activity?null:i.translations.activity.clear)||"Clear"," ")}}function Vt(o,r){if(1&o&&(t.j41(0,"ion-segment-button",34)(1,"div")(2,"ion-label",35),t.EFF(3),t.k0s(),t.j41(4,"ion-badge",36),t.EFF(5),t.k0s()()()),2&o){const i=r.$implicit,e=t.XpG(4);t.Y8G("value",i),t.R7$(3),t.E5c("",i.studentFirstName," ",i.studentMiddleName?i.studentMiddleName:""," ",i.studentLastName,""),t.R7$(),t.BMQ("aria-label",i.activities.length+" "+((null==e.translations||null==e.translations.reader?null:e.translations.reader.activitiesAvailable)||"Activities available")),t.R7$(),t.JRh(i.activities.length)}}function Bt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-segment",32),t.mxI("ngModelChange",function(n){t.eBV(i);const a=t.XpG(3);return t.DH7(a.studentSelected,n)||(a.studentSelected=n),t.Njj(n)}),t.bIt("ionChange",function(){t.eBV(i);const n=t.XpG(3);return t.Njj(n.resetPage())}),t.DNE(1,Vt,6,6,"ion-segment-button",33),t.k0s()}if(2&o){const i=t.XpG(3);t.R50("ngModel",i.studentSelected),t.R7$(),t.Y8G("ngForOf",i.studentsDisplayed)}}function Xt(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",24)(1,"div",25)(2,"ion-button",26),t.bIt("click",function(){t.eBV(i);const n=t.XpG(2);return t.Njj(n.openFilters())}),t.nrm(3,"ion-icon",27),t.EFF(4),t.k0s(),t.DNE(5,Nt,3,1,"ion-button",28),t.k0s(),t.j41(6,"div",29),t.DNE(7,Bt,2,2,"ion-segment",30),t.k0s()()}if(2&o){const i=t.XpG(2);t.R7$(4),t.SpI(" ",i.getFilterButtonName()," "),t.R7$(),t.Y8G("ngIf",i.filtersApplied.length>0),t.R7$(2),t.Y8G("ngIf",i.studentsDisplayed.length>0)}}function Yt(o,r){if(1&o){const i=t.RV6();t.j41(0,"ion-chip",45)(1,"ion-label")(2,"span"),t.EFF(3),t.k0s(),t.EFF(4),t.k0s(),t.j41(5,"ion-icon",46),t.bIt("click",function(){const n=t.eBV(i).$implicit,a=t.XpG(4);return t.Njj(a.removeFilter(n))}),t.k0s()()}if(2&o){const i=r.$implicit,e=t.XpG(4);t.R7$(3),t.JRh(i.type),t.R7$(),t.SpI(": ",i.name,""),t.R7$(),t.BMQ("aria-label",(null==e.translations||null==e.translations.reader?null:e.translations.reader.clearFilterItem)||"Clear filter item")}}function zt(o,r){if(1&o&&(t.j41(0,"div",43),t.DNE(1,Yt,6,3,"ion-chip",44),t.k0s()),2&o){const i=t.XpG(3);t.R7$(),t.Y8G("ngForOf",i.filtersApplied)}}function Ut(o,r){if(1&o&&t.nrm(0,"activity-card",49),2&o){const i=r.$implicit,e=t.XpG(4);t.Y8G("activity",i)("student",e.studentSelected)("paymentSuspended",e.paymentsSuspended)("activitiesSuspended",e.activitiesSuspended)("cart",e.cart)("translations",e.translations)}}function Ht(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",47,1),t.bIt("scroll",function(n){t.eBV(i);const a=t.XpG(3);return t.Njj(a.onScroll(n))}),t.DNE(2,Ut,1,6,"activity-card",48),t.nI1(3,"paginate"),t.k0s()}if(2&o){const i=t.XpG(3);t.HbH(i.displayFilters?"grid shadowScroll":"full-grid shadowScroll"),t.R7$(2),t.Y8G("ngForOf",t.i5U(3,3,null==i.studentSelected?null:i.studentSelected.activities,t.eq3(6,Dt,i.page)))}}function Jt(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",50)(1,"pagination-controls",51),t.bIt("pageChange",function(n){t.eBV(i);const a=t.XpG(3);return t.Njj(a.pageChanged(n))}),t.k0s()()}if(2&o){const i=t.XpG(3);t.R7$(),t.Y8G("responsive",!0)("previousLabel",(null==i.translations||null==i.translations.common?null:i.translations.common.previous)||"Previous")("nextLabel",(null==i.translations||null==i.translations.common?null:i.translations.common.next)||"Next")}}function Qt(o,r){if(1&o){const i=t.RV6();t.j41(0,"div")(1,"div",37)(2,"activity-filters",38),t.bIt("changeEmitter",function(){t.eBV(i);const n=t.XpG(2);return t.Njj(n.detectFilters())}),t.k0s()(),t.j41(3,"div",39),t.DNE(4,zt,2,1,"div",40)(5,Ht,4,8,"div",41)(6,Jt,2,3,"div",42),t.k0s()()}if(2&o){const i=t.XpG(2);t.HbH(i.displayFilters?"activities-container ":"full-activities-container"),t.R7$(),t.xc7("display",i.displayFilters?"":"none"),t.R7$(),t.Y8G("categoriesList",i.categoriesList)("priceRangeList",i.priceRangeList)("dateList",i.dateList)("translations",i.translations),t.R7$(2),t.Y8G("ngIf",i.filtersApplied.length>0),t.R7$(),t.Y8G("ngIf",i.students.length>0),t.R7$(),t.Y8G("ngIf",!i.isLoading&&(null==i.studentSelected||null==i.studentSelected.activities?null:i.studentSelected.activities.length)>0&&!i.failed)}}function Wt(o,r){if(1&o){const i=t.RV6();t.j41(0,"div",52)(1,"ion-label"),t.EFF(2),t.k0s(),t.j41(3,"ion-button",53),t.bIt("click",function(){t.eBV(i);const n=t.XpG(2);return t.Njj(n.getActivities())}),t.EFF(4),t.k0s()()}if(2&o){const i=t.XpG(2);t.R7$(2),t.JRh((null==i.translations||null==i.translations.dashboard?null:i.translations.dashboard.noActivities)||"Currently no events or activities available"),t.R7$(2),t.SpI(" ",(null==i.translations||null==i.translations.common?null:i.translations.common.refresh)||"Refresh"," ")}}function Kt(o,r){if(1&o&&(t.j41(0,"div",20),t.DNE(1,Xt,8,3,"div",21)(2,Qt,7,11,"div",22)(3,Wt,5,2,"div",23),t.k0s()),2&o){const i=t.XpG();t.R7$(),t.Y8G("ngIf",i.students.length>0),t.R7$(),t.Y8G("ngIf",i.students.length>0),t.R7$(),t.Y8G("ngIf",0===i.students.length)}}const Zt=[{path:"",component:(()=>{var o;
1class r{constructor(e,n,a,s,g){this.activitiesProv=e,this.userProv=n,this.pipe=a,this.datePipe=s,this.modalCtrl=g,this.ISOFORMAT="yyyy-MM-dd'T'HH:mm:ss'Z'",this.paymentsSuspended=!1,this.paymentsSuspendedMsg="",this.activitiesSuspended=!1,this.activitiesSuspendedMsg="",this.isLoading=!0,this.failed=!1,this.page=1,this.displayFilters=!1,this.categoriesList=[],this.searchList=[],this.searchValue="",this.filtersApplied=[],this.isAtTop=!0,this.priceRangeList={lower:{original:99999999,new:99999999},upper:{original:0,new:0}},this.dateList={start:null,end:null,deadline:null},this.translate$=(0,t.WQX)(k.il).select(pt.t.getTranslations),this.activities$=(0,t.WQX)(k.il).select(nt.f.getActivitiesState),this.userData$=(0,t.WQX)(k.il).select(et.b.getUserState),this.cart$=(0,t.WQX)(k.il).select(gt.S.getCartState)}ngOnInit(){var n,a,s,g,e=this;this.translateSubscription=null==(n=this.translate$)?void 0:n.subscribe(l=>{this.translations=l.translations}),this.activitiesSubscription=null==(a=this.activities$)?void 0:a.subscribe(l=>{var c;this.students=l.Activities,(null==(c=this.students)?void 0:c.length)>0?(this.students.slice().sort((m,_)=>m.studentFirstName>_.studentFirstName?1:m.studentFirstName<_.studentFirstName?-1:0),this.studentsDisplayed=v.C.deepCopy(this.students),this.getAllCategoriesAndFilters(),this.studentSelected=this.studentsDisplayed[0]):this.studentSelected=null}),this.cartSubscription=null==(s=this.cart$)?void 0:s.subscribe(l=>{this.cart=l.cart}),this.userSubscription=null==(g=this.userData$)?void 0:g.subscribe(function(){var l=(0,h.A)(function*(c){e.district=c.userContext,c.userContext.districtKey&&(c.userContext.isBlockPayments?(e.paymentsSuspended=!0,e.paymentsSuspendedMsg="allPaymentsDisabled"):c.userContext.allPaymentsSuspended?(e.paymentsSuspended=!0,e.paymentsSuspendedMsg="allPaymentsSuspended"):(e.paymentsSuspended=!1,e.paymentsSuspendedMsg=""),c.userContext.feeAndActivityPaymentsSuspended?(e.activitiesSuspended=!0,e.activitiesSuspendedMsg="feeAndActivityPaymentsSuspended"):(e.activitiesSuspended=!1,e.activitiesSuspendedMsg=""),e.getActivities())});return function(c){return l.apply(this,arguments)}}())}translatePaymentSuspendedMsg(e){var n,a,s,g,l,c;switch(e){case"allPaymentsDisabled":return(null==(a=null==(n=this.translations)?void 0:n.common)?void 0:a.allPaymentsDisabled)||"Payments are disabled for this account.";case"allPaymentsSuspended":return`${(null==(g=null==(s=this.translations)?void 0:s.common)?void 0:g.allPaymentsSuspended)||"All payments are suspended at your district and scheduled to resume on"} ${(0,O.GP)(new Date(this.district.allPaymentsResumeDate),"MM/dd/yyyy")}.`;case"feeAndActivityPaymentsSuspended":return`${(null==(c=null==(l=this.translations)?void 0:l.common)?void 0:c.feeAndActivityPaymentsSuspended)||"Fee and Activity payments are suspended at your district and are scheduled to resume"} ${(0,O.GP)(new Date(this.district.feeAndActivityPaymentsResumeDate),"MM/dd/yyyy")}.`;default:return""}}ionViewWillLeave(){var e=this;return(0,h.A)(function*(){var n,a,s,g;null==(n=e.translateSubscription)||n.unsubscribe(),null==(a=e.cartSubscription)||a.unsubscribe(),null==(s=e.activitiesSubscription)||s.unsubscribe(),null==(g=e.userSubscription)||g.unsubscribe()})()}getActivities(){var e=this;this.isLoading=!0,this.failed=!1,this.removeAllFilters(),this.activitiesProv.getActivitiesV2().then(function(){var n=(0,h.A)(function*(a){e.isLoading=!1,e.failed=!a});return function(a){return n.apply(this,arguments)}}())}getAllCategoriesAndFilters(){var e;this.categoriesList=[];for(const n of this.students)for(const a of n.activities){let s=this.categoriesList.findIndex(l=>"Category"===l.type&&l.name===a.category);s<0&&(this.categoriesList.push({type:"Category",name:a.category,checked:!1,subcategories:[]}),s=this.categoriesList.length-1),n.activities.filter(l=>l.category===this.categoriesList[s].name&&!!l.subCategory).length>0&&(a.subCategory?this.categoriesList[s].subcategories.findIndex(c=>"Subcategory"===c.type&&!c.isNoCategory&&c.name===a.subCategory)<0&&this.categoriesList[s].subcategories.push({type:"Subcategory",name:a.subCategory,isNoCategory:!1,checked:!1,parentCategory:a.category}):this.categoriesList[s].subcategories.findIndex(c=>"Subcategory"===c.type&&c.isNoCategory)<0&&this.categoriesList[s].subcategories.push({type:"Subcategory",name:"",isNoCategory:!0,checked:!1,parentCategory:a.category})),a.amount<this.priceRangeList.lower.original&&(this.priceRangeList.lower.original=a.amount,this.priceRangeList.lower.new=a.amount),a.amount>this.priceRangeList.upper.original&&(this.priceRangeList.upper.original=a.amount,this.priceRangeList.upper.new=a.amount)}this.categoriesList.sort((n,a)=>n.name>a.name?1:n.name<a.name?-1:0),null==(e=this.categoriesList)||e.map(n=>(n.subcategories.sort((a,s)=>a.isNoCategory||!a.isNoCategory&&!s.isNoCategory&&a.name<s.name?-1:!a.isNoCategory&&!s.isNoCategory&&a.name>s.name?1:0),n))}pageChanged(e){this.page=e,this.gridInput.nativeElement.scrollTop=0}resetPage(){this.page=1}search(){var e;this.searchValue&&(null!=(e=this.searchList)&&e.find(a=>a.toLowerCase()===this.searchValue.toLowerCase())||this.searchList.push(this.searchValue),this.detectFilters(),this.searchValue="")}removeAllFilters(){var e;null==(e=this.categoriesList)||e.map(n=>{var a;null==(a=n.subcategories)||a.map(s=>(s.checked=!1,s)),n.checked=!1}
1),this.searchList=[],this.priceRangeList.lower.new=this.priceRangeList.lower.original,this.priceRangeList.upper.new=this.priceRangeList.upper.original,this.dateList={start:null,end:null,deadline:null},this.filtersApplied=[],this.filterActivities()}removeFilter(e){var n,a,s,g,l;switch(e.type){case"Search":{const c=this.searchList.findIndex(m=>m===e.name);this.searchList.splice(c,1)}break;case"Category":{const c=null==(n=this.categoriesList)?void 0:n.find(m=>m.name===e.name);c.checked=!1,c.subcategories.length>0&&(null==(a=c.subcategories)||a.map(m=>(m.checked=!1,m)))}break;case"Subcategory":{const c=null==(s=this.categoriesList)?void 0:s.find(_=>_.name===e.parentCategory);let m;m=e.isNoCategory?null==(g=c.subcategories)?void 0:g.find(_=>_.isNoCategory):null==(l=c.subcategories)?void 0:l.find(_=>_.name===e.name),m.checked=!1,c.subcategories.every(_=>!_.checked)&&(c.checked=!1)}break;case"Price":e.name.includes("Min")?this.priceRangeList.lower.new=this.priceRangeList.lower.original:this.priceRangeList.upper.new=this.priceRangeList.upper.original;break;case"Date":this.dateList=e.name.includes("Start")?{start:null,end:this.dateList.end,deadline:this.dateList.deadline}:e.name.includes("End")?{start:this.dateList.start,end:null,deadline:this.dateList.deadline}:{start:this.dateList.start,end:this.dateList.end,deadline:null}}this.detectFilters()}detectFilters(){var e;this.filtersApplied=[];for(const n of this.searchList)this.filtersApplied.push({type:"Search",name:n});Number(this.priceRangeList.lower.original)!==Number(this.priceRangeList.lower.new)&&this.filtersApplied.push({type:"Price",name:`Min ${this.pipe.transform(this.priceRangeList.lower.new)}`,value:this.priceRangeList.lower.new}),Number(this.priceRangeList.upper.original)!==Number(this.priceRangeList.upper.new)&&this.filtersApplied.push({type:"Price",name:`Max ${this.pipe.transform(this.priceRangeList.upper.new)}`,value:this.priceRangeList.upper.new}),this.dateList.start&&this.filtersApplied.push({type:"Date",name:`Start - ${this.datePipe.transform(this.dateList.start,"longDate")}`,value:this.dateList.start}),this.dateList.end&&this.filtersApplied.push({type:"Date",name:`End - ${this.datePipe.transform(this.dateList.end,"longDate")}`,value:this.dateList.end}),this.dateList.deadline&&this.filtersApplied.push({type:"Date",name:`Deadline - ${this.datePipe.transform(this.dateList.deadline,"longDate")}`,value:this.dateList.deadline});for(const n of this.categoriesList)if(n.checked)this.filtersApplied.push(n);else if(n.subcategories.length>0){const a=null==(e=n.subcategories)?void 0:e.find(g=>g.checked&&g.isNoCategory);a&&this.filtersApplied.push({type:"Subcategory",name:`${n.name} - [No Subcategory]`,checked:!0,parentCategory:a.parentCategory,isNoCategory:!0});const s=n.subcategories.filter(g=>g.checked&&!g.isNoCategory);this.filtersApplied.push(...s)}this.filterActivities()}filterActivities(){var e=this;return(0,h.A)(function*(){var a,s;e.studentsDisplayed=v.C.deepCopy(e.students),e.filtersApplied.length>0&&(null==(a=e.studentsDisplayed)||a.map(g=>(g.activities=g.activities.filter(l=>{var Y,z,U,H,J,Q,W,K,Z,q,tt;let c=!1;const m=e.filtersApplied.filter(d=>"Search"===d.type).length,_=null==(Y=e.filtersApplied)?void 0:Y.find(d=>"Search"===d.type&&l.activityName.toLowerCase().includes(d.name.toLowerCase())),ie=null==(z=e.filtersApplied)?void 0:z.find(d=>{var C;return"Search"===d.type&&(null==(C=l.description)?void 0:C.toLowerCase().includes(d.name.toLowerCase()))}),ae=null==(U=e.filtersApplied)?void 0:U.find(d=>"Search"===d.type&&l.category.toLowerCase().includes(d.name.toLowerCase())),oe=null==(H=e.filtersApplied)?void 0:H.find(d=>"Search"===d.type&&!!l.subCategory&&l.subCategory.toLowerCase().includes(d.name.toLowerCase())),se=e.filtersApplied.filter(d=>"Category"===d.type||"Subcategory"===d.type).length,re=null==(J=e.filtersApplied)?void 0:J.find(d=>"Category"===d.type&&l.category.toLowerCase()===d.name.toLowerCase()),le=null==(Q=e.filtersApplied)?void 0:Q.find(d=>{let C=!1;return C=d.isNoCategory?"Subcategory"===d.type&&!l.subCategory&&l.category.toLowerCase()===d.parentCategory.toLowerCase():"Subcategory"===d.type&&!!l.subCategory&&l.category.toLowerCase()===d.parentCategory.toLowerCase()&&l.subCategory.toLowerCase()===d.name.toLowerCase(),C}),P=null==(W=e.filtersApplied)?void 0:W.find(d=>"Price"===d.type&&d.name.includes("Min"));let x=0;P&&(x=Number(P.name.replace(",","").substring(5,P.name.length)));const M=null==(K=e.filtersApplied)?void 0:K.find(d=>"Price"===d.type&&d.name.includes("Max"));let D=0;M&&(D=Number(M.name.replace(",","").substring(5,M.name.length-1)));let R=!0;P&&M?R=l.amount>=x&&l.amount<=D:P&&!M?R=l.amount>
1=x:!P&&M&&(R=l.amount<=D);const w=null==(Z=e.filtersApplied)?void 0:Z.find(d=>"Date"===d.type&&d.name.includes("Start"));let F;w&&(F=new Date(w.value.toString()),F.setHours(0,0,0,0));const A=null==(q=e.filtersApplied)?void 0:q.find(d=>"Date"===d.type&&d.name.includes("End"));let S;A&&(S=new Date(A.value.toString()),S.setHours(23,59,59,999));let I=!0;w&&A?I=(0,b.z)(new Date(l.startDate),F)>=0&&(0,b.z)(new Date(l.endDate),S)<=0:w&&!A?I=(0,b.z)(new Date(l.startDate),F)>=0:!w&&A&&(I=(0,b.z)(new Date(l.endDate),S)<=0);const j=null==(tt=e.filtersApplied)?void 0:tt.find(d=>"Date"===d.type&&d.name.includes("Deadline"));let T;j&&(T=new Date(j.value.toString()),T.setHours(23,59,59,999));let X=!0;if(j){const d=new Date(l.signupEndDate),C=new Date(d.getFullYear(),d.getMonth(),d.getDay());X=(0,b.z)(C,T)<=0}return c=!(!_&&!ie&&!ae&&!oe&&m||!re&&!le&&se||!R||!I||!X),c}),g)));const n=null==(s=e.studentsDisplayed)?void 0:s.find(g=>g.accountKey===e.studentSelected.accountKey);e.studentSelected=n})()}openFilters(){var e=this;return(0,h.A)(function*(){if(window.matchMedia("(min-width: 1200px)").matches)e.displayFilters=!e.displayFilters;else{const a=yield e.modalCtrl.create({component:dt,cssClass:"modal-global-darken",componentProps:{categoriesList:e.categoriesList,priceRangeList:e.priceRangeList,dateList:e.dateList,translations:e.translations},backdropDismiss:!1});yield a.present();const s=yield a.onDidDismiss();s.data&&(e.categoriesList=s.data.categoryList,e.priceRangeList=s.data.priceRangeList,e.dateList=s.data.dateList,e.detectFilters())}})()}getFilterButtonName(){var n,a,s,g,l,c;return window.matchMedia("(min-width: 1200px)").matches?this.displayFilters?(null==(a=null==(n=this.translations)?void 0:n.activity)?void 0:a.hideFilters)||"Hide Filters":(null==(g=null==(s=this.translations)?void 0:s.activity)?void 0:g.showFilters)||"Show Filters":(null==(c=null==(l=this.translations)?void 0:l.activity)?void 0:c.filters)||"Filters"}handleRefresh(e){this.isAtTop&&setTimeout(()=>{this.userProv.reloadDistrict(),e.target.complete()},500)}onScroll(e){this.isAtTop=e.target.scrollTop<10,this.isAtTop||(this.refresher.disabled=!0,this.refresher.complete())}ionPulling(e){this.isAtTop||this.refresher.complete()}isDarkMode(){return v.C.isDark()}}return(o=r).\u0275fac=function(e){return new(e||o)(t.rXU(N.j),t.rXU(ut.v),t.rXU(f.oe),t.rXU(f.vh),t.rXU(p.W3))},o.\u0275cmp=t.VBU({type:o,selectors:[["activities-page"]],viewQuery:function(e,n){if(1&e&&(t.GBs(It,5,t.aKT),t.GBs(Lt,5),t.GBs(xt,5)),2&e){let a;
1t.mGM(a=t.lsd())&&(n.gridInput=a.first),t.mGM(a=t.lsd())&&(n.searchbar=a.first),t.mGM(a=t.lsd())&&(n.refresher=a.first)}},standalone:!1,decls:16,vars:9,consts:[["refresher",""],["grid",""],[1,"activitiesPage"],[1,"header"],[1,"title"],[1,"dashboard-tab-option",3,"src"],["class","payment-msg",4,"ngIf"],["show-clear-button","always","aria-label","","class","searchBar",3,"placeholder","ngModel","keyup.enter","ngModelChange",4,"ngIf"],[1,"container"],["class","loading",4,"ngIf"],["class","error",4,"ngIf"],["class","main-container",4,"ngIf"],["slot","fixed","mode","md",3,"ionPull","ionRefresh","disabled"],[1,"payment-msg"],["color","danger"],["show-clear-button","always","aria-label","",1,"searchBar",3,"keyup.enter","ngModelChange","placeholder","ngModel"],[1,"loading"],["name","dots","color","mpp"],[1,"error"],[3,"refresh"],[1,"main-container"],["class","activities-header",4,"ngIf"],[3,"class",4,"ngIf"],["class","empty-content",4,"ngIf"],[1,"activities-header"],[1,"filter-actions"],["expand","block","fill","clear","shape","round","color","mpp","size","small",3,"click"],["slot","start","name","filter"],["expand","block","fill","clear","shape","round","color","mpp","size","small",3,"click",4,"ngIf"],[1,"segment-container"],["mode","ios","scrollable","","color","mpp","class","segment",3,"ngModel","ngModelChange","ionChange",4,"ngIf"],["slot","end","name","refresh"],["mode","ios","scrollable","","color","mpp",1,"segment",3,"ngModelChange","ionChange","ngModel"],["class","segment-option minWidthAuto",3,"value",4,"ngFor","ngForOf"],[1,"segment-option","minWidthAuto",3,"value"],[1,"minWidthFitContent"],["color","mpp",1,"activities-badge"],[1,"filter"],[3,"changeEmitter","categoriesList","priceRangeList","dateList","translations"],[1,"grid-container"],["class","filter-chips shadowScroll",4,"ngIf"],[3,"class","scroll",4,"ngIf"],["class","pagination",4,"ngIf"],[1,"filter-chips","shadowScroll"],["color","medium","outline","true",4,"ngFor","ngForOf"],["color","medium","outline","true"],["name","close-circle",3,"click"],[3,"scroll"],["class","activity-card",3,"activity","student","paymentSuspended","activitiesSuspended","cart","translations",4,"ngFor","ngForOf"],[1,"activity-card",3,"activity","student","paymentSuspended","activitiesSuspended","cart","translations"],[1,"pagination"],[3,"pageChange","responsive","previousLabel","nextLabel"],[1,"empty-content"],["color","mpp",3,"click"]],template:function(e,n){if(1&e){const a=t.RV6();t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"ion-label"),t.EFF(4),t.k0s(),t.nrm(5,"ion-icon",5),t.k0s(),t.DNE(6,jt,4,1,"div",6)(7,Tt,4,1,"div",6)(8,Gt,1,3,"ion-searchbar",7),t.k0s(),t.j41(9,"div",8),t.DNE(10,Et,2,0,"div",9)(11,$t,2,0,"div",10)(12,Kt,4,3,"div",11),t.k0s()(),t.j41(13,"ion-refresher",12,0),t.bIt("ionPull",function(g){return t.eBV(a),t.Njj(n.ionPulling(g))})("ionRefresh",function(g){return t.eBV(a),t.Njj(n.handleRefresh(g))}),t.nrm(15,"ion-refresher-content"),t.k0s()}2&e&&(t.R7$(4),t.JRh((null==n.translations||null==n.translations.menu?null:n.translations.menu.eventsAndActivities)||"Events & Activities"),t.R7$(),t.Y8G("src","/assets/icons/activity"+(n.isDarkMode()?"-white":"")+".svg"),t.R7$(),t.Y8G("ngIf",!!n.paymentsSuspendedMsg),t.R7$(),t.Y8G("ngIf",n.activitiesSuspended),t.R7$(),t.Y8G("ngIf",n.students.length>0),t.R7$(2),t.Y8G("ngIf",n.isLoading&&!n.failed),t.R7$(),t.Y8G("ngIf",n.failed),t.R7$(),t.Y8G("ngIf",!n.isLoading&&!n.failed),t.R7$(),t.Y8G("disabled",!n.isAtTop))},dependencies:[f.Sq,f.bT,y.BC,y.vS,p.In,p.Jm,p.ZB,p.iq,p.he,p.To,p.Ki,p.S1,p.Gp,p.eP,p.w2,p.Je,p.Gw,mt.T,St,$,L.ej,L.kf],styles:[".refresher[_ngcontent-%COMP%]{z-index:999}.activitiesPage[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:var(--lighter-white);height:100%;padding:.5em}@media screen and (min-width: 992px){.activitiesPage[_ngcontent-%COMP%]{padding:1em .5em}}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-direction:column;padding:.3em .5em .5em;gap:.5em}@media screen and (min-width: 576px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:.3em 0 .5em 1em}}@media screen and (min-width: 992px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{flex-direction:row}}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;font-size:medium;gap:.3em}@media screen and (min-width: 992px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:x-large}}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .payment-msg[_ngcontent-%COMP%]{display:flex;color:red;font-weight:500;padding:0 .5em}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .payment-msg[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{font-size:small;text-align:center}@media screen and (min-width: 992px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .payment-msg[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{font-size:medium}}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{--border-radius: .5em;
1--box-shadow: var(--alpha-20) 0px 0px 7px 0px, var(--alpha-30) 0px 1px 1px -1px;padding:0;min-width:90%;width:90vw}@media screen and (min-width: 576px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{width:auto;min-width:450px}}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .customSearch[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1em;border-radius:.5em;min-width:90%;width:100%}@media screen and (min-width: 576px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .customSearch[_ngcontent-%COMP%]{min-width:470px}}@media screen and (min-width: 992px){.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .customSearch[_ngcontent-%COMP%]{width:auto}}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .customSearch[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin:0;height:40px}.activitiesPage[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .customSearch[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{--padding-top: .6em;--padding-bottom: .6em;--padding-start: .5em}.container[_ngcontent-%COMP%]{height:100%;overflow:hidden;padding:0 .5em;background:var(--white);box-shadow:#ffffff4d 0 0 3px;border-radius:.5em}.container[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;background:var(--white)}.container[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%] ion-spinner[_ngcontent-%COMP%]{zoom:2}.container[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{height:100%}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%]{padding:.3em .3em 0;display:flex;flex-direction:column;height:100%;overflow:auto}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{width:100%;min-width:-moz-fit-content;min-width:fit-content}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-option[_ngcontent-%COMP%]{font-size:85%;--padding-top: .5em;--padding-bottom: .5em;--padding-start: 2em;--padding-end: 2em}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{padding:0 .2em .5em}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%]{padding:0;--border-radius: .5em}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .filter-chips[_ngcontent-%COMP%]{min-height:50px;max-height:80px;overflow:auto;padding:0 .5em}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .filter-chips[_ngcontent-%COMP%] ion-chip[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:600}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-top:.5em;gap:.5em}@media screen and (min-width: 992px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}}@media screen and (min-width: 1025px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 7fr}}@media screen and (min-width: 1200px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 9fr}}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-header[_ngcontent-%COMP%] .filter-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-header[_ngcontent-%COMP%] .filter-actions[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;width:100%;margin-top:.5em;height:100%;gap:.5em;overflow:hidden}@media screen and (min-width: 1200px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .activities-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:4fr 10fr}}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .full-activities-container[_ngcontent-%COMP%]{display:flex;width:100%;margin-top:.5em;height:100%;gap:.5em;overflow-x:auto;justify-content:center}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{display:none;overflow:auto;padding:.5em 0;position:relative}@media screen and (min-width: 1200px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5em}}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;width:100%;overflow:auto}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .segment-container[_ngcontent-%COMP%]{min-height:45px;overflow:auto;display:flex}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .segment-container[_ngcontent-%COMP%] .activities-badge[_ngcontent-%COMP%]{font-size:70%;margin-left:.3em;border:1px solid var(--alpha-20)}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .empty-content[_ngcontent-%COMP%]{font-size:x-large;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#dd2c00;font-weight:600;gap:1em;text-align:center}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .full-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1em;padding:1em 0 .5em;overflow:auto;flex-grow:1}@media screen and (min-width: 768px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .full-grid[_ngcontent-%COMP%]{padding:1em 1em .5em;grid-auto-rows:1fr;grid-template-columns:1fr 1fr}}@media screen and (min-width: 992px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .full-grid[_ngcontent-%COMP%]{grid-auto-rows:1fr;grid-template-columns:1fr 1fr 1fr}}@media (min-width: 1400px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .full-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr}}@media screen and (min-width: 2160px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .full-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr 1fr}}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1em;padding:1em 0 .5em;overflow:auto;flex-grow:1}@media screen and (min-width: 768px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{padding:1em 1em .5em;grid-auto-rows:1fr;grid-template-columns:1fr 1fr}}@media screen and (min-width: 992px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{grid-auto-rows:1fr;grid-template-columns:1fr 1fr}}@media (min-width: 1400px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr}}@media screen and (min-width: 2160px){.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr}}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .pagination[_ngcontent-%COMP%]{display:flex;justify-content:center;min-width:max-content;margin:.5em 0}.container[_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .pagination[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0}"]}),r})()}];let qt=(()=>{var o;class r{}return(o=r).\u0275fac=function(e){return new(e||o)}
1,o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[E.iI.forChild(Zt),E.iI]}),r})();var B=u(4008),te=u(4683);let ee=(()=>{var o;class r{}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({providers:[f.QX],imports:[f.MD,p.bv,y.YN,te.Y,B.v]}),r})(),ne=(()=>{var o;class r{}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({providers:[f.oe,f.vh],imports:[f.MD,y.YN,p.bv,qt,B.v,ee,L.ed]}),r})()}}]);
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.