import{d as S,V as h,e as V,r as d,aG as I,aH as P,u as z,f as B,g as o,z as D,B as p,D as m,o as E,h as l,j as R,F as t,K as i,E as U,R as u,L as f,M as _,aI as H,aJ as N,ax as O,q as j}from"./index-q8TQmcfk.js";import{_ as q,a as F}from"./wd-cell-group.ChuTC3jo.js";import{_ as G}from"./wd-picker.Swg_ox4o.js";const J=S({name:"Setting",__name:"setting",setup(K){const w=h(),g=V(()=>[{label:"English",value:"en"},{label:"বাংলা",value:"bn"}]);function v(e){return["en","zh-Hans","bn"].includes(e)?e:"bn"}const r=d(v(I("app_locale")||P()));function x(e){H(e.value),N("app_locale",e.value),O.global.locale=e.value}function k(){w.removeUserInfo(),i({url:"/pages/login/login",isReLaunch:!0})}const b=d({version:"1.0.1"});return z(()=>{}),(e,s)=>{const a=p(m("wd-cell"),q),L=p(m("wd-picker"),G),y=p(m("wd-cell-group"),F),c=R,$=D("layout-default-uni");return E(),B($,null,{default:o(()=>[l(c,{class:"py-20rpx"},{default:o(()=>[l(y,{"custom-class":"mb-20rpx",border:""},{default:o(()=>[l(a,{title:e.$t("setting.changePassword"),"custom-title-class":"text-32rpx","is-link":"",onClick:s[0]||(s[0]=n=>t(i)({url:"/pages/forgotPassword/forgotPassword"}))},null,8,["title"]),l(L,{modelValue:t(r),"onUpdate:modelValue":s[1]||(s[1]=n=>U(r)?r.value=n:null),columns:t(g),"use-default-slot":"",onConfirm:x},{default:o(()=>{var n;return[l(a,{title:e.$t("setting.language"),"custom-title-class":"text-32rpx","custom-value-class":"text-#838383! text-32rpx!",value:(n=t(g).find(C=>C.value===t(r)))==null?void 0:n.label,"is-link":""},null,8,["title","value"])]}),_:1},8,["modelValue","columns"]),l(a,{title:e.$t("setting.policies"),"custom-title-class":"text-32rpx","is-link":"",onClick:s[2]||(s[2]=n=>t(i)({url:"/pages/webLink/webLink",params:{title:t(u)("setting.policies"),link:"https://www.aisoco.net/privacy.html"}}))},null,8,["title"]),l(a,{title:e.$t("setting.termsOfService"),"custom-title-class":"text-32rpx","is-link":"",onClick:s[3]||(s[3]=n=>t(i)({url:"/pages/webLink/webLink",params:{title:t(u)("setting.termsOfService"),link:"https://www.aisoco.net/terms.html"}}))},null,8,["title"]),l(a,{title:e.$t("setting.refund"),"custom-title-class":"text-32rpx","title-width":"400rpx","is-link":"",onClick:s[4]||(s[4]=n=>t(i)({url:"/pages/webLink/webLink",params:{title:t(u)("setting.refund"),link:"https://www.aisoco.net/refund.html"}}))},null,8,["title"])]),_:1}),l(c,{class:"mb-20rpx bg-white p-24rpx text-center text-32rpx text-[var(--wot-color-theme)]",onClick:k},{default:o(()=>[f(_(e.$t("setting.logout")),1)]),_:1}),l(c,{class:"text-center text-32rpx text-#909090"},{default:o(()=>[f(_(t(u)("setting.version",[t(b).version])),1)]),_:1})]),_:1})]),_:1})}}}),Q=j(J,[["__scopeId","data-v-0a20b589"]]);export{Q as default};
