PageSourceSearch

https://www.rezerwujkort.pl/chunk-ZHT6MCRG.js

js rezerwujkort.pl collected 2026-10-02 00:24:44 UTC 15,305 bytes, 2 lines download raw bytes

1import{a as H}from"./chunk-JK42OEDM.js";import{a as F}from"./chunk-X4OYUILV.js";import{a as B}from"./chunk-2TSHCDKV.js";import{a as U}from"./chunk-HYSLBAX2.js";import{a as O}from"./chunk-2RAL7G6C.js";import"./chunk-DSR4BXIP.js";import{a as V}from"./chunk-O4FXT2CV.js";import{Aa as s,Ab as M,B as k,D as h,E as w,F as x,G as f,Ja as I,K as _,Ka as r,La as p,Ma as b,Na as g,Q as T,R as j,U as a,Ub as A,Wb as L,Z as y,Za as z,_ as R,ac as N,ha as l,i as P,ia as d,la as S,ma as E,na as v,oa as e,pa as i,qa as m,wa as D,ya as C}from"./chunk-7OTBOUFM.js";import"./chunk-6MDQTQU3.js";var W=n=>["/klub",n],K=n=>["/reservation_app",n,"calendar"],J=(n,o)=>o.reservationId,Z=(n,o)=>o.clubsName;function q(n,o){n&1&&(e(0,"div",3),x(),e(1,"svg",5),m(2,"circle",6)(3,"path",7),i(),f(),e(4,"span",8),r(5,"\u0141adowanie danych profilu..."),i()())}function Q(n,o){n&1&&(e(0,"div",9)(1,"div",12),x(),e(2,"svg",22),m(3,"path",23),i(),f(),e(4,"div")(5,"p",24),r(6,"Numer telefonu niezweryfikowany"),i(),e(7,"p",25),r(8,"Aby m\xF3c korzysta\u0107 z rezerwacji, potwierd\u017A sw\xF3j numer telefonu."),i()()(),e(9,"a",26),r(10," Potwierd\u017A "),i()())}function X(n,o){n&1&&(e(0,"span",34),r(1," \u2713 Zweryfikowany "),i())}function Y(n,o){n&1&&(e(0,"a",35),r(1," \u2715 Nie zweryfikowany \u2014 Potwierd\u017A "),i())}function ee(n,o){if(n&1&&(e(0,"div",10)(1,"div",11)(2,"div",12)(3,"div",13),x(),e(4,"svg",14),m(5,"path",27),i()(),f(),e(6,"h2",16),r(7,"Twoje dane"),i()()(),e(8,"div",28)(9,"div",29)(10,"div",30)(11,"span",31),r(12,"Imi\u0119"),i(),e(13,"span",32),r(14),i()(),e(15,"div",30)(16,"span",31),r(17,"Nazwisko"),i(),e(18,"span",32),r(19),i()(),e(20,"div",30)(21,"span",31),r(22,"Telefon"),i(),e(23,"div",33)(24,"span",32),r(25),i(),l(26,X,2,0,"span",34)(27,Y,2,0,"a",35),i()(),e(28,"div",30)(29,"span",31),r(30,"Email"),i(),e(31,"span",32),r(32),i()()()()()),n&2){let t=s(2);a(14),p(t.user.name),a(5),p(t.user.surname),a(6),p(t.user.phone),a(),d(t.user.phoneVerification?26:27),a(6),p(t.user.email)}}function te(n,o){n&1&&(e(0,"div",17),r(1," Brak aktywnych rezerwacji "),i())}function ie(n,o){if(n&1&&(e(0,"div",52),r(1," Je\u015Bli rezerwacja nie by\u0142a op\u0142acona: "),e(2,"a",56),r(3," \u2192 Przejd\u017A do p\u0142atno\u015Bci "),i()()),n&2){let t=s().$implicit;a(2),v("href",t.paymentUrl,j)}}function ne(n,o){if(n&1){let t=D();e(0,"button",57),C("click",function(){h(t);let u=s().$implicit,$=s(3);return w($.openDeleteConfirm(u))}),r(1," Usu\u0144 "),i()}}function re(n,o){if(n&1&&(e(0,"tr",40)(1,"td",41)(2,"span",42),r(3),i()(),e(4,"td",41)(5,"a",43),r(6),i()(),e(7,"td",44)(8,"div",45),r(9),i(),e(10,"div",46)(11,"span",47),r(12),i()(),e(13,"div",48),r(14),i()(),e(15,"td",41)(16,"span",49),r(17),i()(),e(18,"td",50),m(19,"span",51),l(20,ie,4,1,"div",52),i(),e(21,"td",53),r(22),i(),e(23,"td",54),l(24,ne,2,0,"button",55),i()()),n&2){let t=o.$implicit,c=o.$index,u=s(3);a(3),p(t.counter||c+1),a(2),v("routerLink",z(15,W,t.clubSlug)),a(),p(t.clubName),a(3),g("",t.date," (",t.dayOfWeek,")"),a(3),g(" ",t.hourStart," \u2014 ",t.hourStop," "),a(2),p(t.courtNameWww),a(3),b("",t.price," z\u0142"),a(2),I(u.getStatusColor(t.payedDesc)),v("innerHTML",t.status.replaceAll("<br />",`
2`),T),a(),d(t.paymentUrl?20:-1),a(2),b(" ",t.createdAt," "),a(2),d(t.canBeDeletedByUser?24:-1)}}function oe(n,o){if(n&1&&(e(0,"div",18)(1,"table",36)(2,"thead")(3,"tr",37)(4,"th",38),r(5," Nr"),i(),e(6,"th",38),r(7," Klub"),i(),e(8,"th",38),r(9," Data / Godzina"),i(),e(10,"th",38),r(11," Cena"),i(),e(12,"th",38),r(13," Status"),i(),e(14,"th",38),r(15," Utworzona"),i(),e(16,"th",39),r(17," Akcja"),i()()(),e(18,"tbody"),S(19,re,25,17,"tr",40,J),i()()()),n&2){let t=s(2);a(19),E(t.reservations)}}function ae(n,o){if(n&1&&(e(0,"a",61),r(1),i()),n&2){let t=o.$implicit;v("routerLink",z(2,K,t.clubsName)),a(),b(" ",t.clubsName," ")}}function le(n,o){if(n&1&&(e(0,"div",21)(1,"div",11)(2,"div",12)(3,"div",13),x(),e(4,"svg",14),m(5,"path",58),i()(),f(),e(6,"h2",16),r(7,"\u{1F6E1}\uFE0F Panel Super Administratora"),i()()(),e(8,"div",28)(9,"p",59),r(10,"Twoje kluby:"),i(),e(11,"div",60),S(12,ae,2,4,"a",61,Z),i()()()),n&2){let t=s(2);a(12),E(t.adminClubs)}}function de(n,o){}function ce(n,o){if(n&1&&(l(0,Q,11,0,"div",9),l(1,ee,33,5,"div",10),e(2,"div",10)(3,"div",11)(4,"div",12)(5,"div",13),x(),e(6,"svg",14),m(7,"path",15),i()(),f(),e(8,"h2",16),r(9,"Rezerwacje"),i()()(),l(10,te,2,0,"div",17)(11,oe,21,0,"div",18),e(12,"div",19)(13,"a",20),r(14," Zobacz wszystkie rezerwacje \u2192 "),i()()(),l(15,le,14,0,"div",21),l(16,de,0,0)),n&2){let t=s();d(t.user&&!t.user.phoneVerification?0:-1),a(),d(t.user?1:-1),a(9),d(t.reservations.length===0?10:11),a(5),d(t.adminClubs.length>0?15:-1),a(),d(t.privilegedClubs.length>0?16:-1)}}function se(n,o){if(n&1&&(e(0,"p",68),r(1," Czy na pewno chcesz usun\u0105\u0107 rezerwacj\u0119? "),i(),e(2,"div",69)(3,"div",70)(4,"span",71),r(5,"Data:"),i(),r(6),i(),e(7,"div",70)(8,"span",71),r(9,"Godzina:"),i(),r(10),i(),e(11,"div",70)(12,"span",71),r(13,"Klub:"),i(),r(14),i()()),n&2){let t=o;a(6),g(" ",t.date," (",t.dayOfWeek,") "),a(4),g(" ",t.hourStart," \u2014 ",t.hourStop," "),a(4),b(" ",t.clubName," ")}}function me(n,o){if(n&1&&(e(0,"div",64),r(1),i()),n&2){let t=s(2);a(),b(" ",t.deleteError()," ")}}function pe(n,o){n&1&&(x(),e(0,"svg",72),m(1,"circle",6)(2,"path",7),i(),r(3," Usuwanie... "))}function ue(n,o){n&1&&r(0," Usu\u0144 rezerwacj\u0119 ")}function xe(n,o){if(n&1){let t=D();e(0,"div",4)(1,"div",62)(2,"div",63)(3,"h3",16),r(4,"Usu\u0144 rezerwacj\u0119"),i()(),e(5,"div",28),l(6,se,15,5),l(7,me,2,1,"div",64),i(),e(8,"div",65)(9,"button",66),C("click",function(){h(t);let u=s();return w(u.closeDeleteConfirm())}),r(10," Anuluj "),i(),e(11,"button",67),C("click",function(){h(t);let u=s();return w(u.confirmDelete())}),l(12,pe,4,0)(13,ue,1,0),i()()()()}if(n&2){let t,c=s();a(6),d((t=c.selectedReservation())?6:-1,t),a(),d(c.deleteError()?7:-1),a(4),v("disabled",c.isDeleting()),a(),d(c.isDeleting()?12:13)}}var G=class n{constructor(o,t){this.authService=o;this.dataService=t}authService;dataService;analyticsService=k(V);seoService=k(O);user;reservations=[];adminClubs=[];privilegedClubs=[];isLoading=!0;showDeleteConfirm=_(!1);isDeleting=_(!1);deleteError=_(null);selectedReservation=_(null);ngOnInit(){this.applySeo(),P({userData:this.authService.getLoggedUser(),reservationsData:this.dataService.getUserReservations({page:1,historical:!1}),superAdminData:this.authService.checkIfSuperAdmin(),privilegesData:this.authService.getClubsWithReservationPrivileges()}).subscribe({next:o=>{this.user=o.userData,this.reservations=o.reservationsData.content,this.adminClubs=o.superAdminData,this.privilegedClubs=o.privilegesData,this.isLoading=!1},error:o=>{console.error("B\u0142\u0105d podczas \u0142adowania profilu:",o),this.isLoading=!1}})}applySeo(){this.seoService.setPage({title:"Profil - RezerwujKort.pl",description:"Profil RezerwujKort.pl.",keywords:"profil, rezerwujkort",url:"https://rezerwujkort.pl/profil"}),this.seoService.setStructuredData({"@context":"https://schema.org","@type":"WebPage",name:"Profil",description:"Strona profilu u\u017Cytkownika RezerwujKort.pl",url:"https://rezerwujkort.pl/profil"}),this.analyticsService.trackEvent("Profil","Otwarcie strony Profil U\u017Cytkownika","Profil")}openDeleteConfirm(o){this.selectedReservation.set(o),this.deleteError.set(null),this.showDeleteConfirm.set(!0)}closeDeleteConfirm(){this.showDeleteConfirm.set(!1),this.selectedReservation.set(null),this.deleteError.set(null)}confirmDelete(){let o=this.selectedReservation();o&&(this.isDeleting.set(!0),this.deleteError.set(null),this.dataService.deleteClientReservation(o.reservationId,o.clubSlug).subscribe({next:()=>{this.isDeleting.set(!1),this.closeDeleteConfirm(),this.dataService.getUserReservations({page:1,historical:!1}).subscribe(t=>this.reservations=t.content)},error:t=>{this.isDeleting.set(!1),this.deleteError.set(t?.error?.message||t?.message||"Wyst\u0105pi\u0142 nieoczekiwany b\u0142\u0105d!")}}
2))}getStatusColor(o){return o?.includes("usuni\u0119ta")||o?.includes("Usuni\u0119ta")?"text-red-600":o?.includes("op\u0142acona")||o?.includes("Op\u0142acona")?"text-[#99bc39]":"text-gray-700"}static \u0275fac=function(t){return new(t||n)(y(U),y(H))};static \u0275cmp=R({type:n,selectors:[["app-profile"]],decls:8,vars:3,consts:[[2,"display","flex","flex-direction","column","min-height","100vh","background-color","#f1f5f9"],[2,"flex","1 0 auto"],[1,"containerBox","py-8"],[1,"flex","items-center","justify-center","py-20"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","p-4",2,"background-color","rgba(0,0,0,0.5)"],["fill","none","viewBox","0 0 24 24",1,"animate-spin","h-8","w-8","text-gray-400"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8v8z",1,"opacity-75"],[1,"ml-3","text-gray-500","font-medium"],[1,"mb-6","flex","items-center","justify-between","gap-4","px-5","py-4","rounded-2xl","shadow-sm",2,"background-color","#fef2f2","border","1.5px solid #fecaca"],[1,"bg-white","rounded-2xl","shadow-sm","overflow-hidden","mb-5",2,"border","1.5px solid #e2e8f0","width","100%"],[1,"px-5","py-4",2,"background-color","#1e293b"],[1,"flex","items-center","gap-3"],[1,"p-2","rounded-xl",2,"background-color","#99bc39"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","text-white"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"],[1,"text-sm","font-black","text-white","uppercase","tracking-wider"],[1,"p-8","text-center","text-gray-400","italic","text-sm"],[1,"overflow-x-auto"],[1,"px-5","py-4",2,"border-top","1px solid #e2e8f0"],["routerLink","/profil/moje_rezerwacje",1,"text-sm","font-bold","text-black","hover:underline",2,"text-decoration","none"],[1,"bg-white","rounded-2xl","shadow-sm","overflow-hidden","mb-5",2,"border","1.5px solid #bfdbfe","width","100%"],["fill","currentColor","viewBox","0 0 20 20",1,"h-5","w-5","flex-shrink-0",2,"color","#dc2626"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"],[1,"text-sm","font-bold",2,"color","#991b1b"],[1,"text-xs",2,"color","#b91c1c"],["routerLink","/profil/weryfikacja_numeru_telefonu",1,"flex-shrink-0","px-4","py-2","rounded-xl","text-xs","font-black","uppercase","tracking-wider","text-white",2,"background-color","#dc2626","text-decoration","none"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],[1,"p-5"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-4"],[1,"flex","flex-col","gap-0.5"],[1,"text-[10px]","font-black","text-gray-400","uppercase","tracking-wider"],[1,"text-sm","font-bold","text-gray-900"],[1,"flex","items-center","gap-2"],[1,"px-2","py-0.5","rounded-full","text-[10px]","font-black","bg-green-100","text-green-700","border","border-green-200"],["routerLink","/profil/weryfikacja_numeru_telefonu",1,"px-2","py-0.5","rounded-full","text-[10px]","font-black","bg-red-100","text-red-700","border","border-red-200",2,"text-decoration","none"],[1,"w-full","text-left","border-collapse"],[2,"background-color","#f8fafc","border-bottom","2px solid #e2e8f0"],[1,"py-3","px-4","text-[10px]","font-black","text-gray-500","uppercase","tracking-wider","border-r","border-gray-200"],[1,"py-3","px-4","text-[10px]","font-black","text-gray-500","uppercase","tracking-wider","text-center"],[1,"hover:bg-blue-50","transition-colors",2,"border-bottom","1px solid #e2e8f0"],[1,"py-3","px-4","border-r","border-gray-100"],[1,"inline-flex","items-center","justify-center","w-6","h-6","rounded-full","text-white","text-[10px]","font-black",2,"background-color","#1e293b"],[1,"text-xs","font-black","text-black","hover:underline",3,"routerLink"],[1,"py-3","px-4","border-r","border-gray-100","text-xs","text-gray-700"],[1,"font-bold"],[1,"flex","items-center","gap-1","mt-0.5"],[1,"px-1.5","py-0.5","rounded","text-[10px]","font-black",2,"background-color","#e2e8f0"],[1,"text-[10px]","text-gray-400","mt-0.5"],[1,"text-sm","font-black","text-gray-900"],[1,"py-3","px-4","border-r","border-gray-100","text-xs","max-w-[220px]"],[1,"font-semibold",2,"white-space","pre-line",3,"innerHTML"],[1,"mt-2","text-xs","text-gray-500"],[1,"py-3","px-4","border-r","border-gray-100","text-xs","text-gray-500","whitespace-nowrap"],[1,"py-3","px-4","text-center",2,"background-color","#f9fafb"],["type","button","onmouseover","this.style.backgroundColor='#b91c1c'","onmouseout","this.style.backgroundColor='#dc2626'",1,"px-3","py-1.5","rounded-lg","text-xs","font-black","uppercase","tracking-wider","border-none","cursor-pointer","transition-all",2,"background-color","#dc2626","color","white"],[1,"text-red-500","font-bold","hover:underline","block","mt-1",3,"href"],["type","button","onmouseover","this.style.backgroundColor='#b91c1c'","onmouseout","this.style.backgroundColor='#dc2626'",1,"px-3","py-1.5","rounded-lg","text-xs","font-black","uppercase","tracking-wider","border-none","cursor-pointer","transition-all",2,"background-color","#dc2626","color","white",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"],[1,"text-[10px]","font-black","text-slate-800","uppercase","tracking-wider","mb-3"],[1,"flex","flex-wrap","gap-2"],[1,"px-4","py-2","rounded-xl","text-xs","font-black","uppercase","tracking-wider","text-white","transition-all","hover:brightness-110",2,"background-color","#99bc39","text-decoration","none",3,"routerLink"],[1,"bg-white","rounded-2xl","shadow-xl","w-full","overflow-hidden",2,"max-width","480px","border","1.5px solid #fecaca"],[1,"px-5","py-4",2,"background-color","#dc2626"],[1,"mb-4","px-4","py-3","rounded-xl","bg-red-50","border","border-red-200","text-sm","text-red-600","font-semibold"],[1,"px-5","pb-5","flex","gap-3","justify-end"],["type","button",1,"px-5","py-2.5","rounded-xl","text-sm","font-bold","border-none","cursor-pointer","transition-all",2,"background-color","#f1f5f9","color","#374151",3,"click"],["type","button",1,"flex","items-center","gap-2","px-5","py-2.5","rounded-xl","text-sm","font-bold","border-none","cursor-pointer","transition-all","disabled:opacity-40",2,"background-color","#dc2626","color","white",3,"click","disabled"],[1,"text-sm","font-semibold","text-gray-800","mb-2"],[1,"rounded-xl","p-4","mb-4","space-y-1",2,"background","#f8fafc","border","1p
2x solid #e2e8f0"],[1,"text-xs","text-gray-600"],[1,"font-bold","text-gray-900"],["fill","none","viewBox","0 0 24 24",1,"animate-spin","h-4","w-4"]],template:function(t,c){t&1&&(e(0,"div",0),m(1,"app-navbar-new"),e(2,"div",1)(3,"div",2),l(4,q,6,0,"div",3),l(5,ce,17,5),i()(),l(6,xe,14,4,"div",4),m(7,"Footer"),i()),t&2&&(a(4),d(c.isLoading?4:-1),a(),d(c.isLoading?-1:5),a(),d(c.showDeleteConfirm()?6:-1))},dependencies:[M,N,L,A,F,B],encapsulation:2})};export{G as Profile};

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.