import"./chunk-QTnfLwEv.js";import{g as e,n as t,r as n}from"./index-7yDgay5u.js";import{o as r,t as i}from"./jsx-runtime-DHSfUA5-.js";import{w as a}from"./test.id-DxQrYxPk.js";import{t as o}from"./usePreference-3fMY0uE5.js";import{t as s}from"./HeaderPage-CPQpvQQw.js";import{t as c}from"./CellList-UkuVgkhN.js";r();var l=i(),u={auto:a.option,"en-US":a.english,"zh-CN":a.chinese},d=e.map(e=>({...e,label:e.value===`auto`?t(`settings.followSystem`,`Follow system`):e.label,testId:u[e.value]}));function f(){let[e,r]=o(n,{onSave:()=>window.location.reload()});return(0,l.jsx)(s,{pageTestId:a.page,contentTestId:a.content,header:{title:t(`settings.language`,`Language`),showBack:!0},children:(0,l.jsx)(c,{items:d.map(t=>({type:`option`,key:t.value,label:t.label,selected:e===t.value,testId:t.testId,onClick:()=>void r(t.value===`auto`?void 0:t.value)}))})})}export{f as SettingsLanguagePage};
//# sourceMappingURL=language-Dwogx274.js.map