1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33044],{7235:(e,t,s)=>{s.d(t,{d:()=>d});var a=s(95155),r=s(12115),l=s(27599),n=s(25016);let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.bL,{"data-slot":"switch",className:(0,n.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 toggle-button",s),...r,ref:t,children:(0,a.jsx)(l.zi,{"data-slot":"switch-thumb",className:(0,n.cn)("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})});d.displayName=l.bL.displayName},8327:(e,t,s)=>{s.d(t,{I:()=>r});var a=s(12115);function r(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches);let s=e=>{t(e.matches)};return e.addEventListener("change",s),()=>{e.removeEventListener("change",s)}},[]),e}},20515:(e,t,s)=>{s.d(t,{Wh:()=>n,aI:()=>d,op:()=>i});var a=s(95155);s(12115),s(97003),s(7235),s(85901);let r={delivered:{label:"Delivered",dotClass:"bg-emerald-400"},sent:{label:"Sent",dotClass:"bg-blue-400"},failed:{label:"Failed",dotClass:"bg-red-400"},partial:{label:"Partial",dotClass:"bg-amber-400"}},l={label:"",dotClass:"bg-muted-foreground/30"};function n(e){var t;let{status:s}=e,{label:n,dotClass:d}=null!=(t=r[s])?t:{...l,label:s};return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,a.jsx)("span",{className:"size-1.5 rounded-full shrink-0 ".concat(d)}),n]})}function d(e){let{frequency:t}=e;return(0,a.jsx)("span",{className:"text-[10px] font-medium capitalize text-muted-foreground/70 px-2 py-0.5 rounded-full border border-white/[0.08] bg-white/[0.04]",children:t})}function i(e){let{initials:t,className:s=""}=e;return(0,a.jsx)("div",{className:"size-8 rounded-full bg-white/[0.06] border border-white/[0.08] flex items-center justify-center text-xs font-semibold text-muted-foreground ".concat(s),children:t})}},55524:(e,t,s)=>{s.d(t,{y:()=>m});var a=s(95155),r=s(12115),l=s(24033),n=s(29502),d=s(6191),i=s(97003),c=s(68122),o=s(25016),x=s(59193),u=s(57541);function m(e){let{schedules:t,kpiStats:s,isLoading:m,selectedScheduleId:h,onSelectSchedule:p,onToggleSchedule:b,onDeleteSchedule:f,onClearSelectedSchedule:g,onNewSchedule:v,variant:j="rail",collapsible:N=!1,defaultExpanded:w=!0,className:k}=e,[y,z]=(0,r.useState)(w),C="embedded"===j,A=!N||y,E=(0,a.jsxs)("div",{className:"flex items-center justify-between px-4 pt-3 pb-1",children:[(0,a.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:"Schedules"}),(0,a.jsx)("span",{className:"text-[10px] text-muted-foreground/50",children:t.length})]});return(0,a.jsxs)("div",{className:(0,o.cn)(C?"relative overflow-hidden rounded-xl backdrop-blur-xl bg-white/[0.04] border border-border/40":"w-[280px] border-r border-border/50 bg-card/30 flex flex-col shrink-0",k),children:[(0,a.jsx)("div",{className:"grid grid-cols-2 gap-2 p-4",children:s.map(e=>(0,a.jsx)(u.$,{label:e.label,value:e.value,icon:e.icon},e.label))}),(0,a.jsx)("div",{className:"border-b border-border/30 mx-4"}),N?(0,a.jsxs)("button",{type:"button","aria-expanded":y,onClick:()=>z(e=>!e),className:"flex w-full items-center justify-between px-4 pt-3 pb-2 text-left transition-colors hover:text-foreground",children:[(0,a.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:"Schedules"}),(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-[10px] text-muted-foreground/50",children:t.length}),(0,a.jsx)(l.A,{className:(0,o.cn)("size-3.5 text-muted-foreground transition-transform",y&&"rotate-180")}
1)]})]}):E,A&&(0,a.jsx)("div",{className:(0,o.cn)("p-3 space-y-2",C?"max-h-72 overflow-y-auto":"flex-1 overflow-y-auto"),children:m?(0,a.jsx)("div",{"data-testid":"schedule-sidebar-loading",className:"space-y-2",children:[0,1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-lg border border-border/50 bg-card/70 p-3 space-y-2",children:[(0,a.jsx)(c.E,{className:"h-4 w-3/4"}),(0,a.jsx)(c.E,{className:"h-3 w-1/2"}),(0,a.jsx)(c.E,{className:"h-3 w-full"})]},e))}):t.length>0?t.map(e=>(0,a.jsx)(x.L,{schedule:e,isSelected:h===e.id,onSelect:()=>p(e.id),onToggle:()=>b(e.id,!e.isActive),onDelete:()=>{window.confirm('Delete schedule "'.concat(e.scheduleName,'"? This cannot be undone.'))&&(f(e.id),h===e.id&&g())}},e.id)):(0,a.jsxs)("div",{className:"text-center py-8 space-y-2",children:[(0,a.jsx)(n.A,{className:"size-8 mx-auto text-muted-foreground/30"}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground/50",children:"No schedules yet"}),(0,a.jsxs)(i.$,{variant:"outline",size:"sm",className:"text-xs",onClick:v,children:[(0,a.jsx)(d.A,{className:"size-3"}),"Create one"]})]})})]})}},57541:(e,t,s)=>{s.d(t,{$:()=>r});var a=s(95155);function r(e){let{label:t,value:s,icon:r}=e;return(0,a.jsx)("div",{className:"relative overflow-hidden rounded-lg bg-violet-100 dark:bg-violet-950/40 border border-violet-200/60 dark:border-violet-500/30 p-3 group",children:(0,a.jsxs)("div",{className:"relative flex items-center gap-2.5",children:[(0,a.jsx)(r,{className:"size-3.5 text-violet-400 shrink-0"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-lg font-bold text-violet-700 dark:text-violet-300 leading-none",children:s}),(0,a.jsx)("p",{className:"text-[10px] text-violet-500/70 mt-0.5 truncate",children:t})]})]})})}s(12115)},59193:(e,t,s)=>{s.d(t,{L:()=>u});var a=s(95155),r=s(97003),l=s(7235),n=s(26983),d=s(91169),i=s(29502),c=s(71360),o=s(20515),x=s(85901);function u(e){var t,s;let{schedule:u,isSelected:m,onSelect:h,onToggle:p,onDelete:b}=e,f=u.recipients.memberIds.length+u.recipients.externalEmails.length;return(0,a.jsxs)("div",{onClick:h,className:"relative overflow-hidden rounded-lg backdrop-blur-xl border cursor-pointer hover:border-border/60 transition-all duration-200 group ".concat(m?"bg-violet-500/10 border-violet-500/50":"bg-white/[0.03] border-border/40"),children:[u.isActive&&(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-brand-primary/30 to-transparent"}),(0,a.jsxs)("div",{className:"p-3 space-y-1.5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[(0,a.jsx)("h3",{className:"font-medium text-foreground text-[13px] truncate",children:u.scheduleName}),(0,a.jsx)(o.aI,{frequency:u.frequency})]}),(0,a.jsx)("div",{className:"flex items-center gap-1 shrink-0",onClick:e=>e.stopPropagation(),children:(0,a.jsx)(l.d,{checked:u.isActive,onCheckedChange:p,className:"scale-75"})})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-muted-foreground/60",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(n.A,{className:"size-2.5 opacity-50"}),(0,x.i2)(u.time)," ",null!=(t=x.a6[u.timezone])?t:u.timezone]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(d.A,{className:"size-2.5 opacity-50"}),f]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(i.A,{className:"size-2.5 opacity-50"}),null!=(s=x.uM[u.dateWindow])?s:u.dateWindow]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-muted-foreground/40",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[u.lastRunStatus&&(0,a.jsx)(o.Wh,{status:u.lastRunStatus}),(0,a.jsxs)("span",{children:[u.runCount," runs"]})]}),(0,a.jsx)("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",onClick:e=>e.stopPropagation(),children:(0,a.jsx)(r.$,{variant:"ghost",size:"sm",className:"h-5 w-5 p-0 text-muted-foreground/50 hover:text-destructive",onClick:b,children:(0,a.jsx)(c.A,{className:"size-3"})})})]})]})]})}},68122:(e,t,s)=>{s.d(t,{E:()=>l});var a=s(95155),r=s(25016);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-accent animate-pulse rounded-md",t),...s})}}}]);
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.