import{d as h,T as P,e as I,r as f,aG as V,aH as z,u as B,f as D,g as o,z as E,B as c,D as m,o as U,h as l,j as H,F as t,K as i,E as N,P as u,L as _,M as v,aI as O,aJ as R,av as T,q as j}from"./index-C8qz7c0N.js";import{_ as q,a as A}from"./wd-cell-group.Lpf_90HK.js";import{_ as F}from"./wd-picker.Ct270005.js";const G=h({name:"Setting",__name:"setting",setup(J){const w=P(),g=I(()=>[{label:"English",value:"en"},{label:"বাংলা",value:"bn"}]);function x(e){return["en","zh-Hans","bn"].includes(e)?e:"bn"}const r=f(x(V("app_locale")||z()));function k(e){O(e.value),R("app_locale",e.value),T.global.locale=e.value}function b(){w.removeUserInfo(),i({url:"/pages/login/login",isReLaunch:!0})}const d=f({});function L(){plus.runtime.getProperty(plus.runtime.appid,e=>{d.value=e})}return B(()=>{L()}),(e,s)=>{const a=c(m("wd-cell"),q),y=c(m("wd-picker"),F),$=c(m("wd-cell-group"),A),p=H,C=E("layout-default-uni");return U(),D(C,null,{default:o(()=>[l(p,{class:"py-20rpx"},{default:o(()=>[l($,{"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(y,{modelValue:t(r),"onUpdate:modelValue":s[1]||(s[1]=n=>N(r)?r.value=n:null),columns:t(g),"use-default-slot":"",onConfirm:k},{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(S=>S.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(p,{class:"mb-20rpx bg-white p-24rpx text-center text-32rpx text-[var(--wot-color-theme)]",onClick:b},{default:o(()=>[_(v(e.$t("setting.logout")),1)]),_:1}),l(p,{class:"text-center text-32rpx text-#909090"},{default:o(()=>[_(v(t(u)("setting.version",[t(d).version])),1)]),_:1})]),_:1})]),_:1})}}}),W=j(G,[["__scopeId","data-v-8fc2a276"]]);export{W as default};
