PageSourceSearch

https://cvexpress.app/_next/static/chunks/8952.198208e9f97c4cbe.js

js cvexpress.app collected 2026-10-09 22:08:41 UTC 8,415 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{35942:(e,s,t)=>{t.d(s,{F:()=>i});var a=t(95155),r=t(89349),l=t(12115),d=t(40980);let i=l.forwardRef(({className:e,children:s,...t},l)=>(0,a.jsxs)(r.bL,{ref:l,className:(0,d.cn)("relative overflow-hidden",e),...t,children:[(0,a.jsx)(r.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(n,{}),(0,a.jsx)(r.OK,{})]}));i.displayName=r.bL.displayName;let n=l.forwardRef(({className:e,orientation:s="vertical",...t},l)=>(0,a.jsx)(r.VM,{ref:l,orientation:s,className:(0,d.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:(0,a.jsx)(r.lr,{className:"relative flex-1 rounded-full bg-border"})}));n.displayName=r.VM.displayName},88952:(e,s,t)=>{t.r(s),t.d(s,{NotificationSidebar:()=>w});var a=t(95155),r=t(89239),l=t(35942),d=t(99412),i=t(93075),n=t(40980),o=t(15357),c=t(91992),x=t(12651),m=t(41585),p=t(13545),h=t(17620),f=t(68822),u=t(61767),b=t(83687),N=t(86901);let g=e=>{let s=(e.title||"").toLowerCase();return"announcement"===e.type||s.includes("update")||s.includes("what's new")||s.includes("new feature")},j=({notification:e,onMarkAsRead:s})=>{let t=g(e),r=t?"announcement":e.type,l=c.A.sanitize(e.description).replace(/<p>\s*<\/p>/g,"").replace(/<br\s*\/?>/g,"").replace(/<hr\s*\/?>/g,"<div class='my-2 border-t border-border/40'></div>");return(0,a.jsxs)("div",{onClick:()=>e.is_new&&s(e.id),className:(0,n.cn)("relative flex gap-3 rounded-xl px-3 py-3 cursor-pointer transition-all","hover:bg-black/5 dark:hover:bg-white/5",e.is_new?"bg-white dark:bg-white/5 border border-border/40":"opacity-80"),children:[e.is_new&&(0,a.jsx)("span",{className:"absolute left-0 top-3 bottom-3 w-[2px] rounded-full bg-primary"}),(0,a.jsx)("div",{className:"mt-0.5 shrink-0",children:(0,a.jsx)("div",{className:"h-9 w-9 rounded-full flex items-center justify-center bg-primary/10",children:(e=>{switch(e){case"success":return(0,a.jsx)(x.A,{className:"h-5 w-5 text-green-500"});case"warning":return(0,a.jsx)(m.A,{className:"h-5 w-5 text-yellow-500"});case"error":return(0,a.jsx)(p.A,{className:"h-5 w-5 text-red-500"});case"announcement":return(0,a.jsx)(h.A,{className:"h-5 w-5 text-purple-500"});default:return(0,a.jsx)(f.A,{className:"h-5 w-5 text-blue-400"})}})(r)})}),(0,a.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,a.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("h4",{className:"text-sm font-semibold text-foreground leading-tight",children:[e.title,t&&(0,a.jsx)("span",{className:"ml-2 text-[9px] font-bold uppercase text-purple-600 dark:text-purple-300",children:"Update"})]}),(0,a.jsx)("span",{className:"text-[10px] text-muted-foreground",children:(0,o.m)(new Date(e.created_at),{addSuffix:!0})})]})}),(0,a.jsx)("div",{className:(0,n.cn)("prose prose-sm max-w-none leading-snug dark:prose-invert","prose-p:my-1 prose-li:my-1 prose-hr:my-1","text-[13px] text-muted-foreground"),dangerouslySetInnerHTML:{__html:l}})]}),e.is_new&&(0,a.jsx)("div",{className:"absolute top-4 right-4 h-2 w-2 rounded-full bg-primary animate-pulse"})]})},w=({isOpen:e,onClose:s})=>{let{notifications:t,markAsRead:n,markAllAsRead:o,deleteNotification:c,unreadCount:x}=(0,i.E)();return(0,a.jsx)(d.cj,{open:e,onOpenChange:s,children:(0,a.jsxs)(d.h,{className:"w-full sm:max-w-md p-0 flex flex-col h-full border-l border-border/50 bg-[#ECF4E8] dark:bg-[#0F172A]",children:[(0,a.jsx)(d.Fm,{className:"p-6 border-b border-border/40 bg-white/50 dark:bg-black/20 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:(0,a.jsx)(u.A,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(d.qp,{className:"text-xl font-bold text-[#111827] dark:text-[#F8FAFC]",children:"Notifications"}),(0,a.jsx)(d.Qs,{className:"text-sm text-[#4B5563] dark:text-[#94A3B8]",children:x>0?`You have ${x} unread message${x>1?"s":""}`:"All caught up!"})]})]}),x>0&&(0,a.jsxs)(r.$,{variant:"ghost",size:"sm",onClick:o,className:"text-primary hover:text-primary/80 hover:bg-primary/5 text-xs font-medium gap-2",children:[(0,a.jsx)(b.A,{className:"h-4 w-4"}),"Mark all as read"]})]})}),(0,a.jsx)(l.F,{className:"flex-1 px-3 py-4",children:(0,a.jsx)("div",{className:"space-y-6",children:t.length>0?(0,a.jsxs)(a.Fragment,{children:[t.some(g)&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("h3",{className:"flex items-center gap-2 px-1 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:[(0,a.jsx)(N.A,{className:"h-3 w-3 text-primary"}),"What's New"]}),(0,a.jsx)("div",{className:"space-y-3",children:t.filter(g).map(e=>(0,a.jsx)(j,{notification:e,onMarkAsRead:n}
1,e.id))})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[t.some(g)&&t.some(e=>!g(e))&&(0,a.jsx)("h3",{className:"px-1 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Recent"}),(0,a.jsx)("div",{className:"space-y-3",children:t.filter(e=>!g(e)).map(e=>(0,a.jsx)(j,{notification:e,onMarkAsRead:n},e.id))})]})]}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 text-center space-y-4",children:[(0,a.jsx)("div",{className:"p-4 rounded-full bg-slate-100 dark:bg-slate-800",children:(0,a.jsx)(u.A,{className:"h-8 w-8 text-slate-400"})}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("p",{className:"text-slate-900 dark:text-white font-medium",children:"No notifications yet"}),(0,a.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:"When you have something new, it will appear here."})]})]})})}),t.length>0&&(0,a.jsx)("div",{className:"p-4 border-t border-border/40 bg-white/30 dark:bg-black/10",children:(0,a.jsx)("p",{className:"text-[10px] text-center text-[#9CA3AF] dark:text-[#64748B] uppercase tracking-widest font-medium",children:"CV Express"})})]})})}},99412:(e,s,t)=>{t.d(s,{CG:()=>c,Fm:()=>f,Qs:()=>b,cj:()=>o,h:()=>h,qp:()=>u});var a=t(95155),r=t(29483),l=t(18460),d=t(33210),i=t(12115),n=t(40980);let o=r.bL,c=r.l9;r.bm;let x=r.ZL,m=i.forwardRef(({className:e,...s},t)=>(0,a.jsx)(r.hJ,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s,ref:t}));m.displayName=r.hJ.displayName;let p=(0,l.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),h=i.forwardRef(({side:e="right",className:s,children:t,...l},i)=>(0,a.jsxs)(x,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(r.UC,{ref:i,className:(0,n.cn)(p({side:e}),s),...l,children:[t,(0,a.jsxs)(r.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));h.displayName=r.UC.displayName;let f=({className:e,...s})=>(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...s});f.displayName="SheetHeader";let u=i.forwardRef(({className:e,...s},t)=>(0,a.jsx)(r.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold text-foreground",e),...s}));u.displayName=r.hE.displayName;let b=i.forwardRef(({className:e,...s},t)=>(0,a.jsx)(r.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",e),...s}));b.displayName=r.VY.displayName}}]);

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.