import{M as L,N as P,l as n,F as p,O as V,_ as q,P as N,c as C,m as v,u as z,j as m,b as d,q as _,x as A,G as E,t as j,Q as F,R as M,S as H}from"./index-CIAVq8iD-1776148658686.js";import{G as Q}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{G as J}from"./GradientBorder-CfwSeIMB-1776148658686.js";import{e as K,u as b,t as I,n as h,c as D,m as U,i as k,I as w,w as G}from"./index-DrKDqZqX-1776148658686.js";const W="van-hairline",X=`${W}--top-bottom`,Y={to:[String,Object],url:String,replace:Boolean};function Z({to:e,url:t,replace:l,$router:r}){e&&r?r[l?"replace":"push"](e):t&&(l?location.replace(t):location.href=t)}function ee(){const e=L().proxy;return()=>Z(e)}const te=()=>{var e;const{scopeId:t}=((e=L())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[ne,o]=D("cell"),ae={tag:U("div"),icon:String,size:String,title:h,value:h,label:h,center:Boolean,isLink:Boolean,border:I,iconPrefix:String,valueClass:b,labelClass:b,titleClass:b,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},le=K({},ae,Y);var re=P({name:ne,props:le,setup(e,{slots:t}){const l=ee(),r=()=>{if(t.label||k(e.label))return n("div",{class:[o("label"),e.labelClass]},[t.label?t.label():e.label])},u=()=>{var a;if(t.title||k(e.title)){const s=(a=t.title)==null?void 0:a.call(t);return Array.isArray(s)&&s.length===0?void 0:n("div",{class:[o("title"),e.titleClass],style:e.titleStyle},[s||n("span",null,[e.title]),r()])}},i=()=>{const a=t.value||t.default;if(a||k(e.value))return n("div",{class:[o("value"),e.valueClass]},[a?a():n("span",null,[e.value])])},y=()=>{if(t.icon)return t.icon();if(e.icon)return n(w,{name:e.icon,class:o("left-icon"),classPrefix:e.iconPrefix},null)},c=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const a=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return n(w,{name:a,class:o("right-icon")},null)}};return()=>{var a;const{tag:s,size:g,center:R,border:$,isLink:O,required:T}=e,f=(a=e.clickable)!=null?a:O,S={center:R,required:!!T,clickable:f,borderless:!$};return g&&(S[g]=!!g),n(s,{class:o(S),role:f?"button":void 0,tabindex:f?0:void 0,onClick:l},{default:()=>{var x;return[y(),u(),i(),c(),(x=t.extra)==null?void 0:x.call(t)]}})}}});const ie=G(re),[ce,B]=D("cell-group"),se={title:String,inset:Boolean,border:I};var oe=P({name:ce,inheritAttrs:!1,props:se,setup(e,{slots:t,attrs:l}){const r=()=>{var i;return n("div",V({class:[B({inset:e.inset}),{[X]:e.border&&!e.inset}]},l,te()),[(i=t.default)==null?void 0:i.call(t)])},u=()=>n("div",{class:B("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?n(p,null,[u(),r()]):r()}});const ue=G(oe),de={class:"language-page"},ge={style:{padding:"20px"}},fe={class:"language-row"},ve={class:"language-label"},me={__name:"index",setup(e){const t=z(),l=N(),r=H(()=>l.selectedLang?.type||"en"),u=i=>{if(M(l,i),window.history.length>1){t.go(-1);return}t.replace("/")};return(i,y)=>(m(),C("div",de,[n(Q,{title:i.$t("language"),color:"black"},null,8,["title"]),n(J,{radius:"20px",style:{margin:"20px"}},{default:v(()=>[d("div",ge,[n(_(ue),{inset:"",class:"language-list"},{default:v(()=>[(m(!0),C(p,null,A(_(l).langList,c=>(m(),E(_(ie),{key:c.type,class:"language-cell",clickable:"",center:"",onClick:a=>u(c.type)},{title:v(()=>[d("div",fe,[d("span",ve,j(c.value),1),d("span",{class:F(["selected-check",{"selected-check--active":r.value===c.type}])},null,2)])]),_:2},1032,["onClick"]))),128))]),_:1})])]),_:1})]))}},ye=q(me,[["__scopeId","data-v-671f7f6b"]]);export{ye as default};
