import{P as e,k as r,L as t,I as s,t as a,al as i,_ as __,B as l}from"./DE-SIukw.js";import{F as n}from"./6Np5euiX.js";const c=({link:a,children:i,className:l,external:n=!1,badge:c})=>e.jsxs(t,{to:a,className:r("text-md text-black items-center flex gap-1 max-[700px]:py-[23px] focus:outline-hidden relative ease-in-out duration-200 border-b-3 border-b-transparent [&.active]:border-b-primary hover:border-b-3 hover:border-b-primary-light hover:text-black",l),...n&&{target:"_blank"},children:[i,c&&e.jsx("div",{className:r("rounded-full flex items-center justify-center text-[8px] font-bold bg-rsp-error text-white max-h-3 min-w-3 px-0.5 absolute top-2 -right-3",c.classes),children:c.label}),n&&e.jsx(s,{icon:"inline-external-link"})]}),o=a("min-w-full",{variants:{variant:{default:"bg-white",transparent:"bg-transparent"}},defaultVariants:{variant:"default"}}),m=({tabs:t,actions:s,logo:a,variant:i,className:l})=>e.jsx("div",{className:o({variant:i}),children:e.jsxs(n,{direction:"row",className:r("max-w-[125rem] mx-auto justify-between items-stretch flex-wrap max-[700px]:!gap-3 !gap-8",l),children:[e.jsx(n,{direction:"row",className:"min-w-[4.375rem] min-h-[4.375rem] items-center justify-center",children:a}),e.jsx(n,{direction:"row",className:"order-3 sm:order-2 w-full sm:w-fit flex-grow justify-center sm:justify-start",children:t}),e.jsx(n,{direction:"row",className:"order-2 sm:order-3 items-center",children:s})]})}),d=({children:r})=>{const{metricool:t,metricoolDynamicUrl:a}=i();return e.jsxs(n,{direction:"column",className:"h-full w-full min-[125rem]:items-center",children:[e.jsx(m,{className:"px-4",tabs:[e.jsx(c,{link:"/",children:__("Dashboard","metricool")}),e.jsx(c,{link:"/settings",children:__("Settings","metricool")}),e.jsx(c,{link:a.withPath("planner/calendar"),external:!0,children:__("Planner","metricool")})],actions:[e.jsx(l,{variant:"black",link:t.metricool_help_url,children:e.jsxs(n,{direction:"row",className:"!gap-2 items-center",children:[e.jsx(s,{icon:"faq",className:"text-white"}),__("Help Center","metricool")]})}),!t.account?.is_premium&&e.jsx(l,{variant:"primary-gradient",link:a.withPath("user-settings/plan"),children:e.jsxs(n,{direction:"row",className:"!gap-2 items-center",children:[e.jsx(s,{icon:"sparkle",className:"text-secondary"}),__("Upgrade","metricool")]})})],logo:e.jsx("div",{className:"flex min-w-[4.375rem] min-h-[4.375rem] items-center justify-center",children:e.jsx("img",{src:`${t.assets_url}img/mc-logo.svg`,alt:__("Metricool logo","metricool")})})}),r]})};export{d as A,m as H};
