import{a as m,p as x,n as p,j as e,L as h,aX as i,v as j,x as r,ag as g,ah as u,ak as N,y as a,M as f}from"./index-oAPVDf-r.js";import{R as v}from"./ROICalculator-DVEYTdny.js";import{A as b}from"./arrow-left-m6EiMbb-.js";import{T as t}from"./trending-up-Be0ZnpBQ.js";import{I as w}from"./image-DuU1QaV8.js";import{E as y}from"./eye-G89nJUb2.js";import"./badge-Qwi4CUXx.js";import"./select-Bi-TzF3J.js";import"./chevron-down-QDDHZwZg.js";import"./check-CG8zylH4.js";import"./index-B-MEeiYV.js";import"./megaphone-CztbyYca.js";const z=()=>{const{t:s}=m(),{user:d,isLoading:c}=x(),{ordererProfile:n,isLoading:l,isActiveOrderer:o}=p();return c||l?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx(h,{className:"w-8 h-8 animate-spin text-primary"})}):d?!n||!o?e.jsx(i,{to:"/orderer/dashboard",replace:!0}):e.jsxs("div",{className:"min-h-screen bg-background text-foreground p-6",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx(j,{variant:"ghost",size:"icon",onClick:()=>window.close(),children:e.jsx(b,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[e.jsx(t,{className:"w-6 h-6 text-primary"}),"Ads"]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Kampanjplanering och ROI-beräkning"})]})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[e.jsxs(r,{className:"glass-card",children:[e.jsxs(g,{children:[e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(t,{className:"w-5 h-5 text-primary"}),s("orderer.ads.title")]}),e.jsx(N,{children:s("orderer.ads.description")})]}),e.jsx(a,{className:"space-y-4",children:e.jsxs("div",{className:"grid gap-3",children:[e.jsx(r,{className:"bg-secondary/30",children:e.jsxs(a,{className:"p-4 flex items-center gap-4",children:[e.jsx(w,{className:"w-8 h-8 text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:s("orderer.ads.brandAwareness")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("orderer.ads.brandAwarenessDesc")})]})]})}),e.jsx(r,{className:"bg-secondary/30",children:e.jsxs(a,{className:"p-4 flex items-center gap-4",children:[e.jsx(f,{className:"w-8 h-8 text-accent"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:s("orderer.ads.localPresence")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("orderer.ads.localPresenceDesc")})]})]})}),e.jsx(r,{className:"bg-secondary/30",children:e.jsxs(a,{className:"p-4 flex items-center gap-4",children:[e.jsx(y,{className:"w-8 h-8 text-warning"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:s("orderer.ads.impressions")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("orderer.ads.impressionsDesc")})]})]})})]})})]}),e.jsx("div",{className:"lg:col-span-1",children:e.jsx(v,{})})]})]}):e.jsx(i,{to:"/auth",replace:!0})};export{z as default};