import{R as $,c,l as e,o as p,d as f,a as g,s as _,t as l,u as a,F as y,m as w,i as V,k as v,B as S,D as x,H as k,z as C}from"./iconify-ifN16AHJ.js";import{u as A}from"./useLocale-DcokK_ct.js";import{u as B}from"./options.store-CrfMY3gQ.js";import"./useTheme-BYL2Ajg2.js";const L={viewBox:"0 0 256 256",width:"1.5em",height:"1.5em"};function U(m,n){return p(),c("svg",L,n[0]||(n[0]=[e("path",{fill:"currentColor",d:"M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m88 104a87.6 87.6 0 0 1-3.33 24h-38.51a157.4 157.4 0 0 0 0-48h38.51a87.6 87.6 0 0 1 3.33 24m-114 40h52a115.1 115.1 0 0 1-26 45a115.3 115.3 0 0 1-26-45m-3.9-16a140.8 140.8 0 0 1 0-48h59.88a140.8 140.8 0 0 1 0 48ZM40 128a87.6 87.6 0 0 1 3.33-24h38.51a157.4 157.4 0 0 0 0 48H43.33A87.6 87.6 0 0 1 40 128m114-40h-52a115.1 115.1 0 0 1 26-45a115.3 115.3 0 0 1 26 45m52.33 0h-35.62a135.3 135.3 0 0 0-22.3-45.6A88.29 88.29 0 0 1 206.37 88Zm-98.74-45.6A135.3 135.3 0 0 0 85.29 88H49.63a88.29 88.29 0 0 1 57.96-45.6M49.63 168h35.66a135.3 135.3 0 0 0 22.3 45.6A88.29 88.29 0 0 1 49.63 168m98.78 45.6a135.3 135.3 0 0 0 22.3-45.6h35.66a88.29 88.29 0 0 1-57.96 45.6"},null,-1)]))}const E=$({name:"ph-globe",render:U}),N={class:"dropdown"},D={tabindex:"0",role:"button",class:"flex gap-1 items-center",style:{cursor:"pointer"}},M={tabindex:"0",class:"dropdown-content menu bg-base-100 rounded-box z-[1] shadow-lg -ml-4 mt-4",style:{width:"280px","max-height":"300px","overflow-y":"scroll","flex-wrap":"nowrap"}},P=["onClick"],z=f({__name:"LocaleSwitch",setup(m){const n=A(),t={ar:"عربي",am:"አማርኛ",bg:"Български",bn:"বাঙালি",ca:"Calalan",cs:"čeština",da:"Dansk",de:"Deutsch",el:"ελληνικά",en:"English","en-AU":"English-Australia","en-GB":"English-UK","en-US":"English-USA",es:"Español","es-419":"Spanish-Latin America and the Caribbean",et:"Eesti",fa:"فارسی",fi:"Suomalainen",fil:"Pilipino",fr:"Français",gu:"ગુજરાત",he:"עִברִית",hi:"हिंदी",hr:"hrvatski",hu:"magyar",id:"Indonesia",it:"Italiano",ja:"日本語",kn:"ಕನ್ನಡಿ",ko:"한국인",lt:"Lietuvos",lv:"Latviešu",ml:"മലയാളം",mr:"मराठी",ms:"Melayu",nl:"Nederlands",no:"Norsk",pl:"Polski","pt-BR":"Portuguese-Brazil","pt-PT":"Português-Portugal",ro:"România",ru:"Русский",sk:"Slovenský",sl:"Slovenski",sr:"Српски",sv:"Svensk",sw:"Kiswahili",ta:"தமிழ்",te:"తెలుగు",th:"แบบไทย",tr:"Türkçe",uk:"Український",vi:"Việt Nam","zh-CN":"中文-简体","zh-TW":"中文-繁體"};return(h,i)=>{const o=E;return p(),c("div",null,[e("div",N,[e("div",D,[g(o),_(" "+l(t[a(n)])+" ("+l(a(n))+") ",1)]),e("ul",M,[(p(!0),c(y,null,w(a(V).global.availableLocales,r=>(p(),c("li",{key:`locale-${r}`},[e("button",{class:"text-primary px-4",onClick:s=>n.value=r},l(t[r])+" ("+l(r)+") ",9,P)]))),128))])])])}}}),R={class:"flex items-center gap-4 flex-wrap"},T=["onUpdate:modelValue"],j=f({__name:"ButtonCheckboxGroup",props:{modelValue:{}},emits:["update:modelValue"],setup(m,{emit:n}){const t=v([{key:"copy_txt",label:"复制text"},{key:"copy_csv",label:"复制csv"},{key:"copy_json",label:"复制json"},{key:"download_csv",label:"下载csv"},{key:"download_excel",label:"下载excel"},{key:"download_markdown",label:"下载markdown"}]),h=m,i=n,o=v({});S(()=>h.modelValue,s=>{t.value.forEach(({key:d,label:u})=>{o.value[d]=s.includes(d)})},{immediate:!0,deep:!0});function r(s){const d=Object.entries(o.value).filter(([u,b])=>b===!0).map(([u])=>u);i("update:modelValue",d)}return(s,d)=>(p(),c("div",R,[(p(!0),c(y,null,w(a(t),u=>(p(),c("label",{class:"label",key:u.key},[x(e("input",{type:"checkbox","onUpdate:modelValue":b=>a(o)[u.key]=b,class:"checkbox",onChange:r},null,40,T),[[k,a(o)[u.key]]]),_(" "+l(u.label),1)]))),128))]))}}),F={class:"account-page p-[10px]"},H={class:"form-control flex gap-x-[10px] mb-[10px]"},K={class:"form-control flex gap-x-[10px] mt-[10px] mb-[10px] items-center"},G={class:"form-control flex gap-x-[10px] mt-[10px] mb-[10px] items-center"},I={class:"form-control flex items-center gap-2 my-2"},J=f({__name:"index",setup(m){const n=B(),{others:t,isDark:h}=C(n);return(i,o)=>{const r=z;return p(),c("div",F,[e("h4",null,l(i.$t("ui.user_interface")),1),e("p",null,l(i.$t("ui.user_interface_desc")),1),e("div",H,[e("label",null,l(i.$t("ui.change_language")),1),g(r)]),e("h4",null,l(i.$t("ui.options")),1),e("div",K,[e("label",null,[x(e("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>a(t).ignore_cell_img=s),type:"checkbox",class:"checkbox"},null,512),[[k,a(t).ignore_cell_img]]),_(" "+l(i.$t("ui.ignore_cell_img")),1)])]),o[3]||(o[3]=e("h4",null,"选项-页面内表格顶部工具栏",-1)),e("div",G,[e("label",null,[x(e("input",{"onUpdate:modelValue":o[1]||(o[1]=s=>a(t).in_page_show_toolbar_above_table=s),type:"checkbox",class:"checkbox"},null,512),[[k,a(t).in_page_show_toolbar_above_table]]),_(" "+l(i.$t("ui.in_page_show_toolbar_above_table")),1)])]),o[4]||(o[4]=e("h4",null,"选项-页面内表格顶部工具栏-显示哪些按钮",-1)),e("div",I,[g(j,{modelValue:a(t).in_page_buttons,"onUpdate:modelValue":o[2]||(o[2]=s=>a(t).in_page_buttons=s)},null,8,["modelValue"])])])}}});export{J as default};
