import{r as d,i as o,j as e,b as i,t,R as c,d as n}from"./i18n-iGn0mu0Q.js";const x=[{glyph:"Aa",titleKey:"selectionTool_modeWord",bodyKey:"selectionHelp_modeWordBody"},{glyph:"¶",titleKey:"selectionTool_modeParagraph",bodyKey:"selectionHelp_modeParagraphBody"},{glyph:"▭",titleKey:"selectionTool_modeRegion",bodyKey:"selectionHelp_modeRegionBody"}],m=[{titleKey:"selectionTool_errorBlockedHost",bodyKey:"selectionHelp_errorBlockedBody"},{titleKey:"selectionTool_errorQuotaExceeded",bodyKey:"selectionHelp_errorQuotaBody"},{titleKey:"selectionTool_errorOcrFailed",bodyKey:"selectionHelp_errorOcrBody"}];function p(){const[,a]=d.useState(0);return d.useEffect(()=>{let s=!1;o().then(()=>{s||a(l=>l+1)});const r=()=>{s||a(l=>l+1)};return document.addEventListener("wordhub:localeChanged",r),()=>{s=!0,document.removeEventListener("wordhub:localeChanged",r)}},[]),e.jsx("main",{className:"min-h-screen bg-mesh-gradient px-6 py-10 text-slate-900 dark:text-slate-100",children:e.jsxs("div",{className:"mx-auto max-w-4xl",children:[e.jsxs("header",{className:"rounded-[28px] border border-white/60 bg-white/70 p-8 shadow-xl shadow-slate-900/5 backdrop-blur-md dark:border-slate-700/50 dark:bg-slate-900/65",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("img",{src:i.runtime.getURL("/assets/icons/icon-128.png"),alt:"WordHub",className:"h-12 w-12 rounded-2xl object-contain"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-display text-[11px] font-bold uppercase tracking-[0.28em] text-primary-700 dark:text-primary-300",children:t("selectionTool_title")}),e.jsx("h1",{className:"font-display mt-2 text-3xl font-extrabold tracking-tight text-slate-900 dark:text-white",children:t("selectionHelp_pageTitle")})]})]}),e.jsx("p",{className:"mt-5 max-w-3xl text-sm leading-6 text-slate-600 dark:text-slate-300",children:t("selectionHelp_intro")})]}),e.jsxs("section",{className:"mt-6 rounded-[28px] border border-white/60 bg-white/70 p-8 shadow-lg shadow-slate-900/5 backdrop-blur-md dark:border-slate-700/50 dark:bg-slate-900/65",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-display text-lg font-bold tracking-tight",children:t("selectionHelp_sectionModes")}),e.jsx("span",{className:"rounded-full bg-primary-50 px-3 py-1 font-display text-[11px] font-bold uppercase tracking-[0.18em] text-primary-700 dark:bg-primary-950/40 dark:text-primary-300",children:"ESC"})]}),e.jsx("div",{className:"mt-5 grid gap-4 md:grid-cols-3",children:x.map(s=>e.jsxs("article",{className:"rounded-3xl border border-slate-200/80 bg-white/85 p-5 dark:border-slate-700/70 dark:bg-slate-950/40",children:[e.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-2xl bg-primary-50 text-lg font-bold text-primary-700 dark:bg-primary-950/40 dark:text-primary-300",children:s.glyph}),e.jsx("h3",{className:"font-display mt-4 text-base font-bold tracking-tight",children:t(s.titleKey)}),e.jsx("p",{className:"mt-2 text-sm leading-6 text-slate-600 dark:text-slate-300",children:t(s.bodyKey)})]},s.titleKey))})]}),e.jsxs("div",{className:"mt-6 grid gap-6 lg:grid-cols-[1.1fr,0.9fr]",children:[e.jsxs("section",{className:"rounded-[28px] border border-white/60 bg-white/70 p-8 shadow-lg shadow-slate-900/5 backdrop-blur-md dark:border-slate-700/50 dark:bg-slate-900/65",children:[e.jsx("h2",{className:"font-display text-lg font-bold tracking-tight",children:t("selectionHelp_sectionPrivacy")}),e.jsx("p",{className:"mt-4 text-sm leading-6 text-slate-600 dark:text-slate-300",children:t("selectionHelp_privacyBody")})]}),e.jsxs("section",{className:"rounded-[28px] border border-white/60 bg-white/70 p-8 shadow-lg shadow-slate-900/5 backdrop-blur-md dark:border-slate-700/50 dark:bg-slate-900/65",children:[e.jsx("h2",{className:"font-display text-lg font-bold tracking-tight",children:t("selectionHelp_sectionBlocked")}),e.jsx("p",{className:"mt-4 text-sm leading-6 text-slate-600 dark:text-slate-300",children:t("selectionHelp_blockedBody")})]})]}),e.jsxs("section",{className:"mt-6 rounded-[28px] border border-white/60 bg-white/70 p-8 shadow-lg shadow-slate-900/5 backdrop-blur-md dark:border-slate-700/50 dark:bg-slate-900/65",children:[e.jsx("h2",{className:"font-display text-lg font-bold tracking-tight",children:t("selectionHelp_sectionErrors")}),e.jsx("div",{className:"mt-5 grid gap-4 md:grid-cols-3",children:m.map(s=>e.jsxs("article",{className:"rounded-3xl border border-slate-200/80 bg-white/85 p-5 dark:border-slate-700/70 dark:bg-slate-950/40",children:[e.jsx("h3",{className:"font-display text-sm font-bold tracking-tight text-slate-900 dark:text-white",children:t(s.titleKey)}),e.jsx("p",{className:"mt-2 text-sm leading-6 text-slate-600 dark:text-slate-300",children:t(s.bodyKey)})]},s.titleKey))})]})]})})}c.createRoot(document.getElementById("root")).render(e.jsx(n.StrictMode,{children:e.jsx(p,{})}));
