PageSourceSearch

https://tickets.jewishfestival.pl/app/8057.467971b6ca4e8bba.js

js jewishfestival.pl collected 2026-09-24 20:04:23 UTC 12,849 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8057],{5554:(j,L,n)=>{n.d(L,{_:()=>b});var h=n(7221),v=n(2340),s=n(5e3),m=n(520),y=n(865),C=n(1343);let b=(()=>{class u{constructor(l,r,T){this.http=l,this.resourcesService=T,this.apiUrl=v.N.apiUrl,this.adminUrl=`${this.apiUrl}/admin/locations`,this.handleError=r.createHandleError("LocationsService")}getLocations(l){const r=this.resourcesService.createHttpParams(l||null);return this.http.get(this.adminUrl,{params:r}).pipe((0,h.K)(this.handleError("getLocations")))}getLocation(l){return this.http.get(`${this.adminUrl}/${l}`).pipe((0,h.K)(this.handleError("getLocation")))}createLocation(l){return this.http.post(this.adminUrl,l).pipe((0,h.K)(this.handleError("createLocation")))}updateLocation(l,r){return r instanceof FormData?(r.has("_method")||r.append("_method","PUT"),this.http.post(`${this.adminUrl}/${l}`,r).pipe((0,h.K)(this.handleError("updateLocation")))):this.http.put(`${this.adminUrl}/${l}`,r).pipe((0,h.K)(this.handleError("updateLocation")))}deleteLocation(l){return this.http.delete(`${this.adminUrl}/${l}`).pipe((0,h.K)(this.handleError("deleteLocation")))}}return u.\u0275fac=function(l){return new(l||u)(s.LFG(m.eN),s.LFG(y.k),s.LFG(C.z))},u.\u0275prov=s.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},8057:(j,L,n)=>{n.r(L),n.d(L,{LocationsPageModule:()=>ut});var h=n(9808),v=n(3075),s=n(603),m=n(7630),y=n(7221),C=n(537),b=n(591),u=n(1086);class x{constructor(a,o){this.authService=a,this.locationsService=o,this.locationsSubject=new b.X([]),this.loadingSubject=new b.X(!1),this.loading$=this.loadingSubject.asObservable(),this.totalItemsCountSubject=new b.X(0),this.totalItemsCount$=this.totalItemsCountSubject.asObservable()}connect(a){return this.locationsSubject.asObservable()}disconnect(a){this.locationsSubject.complete(),this.loadingSubject.complete(),this.totalItemsCountSubject.complete()}loadLocations(a){this.loadingSubject.next(!0),this.locationsService.getLocations({search:(null==a?void 0:a.search)||"",sort_by:(null==a?void 0:a.sort_by)||"id",sort_direction:(null==a?void 0:a.sort_direction)||"asc",per_page:(null==a?void 0:a.per_page)||15,page:((null==a?void 0:a.page)||0)+1}).pipe((0,y.K)(()=>(0,u.of)({data:[],meta:{total:0}})),(0,C.x)(()=>this.loadingSubject.next(!1))).subscribe(o=>{this.totalItemsCountSubject.next(o.meta.total),this.locationsSubject.next(o.data)})}}var l=n(6087),r=n(4847),T=n(8929),z=n(6787),g=n(7625),E=n(13),N=n(5778),U=n(2868),t=n(5e3),I=n(6289),R=n(5554),W=n(5038),_=n(3348),Y=n(384),P=n(4928),d=n(2075),S=n(7093);function B(e,a){1&e&&(t.TgZ(0,"th",17),t._uU(1,"ID"),t.qZA())}function O(e,a){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const o=a.$implicit;t.xp6(1),t.hij("#",o.id,"")}}function Q(e,a){1&e&&(t.TgZ(0,"th",17),t._uU(1,"Nazwa lokalizacji"),t.qZA())}function w(e,a){if(1&e&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&e){const o=a.$implicit;t.xp6(1),t.hij(" ",o.name," ")}}function G(e,a){1&e&&(t.TgZ(0,"th",17),t._uU(1,"Adres"),t.qZA())}function H(e,a){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&e){const o=a.$implicit;t.xp6(1),t.AsE(" ",o.address,", ",o.city," ")}}function J(e,a){1&e&&(t.TgZ(0,"th",17),t._uU(1,"Status"),t.qZA())}function K(e,a){if(1&e&&(t.TgZ(0,"td",18)(1,"ion-badge",20),t._uU(2),t.qZA()()),2&e){const o=a.$implicit;t.xp6(1),t.Q6J("color","active"===o.status?"success":"medium"),t.xp6(1),t.hij(" ","active"===o.status?"Aktywna":"Nieaktywna"," ")}}function F(e,a){1&e&&(t.TgZ(0,"th",17),t._uU(1,"Dodano"),t.qZA())}function V(e,a){if(1&e&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&e){const o=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,o.created_at,"dd.MM.yyyy"))}}function X(e,a){1&e&&t._UZ(0,"th",21)}function k(e,a){if(1&e){const o=t.EpF();t.TgZ(0,"td",18)(1,"div",22)(2,"ion-button",23),t.NdJ("click",function(){const p=t.CHM(o).$implicit,f=t.oxw();return t.KtG(f.redirect("/panel/locations/"+p.id))}),t._UZ(3,"ion-icon",24),t.qZA(),t.TgZ(4,"ion-button",25),t.NdJ("click",function(){const p=t.CHM(o).$implicit,f=t.oxw();return t.KtG(f.delete(p.id))}),t._UZ(5,"ion-icon",26),t.qZA()()()}}function q(e,a){1&e&&t._UZ(0,"tr",27)}function tt(e,a){1&e&&t._UZ(0,"tr",28)}
1function ot(e,a){1&e&&(t.TgZ(0,"div",29),t._UZ(1,"ion-spinner",30),t.qZA())}const et=function(){return[10,15,30,50]};let M=(()=>{class e{constructor(o,i,c,p,f,Z,A,D){this.platformService=o,this.locationsService=i,this.alertsService=c,this.loadingService=p,this.authService=f,this.navCtrl=Z,this.activatedRoute=A,this.paramsService=D,this.platformWidth="xl",this.destroy$=new T.xQ,this.displayedColumns=["id","name","address","status","created_at","actions"]}get searchInput(){return this._searchInput}set searchInput(o){o&&(o.ionChange.pipe((0,g.R)(this.destroy$),(0,E.b)(700),(0,N.x)(),(0,U.b)(()=>{localStorage.setItem("table-filter-locations",this._searchInput?this._searchInput.value:""),this.paginator&&(this.paginator.pageIndex=0),this.fetchData()})).subscribe(),this._searchInput=o)}ngOnInit(){this.platformService.width$.pipe((0,g.R)(this.destroy$)).subscribe(o=>{this.platformWidth=o}),this.authService.getAuthUser().pipe((0,g.R)(this.destroy$)).subscribe(o=>{this.authUser=o}),this.dataSource=new x(this.authService,this.locationsService)}ngAfterViewInit(){this.paginator._intl.itemsPerPageLabel="",this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),(0,z.T)(this.sort.sortChange,this.paginator.page).pipe((0,U.b)(()=>this.fetchData())).subscribe(),this.fetchData()}fetchData(){this.sort&&this.paginator&&this.dataSource.loadLocations({search:this._searchInput?this._searchInput.value:"",sort_direction:this.sort.direction,sort_by:this.sort.active,page:this.paginator.pageIndex,per_page:this.paginator.pageSize})}redirect(o){this.navCtrl.navigateRoot(o)}delete(o){this.alertsService.showDeleteAlert(()=>{this.loadingService.showLoadingAlert(),this.locationsService.deleteLocation(o).subscribe(()=>{this.fetchData(),this.loadingService.closeLoadingAlert(),this.alertsService.showCustom("Sukces","Lokalizacja zosta\u0142a usuni\u0119ta")})})}isPlatformWidthDense(){return this.platformService.isWidth("lt-md",this.platformWidth)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(I.m),t.Y36(R._),t.Y36(W.m),t.Y36(_.b),t.Y36(Y.e),t.Y36(s.SH),t.Y36(m.gz),t.Y36(P.v))},e.\u0275cmp=t.Xpm({type:e,selectors:[["fkz-locations-table"]],viewQuery:function(o,i){if(1&o&&(t.Gf(l.NW,5),t.Gf(r.YE,5)),2&o){let c;t.iGM(c=t.CRH())&&(i.paginator=c.first),t.iGM(c=t.CRH())&&(i.sort=c.first)}},hostVars:2,hostBindings:function(o,i){2&o&&t.ekj("fkz-locations-table--dense",i.isPlatformWidthDense())},inputs:{searchInput:"searchInput",platformWidth:"platformWidth"},decls:27,vars:12,consts:[[1,"fkz-table-container"],[1,"ma-table-scroll"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","style","font-weight: 600; color: var(--ion-color-primary)",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","status"],["matColumnDef","created_at"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","ma-table__spinner","fxLayoutAlign","center center","style","padding: 20px;",4,"ngIf"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",2,"font-weight","600","color","var(--ion-color-primary)"],["mode","ios",2,"text-transform","uppercase","font-size","10px",3,"color"],["mat-header-cell",""],["fxLayout","row","fxLayoutAlign","end center",1,"ma-table__actions"],[1,"action-btn","btn-edit",3,"click"],["name","pencil-outline","slot","icon-only"],[1,"action-btn","btn-delete",3,"click"],["name","trash-outline","slot","icon-only"],["mat-header-row",""],["mat-row",""],["fxLayoutAlign","center center",1,"ma-table__spinner",2,"padding","20px"],["name","crescent","color","primary"]],template:function(o,i){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"table",2),t.ynx(3,3),t.YNc(4,B,2,0,"th",4),t.YNc(5,O,2,1,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Q,2,0,"th",4),t.YNc(8,w,2,1,"td",7),t.BQk(),t.ynx(9,8),t.YNc(10,G,2,0,"th",4),t.YNc(11,H,2,2,"td",5),t.BQk(),t.ynx(12,9),t.YNc(13,J,2,0,"th",4),t.YNc(14,K,3,2,"td",5),t.BQk(),t.ynx(15,10),t.YNc(16,F,2,0,"th",4),t.YNc(17,V,3,4,"td",5),t.BQk(),t.ynx(18,11),t.YNc(19,X,1,0,"th",12),t.YNc(20,k,6,0,"td",5),t.BQk(),t.YNc(21,q,1,0,"tr",13),t.YNc(22,tt,1,0,"tr",14),t.qZA()(),t.YNc(23,ot,2,0,"div",15),t.ALo(24,"async"),t._UZ(25,"mat-paginator",16),t.ALo(26,"async"),t.qZA()),2&o&&(t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",t.lcZ(24,7,i.dataSource.loading$)),t.xp6(2),t.Q6J("length",t.lcZ(26,9,i.dataSource.totalItemsCount$))("pageSize",15)("pageSizeOptions",t.DdM(11,et)))},dependencies:[h.O5,s.yp,s.YG,s.gu,s.PQ,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,l.NW,r.YE,r.nU,S.xw,S.Wh,h.Ov,h.uU]}),e})();var at=n(5439),nt=n(2198),it=n(4941);const st=["searchInput"],ct=[{path:"",component:(()=>{class e{constructor(o,i,c,p,f,Z,A,D,pt){this.platformService=o,this.router=i,this.authService=c,this.usersService=p,this.activatedRoute=f,this.paramsService=Z,this.loadingService=A,this.modalController=D,this.navCtrl=pt,this.platformWidth="xl",this.destroy$=new T.xQ,this.month=new v.NI(at())}ngOnInit(){this.platformService.width$.pipe((0,g.R)(this.destroy$)).subscribe(o=>{this.platformWidth=o}),this.authService.getAuthUser().pipe((0,g.R)(this.destroy$)).subscribe(o=>{this.authUser=o}),this.router.events.pipe((0,g.R)(this.destroy$),(0,nt.h)(o=>
1o instanceof m.m2)).subscribe(o=>{"/panel/locations"===o.url&&this.locationsTableComponent&&this.locationsTableComponent.fetchData()})}ngAfterViewInit(){localStorage.getItem("table-filter-locations")&&(this.searchInput.value=localStorage.getItem("table-filter-locations"))}getFormattedMonth(){return this.month.value?this.month.value.format("YYYY-MM"):""}onMonthSelected(o,i){this.month.setValue(o),i.close()}reloadTableData(){this.locationsTableComponent.fetchData()}redirect(o){this.navCtrl.navigateRoot(o)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isPlatformWidthDense(){return this.platformService.isWidth("lt-md",this.platformWidth)}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(I.m),t.Y36(m.F0),t.Y36(Y.e),t.Y36(it.f),t.Y36(m.gz),t.Y36(P.v),t.Y36(_.b),t.Y36(s.IN),t.Y36(s.SH))},e.\u0275cmp=t.Xpm({type:e,selectors:[["fkz-locations"]],viewQuery:function(o,i){if(1&o&&(t.Gf(M,5),t.Gf(st,5)),2&o){let c;t.iGM(c=t.CRH())&&(i.locationsTableComponent=c.first),t.iGM(c=t.CRH())&&(i.searchInput=c.first)}},hostVars:2,hostBindings:function(o,i){2&o&&t.ekj("fkz-locations--dense",i.isPlatformWidthDense())},inputs:{platformWidth:"platformWidth"},decls:19,vars:2,consts:[[1,"ion-no-border"],["color","light"],["slot","start"],["slot","end"],[1,"action-icon-btn",3,"click"],["slot","icon-only","name","refresh-outline"],[1,"add-btn",3,"click"],["slot","start","name","add-outline"],[1,"ma-panel-page"],["fxLayout","row","fxLayoutAlign","start center",1,"table-controls-container"],["placeholder","Szukaj lokalizacji...","mode","ios",1,"custom-searchbar",3,"debounce"],["searchInput",""],[1,"table-wrapper-card"],[3,"searchInput"]],template:function(o,i){if(1&o&&(t.TgZ(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-buttons",2),t._UZ(3,"ion-menu-button"),t.qZA(),t.TgZ(4,"ion-title"),t._uU(5,"Lokalizacje"),t.qZA(),t.TgZ(6,"ion-buttons",3)(7,"ion-button",4),t.NdJ("click",function(){return i.reloadTableData()}),t._UZ(8,"ion-icon",5),t.qZA(),t.TgZ(9,"ion-button",6),t.NdJ("click",function(){return i.redirect("/panel/locations/create")}),t._UZ(10,"ion-icon",7),t._uU(11," Nowa lokalizacja "),t.qZA()()()(),t.TgZ(12,"ion-content")(13,"div",8)(14,"div",9),t._UZ(15,"ion-searchbar",10,11),t.qZA(),t.TgZ(17,"div",12),t._UZ(18,"fkz-locations-table",13),t.qZA()()()),2&o){const c=t.MAs(16);
1t.xp6(15),t.Q6J("debounce",700),t.xp6(3),t.Q6J("searchInput",c)}},dependencies:[s.YG,s.Sm,s.W2,s.Gu,s.gu,s.fG,s.VI,s.wd,s.sr,s.j9,M,S.xw,S.Wh]}),e})()}];let lt=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[m.Bz.forChild(ct),m.Bz]}),e})();var $=n(2155),rt=n(7238),ht=n(6273),dt=n(4419);let mt=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[h.ez,s.Pc,dt.p,d.p0,l.TU,r.JX,$.o9,v.u5,m.Bz,rt.AV,ht.r]}),e})(),ut=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[h.ez,v.u5,s.Pc,lt,mt,$.o9]}),e})()}}]);

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.