PageSourceSearch

https://4cd.ru/build/assets/ReportedStoryNotification-BQIuvzfj.js

js 4cd.ru collected 2026-10-05 00:11:07 UTC 2,173 bytes, 1 lines download raw bytes

1import{_ as p}from"./Link-O9_VRuKw.js";import{i as h,o as l,c as g,w as x,e as y,g as r,a as t,b as _,u as o,t as a,f as d,W as v}from"./app-8CjosSoj.js";import{C as k}from"./alarm-linear-CjnvPVmq.js";import{d as c}from"./index-XKR7_OG1.js";const b={class:"flex items-start justify-center gap-3"},w=["src"],C={class:"flex flex-col pr-4"},N={class:"text-endpoint text-xs flex items-center gap-x-1"},B={class:"line-clamp-1 text-foreground"},R={class:"font-semibold"},j={class:"ml-1"},S={class:"line-clamp-2"},V={class:"line-clamp-1 mt-1 flex items-center gap-1 text-foreground"},W={class:"font-semibold"},$={key:0,class:"mt-1 text-endpoint"},A={key:0,class:"flex absolute h-2 w-2 top-1/2 right-1"},O={__name:"ReportedStoryNotification",props:{notification:Object},setup(e){const i=e,f=h(()=>i.notification.data.user.name?i.notification.data.user.name:"@"+i.notification.data.user.nickname),u=s=>{v.post(route("notifications.marked-reported-story",s))};return(s,n)=>{const m=p;return e.notification.data.type==="reported_story"?(l(),g(m,{key:0,href:s.route("story.show",e.notification.data.story.slug),onClick:n[0]||(n[0]=y(D=>u(e.notification.id),["prevent"])),class:"relative group p-2 sm:p-4 text-sm flex items-center rounded-xl gap-x-2 justify-between hover:bg-muted"},{default:x(()=>[t("div",b,[t("img",{src:e.notification.data.user.avatar,class:"h-8 w-8 rounded-full bg-background",alt:"avatar"},null,8,w),t("div",C,[t("span",N,[_(o(k),{class:"h-3 w-3"}),t("span",null,a(e.notification.created_at.human),1)]),t("div",B,[t("span",R,a(o(f)),1),t("span",j,a(s.__("reported the story")),1)]),t("div",S,[t("span",null,a(o(c)(e.notification.data.story.title)),1)]),t("div",V,[t("span",null,a(s.__("Reason")+":"),1),t("span",W,a(o(c)(e.notification.data.reason)),1)]),e.notification.data.message?(l(),d("div",$,a(o(c)(e.notification.data.message)),1)):r("",!0)])]),e.notification.read_at===null?(l(),d("div",A,n[1]||(n[1]=[t("span",{class:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary/50"},null,-1),t("span",{class:"relative inline-flex rounded-full h-2 w-2 bg-primary/90"},null,-1)]))):r("",!0)]),_:1},8,["href"])):r("",!0)}}};export{O as default};

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.