1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-Ci090mG2.js";import"./use-is-mobile-DS45C9IV.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{t as r}from"./link-B-R1bfec.js";import{n as i}from"./redirect-Ck2suN5X.js";import{t as a}from"./useNavigate-YvaXjqMv.js";var o=e(t(),1),s=n();function c(){return typeof window>`u`||!window.matchMedia(`(hover: none) and (pointer: coarse)`).matches?!1:Math.min(window.screen.width,window.screen.height)<600}function l(){if(!c())return;let e=new URLSearchParams(window.location.search).get(`thread`);throw i({href:e?`/app?thread=${encodeURIComponent(e)}`:`/app`,replace:!0})}function u(){let e=a();return(0,o.useEffect)(()=>{let t=new URLSearchParams(window.location.search).get(`thread`);e({href:t?`/app?thread=${encodeURIComponent(t)}`:`/app`,replace:!0})},[e]),null}function d(){return c()?(0,s.jsx)(u,{}):(0,s.jsxs)(`div`,{className:`flex min-h-[60dvh] flex-col items-center justify-center gap-4 px-6 text-center`,children:[(0,s.jsx)(`p`,{className:`text-[13px] font-[440] text-foreground`,children:`Open this on a computer`}),(0,s.jsx)(r,{to:`/app`,className:`flex h-8 items-center rounded-full bg-zinc-100 px-3.5 text-[12px] font-[440] text-foreground transition-colors hover:bg-zinc-200/70 dark:bg-white/[0.06] dark:hover:bg-white/[0.1]`,children:`Go to the feed`})]})}function f({children:e}){let[t,n]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=window.matchMedia(`(max-width: 767px)`),t=()=>n(t=>t!==!1&&e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),t===null?null:t?(0,s.jsx)(d,{}):(0,s.jsx)(s.Fragment,{children:e})}export{l as n,f as t};
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.