1/*! For license information please see 3786.e94df6fb.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3786],{5846(e,t,a){a.r(t),a.d(t,{default:()=>k});var s=a(5043),r=a(4368),d=a(6792),l=a(2024),c=a(5469),i=a(5088),n=a(2629),o=a(5087),h=a(5727),y=a(653),p=a(6879),m=a(3405),u=a(4417),x=a(579);const k=()=>{const{api:e}=(0,y.As)(),{language:t}=(0,p.ok)(),{features:a}=(0,m.xS)(),k=(0,d.Zp)(),f="de"===t,[A,g]=(0,s.useState)([]),[v,w]=(0,s.useState)(!0),[M,j]=(0,s.useState)(null),[b,N]=(0,s.useState)(null);(0,s.useEffect)(()=>{z()},[]);const z=async()=>{try{const t=await e.get("/profile/visitors"),a=(t.data.visitors||[]).filter(e=>e&&e.userId&&"string"===typeof e.displayName&&e.displayName.trim().length>0&&!["unknown","user","unbekannt","google reviewer"].includes(e.displayName.trim().toLowerCase()));g(a)}catch(a){var t;403===(null===(t=a.response)||void 0===t?void 0:t.status)&&j("premium")}finally{w(!1)}},C=e=>{if(!e)return"";const t=new Date(e),a=new Date,s=Math.floor((a-t)/6e4);return s<60?`${s} Min`:s<1440?`${Math.floor(s/60)}h`:`${Math.floor(s/1440)}d`};return(0,x.jsxs)("div",{className:"flex-1 overflow-y-auto pb-24","data-testid":"profile-visitors-page",children:[(0,x.jsxs)("div",{className:"p-4 border-b border-white/5 flex items-center gap-4",children:[(0,x.jsx)("button",{onClick:()=>k(-1),className:"w-10 h-10 rounded-full bg-white/5 flex items-center justify-center",children:(0,x.jsx)(c.A,{className:"w-5 h-5 text-foreground"})}),(0,x.jsxs)("div",{children:[(0,x.jsx)("h1",{className:"text-xl font-heading font-bold text-foreground",children:f?"Profil-Besucher":"Profile Visitors"}),(0,x.jsx)("p",{className:"text-xs text-muted-foreground",children:f?"Wer hat dein Profil besucht?":"Who visited your profile?"})]})]}),v?(0,x.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,x.jsx)(l.A,{className:"w-8 h-8 text-primary animate-spin"})}):"premium"===M?(0,x.jsxs)("div",{className:"p-8 text-center",children:[(0,x.jsx)(h.A,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),(0,x.jsx)("h2",{className:"text-lg font-bold text-foreground mb-2",children:f?"Premium-Feature":"Premium Feature"}),(0,x.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:f?"Sieh wer dein Profil besucht hat mit PRIDE oder GUARDIAN.":"See who visited your profile with PRIDE or GUARDIAN."}),(0,x.jsxs)("button",{onClick:()=>k("/premium"),className:"px-6 py-2 bg-gradient-to-r from-primary to-secondary text-white rounded-full font-medium",children:[(0,x.jsx)(n.A,{className:"w-4 h-4 inline mr-2"}),"Upgrade"]})]}):0===A.length?(0,x.jsxs)("div",{className:"p-8 text-center",children:[(0,x.jsx)(o.A,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),(0,x.jsx)("p",{className:"text-muted-foreground",children:f?"Noch keine Besucher. Dein Profil wird bald entdeckt!":"No visitors yet. Your profile will be discovered soon!"})]}):(0,x.jsx)("div",{className:"p-4 space-y-2",children:A.map((e,t)=>(0,x.jsxs)(r.P.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05*t},onClick:()=>N(e.userId),className:"w-full flex items-center gap-3 p-3 rounded-xl bg-white/5 hover:bg-white/10 transition-colors","data-testid":`visitor-${e.userId}`,children:[(0,x.jsx)("img",{src:e.profilePicture||"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=80",alt:e.displayName,className:"w-12 h-12 rounded-full object-cover"}),(0,x.jsxs)("div",{className:"flex-1 text-left",children:[(0,x.jsx)("p",{className:"text-sm font-medium text-foreground",children:e.displayName}),(0,x.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[(0,x.jsx)(i.A,{className:"w-3 h-3"})," ",C(e.visitedAt)]})]}),(0,x.jsx)(o.A,{className:"w-4 h-4 text-muted-foreground"})]},e.userId))}),b&&(0,x.jsx)(u.A,{userId:b,onClose:()=>N(null)})]})}},5469(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},7475(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]])},8646(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},9463(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},8326(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},2054(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},5088(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},2629(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},5087(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},7170(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},9682(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
2],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},1(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]])},5727(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},8006(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},9340(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},2812(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]])},4830(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},4025(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("shield-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]])},3944(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},7719(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},254(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("user-check",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]])},1884(e,t,a){a.d(t,{A:()=>s});const s=(0,a(7784).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])}}]); 3//# sourceMappingURL=3786.e94df6fb.chunk.js.map
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.