1import{j as s}from"./jsx-runtime-BJcAWMsb.js";import"./debug-build-l0sNRNKZ.js";import{y as l,q as h}from"./chunk-62JRHF6Z-CiITS9Lr.js";import{c as i,u as f}from"./cn-ikUPuW0X-De5nhjqQ.js";import{T as x}from"./index-oxQKhnDr.js";import{C as b}from"./index-Bj9QP1Di.js";import{b as j,a as c,e as k}from"./index-CJM6Qril.js";import{T as v}from"./TogglLogo-CylgDJf6.js";import{a as _}from"./index-CaEfRKd6.js";import{g as d}from"./theme-client-CKcweOu0.js";import{b as n}from"./exports-BI7RTcps.js";const L="https://assets.accounts.toggl.com/assets/background-dark-Bh5vyRPM.svg",w="https://assets.accounts.toggl.com/assets/background-light-BqLUiHzp.svg",E="flex items-center justify-center flex-col min-h-screen overflow-y-auto py-20 bg-center bg-repeat bg-cover relative",y=({hasStatusBar:e,className:o,...t})=>s.jsxs("div",{...t,className:i(E,e?"pt-0 pb-[14px] lg:py-20":"",o),children:[s.jsx("img",{src:w,alt:"",className:"absolute inset-0 size-full object-cover object-center -z-10 dark:hidden"}),s.jsx("img",{src:L,alt:"",className:"absolute inset-0 size-full object-cover object-center -z-10 hidden dark:block"}),t.children]}),M="data:image/svg+xml,%3csvg%20width='144'%20height='156'%20viewBox='0%200%20144%20156'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M106.401%2070.2156C102.849%2059.186%2092.694%2062.6985%2089.7614%2068.6921C86.8289%2074.6857%2091.3828%2082.8373%2096.0289%2089.1458C101.739%2096.8986%20116.891%20109.872%20117.968%20110.892C119.044%20111.913%20120.899%20113.982%20122.868%20115.795C124.836%20117.608%20131.12%20120.173%20135.193%20116.668C143.286%20109.705%20137.816%2098.9109%20136.831%2097.1179C135.846%2095.325%20134.281%2090.4886%20125.789%2085.7102C120.102%2082.5101%20110.841%2084.0026%20106.401%2070.2156Z'%20fill='%23A85D42'/%3e%3cpath%20d='M100.186%2070.0556C99.999%2068.1727%20102.91%2066.4636%20104.19%2065.8819C105.686%2067.8124%20105.976%2069.0701%20107.176%2071.6628C108.217%2073.912%20108.582%2075.2248%20108.981%2075.9385C108.034%2076.4699%20106.103%2077.6581%20104.676%2077.7272C102.892%2077.8135%20100.42%2072.4092%20100.186%2070.0556Z'%20fill='%23CD9460'/%3e%3cmask%20id='mask0_9136_9400'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='118'%20height='119'%3e%3cpath%20d='M0.440002%200.894531H117.959V118.413H0.440002V0.894531Z'%20fill='%23C4C4C4'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_9136_9400)'%3e%3cpath%20d='M72.9954%2078.877L78.1009%2073.692L86.7425%2082.2012L81.637%2087.3861L72.9954%2078.877Z'%20fill='%23ABA0AF'/%3e%3cpath%20d='M77.6788%2014.3134C95.3326%2031.9059%2095.3824%2060.4786%2077.7899%2078.1324C60.1975%2095.7863%2031.6248%2095.836%2013.9709%2078.2436C-3.6829%2060.6511%20-3.73266%2032.0784%2013.8598%2014.4246C31.4522%20-3.22925%2060.025%20-3.27902%2077.6788%2014.3134Z'%20fill='%23412A4C'/%3e%3cpath%20d='M70.792%2021.2225C84.6288%2035.0111%2084.6678%2057.406%2070.8792%2071.2428C57.0905%2085.0795%2034.6956%2085.1185%2020.8589%2071.3299C7.02207%2057.5412%206.98307%2035.1464%2020.7717%2021.3096C34.5604%207.47278%2056.9553%207.43378%2070.792%2021.2225Z'%20fill='%23FFDE91'/%3e%3c/g%3e%3cpath%20d='M82.9876%2082.9081C86.2959%2079.5484%2091.7014%2079.5066%2095.0611%2082.8149L134.682%20120.522C138.042%20123.83%20138.084%20129.236%20134.776%20132.596C131.467%20135.956%20126.062%20135.997%20122.702%20132.689L83.0808%2094.9817C79.7211%2091.6734%2079.6793%2086.2679%2082.9876%2082.9081Z'%20fill='%23564260'/%3e%3cpath%20d='M63.2122%20108.906C60.0229%20111.986%2059.9343%20117.069%2063.0144%20120.258C65.3872%20122.715%2068.9483%20123.332%2071.9168%20122.077C70.5596%20125%2071.0519%20128.581%2073.4247%20131.038C76.5048%20134.227%2081.5871%20134.315%2084.7765%20131.235L85.9362%20130.115C85.1714%20132.782%2085.811
17%20135.774%2087.8778%20137.913C90.9579%20141.102%2096.0402%20141.191%2099.2295%20138.111L102.798%20134.665C102.863%20136.581%20103.61%20138.48%20105.046%20139.967C108.126%20143.157%20113.209%20143.245%20116.398%20140.165L120.176%20136.517C123.365%20133.437%20123.453%20128.355%20120.373%20125.165C118.503%20123.229%20115.896%20122.436%20113.422%20122.8C114.117%20120.174%20113.462%20117.258%20111.437%20115.161C109.064%20112.704%20105.503%20112.087%20102.534%20113.342C103.892%20110.419%20103.399%20106.838%20101.026%20104.381C98.6536%20101.924%2095.0925%20101.308%2092.124%20102.562C93.4812%2099.639%2092.9889%2096.0586%2090.6161%2093.6016C87.536%2090.4123%2082.4536%2090.3237%2079.2643%2093.4038L63.2122%20108.906Z'%20fill='%23CD9460'/%3e%3cpath%20d='M79.4674%2057.1237C73.5511%2075.7401%2053.6635%2086.0356%2035.0471%2080.1194C16.4307%2074.2032%206.13516%2054.3156%2012.0514%2035.6992C17.9676%2017.0828%2037.8552%206.78724%2056.4716%2012.7034C75.088%2018.6197%2085.3836%2038.5073%2079.4674%2057.1237Z'%20fill='%23FFDE91'/%3e%3cpath%20d='M48.2457%2054.3847L38.9664%2051.4357L46.6856%2027.1458L55.965%2030.0947L48.2457%2054.3847ZM42.8255%2055.3665C46.1005%2056.4073%2047.7762%2059.6442%2046.7354%2062.9192C45.6946%2066.1943%2042.4577%2067.87%2039.1827%2066.8292C35.9076%2065.7884%2034.2319%2062.5515%2035.2727%2059.2765C36.3135%2056.0014%2039.5504%2054.3257%2042.8255%2055.3665Z'%20fill='%23412A4C'/%3e%3c/svg%3e",T=({children:e,className:o="",href:t,...r})=>s.jsx("a",{className:i("flex items-center justify-center h-9 px-4 py-2 rounded text-h5 font-semibold leading-base cursor-pointer no-underline focus:outline-2 focus:outline","border-none bg-accent hover:bg-accent-hover active:bg-accent-active focus:outline-accent-100-active text-inverted",o),href:t,...r,children:e}),Z=({children:e,showCta:o=!0})=>{const t=l(),{t:r}=f();g(t);const{theme:m}=d(),C=m==="dark"?"dark":"",p=B(t)&&t.status===403||t?.data?.error==="Forbidden",a=D(t)&&t.message==="signup_disabled",u=r(p?"not_permission_access_page":a?"signup_is_temporarily_disabled":"oops_something_went_wrong");return s.jsx("div",{className:i("flex size-full items-center justify-center",C),children:s.jsxs(b,{children:[s.jsxs(j,{children:[s.jsx(c,{children:s.jsx(v,{})}),s.jsx(k,{}),s.jsx(c,{children:s.jsx("img",{src:M,alt:r("oops_something_went_wrong")})}),s.jsx(c,{children:s.jsx(_,{children:u})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[o&&!a&&s.jsx(T,{href:"https://toggl.com/",children:r("buttons:go_back_to_togglcom")}),a&&s.jsx(x,{onClick:()=>window.location.reload(),children:r("buttons:reload_the_page")})]}),e]})})},I=(e={})=>{const o=l();g(o);const{theme:t}=d(),r=t==="dark"?"dark":"";return s.jsx("div",{className:r,children:s.jsx(y,{children:s.jsx(Z,{...e})})})},B=e=>!!e&&"status"in e,D=e=>e instanceof Error;function g(e){e&&(h(e)?e.status!==404&&n(new Error(`Route error: ${e.status} ${e.statusText}`)):e instanceof Error?n(e):typeof e=="string"?n(new Error(`String error: ${e}`)):n(new Error(`Unknown error: ${JSON.stringify(e)}`)))}export{y as B,Z as G,I as a};
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.