1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2877],{1605(k,b,h){h.d(b,{j:()=>w});var p=h(467),c=h(2615),u=h(7798),e=h(3664),g=h(2200);const f=["photoTrack"];function E(i,d){if(1&i&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&i){const r=e.XpG();e.R7$(),e.Lme("",r.activeIndex+1," / ",r.slides.length)}}function l(i,d){if(1&i&&(e.j41(0,"div",12),e.nrm(1,"img",13),e.k0s()),2&i){const r=d.$implicit;e.R7$(),e.Y8G("src",r.imageUrl,e.B4B)}}function s(i,d){if(1&i){const r=e.RV6();e.j41(0,"div",14)(1,"button",15),e.bIt("click",function(){c.eBV(r);const n=e.XpG(),t=e.sdS(6);return c.Njj(n.showPrevious(t))}),e.nrm(2,"ion-icon",16),e.j41(3,"span"),e.EFF(4,"Previous"),e.k0s()(),e.j41(5,"button",17),e.bIt("click",function(){c.eBV(r);const n=e.XpG(),t=e.sdS(6);return c.Njj(n.showNext(t))}),e.j41(6,"span"),e.EFF(7,"Next"),e.k0s(),e.nrm(8,"ion-icon",18),e.k0s()()}if(2&i){const r=e.XpG();e.R7$(),e.Y8G("disabled",0===r.activeIndex),e.R7$(4),e.Y8G("disabled",r.activeIndex===r.slides.length-1)}}function a(i,d){if(1&i){const r=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){const n=c.eBV(r).index,t=e.XpG(2),v=e.sdS(6);return c.Njj(t.scrollToSlide(n,v))}),e.k0s()}if(2&i){const r=d.index,o=e.XpG(2);e.AVh("is-active",r===o.activeIndex),e.BMQ("aria-label","Show photo "+(r+1))}}function _(i,d){if(1&i&&(e.j41(0,"div",19),e.DNE(1,a,1,3,"button",20),e.k0s()),2&i){const r=e.XpG();e.R7$(),e.Y8G("ngForOf",r.slides)("ngForTrackBy",r.trackSlide)}}function m(i,d){if(1&i){const r=e.RV6();e.j41(0,"ion-button",25),e.bIt("click",function(){c.eBV(r);const n=e.XpG().ngIf,t=e.XpG(),v=e.sdS(6);return c.Njj(t.reportPhoto(n,v))}),e.nrm(1,"ion-icon",26),e.EFF(2," Report "),e.k0s()}if(2&i){const r=e.XpG(2);e.Y8G("disabled",r.isBusy)}}function x(i,d){if(1&i){const r=e.RV6();e.j41(0,"ion-button",27),e.bIt("click",function(){c.eBV(r);const n=e.XpG().ngIf,t=e.XpG(),v=e.sdS(6);return c.Njj(t.deletePhoto(n,v))}),e.nrm(1,"ion-icon",28),e.EFF(2," Delete "),e.k0s()}if(2&i){const r=e.XpG(2);e.Y8G("disabled",r.isBusy)}}function y(i,d){if(1&i&&(e.j41(0,"div",22),e.DNE(1,m,3,1,"ion-button",23)(2,x,3,1,"ion-button",24),e.k0s()),2&i){const r=d.ngIf;e.R7$(),e.Y8G("ngIf",r.canReport),e.R7$(),e.Y8G("ngIf",r.canDelete)}}let w=(()=>{var i;class d{constructor(){this.modalController=(0,c.WQX)(u.W3),this.items=[],this.initialEventMediaId="",this.onDeletePhoto=null,this.onReportPhoto=null,this.slides=[],this.activeIndex=0,this.isBusy=!1}ngOnInit(){this.slides=[...this.items];const o=this.slides.findIndex(n=>n.eventMediaId===this.initialEventMediaId);this.activeIndex=o>=0?o:0}ngAfterViewInit(){if(this.activeIndex<=0)return;const o=this.activeIndex;setTimeout(()=>{const n=this.photoTrackRef?.nativeElement;if(!n)return;const t=n.children.item(o);t?t.scrollIntoView({block:"nearest",inline:"start"}):this.scrollToSlide(o,n,"auto")})}dismiss(){var o=this;return(0,p.A)(function*(){yield o.modalController.dismiss()})()}handleTrackScroll(o){if(!o.clientWidth)return;const n=Math.round(o.scrollLeft/o.clientWidth);this.activeIndex=Math.max(0,Math.min(n,this.slides.length-1))}scrollToSlide(o,n,t="smooth"){this.activeIndex=o,n.scrollTo({left:o*n.clientWidth,behavior:t})}showPrevious(o){this.scrollToSlide(Math.max(0,this.activeIndex-1),o)}showNext(o){this.scrollToSlide(Math.min(this.slides.length-1,this.activeIndex+1),o)}deletePhoto(o,n){var t=this;return(0,p.A)(function*(){if(!t.isBusy&&t.onDeletePhoto)try{t.isBusy=!0,(yield t.onDeletePhoto(o))&&(yield t.advanceAfterRemoval(o.eventMediaId,n))}finally{t.isBusy=!1}})()}reportPhoto(o,n){var t=this;return(0,p.A)(function*(){if(!t.isBusy&&t.onReportPhoto)try{t.isBusy=!0,(yield t.onReportPhoto(o))&&(yield t.advanceAfterRemoval(o.eventMediaId,n))}finally{t.isBusy=!1}})()}trackSlide(o,n){return n.eventMediaId||`slide-${o}`}advanceAfterRemoval(o,n){var t=this;return(0,p.A)(function*(){const v=t.slides.findIndex(I=>I.eventMediaId===o);if(!(v<0)){if(t.slides=t.slides.filter(I=>I.eventMediaId!==o),0===t.slides.length)return void(yield t.dismiss());t.activeIndex=Math.min(v,t.slides.length-1),n?.clientWidth&&n.scrollTo({left:t.activeIndex*n.clientWidth,behavior:"auto"})}})()}static#e=i=()=>(this.\u0275fac=function(n){return new(n||d)},this.\u0275cmp=e.VBU({type:d,selectors:[["app-event-photo-viewer-modal"]],viewQuery:function(n,t){if(1&n&&e.GBs(f,5),2&n){let v;e.mGM(v=e.lsd())&&(t.photoTrackRef=v.first)}},inputs:{items:"items",initialEventMediaId:"initialEventMediaId",onDeletePhoto:"onDeletePhoto",onReportPhoto:"onReportPhoto"}
1,standalone:!1,decls:11,vars:6,consts:[["photoTrack",""],[1,"photo-viewer"],[1,"photo-viewer__header"],["type","button","aria-label","Close",1,"header-action",3,"click"],["name","close-outline"],["class","photo-viewer__counter",4,"ngIf"],[1,"photo-viewer__track",3,"scroll"],["class","photo-viewer__slide",4,"ngFor","ngForOf","ngForTrackBy"],["class","photo-viewer__navigation",4,"ngIf"],["class","photo-viewer__dots",4,"ngIf"],["class","photo-viewer__actions",4,"ngIf"],[1,"photo-viewer__counter"],[1,"photo-viewer__slide"],["alt","Event gallery photo",1,"photo-viewer__img",3,"src"],[1,"photo-viewer__navigation"],["type","button","aria-label","Show previous photo",1,"photo-viewer__nav-button",3,"click","disabled"],["name","chevron-back-outline"],["type","button","aria-label","Show next photo",1,"photo-viewer__nav-button",3,"click","disabled"],["name","chevron-forward-outline"],[1,"photo-viewer__dots"],["type","button","class","photo-viewer__dot",3,"is-active","click",4,"ngFor","ngForOf","ngForTrackBy"],["type","button",1,"photo-viewer__dot",3,"click"],[1,"photo-viewer__actions"],["fill","solid","color","warning",3,"disabled","click",4,"ngIf"],["fill","solid","color","danger",3,"disabled","click",4,"ngIf"],["fill","solid","color","warning",3,"click","disabled"],["slot","start","name","flag-outline"],["fill","solid","color","danger",3,"click","disabled"],["slot","start","name","trash-outline"]],template:function(n,t){if(1&n){const v=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){return c.eBV(v),c.Njj(t.dismiss())}),e.nrm(3,"ion-icon",4),e.k0s(),e.DNE(4,E,2,2,"span",5),e.k0s(),e.j41(5,"div",6,0),e.bIt("scroll",function(){c.eBV(v);const P=e.sdS(6);return c.Njj(t.handleTrackScroll(P))}),e.DNE(7,l,2,1,"div",7),e.k0s(),e.DNE(8,s,9,2,"div",8)(9,_,2,2,"div",9)(10,y,3,2,"div",10),e.k0s()}2&n&&(e.R7$(4),e.Y8G("ngIf",t.slides.length>1),e.R7$(3),e.Y8G("ngForOf",t.slides)("ngForTrackBy",t.trackSlide),e.R7$(),e.Y8G("ngIf",t.slides.length>1),e.R7$(),e.Y8G("ngIf",t.slides.length>1),e.R7$(),e.Y8G("ngIf",t.slides[t.activeIndex]))},dependencies:[g.Sq,g.bT,u.Jm,u.iq],styles:[".photo-viewer[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:var(--ion-color-dark-shade)}.photo-viewer__header[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:var(--spoyla-space-4, 16px)}.photo-viewer__counter[_ngcontent-%COMP%]{padding:4px 12px;border-radius:999px;background:rgba(var(--spoyla-ink-rgb),.46);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--ion-color-dark-contrast);font-size:12.5px;font-weight:600}.photo-viewer__track[_ngcontent-%COMP%]{position:relative;z-index:1;flex:1;display:flex;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x}.photo-viewer__track[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.photo-viewer__slide[_ngcontent-%COMP%]{position:relative;flex:0 0 100%;width:100%;height:100%;display:flex;align-items:center;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always}.photo-viewer__img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;object-fit:contain;display:block}.photo-viewer__navigation[_ngcontent-%COMP%]{position:absolute;top:50%;left:0;right:0;z-index:3;display:flex;justify-content:space-between;padding:0 var(--spoyla-space-3, 12px);pointer-events:none;transform:translateY(-50%)}.photo-viewer__nav-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:8px 12px;border:0;border-radius:999px;background:rgba(var(--spoyla-ink-rgb),.64);color:var(--ion-color-dark-contrast);cursor:pointer;font:inherit;font-size:13px;font-weight:600;pointer-events:auto;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.photo-viewer__nav-button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:18px}.photo-viewer__nav-button[_ngcontent-%COMP%]:disabled{opacity:.32;cursor:default}.photo-viewer__dots[_ngcontent-%COMP%]{position:absolute;
1left:0;right:0;bottom:calc(var(--spoyla-space-6, 24px) + 56px);z-index:3;display:flex;justify-content:center;gap:8px;pointer-events:none}.photo-viewer__dot[_ngcontent-%COMP%]{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:rgba(var(--ion-color-dark-contrast-rgb),.52);cursor:pointer;pointer-events:auto;transition:width .16s ease,background .16s ease}.photo-viewer__dot.is-active[_ngcontent-%COMP%]{width:20px;background:var(--ion-color-dark-contrast)}.photo-viewer__actions[_ngcontent-%COMP%]{position:relative;z-index:3;display:flex;justify-content:center;gap:var(--spoyla-space-3, 12px);padding:var(--spoyla-space-4, 16px) var(--spoyla-space-4, 16px) calc(var(--spoyla-space-4, 16px) + env(safe-area-inset-bottom,0px))}"]}))}return i(),d})()},3136(k,b,h){h.d(b,{v:()=>e});var p=h(467),c=h(2615),u=h(4673);let e=(()=>{var g;class f{constructor(l){this.baseService=l,this.version="1"}InsUpdEvent(l,s){var a=this;return(0,p.A)(function*(){const _=`${a.baseService.apiUrl}/api/v${encodeURIComponent(a.version)}/Event`;return yield a.baseService.httpPost(_,l,s)})()}GetMyEvents(l){var s=this;return(0,p.A)(function*(){const a=`${s.baseService.apiUrl}/api/v${encodeURIComponent(s.version)}/Event`;return yield s.baseService.httpGet(a,l)})()}GetEventsByOrganizerId(l){var s=this;return(0,p.A)(function*(){const a=`${s.baseService.apiUrl}/api/v${encodeURIComponent(s.version)}/Event/organized`;return yield s.baseService.httpGet(a,l)})()}GetPublicEvents(l,s,a,_,m,x,y,w){var i=this;return(0,p.A)(function*(){const d=`${i.baseService.apiUrl}/api/v${encodeURIComponent(i.version)}/Event/public?centerLat=${l?encodeURIComponent(l):""}¢erLng=${s?encodeURIComponent(s):""}&radiusMeters=${a?encodeURIComponent(a):""}&startDTFrom=${_?encodeURIComponent(yield i.baseService.getDateString(_)):""}&startDTTo=${m?encodeURIComponent(yield i.baseService.getDateString(m)):""}&pageNumber=${x?encodeURIComponent(x):""}&pageSize=${y?encodeURIComponent(y):""}`;return yield i.baseService.httpGet(d,w)})()}GetMyPendingInviteCount(l){var s=this;return(0,p.A)(function*(){const a=`${s.baseService.apiUrl}/api/v${encodeURIComponent(s.version)}/Event/pending-invite-count`;return yield s.baseService.httpGet(a,l)})()}GetVisibleEventsForUser(l,s){var a=this;return(0,p.A)(function*(){const _=`${a.baseService.apiUrl}/api/v${encodeURIComponent(a.version)}/Event/user/${encodeURIComponent(l)}`;return yield a.baseService.httpGet(_,s)})()}DeleteEvent(l,s){var a=this;return(0,p.A)(function*(){const _=`${a.baseService.apiUrl}/api/v${encodeURIComponent(a.version)}/Event/${encodeURIComponent(l)}`;return yield a.baseService.httpDelete(_,s)})()}GetEventById(l,s,a){var _=this;return(0,p.A)(function*(){const m=`${_.baseService.apiUrl}/api/v${encodeURIComponent(_.version)}/Event/${encodeURIComponent(l)}?shareCode=${s?encodeURIComponent(s):""}`;return yield _.baseService.httpGet(m,a)})()}PublishEvent(l,s){var a=this;return(0,p.A)(function*(){const _=`${a.baseService.apiUrl}/api/v${encodeURIComponent(a.version)}/Event/${encodeURIComponent(l)}/publish`;return yield a.baseService.httpPost(_,{},s)})()}static#e=g=()=>(this.\u0275fac=function(s){return new(s||f)(c.KVO(u.F))},this.\u0275prov=c.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}))}return g(),f})()},8180(k,b,h){function c(u,e){return null==e?"":`${function p(u){return u?.symbol??u?.currencyCode??""}(u)}${e}`}h.d(b,{h:()=>c})}}]);
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.