1import{r as p,j as f}from"./react-vendor-BKgfKFZH.js";import{n as h,H as $,U as I}from"./entry-C8wUDEw9.js";const a={"":"/home",home:"/home",emails:"/settings/emails",lindies:"/lindies",meetings:"/meetings","my-lindies":"/lindies",settings:"/settings",tasks:"/tasks","user-settings":"/settings"},l=new Set(I),m={slack:"general","team-lindy":"integrations"};function S(t){const e=Array.isArray(t)?t:t?[t]:[],o=e[0]??"",c=e[1]??"";if(e.length===4&&c==="lindy"&&e[2]&&e[3]==="tasks")return`/${e.map(encodeURIComponent).join("/")}`;const n=o in a?0:c in a?1:-1;if(n===-1)return"/home";const r=e[n]??"";if(r==="user-settings"&&e.length>n+2)return"/home";if(n===1){const i=e[2];if(c==="user-settings"){const d=(i&&m[i])??(i&&l.has(i)?i:null);return`/${encodeURIComponent(o)}/settings${d?`/${encodeURIComponent(d)}`:""}`}return`/${e.map(encodeURIComponent).join("/")}`}const s=e[n+1];if(r==="user-settings"&&s&&s in m)return`/settings/${m[s]}`;if(r==="user-settings"&&s&&!l.has(s))return"/settings";const g=a[r]??"/home",u=e.slice(n+1).map(encodeURIComponent).join("/");return u?`${g}/${u}`:g}function U({params:t}){return p.useEffect(()=>{const e=S(t.path),o=`${window.location.search}${window.location.hash}`;h(`${$(e)?e:"/home"}${o}`,{replace:!0})},[t]),f.jsx("p",{className:"p-6 text-sm text-gray-500",children:"Redirectingâ¦"})}export{U as View,S as getMobileRedirectPath};
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.