import{K as e,l as t,M as c}from"./index-CqfREQhZ.js";import{P as d,C as a,B as o}from"./AdminShell-Dht4Lyqh.js";import{M as m}from"./message-square-yCU9v3Wo.js";import{U as x}from"./users-Bozo9HJ_.js";import"./admin-B-WQz-EM.js";import"./products-Q1MHi1iw.js";import"./shopping-bag-CIMOvT4N.js";import"./package-D58BUA8K.js";import"./star-DW-815Mn.js";import"./settings-Bm4D1Whm.js";import"./plus-DKTwDupB.js";const h=[{name:"Black Friday Mega Sale",channel:"Email",sent:12450,opens:5821,clicks:1834,status:"Sent"},{name:"New Arrivals — Fashion Week",channel:"Push",sent:8930,opens:6210,clicks:1102,status:"Sent"},{name:"Flash Sale Reminder",channel:"SMS",sent:4500,opens:4500,clicks:832,status:"Sent"},{name:"Weekend Discount Drop",channel:"Email",sent:0,opens:0,clicks:0,status:"Scheduled"}];function M(){return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Marketing",subtitle:"Campaigns, newsletter and promotions",actions:e.jsxs("button",{className:"inline-flex items-center gap-2 bg-[#FF7A00] text-white px-4 h-10 rounded-full text-sm font-semibold",children:[e.jsx(t,{className:"w-4 h-4"})," New Campaign"]})}),e.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[e.jsx(a,{className:"p-5",children:e.jsx(l,{I:c,label:"Email Campaigns",value:"24",color:"#002D72"})}),e.jsx(a,{className:"p-5",children:e.jsx(l,{I:o,label:"Push Notifications",value:"58",color:"#FF7A00"})}),e.jsx(a,{className:"p-5",children:e.jsx(l,{I:m,label:"SMS Sent",value:"12.4K",color:"#10b981"})}),e.jsx(a,{className:"p-5",children:e.jsx(l,{I:x,label:"Newsletter Subs",value:"3,842",color:"#1e60c3"})})]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-4",children:[e.jsxs(a,{className:"lg:col-span-2 overflow-hidden",children:[e.jsx("div",{className:"px-5 py-4 border-b border-border",children:e.jsx("h3",{className:"font-bold",children:"Recent Campaigns"})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"text-left text-xs text-muted-foreground bg-secondary/50",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-5 py-3 font-medium",children:"Campaign"}),e.jsx("th",{className:"px-5 py-3 font-medium",children:"Channel"}),e.jsx("th",{className:"px-5 py-3 font-medium",children:"Sent"}),e.jsx("th",{className:"px-5 py-3 font-medium",children:"Open Rate"}),e.jsx("th",{className:"px-5 py-3 font-medium",children:"CTR"})]})}),e.jsx("tbody",{children:h.map(s=>e.jsxs("tr",{className:"border-t border-border",children:[e.jsx("td",{className:"px-5 py-3 font-medium",children:s.name}),e.jsx("td",{className:"px-5 py-3",children:s.channel}),e.jsx("td",{className:"px-5 py-3",children:s.sent.toLocaleString()}),e.jsx("td",{className:"px-5 py-3",children:s.sent?`${Math.round(s.opens/s.sent*100)}%`:"—"}),e.jsx("td",{className:"px-5 py-3 font-semibold text-[#FF7A00]",children:s.sent?`${Math.round(s.clicks/s.sent*100)}%`:"—"})]},s.name))})]})})]}),e.jsxs(a,{className:"p-5",children:[e.jsx("h3",{className:"font-bold mb-3",children:"Quick Send"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Push a promotional message to your audience"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("select",{className:"w-full bg-secondary rounded-xl px-4 h-11 text-sm outline-none",children:[e.jsx("option",{children:"Email — All subscribers"}),e.jsx("option",{children:"Push — App users"}),e.jsx("option",{children:"SMS — Customers"})]}),e.jsx("input",{className:"w-full bg-secondary rounded-xl px-4 h-11 text-sm outline-none",placeholder:"Subject / Title"}),e.jsx("textarea",{className:"w-full bg-secondary rounded-xl px-4 py-3 text-sm outline-none min-h-28",placeholder:"Message..."}),e.jsxs("button",{className:"w-full h-11 rounded-xl bg-[#FF7A00] text-white font-semibold inline-flex items-center justify-center gap-2",children:[e.jsx(t,{className:"w-4 h-4"})," Send Now"]})]})]})]})]})}function l({I:s,label:r,value:i,color:n}){return e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl grid place-items-center",style:{background:`${n}1a`,color:n},children:e.jsx(s,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:r}),e.jsx("div",{className:"text-2xl font-extrabold",children:i})]})]})}export{M as component};
