1/*! For license information please see 75.25938b7f.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[75],{2540(e,t,s){s.d(t,{s:()=>i});var a=s(5043),n=s(2489),c=s(579);const l={1:"#6C6C80",2:"#9AA0B5",3:"#39FF14",4:"#00F0FF",5:"#00F0FF",6:"#FFD700",7:"#FFD700",8:"#FF2A5F",9:"#FF2A5F",10:"#FF4D79",11:"#FF4D79"},i=a.memo(function(e){let t=e.level,s=void 0===t?1:t,a=e.tier,i=e.size,r=void 0===i?"md":i,o=e.showTier,d=void 0!==o&&o;const m=l[s]||"#FFD700",x="sm"===r?"h-6 px-2 text-[11px]":"lg"===r?"h-9 px-3 text-sm":"h-7 px-2.5 text-xs";return(0,c.jsxs)("span",{"data-testid":"level-badge",className:"inline-flex items-center gap-1 rounded-full font-bold ".concat(x),style:{color:m,border:"1px solid ".concat(m,"55"),background:"".concat(m,"1a"),boxShadow:"0 0 12px ".concat(m,"33")},children:[(0,c.jsx)(n.A,{className:"sm"===r?"h-3 w-3":"h-3.5 w-3.5",style:{fill:"".concat(m,"44")}}),"LV",s,d&&a?(0,c.jsxs)("span",{className:"opacity-80 font-medium",children:["\xb7 ",a]}):null]})})},7075(e,t,s){s.r(t),s.d(t,{default:()=>j});var a=s(5544),n=s(5043),c=s(5684),l=s(8847),i=s(2540),r=s(6104),o=s(7118);const d=(0,s(7784).A)("images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]);var m=s(2024),x=s(4830),h=s(5087),p=s(4918),u=s(9292),g=s(579);function f(e){return e?e.startsWith("http")?e:"".concat("https://haitipal.com").concat(e):e}function j(){const e=(0,l.e)().openOverlay,t=(0,n.useState)("content"),s=(0,a.A)(t,2),j=s[0],b=s[1],F=(0,n.useState)([]),y=(0,a.A)(F,2),w=y[0],N=y[1],v=(0,n.useState)([]),A=(0,a.A)(v,2),k=A[0],C=A[1],_=(0,n.useState)(!0),D=(0,a.A)(_,2),S=D[0],M=D[1],z=(0,n.useState)(""),L=(0,a.A)(z,2),V=L[0],G=L[1];(0,n.useEffect)(()=>{M(!0),Promise.all([r.Ay.get("/members").then(e=>N(e.data||[])).catch(()=>N([])),r.Ay.get("/social/feed").then(e=>C(e.data||[])).catch(()=>C([]))]).finally(()=>M(!1))},[]);const P=(0,n.useMemo)(()=>w.filter(e=>(e.name||"").toLowerCase().includes(V.trim().toLowerCase())),[w,V]),B=t=>e("profile",t);return(0,g.jsxs)(c.G,{children:[(0,g.jsxs)("div",{className:"mb-5 flex flex-wrap items-center justify-between gap-3",children:[(0,g.jsxs)("div",{className:"flex items-center gap-3",children:[(0,g.jsx)("span",{className:"flex h-11 w-11 items-center justify-center rounded-2xl bg-[#00A8CC]/15 text-[#00F0FF]",children:(0,g.jsx)(o.A,{className:"h-6 w-6"})}),(0,g.jsxs)("div",{children:[(0,g.jsx)("h2",{className:"font-display text-3xl font-extrabold",children:"Sosyal"}),(0,g.jsx)("p",{className:"text-sm text-gray-400",children:"Gade tout manm yo ak kontni yo pataje."})]})]}),(0,g.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full surface-2 p-1","data-testid":"social-tabs",children:[(0,g.jsxs)("button",{"data-testid":"social-tab-content",onClick:()=>b("content"),className:"flex items-center gap-1.5 rounded-full px-4 py-2 text-sm font-bold transition-colors ".concat("content"===j?"bg-[#FF2A5F] text-white":"text-gray-300 hover:bg-white/10"),children:[(0,g.jsx)(d,{className:"h-4 w-4"})," Kontni"]}),(0,g.jsxs)("button",{"data-testid":"social-tab-members",onClick:()=>b("members"),className:"flex items-center gap-1.5 rounded-full px-4 py-2 text-sm font-bold transition-colors ".concat("members"===j?"bg-[#FF2A5F] text-white":"text-gray-300 hover:bg-white/10"),children:[(0,g.jsx)(o.A,{className:"h-4 w-4"})," Manm"]})]})]}),S?(0,g.jsx)("div",{className:"flex min-h-[40vh] items-center justify-center",children:(0,g.jsx)(m.A,{className:"h-10 w-10 animate-spin text-[#FF2A5F]"})}):"content"===j?0===k.length?(0,g.jsx)("p",{className:"mt-16 text-center text-sm text-gray-400","data-testid":"social-content-empty",children:"Poko gen kontni pataje."}):(0,g.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5","data-testid":"social-content-grid",children:k.map(e=>(0,g.jsxs)("button",{"data-testid":"social-media-".concat(e.id),onClick:()=>B(e.owner),className:"group relative aspect-[3/4] overflow-hidden rounded-2xl surface ring-1 ring-white/10 transition-transform hover:scale-[1.02]",children:["video"===e.kind?(0,g.jsx)("video",{src:f(e.url),muted:!0,playsInl
2ine:!0,preload:"metadata",className:"h-full w-full object-cover"}):(0,g.jsx)("img",{src:f(e.url),alt:"",className:"h-full w-full object-cover"}),"video"===e.kind&&(0,g.jsx)("span",{className:"absolute right-2 top-2 flex h-7 w-7 items-center justify-center rounded-full bg-black/60 text-white",children:(0,g.jsx)(x.A,{className:"h-3.5 w-3.5"})}),(0,g.jsxs)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/85 to-transparent p-2.5",children:[(0,g.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,g.jsx)("img",{src:e.owner_picture,alt:"",className:"h-6 w-6 rounded-full object-cover ring-1 ring-white/30"}),(0,g.jsx)("span",{className:"min-w-0 flex-1 truncate text-left text-xs font-semibold text-white",children:e.owner_name})]}),(0,g.jsxs)("div",{className:"mt-1 flex items-center gap-3 text-[11px] text-white/80",children:[(0,g.jsxs)("span",{className:"flex items-center gap-1",children:[(0,g.jsx)(h.A,{className:"h-3 w-3"})," ",e.views]}),e.reaction_total>0&&(0,g.jsxs)("span",{className:"flex items-center gap-1",children:[(0,g.jsx)(p.A,{className:"h-3 w-3 text-[#FF2A5F]"})," ",e.reaction_total]})]})]})]},e.id))}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"mb-4 flex items-center gap-2 rounded-full surface-2 px-4",children:[(0,g.jsx)(u.A,{className:"h-4 w-4 text-gray-400"}),(0,g.jsx)("input",{"data-testid":"social-member-search",value:V,onChange:e=>G(e.target.value),placeholder:"Ch\xe8che yon manm\u2026",className:"h-11 flex-1 bg-transparent text-sm text-white placeholder:text-gray-500 outline-none"})]}),0===P.length?(0,g.jsx)("p",{className:"mt-16 text-center text-sm text-gray-400","data-testid":"social-members-empty",children:"Nou pa jwenn okenn manm."}):(0,g.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4","data-testid":"social-members-grid",children:P.map(e=>(0,g.jsxs)("button",{"data-testid":"social-member-".concat(e.user_id),onClick:()=>B(e.user_id),className:"group flex flex-col items-center rounded-2xl surface-2 p-4 text-center ring-1 ring-white/10 transition-transform hover:scale-[1.02] hover:ring-[#00F0FF]/40",children:[(0,g.jsx)("img",{src:e.picture,alt:e.name,className:"h-20 w-20 rounded-2xl object-cover ring-2 ring-white/10"}),(0,g.jsx)("p",{className:"mt-3 max-w-full truncate text-sm font-bold text-white",children:e.name}),(0,g.jsx)("div",{className:"mt-1.5",children:(0,g.jsx)(i.s,{level:e.level,tier:e.tier,size:"sm"})}),(e.is_performer||e.is_moderator||e.is_admin)&&(0,g.jsx)("span",{className:"mt-2 rounded-full px-2 py-0.5 text-[10px] font-bold uppercase ".concat(e.is_admin?"bg-[#FF2A5F]/20 text-[#FF2A5F]":e.is_moderator?"bg-cyan-500/20 text-cyan-300":"bg-[#FFD700]/20 text-[#FFD700]"),children:e.is_admin?"admin":e.is_moderator?"modeat\xe8":"p\xe8f\xf2m\xe8"})]},e.user_id))})]})]})}},5087(e,t,s){s.d(t,{A:()=>a});const a=(0,s(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"}]])},4830(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},9292(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},2489(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])}}]); 3//# sourceMappingURL=75.25938b7f.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.