1import{r as o,j as t}from"./react-vendor-P5XnYvWb.js";import{O as p}from"./assistant-ui-primitives-Bn9nn9-n.js";import{a as x,b as f}from"./navigation-runtime-Dw-8DVQD.js";import{X as b,C as v,d as h}from"./icons-C3gyKvVD.js";import"./radix-ui-BXT0dNmF.js";const w="/tesla",m="ai-movie:tesla-fullscreen-prompt:v1";function g(e){return(e??"").toLowerCase().includes("tesla")}function j(e){return`${new URL(e).origin}?www.1905.com`}function y(e){const s=j(e),r=new URL("https://www.1905.com/api/redirec.html");r.searchParams.set("redirect_url",s);const i=new URL("https://v.qq.com/search_redirect.html");return i.searchParams.set("url",r.toString()),i.toString()}function N(e){return(e==null?void 0:e.getItem(m))==="dismissed"}function c(e){e==null||e.setItem(m,"dismissed")}function R({mode:e="floating"}){const s=x(),r=f(),[i,a]=o.useState(e==="route");if(o.useEffect(()=>{if(e==="route"){a(!0);return}if(s.pathname===w){a(!1);return}const u=g(window.navigator.userAgent)&&!N(window.sessionStorage);a(u)},[s.pathname,e]),!i)return null;const l=()=>{c(window.sessionStorage),a(!1),e==="route"&&r("/",{replace:!0})},d=()=>{c(window.sessionStorage),window.location.assign(y(window.location.href))},n=e==="route";return t.jsx("div",{className:n?"movie-dialog-scrim fixed inset-0 z-[290] flex items-center justify-center overflow-y-auto px-3 py-[max(1rem,var(--app-safe-area-top))] backdrop-blur-sm sm:p-6":"pointer-events-none fixed inset-x-0 bottom-0 z-[260
1] flex justify-center px-3 pb-[max(1rem,var(--app-safe-area-bottom))] sm:px-6","data-tesla-fullscreen-prompt":e,children:t.jsxs("section",{role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":`tesla-fullscreen-title-${e}`,"aria-describedby":`tesla-fullscreen-description-${e}`,className:"movie-dialog-panel pointer-events-auto relative w-full max-w-lg rounded-2xl border p-4 text-[var(--movie-text)] shadow-2xl shadow-black/45 sm:p-5",children:[t.jsx(p,{kind:n?"dialog":"passive"}),t.jsx("button",{type:"button","aria-label":"åæ¶ç¹æ¯æå
¨å±æç¤º",title:"åæ¶",className:"movie-button-secondary absolute right-3 top-3 inline-flex size-10 items-center justify-center rounded-full border sm:right-4 sm:top-4",onClick:l,children:t.jsx(b,{className:"size-4.5","aria-hidden":"true"})}),t.jsxs("div",{className:"flex items-start gap-3 pr-11",children:[t.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-full border border-[var(--movie-primary)] bg-[var(--movie-primary-muted)] text-[var(--movie-primary-strong)]",children:t.jsx(v,{className:"size-5","aria-hidden":"true"})}),t.jsxs("div",{className:"min-w-0 pt-0.5",children:[t.jsx("p",{className:"text-[11px] font-black tracking-[0.16em] text-[var(--movie-primary-strong)]",children:"TESLA è½¦æºæ¨¡å¼"}),t.jsx("h2",{id:`tesla-fullscreen-title-${e}`,className:"mt-1 text-base font-black leading-6 sm:text-lg",children:"æ£æµå°æ¨æ£å¨ç¹æ¯æè½¦æºä½¿ç¨ç½ç«"})]})]}),t.jsx("p",{id:`tesla-fullscreen-description-${e}`,className:"mt-4 text-sm leading-6 text-[var(--movie-text-subtle)]",children:"è¿å
¥å
¨å±åä¼è¿åå½å页é¢ï¼è¯·å¨å®å
¨åè½¦ç¶æä¸æä½ã"}),t.jsxs("div",{className:"mt-4 grid grid-cols-[minmax(0,1fr)_minmax(0,1.45fr)] gap-3",children:[t.jsx("button",{type:"button",className:"movie-button-secondary h-11 rounded border px-3 text-sm font-semibold",onClick:l,children:"åæ¶"}),t.jsxs("button",{type:"button",className:"movie-button-primary inline-flex h-11 items-center justify-center gap-2 rounded border px-3 text-sm font-black",onClick:d,children:[t.jsx(h,{className:"size-4","aria-hidden":"true"}),"ð è¿å
¥å
¨å±æ¨¡å¼"]})]})]})})}export{R as TeslaFullscreenPrompt,R as default};
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.