PageSourceSearch

https://sorareinside.com/assets/NotificationsView-39z1Hs4A.js

js sorareinside.com collected 2026-09-24 14:18:32 UTC 4,605 bytes, 2 lines download raw bytes

1import{e as d,U as k,aH as L,p as v,an as C,aq as M,x as A,a2 as F,j as e,S as l,G as i,T as G,c as R,g,a as m,aI as D,v as V,aJ as B,i as P,d as x,B as f,I as U,aK as O,aL as Z,r as H,l as q}from"./index-6kkfZ8eQ.js";import{L as J}from"./LineupView-CZ7bVu1r.js";import{I as K}from"./IconSettings-DEG0_vwZ.js";import"./Textarea-Sbry6_Ep.js";import"./BanUserDialog-DJ98p3as.js";import"./Select-DmzXqFWa.js";import"./IconBan-C5g1SLUW.js";import"./LazyTabPanel-Z7o8ze5z.js";import"./use-in-viewport-CKRtQfO-.js";import"./Tabs-i94DF75v.js";import"./LineupQA-B1HZY9Zl.js";import"./ProjectedScoreReliabilityTooltip-D4fSOVee.js";import"./utils-CjUEt4vh.js";import"./with-selector-CBbEXJpv.js";import"./Field-D66Ef3uK.js";import"./LineupPosition-BGqIt-mt.js";import"./LazyNScoresPopoverDropdown-A8YzxwW-.js";import"./use-toggle-jBpcNZzb.js";import"./CartesianChart-GMIm-G1D.js";import"./NumberInput-92q8JWU2.js";import"./clamp-DE0vwPH8.js";import"./IconTrash-C0_W49k1.js";import"./IconClock-DNFdvu3n.js";import"./SquadChangeConfidenceBadge-CDQ5gpML.js";import"./dateUtils-CYpPEYLs.js";import"./LineupExpertInfo-CrSe74Ou.js";import"./LineupPlayerUpdateCard-DCQeGwXG.js";import"./IconUser-CGUCsXSa.js";import"./IconCircleCheck-CJIO4pPE.js";import"./utils-Bew149Hh.js";import"./Switch-7RBNqJUW.js";import"./IconEyeOff-DfBw0-Lc.js";import"./IconEye-8-lxNvAN.js";import"./CopyButton-CnC7JkLn.js";import"./IconCopy-iFBR_y9L.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"b499a2f8754325c9a6c3728ee5938895c8edcd80"};var r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="f6bb99dc-2aaa-47e4-944a-d94c9088c7dc",t._sentryDebugIdIdentifier="sentry-dbid-f6bb99dc-2aaa-47e4-944a-d94c9088c7dc")}catch{}})();const Q="_notificationItem_kuf65_1",W="_notificationItemSelected_kuf65_8",j={notificationItem:Q,notificationItemSelected:W};x.extend(H);x.extend(q);const p=16,Y=50,Me=()=>{const{currentUserIsExpert:t}=d.useContext(k),[r,u]=d.useState("all"),{notifications:o,isLoading:I,hasNextPage:y,fetchNextPage:b,markRead:w,markAllRead:_}=L(Y,r),[c,S]=d.useState(null),[T,z]=d.useState(null),a=v("(max-width: 50em)"),N=C(),{colorScheme:E}=M(),n=(o==null?void 0:o.filter(s=>!s.is_read).length)||0,h=A();return F("notificationsView"),e.jsxs(l,{children:[e.jsxs(i,{gap:"sm",wrap:"nowrap",align:"center",children:[e.jsx(G,{order:2,ff:"Urbanist",children:"Notifications"}),n>0&&e.jsx(R,{size:"md",color:"red",children:n>99?"99+":n})]}),e.jsxs(i,{mb:"sm",align:"end",justify:"space-between",children:[e.jsxs(i,{gap:"xs",wrap:"nowrap",children:[e.jsx(g,{disabled:!n||n<1,size:"xs",variant:"light",onClick:()=>_(),children:"Mark all as read"}),e.jsx(g,{variant:"light",size:"xs",leftSection:e.jsx(K,{size:14}),onClick:()=>{h("/user-account?activeTab=notifications")},children:"Settings"})]}),t?e.jsxs(l,{gap:4,children:[e.jsx(m,{size:"xs",c:"dimmed",children:"Filter by type:"}),e.jsx(D,{type:r,toggleType:u})]}):null]}),I?e.jsx(V,{size:"sm"}):o.length===0?e.jsxs(i,{gap:"xs",mt:"xs",justify:"center",children:[e.jsx(B,{size:14,color:"gray"}),e.jsx(m,{size:"sm",mt:"xs",mb:"sm",c:"dimmed",children:"No notifications yet"})]}):e.jsxs(i,{wrap:"nowrap",align:"flex-start",children:[e.jsx(l,{style:{flexGrow:1},children:e.jsxs(e.Fragment,{children:[e.jsx(l,{gap:0,style:{borderRight:a||!c?"none":`1px solid ${N.colors.gray[E==="light"?3:8]}`},children:o.map(s=>e.jsxs(l,{gap:"xs",className:[j.notificationItem].concat(c&&T===s.id?j.notificationItemSelected:[]).join(" "),py:"md",px:a?0:"xs",onClick:()=>{w(s.id),a||!s.lineup_id?h(s.target_url):(S(s.lineup_id),z(s.id))},children:[e.jsx(i,{children:e.jsx(P,{label:x(s.created_at).format("lll"),children:e.jsxs(m,{size:"xs",c:"dimmed",children:[x(s.created_at).fromNow(),":"]})})}),e.jsxs(i,{px:a?0:"sm",wrap:"nowrap",align:"flex-start",justify:"space-between",gap:4,children:[e.jsxs(i,{wrap:"nowrap",align:"center",gap:"xs",children:[s.image_url&&e.jsx(f,{w:p,h:p,children:e.jsx(U,{w:p,h:p,fit:"contain",src:s.image_url,style:{filter:"drop-shadow(0 0 1px rgba(0, 0, 0, 0.5))"}})}),e.jsx(m,{size:a?"xs":"sm",dangerouslySetInnerHTML:{__html:O.sanitize(s.content,{ALLOWED_TAGS:["b","i","em","strong"]})}})]}),!s.is_read&&e.jsx(Z,{color:"red",size:14,style:{paddingTop:"4px"}})]})]},s.id))}),y&&e.jsx(g,{size:a?"xs":"sm",mt:"md",mb:"sm",variant:"light",onClick:()=>b(),children:"Load more"})]})}),c?e.jsx(f,{w:420,children:e.jsx(J,{lineupId:c,forceMobileView:!0})}):null]})]})};export{Me as default};
2//# sourceMappingURL=NotificationsView-39z1Hs4A.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.