1import{aP as m,aQ as u}from"./index-CpeGhXo5.js";import{P as p,d as e}from"./mockData-CiONmYY6.js";const g=[{id:"w1",title:"Daily Standup Facilitation",description:"Run the engineering standup every weekday morning. Capture blockers and post summary.",responsibility:"Engineering Lead",type:"Meeting",frequency:"Daily",estTime:15,bestTime:"Morning",steps:["Join Zoom 5 min before","Open shared notes","Round-robin update","Capture blockers","Post summary in Slack"],tools:["Zoom","Slack","Notion"],attachments:[],visibility:"Team",notes:"Keep under 15 min.",ownerId:"p1",status:"Approved",createdAt:e(-30),submittedAt:e(-29)},{id:"w2",title:"Monthly P&L Review",description:"Compile P&L statement and present to leadership.",responsibility:"Finance Manager",type:"Process",frequency:"Monthly",estTime:240,bestTime:"End of Day",steps:["Pull GL data","Reconcile accounts","Build P&L sheet","Variance analysis","Present to CFO"],tools:["Tally","Excel","PowerPoint"],attachments:[],visibility:"Department",notes:"",ownerId:"p3",status:"Approved",createdAt:e(-60),submittedAt:e(-58)},{id:"w3",title:"Lead Qualification Checklist",description:"Qualify inbound leads using BANT before passing to AE.",responsibility:"SDR",type:"Checklist",frequency:"Daily",estTime:20,bestTime:"Anytime",steps:["Verify budget range","Confirm authority","Identify need","Establish timeline","Log in CRM"],tools:["Salesforce","LinkedIn","Gmail"],attachments:[],visibility:"Organization",notes:"",ownerId:"p2",status:"Submitted",createdAt:e(-3),submittedAt:e(-2)},{id:"w4",title:"Weekly Sprint Planning",description:"Plan upcoming sprint with engineering team.",responsibility:"Scrum Master",type:"Workflow",frequency:"Weekly",estTime:90,bestTime:"Morning",steps:["Review backlog","Capacity planning","Sprint goals","Story estimation","Commit"],tools:["Jira","Confluence"],attachments:[],visibility:"Team",notes:"",ownerId:"p4",status:"Submitted",createdAt:e(-1),submittedAt:e(-1)},{id:"w5",title:"Customer Onboarding SOP",description:"Standard onboarding for new enterprise customers.",responsibility:"Customer Success",type:"SOP",frequency:"Ad-hoc",estTime:480,bestTime:"Anytime",steps:["Kickoff call","Account provisioning","Data migration","Training session","Go-live review"],tools:["Zoom","Notion","Salesforce"],attachments:[],visibility:"Department",notes:"",ownerId:"p6",status:"Draft",createdAt:e(-2)},{id:"w6",title:"Weekly Marketing Report",description:"Compile and distribute weekly marketing performance report.",responsibility:"Marketing Manager",type:"Report",frequency:"Weekly",estTime:60,bestTime:"End of Day",steps:["Pull analytics","Compile metrics","Write commentary","Distribute"],tools:["GA4","Excel","Slack"],attachments:[],visibility:"Organization",notes:"",ownerId:"p8",status:"Rejected",rejectionReason:"Add CAC and LTV metrics.",createdAt:e(-10),submittedAt:e(-8)},{id:"w7",title:"Code Review Process",description:"Review pull requests within 24h.",responsibility:"Senior Engineer",type:"Process",frequency:"Daily",estTime:45,bestTime:"Afternoon",steps:["Pull latest","Run tests","Review code","Leave comments","Approve or request changes"],tools:["GitHub","VS Code"],attachments:[],visibility:"Team",notes:"",ownerId:"p7",status:"Approved",createdAt:e(-45),submittedAt:e(-44)},{id:"w8",title:"Quarterly Budget Planning",description:"Department budget allocation for next quarter.",responsibility:"Department Head",type:"Activity",frequency:"Quarterly",estTime:600,bestTime:"Morning",steps:["Review previous quarter","Forecast needs","Allocate by category","Get approval"],tools:["Excel","Tally"],attachments:[],visibility:"Department",notes:"",ownerId:"p3",status:"Approved",createdAt:e(-90),submittedAt:e(-88)}],y=[{id:"t1",wowId:"w1",assigneeId:"p4",assignedById:"p1",status:"In Progress",assignedAt:e(-5),dueDate:e(7)},{id:"t2",wowId:"w7",assigneeId:"p9",assignedById:"p1",status:"Not Started",assignedAt:e(-2),dueDate:e(14)},{id:"t3",wowId:"w2",assigneeId:"p3",assignedById:"p1",status:"Completed",assignedAt:e(-20),dueDate:e(-5)}],w=[{id:"a1",name:"Notify manager on submit",trigger:"WoW Submitted",action:"Notify Manager",active:!0,lastTriggered:"2h ago"},{id:"a2",name:"Notify employee on approve",trigger:"WoW Approved",action:"Notify Employee",active:!0,lastTriggered:"5h ago"},{id:"a3",name:"Notify on reject with reason",trigger:"WoW Rejected",action:"Notify Employee + Reason",active:!0,lastTriggered:"1d ago"},{id:"a4",name:"Notify trainee on assign",trigger:"Training Assigned",action:"Notify Trainee",active:!0},{id:"a5",name:"Training reminder T-3 days",trigger:"3 days before due",action:"Send Reminder",active:!1}],A=m()(u(a=>({wows:g,trainings:y,automations:w,addWow:i=>{const s=`w${Date.now()}`;return a(t=>({wows:[{...i,id:s,createdAt:new Date().toISOString().slice(0,10)},...t.wows]})),s},updateWow:(i,s)=>a(t=>({wows:t.wows.map(n=>n.id===i?{...n,...s}:n)})),deleteWow:i=>
1a(s=>({wows:s.wows.filter(t=>t.id!==i)})),approveWow:i=>a(s=>({wows:s.wows.map(t=>t.id===i?{...t,status:"Approved"}:t)})),rejectWow:(i,s)=>a(t=>({wows:t.wows.map(n=>n.id===i?{...n,status:"Rejected",rejectionReason:s}:n)})),assignTraining:(i,s,t,n,l="p1")=>a(c=>{const o=[];return i.forEach(r=>{s.forEach(d=>{o.push({id:`t${Date.now()}-${r}-${d}`,wowId:r,assigneeId:d,assignedById:l,dueDate:t,note:n,status:"Not Started",assignedAt:new Date().toISOString().slice(0,10)})})}),{trainings:[...o,...c.trainings]}}),setTrainingStatus:(i,s)=>a(t=>({trainings:t.trainings.map(n=>n.id===i?{...n,status:s}:n)})),toggleAutomation:i=>a(s=>({automations:s.automations.map(t=>t.id===i?{...t,active:!t.active}:t)}))}),{name:"crm-wow-state"})),v=a=>p.find(i=>i.id===a)??p[0];export{v as p,A as u};
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.