PageSourceSearch

https://lms.zcmc-edu.com/assets/Notifications-Dp_y8qVx.js

js zcmc-edu.com collected 2026-10-02 00:36:32 UTC 1,697 bytes, 1 lines download raw bytes

1import{d as f,r as g,u as h,o as x,az as k,b as o,f as t,F as c,n as v,i as N,m as i,h as p,t as r,v as w,x as a,_ as C}from"./index-Ckf4QHfO.js";const V={key:0,class:"d-flex shadow-lg p-3 mt-2 notif-container w-100"},B={class:"w-100"},S={class:"d-flex justify-content-end"},E=["onClick"],F={class:"time-ago text-primary"},H={class:"notif-name"},L=["onClick"],R={key:0},$={key:1},j={key:2},z=f({__name:"Notifications",setup(D){const u=w();g(!0);const l=h();x(async()=>{m()});function _(n){n.type=="exam"&&n.message.has_button?u.push("/exams"):n.type=="va"&&n.message.has_button?u.push("/schedule"):n.type=="new_lesson"&&n.message.has_button&&u.push("/lesson-categories")}async function m(){l.setNoticationCount(0),k(l.user.id)}async function y(n,s){n&&(l.notifications[s].isHidden=!0)}return(n,s)=>(a(),o(c,null,[s[4]||(s[4]=t("h4",{class:"pb-3"},"Notifications",-1)),(a(!0),o(c,null,v(N(l).notification,(e,d)=>(a(),o("div",{key:d},[e.isHidden?i("",!0):(a(),o("div",V,[t("div",B,[t("div",S,[t("button",{onClick:b=>y(e.id,d),class:"btn-delete"},[...s[0]||(s[0]=[t("i",{class:"bi bi-x-circle"},null,-1)])],8,E)]),t("p",null,[t("span",F,r(e.time_ago),1),s[1]||(s[1]=p()),s[2]||(s[2]=t("br",null,null,-1)),t("span",H,r(e?.message.title),1),s[3]||(s[3]=t("br",null,null,-1)),p(" "+r(e?.message.message),1)]),e?.message?.has_button?(a(),o("button",{key:0,class:"btn btn-sm btn-primary rounded-pill",onClick:b=>_(e)},[e?.type=="va"?(a(),o("span",R,"Schedule assessment")):i("",!0),e?.type=="new_lesson"?(a(),o("span",$,"View Lessons")):i("",!0),e?.type=="exams"?(a(),o("span",j,"View Exam")):i("",!0)],8,L)):i("",!0)])]))]))),128))],64))}}),M=C(z,[["__scopeId","data-v-28d32226"]]);export{M 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.