import{a as e,l as t}from"./preact.module-CNakwbc9.js";import{d as n,s as r,t as i}from"./hooks.module-BrXTvcfS.js";import{U as a,a as o}from"./i18n-BaLR3UdQ.js";import{t as s}from"./jsxRuntime.module-Cao1NCKs.js";import{J as c}from"./hooks-ClTXKdUl.js";import{t as l}from"./Modal-hBkTa-Ee.js";import{t as u}from"./Button-Du0dYm4Z.js";n(),t();function d(){let[t,n]=r(!1),d=i(null);return c(`showCpuArchWarning`,()=>n(!0)),s(l,{className:`cpu-arch-dialog`,size:`lg`,title:o(`cpu_arch_warning.title`),onShown:()=>d.current?.focus(),footerAlignment:`between`,footer:s(e,{children:[s(u,{buttonRef:d,text:o(`cpu_arch_warning.download_link`),icon:`bx bx-download`,onClick:()=>{window.electronApi?window.electronApi.shell.openExternal(`https://github.com/TriliumNext/Trilium/releases/latest`):window.open(`https://github.com/TriliumNext/Trilium/releases/latest`,`_blank`)}}),s(u,{text:o(`cpu_arch_warning.continue_anyway`),onClick:()=>n(!1)})]}),onHidden:()=>n(!1),show:t,children:[s(`p`,{children:a.isMac()?o(`cpu_arch_warning.message_macos`):o(`cpu_arch_warning.message_windows`)}),s(`p`,{children:o(`cpu_arch_warning.recommendation`)})]})}export{d as default};