import{al as e,P as t,_ as __,B as s,I as i,p as o}from"./DE-SIukw.js";import"./C9KTcSXM.js";import{F as r}from"./6Np5euiX.js";import{B as n,b as c,L as a}from"./CFYXg6N-.js";import{u as l,A as d}from"./BhUfvnBT.js";const m=o("/_authorized/settings/connections")({component:()=>{const{metricoolDynamicUrl:o,metricool:m}=e(),{connectedAccountsQuery:{data:h,isLoading:j,error:p,refetch:u,errorUpdateCount:x}}=l();return t.jsx("div",{className:"flex flex-col min-w-full md:min-w-[50%]",children:t.jsx(r,{direction:"column",children:t.jsxs(n,{className:"justify-between min-h-58",children:[t.jsx(c,{title:__("Connections","metricool"),description:__("The accounts that are connected to Metricool","metricool")}),t.jsx(r,{direction:"column",children:h?t.jsx("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-2",children:h.map(e=>t.jsx(d,{...e,link:o.withPath(e.metricoolWebsitePath)}))}):t.jsx(a,{error:p,isLoading:j,errorUpdateCount:x,refetch:u,supportTicketLink:m.trusted_urls.new_support_ticket})}),t.jsx(r,{direction:"row",className:"justify-end",children:t.jsx(s,{variant:"primary-gradient-ghost",link:o.withPath("evolution/settings/connections"),children:t.jsxs(r,{direction:"row",className:"!gap-2 items-center",children:[__("Connected Accounts","metricool"),t.jsx(i,{icon:"external-link",className:"svg-gradient"})]})})})]})})})}});export{m as Route};
