diff --git a/pages/union/list.vue b/pages/union/list.vue index ba28195b..da7f2e97 100644 --- a/pages/union/list.vue +++ b/pages/union/list.vue @@ -125,20 +125,26 @@ popupStstus: 0, messageText: "", msgType: "success", - detailData: null + detailData: null, + // 上次刷新用户信息的时间戳 + lastRefreshTime: 0 } }, onShow(options) { if (uni.getStorageSync('token')) { - this.getUserInfo() + // this.getUserInfo() if (uni.getStorageSync('BarHeight')) { this.statusBarHeight = uni.getStorageSync('BarHeight') } if (uni.getStorageSync('Theme_Data')) { this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data')) } - if (options.guild_id) { + + // 每次页面显示时都刷新用户信息(处理从APP实名认证返回的情况) + this.refreshUserInfo() + + if (options && options.guild_id) { //如果有传入公会id 把工会ID放到搜索框去 this.searchValue = options.guild_id this.getUnionList(options.guild_id) @@ -149,18 +155,33 @@ }, methods: { - // 获取用户信息 拿实名信息 - async getUserInfo() { - http.get('/api/User/get_user_info', { - token: uni.getStorageSync('token') || '' - }).then(response => { - const { - data, - code - } = response - this.isAuth = code ? data.auth : 0 - }) + // 刷新用户信息(获取最新的实名状态) + async refreshUserInfo(force = false) { + // 防抖:如果距离上次刷新不到 3 秒,且不是强制刷新,则跳过 + const now = Date.now() + if (!force && now - this.lastRefreshTime < 3000) { + console.log('跳过频繁刷新') + return + } + + try { + const response = await http.get('/api/User/get_user_info', { + token: uni.getStorageSync('token') || '' + }) + + if (response.code) { + this.isAuth = response.data.auth || false + // 可以将实名状态缓存起来,避免频繁请求 + uni.setStorageSync('user_auth_status', this.isAuth) + this.lastRefreshTime = now + } + } catch (error) { + console.error('获取用户信息失败:', error) + // 如果请求失败,尝试从缓存读取 + this.isAuth = uni.getStorageSync('user_auth_status') || false + } }, + async getUnionList(name) { this.loading = true http.get('/api/Guild/guild_list', { @@ -188,16 +209,55 @@ } }, // 申請加入工會 - applyUnion(data) { - if (this.isAuth) { - this.detailData = data - this.popupStstus = 1 - this.messageContent = "是否选择加入当前公会" - this.$refs.popup.open('center') - } else { - this.popupStstus = 3 - this.messageContent = "当前尚未实名认证,是否跳转到实名认证页面?" - this.$refs.popup.open('center') + async applyUnion(rowData) { + // 显示加载状态 + uni.showLoading({ + title: '检查实名状态...', + mask: true + }) + + try { + // 强制获取最新的用户信息和实名状态 + const response = await http.get('/api/User/get_user_info', { + token: uni.getStorageSync('token') || '' + }) + + uni.hideLoading() + + if (response.code) { + const isRealNameAuth = response.data.auth || false + + // 更新实名状态和刷新时间 + this.isAuth = isRealNameAuth + this.lastRefreshTime = Date.now() + uni.setStorageSync('user_auth_status', isRealNameAuth) + + if (isRealNameAuth) { + // 已实名,弹出加入公会确认框 + this.detailData = rowData + this.popupStstus = 1 + this.messageContent = "是否选择加入当前公会" + this.$refs.popup.open('center') + } else { + // 未实名,弹出实名认证提示框 + this.detailData = rowData // 保存公会数据,实名后可能需要 + this.popupStstus = 3 + this.messageContent = "当前尚未实名认证,是否跳转到实名认证页面?" + this.$refs.popup.open('center') + } + } else { + uni.showToast({ + title: response.msg || '获取用户信息失败', + icon: 'none', + duration: 2000 + }) + } + } catch (error) { + uni.hideLoading() + console.error('获取用户信息失败:', error) + this.messageText = '请求失败,请重试!' + this.msgType = 'error' + this.$refs.message.open() } }, closePopup() { @@ -227,6 +287,13 @@ window.Android.enterAuthent(); } this.closePopup() + + // 提示用户完成实名后返回 + uni.showToast({ + title: '请完成实名认证后返回', + icon: 'none', + duration: 3000 + }) }, // 申请加入公会 async joinUnionize() { diff --git a/unpackage/dist/build/web/assets/headerHeight.DQi3EG4R.js b/unpackage/dist/build/web/assets/headerHeight.UQ4SBLpb.js similarity index 81% rename from unpackage/dist/build/web/assets/headerHeight.DQi3EG4R.js rename to unpackage/dist/build/web/assets/headerHeight.UQ4SBLpb.js index 9c30729f..f4dbd9da 100644 --- a/unpackage/dist/build/web/assets/headerHeight.DQi3EG4R.js +++ b/unpackage/dist/build/web/assets/headerHeight.UQ4SBLpb.js @@ -1 +1 @@ -import{b as t,s,o as a,f as e,i as r,j as i}from"./index-BifMHC6c.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const o=h({name:"headerHeight",props:{bgColor:{type:String,default:()=>"transparent"}},data:()=>({statusBarHeight:0}),created(){this.statusBarHeight=this.getStatusBarHeight()},activated(){this.statusBarHeight=this.getStatusBarHeight()},methods:{getStatusBarHeight(){const a=t();return s("BarHeight",a.statusBarHeight),a.statusBarHeight||0}}},[["render",function(t,s,h,o,g,u){const n=i;return a(),e(n,{class:"status-bar",style:r({height:`${g.statusBarHeight}px`,backgroundColor:h.bgColor})},null,8,["style"])}],["__scopeId","data-v-8e5378ec"]]);export{o as h}; +import{b as t,s,o as a,f as e,i as r,j as i}from"./index-759PoYgM.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const o=h({name:"headerHeight",props:{bgColor:{type:String,default:()=>"transparent"}},data:()=>({statusBarHeight:0}),created(){this.statusBarHeight=this.getStatusBarHeight()},activated(){this.statusBarHeight=this.getStatusBarHeight()},methods:{getStatusBarHeight(){const a=t();return s("BarHeight",a.statusBarHeight),a.statusBarHeight||0}}},[["render",function(t,s,h,o,g,u){const n=i;return a(),e(n,{class:"status-bar",style:r({height:`${g.statusBarHeight}px`,backgroundColor:h.bgColor})},null,8,["style"])}],["__scopeId","data-v-8e5378ec"]]);export{o as h}; diff --git a/unpackage/dist/build/web/assets/index-BifMHC6c.js b/unpackage/dist/build/web/assets/index-759PoYgM.js similarity index 98% rename from unpackage/dist/build/web/assets/index-BifMHC6c.js rename to unpackage/dist/build/web/assets/index-759PoYgM.js index 3b50c962..94f9e77d 100644 --- a/unpackage/dist/build/web/assets/index-BifMHC6c.js +++ b/unpackage/dist/build/web/assets/index-759PoYgM.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/pages-union-index.PBfIvgI_.js","assets/uni-popup.D8sN-IRM.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/uni-app.es.BM6_Rfsu.js","assets/uni-popup-CiaDsRkM.css","assets/nav.CvI0lGd-.js","assets/nav-rqAukde2.css","assets/logo.DDDG-929.js","assets/logout.q3EjtEfG.js","assets/index-Cwa9wpHz.css","assets/pages-union-list.D3bNu27r.js","assets/uni-easyinput.CmmQ9HCd.js","assets/uni-icons.CP-9I_4O.js","assets/uni-icons-CzNUD5eA.css","assets/uni-easyinput-D4Pz0krI.css","assets/list-I4M9I2M7.css","assets/pages-union-agreement.kh2HmveY.js","assets/agreement-4HaWpA2n.css","assets/pages-union-exitApplication.BV3prXkJ.js","assets/headerHeight.DQi3EG4R.js","assets/headerHeight-mMBxd-A1.css","assets/exitApplication-B0Kj5ixV.css","assets/pages-union-historyRecord.Cx9d-OXr.js","assets/historyRecord-Qp37zWZm.css","assets/pages-union-setGroup.B6GxgY7h.js","assets/setGroup-BTMjz8YA.css","assets/pages-union-memberList.coAF--bB.js","assets/memberList-DLPXLd28.css","assets/pages-other-taskDesc.MywoDE-m.js","assets/taskDesc-Ck4fDnwh.css","assets/pages-prop-propMall.NHgMZgQQ.js","assets/tab.DH0wT1MO.js","assets/tab-DmSttbbF.css","assets/propMall-DXfiXVrv.css","assets/pages-other-grade.DBsVZrck.js","assets/grade-CgM4LsLg.css","assets/pages-other-gradeRule.ClaL3hLw.js","assets/gradeRule-DrZ2I1kX.css","assets/pages-other-income.Cdd8_QPJ.js","assets/income-NKhDn0Sd.css","assets/pages-feedback-help.DjHnMIKT.js","assets/uni-cloud.es.VFO8_T8A.js","assets/uni-load-more.B-hqwG84.js","assets/uni-load-more-CZjV53zS.css","assets/help-0e5vyZln.css","assets/pages-feedback-customerService.3L-qQrHD.js","assets/customerService-D7jLvOcQ.css","assets/pages-feedback-feedback.BuX_NQ3B.js","assets/uploadImage.m53ARKO3.js","assets/uploadImage-C8r7mjvt.css","assets/feedback-B4TWiUvw.css","assets/pages-feedback-teenage.CQqA6POU.js","assets/teenage-CG8FDzqk.css","assets/pages-feedback-teenageDetail.B2MwwzvV.js","assets/teenageDetail-DXfexhEE.css","assets/pages-feedback-problemDetail.CJGquA8l.js","assets/problemDetail-Dc2klxRB.css","assets/pages-feedback-report.D9w-Zj4D.js","assets/report-DKUih4nP.css","assets/pages-other-aboutUs.DOrfyetN.js","assets/aboutUs-Bb6yza66.css","assets/pages-other-weChatPay.C30bZxuB.js","assets/weChatPay-BSOjo3Xv.css"] + __vite__mapDeps.viteFileDeps = ["assets/pages-union-index.CI7W0mDn.js","assets/uni-popup.DAsKHQxH.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/uni-app.es.Hulr8kk-.js","assets/uni-popup-CiaDsRkM.css","assets/nav.BBjj-z52.js","assets/nav-rqAukde2.css","assets/logo.DDDG-929.js","assets/logout.q3EjtEfG.js","assets/index-Cwa9wpHz.css","assets/pages-union-list.wZyXjN1g.js","assets/uni-easyinput.C4HErVdH.js","assets/uni-icons.BNs6RC_T.js","assets/uni-icons-CzNUD5eA.css","assets/uni-easyinput-D4Pz0krI.css","assets/list-TuJGdJTs.css","assets/pages-union-agreement.BWIxKhIU.js","assets/agreement-4HaWpA2n.css","assets/pages-union-exitApplication.CWbxnbgC.js","assets/headerHeight.UQ4SBLpb.js","assets/headerHeight-mMBxd-A1.css","assets/exitApplication-B0Kj5ixV.css","assets/pages-union-historyRecord.Cp203Wbx.js","assets/historyRecord-Qp37zWZm.css","assets/pages-union-setGroup.Cz0ccj1-.js","assets/setGroup-BTMjz8YA.css","assets/pages-union-memberList.B7USA0zX.js","assets/memberList-DLPXLd28.css","assets/pages-other-taskDesc.DbFGA4Wj.js","assets/taskDesc-Ck4fDnwh.css","assets/pages-prop-propMall.CAIhR_Vg.js","assets/tab.Nc_JIfEj.js","assets/tab-DmSttbbF.css","assets/propMall-DXfiXVrv.css","assets/pages-other-grade.C6nZb-63.js","assets/grade-CgM4LsLg.css","assets/pages-other-gradeRule.D1gBGQhG.js","assets/gradeRule-DrZ2I1kX.css","assets/pages-other-income.GmFhI_mf.js","assets/income-NKhDn0Sd.css","assets/pages-feedback-help.BdlXAeBH.js","assets/uni-cloud.es.BW6KsUMN.js","assets/uni-load-more.BV7jV9SQ.js","assets/uni-load-more-CZjV53zS.css","assets/help-0e5vyZln.css","assets/pages-feedback-customerService.gDjl8HmU.js","assets/customerService-D7jLvOcQ.css","assets/pages-feedback-feedback.Co7Kw44n.js","assets/uploadImage.BpNxfxIh.js","assets/uploadImage-C8r7mjvt.css","assets/feedback-B4TWiUvw.css","assets/pages-feedback-teenage.CUfeP8MW.js","assets/teenage-CG8FDzqk.css","assets/pages-feedback-teenageDetail.C-nHTfAu.js","assets/teenageDetail-DXfexhEE.css","assets/pages-feedback-problemDetail.DoNYfLra.js","assets/problemDetail-Dc2klxRB.css","assets/pages-feedback-report.BnEcOzYc.js","assets/report-DKUih4nP.css","assets/pages-other-aboutUs.CHEcGUIG.js","assets/aboutUs-Bb6yza66.css","assets/pages-other-weChatPay.BWrE2uLc.js","assets/weChatPay-BSOjo3Xv.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -22,4 +22,4 @@ function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()) * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */(e);if(!o)return;const r=t._component;g(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const Cs="undefined"!=typeof document;const ks=Object.assign;function Es(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ms(r)?r.map(e):e(r)}return n}const Os=()=>{},Ms=Array.isArray,As=/#/g,Ls=/&/g,$s=/\//g,Ps=/=/g,Rs=/\?/g,Bs=/\+/g,Is=/%5B/g,Ns=/%5D/g,Ds=/%5E/g,js=/%60/g,Fs=/%7B/g,Vs=/%7C/g,Hs=/%7D/g,qs=/%20/g;function Ws(e){return encodeURI(""+e).replace(Vs,"|").replace(Is,"[").replace(Ns,"]")}function zs(e){return Ws(e).replace(Bs,"%2B").replace(qs,"+").replace(As,"%23").replace(Ls,"%26").replace(js,"`").replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")}function Ys(e){return null==e?"":function(e){return Ws(e).replace(As,"%23").replace(Rs,"%3F")}(e).replace($s,"%2F")}function Xs(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Us=/\/$/;function Ks(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Xs(s)}}function Gs(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Js(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qs(e[n],t[n]))return!1;return!0}function Qs(e,t){return Ms(e)?ea(e,t):Ms(t)?ea(t,e):e===t}function ea(e,t){return Ms(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ta,na,oa,ra;function ia(e){if(!e)if(Cs){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Us,"")}(na=ta||(ta={})).pop="pop",na.push="push",(ra=oa||(oa={})).back="back",ra.forward="forward",ra.unknown="";const sa=/^[^#]+#/;function aa(e,t){return e.replace(sa,"#")+t}const la=()=>({left:window.scrollX,top:window.scrollY});function ca(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function ua(e,t){return(history.state?history.state.position-t:-1)+e}const da=new Map;function fa(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Gs(n,"")}return Gs(n,e)+o+r}function pa(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?la():null}}function ha(e){const{history:t,location:n}=window,o={value:fa(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=ks({},r.value,t.state,{forward:e,scroll:la()});i(s.current,s,!0),i(e,ks({},pa(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,ks({},t.state,pa(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function ma(e){const t=ha(e=ia(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=fa(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:ta.pop,direction:u?u>0?oa.forward:oa.back:oa.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(ks({},e.state,{scroll:la()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ks({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:aa.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function ga(e){return"string"==typeof e||"symbol"==typeof e}const va={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ya=Symbol("");var _a,ba;function wa(e,t){return ks(new Error,{type:e,[ya]:!0},t)}function xa(e,t){return e instanceof Error&&ya in e&&(null==t||!!(e.type&t))}(ba=_a||(_a={}))[ba.aborted=4]="aborted",ba[ba.cancelled=8]="cancelled",ba[ba.duplicated=16]="duplicated";const Sa={sensitive:!1,strict:!1,start:!0,end:!0},Ta=/[.+*?^${}()[\]/\\]/g;function Ca(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ka(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Oa={type:0,value:""},Ma=/[a-zA-Z0-9_]/;function Aa(e,t,n){const o=function(e,t){const n=ks({},Sa,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{i(f)}:Os}function i(e){if(ga(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Na(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Ra(e)&&o.set(e.record.name,e)}return t=Ia({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw wa(1,{location:e});s=r.record.name,a=ks($a(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&$a(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw wa(1,{location:e,currentLocation:t});s=r.record.name,a=ks({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:Ba(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function $a(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Pa(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Ra(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ba(e){return e.reduce(((e,t)=>ks(e,t.meta)),{})}function Ia(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Na(e,t){return t.children.some((t=>t===e||Na(e,t)))}function Da(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&zs(e))):[o&&zs(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Fa(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ms(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Va=Symbol(""),Ha=Symbol(""),qa=Symbol(""),Wa=Symbol(""),za=Symbol("");function Ya(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Xa(e,t,n,o,r,i=(e=>e())){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(wa(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(wa(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),a())},u=i((()=>e.call(o&&o.instances[r],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function Ua(e,t,n,o,r=(e=>e())){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&i.push(Xa(s,n,o,a,e,r))}else{let s=l();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&Xa(c,n,o,a,e,r)()}))))}}var s;return i}function Ka(e){const t=br(qa),n=br(Wa),o=Ei((()=>t.resolve(un(e.to)))),r=Ei((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Js.bind(null,r));if(s>-1)return s;const a=Ja(e[t-2]);return t>1&&Ja(r)===a&&i[i.length-1].path!==a?i.findIndex(Js.bind(null,e[t-2])):s})),i=Ei((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ms(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Ei((()=>r.value>-1&&r.value===n.matched.length-1&&Zs(n.params,o.value.params)));return{route:o,href:Ei((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[un(e.replace)?"replace":"push"](un(e.to)).catch(Os):Promise.resolve()}}}const Ga=bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ka,setup(e,{slots:t}){const n=qt(Ka(e)),{options:o}=br(qa),r=Ei((()=>({[Za(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Za(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Oi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ja(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Za=(e,t,n)=>null!=e?e:null!=t?t:n;function Qa(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const el=bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=br(za),r=Ei((()=>e.route||o.value)),i=br(Ha,0),s=Ei((()=>{let e=un(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=Ei((()=>r.value.matched[s.value]));_r(Ha,Ei((()=>s.value+1))),_r(Va,a),_r(za,r);const l=sn();return to((()=>[l.value,a.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Js(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return Qa(n.default,{Component:c,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=Oi(c,ks({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return Qa(n.default,{Component:f,route:o})||f}}});function tl(e){const t=La(e.routes,e),n=e.parseQuery||Da,o=e.stringifyQuery||ja,r=e.history,i=Ya(),s=Ya(),a=Ya(),l=an(va);let c=va;Cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Es.bind(null,(e=>""+e)),d=Es.bind(null,Ys),f=Es.bind(null,Xs);function p(e,i){if(i=ks({},i||l.value),"string"==typeof e){const o=Ks(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return ks(o,s,{params:f(s.params),hash:Xs(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ks({},e,{path:Ks(n,e.path,i.path).path});else{const t=ks({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ks({},e,{params:d(t)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(f(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ks({},e,{hash:(h=c,Ws(h).replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")),path:a.path}));var h;const m=r.createHref(p);return ks({fullPath:p,hash:c,query:o===ja?Fa(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Ks(n,e,l.value.path):ks({},e)}function m(e,t){if(c!==e)return wa(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),ks({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=p(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(ks(h(u),{state:"object"==typeof u?ks({},i,u.state):i,force:s,replace:a}),t||n);const d=n;let f;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Js(t.matched[o],n.matched[r])&&Zs(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(f=wa(16,{to:d,from:r}),L(r,r,!0,!1)),(f?Promise.resolve(f):w(d,r)).catch((e=>xa(e)?xa(e,2)?e:A(e):M(e,d,r))).then((e=>{if(e){if(xa(e,2))return y(ks({replace:a},h(e.to),{state:"object"==typeof e.to?ks({},i,e.to.state):i,force:s}),t||d)}else e=S(d,r,!0,a,i);return x(d,r,e),e}))}function _(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,r,a]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sJs(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>Js(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=Ua(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(Xa(o,e,t))}));const l=_.bind(null,e,t);return n.push(l),I(n).then((()=>{n=[];for(const o of i.list())n.push(Xa(o,e,t));return n.push(l),I(n)})).then((()=>{n=Ua(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Xa(o,e,t))}));return n.push(l),I(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(Ms(o.beforeEnter))for(const r of o.beforeEnter)n.push(Xa(r,e,t));else n.push(Xa(o.beforeEnter,e,t));return n.push(l),I(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ua(a,"beforeRouteEnter",e,t,b),n.push(l),I(n)))).then((()=>{n=[];for(const o of s.list())n.push(Xa(o,e,t));return n.push(l),I(n)})).catch((e=>xa(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>b((()=>o(e,t,n)))))}function S(e,t,n,o,i){const s=m(e,t);if(s)return s;const a=t===va,c=Cs?history.state:{};n&&(o||a?r.replace(e.fullPath,ks({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,L(e,t,n,a),A()}let T;function C(){T||(T=r.listen(((e,t,n)=>{if(!B.listening)return;const o=p(e),i=v(o);if(i)return void y(ks(i,{replace:!0}),o).catch(Os);c=o;const s=l.value;var a,u;Cs&&(a=ua(s.fullPath,n.delta),u=la(),da.set(a,u)),w(o,s).catch((e=>xa(e,12)?e:xa(e,2)?(y(e.to,o).then((e=>{xa(e,20)&&!n.delta&&n.type===ta.pop&&r.go(-1,!1)})).catch(Os),Promise.reject()):(n.delta&&r.go(-n.delta,!1),M(e,o,s)))).then((e=>{(e=e||S(o,s,!1))&&(n.delta&&!xa(e,8)?r.go(-n.delta,!1):n.type===ta.pop&&xa(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Os)})))}let k,E=Ya(),O=Ya();function M(e,t,n){A(e);const o=O.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function A(e){return k||(k=!e,C(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function L(t,n,o,r){const{scrollBehavior:i}=e;if(!Cs||!i)return Promise.resolve();const s=!o&&function(e){const t=da.get(e);return da.delete(e),t}(ua(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return kn().then((()=>i(t,n,s))).then((e=>e&&ca(e))).catch((e=>M(e,t,n)))}const $=e=>r.go(e);let P;const R=new Set,B={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return ga(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(ks(h(e),{replace:!0}))},go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:function(){return k&&l.value!==va?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Ga),e.component("RouterView",el),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>un(l)}),Cs&&!P&&l.value===va&&(P=!0,g(r.location).catch((e=>{})));const t={};for(const o in va)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(qa,this),e.provide(Wa,Wt(t)),e.provide(za,l);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c=va,T&&T(),T=null,l.value=va,P=!1,k=!1),n()}}};function I(e){return e.reduce(((e,t)=>e.then((()=>b(t)))),Promise.resolve())}return B}function nl(){return br(Wa)}const ol=["{","}"];const rl=/^(?:\d)+/,il=/^(?:\w)+/;const sl=Object.prototype.hasOwnProperty,al=(e,t)=>sl.call(e,t),ll=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=ol){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class ul{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||ll,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=cl(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{al(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=cl(t,this.messages))&&(o=this.messages[t]):n=t,al(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function dl(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&hd?hd():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new ul({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=tm().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}const fl=ie((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let pl;function hl(){if(!pl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,pl=dl(e),fl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>pl.add(e,__uniConfig.locales[e]))),pl.setLocale(e)}}return pl}function ml(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const gl=ie((()=>{const e="uni.async.",t=["error"];hl().add("en",ml(e,t,["The connection timed out, click the screen to try again."]),!1),hl().add("es",ml(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),hl().add("fr",ml(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),hl().add("zh-Hans",ml(e,t,["连接服务器超时,点击屏幕重试"]),!1),hl().add("zh-Hant",ml(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),vl=ie((()=>{const e="uni.showActionSheet.",t=["cancel"];hl().add("en",ml(e,t,["Cancel"]),!1),hl().add("es",ml(e,t,["Cancelar"]),!1),hl().add("fr",ml(e,t,["Annuler"]),!1),hl().add("zh-Hans",ml(e,t,["取消"]),!1),hl().add("zh-Hant",ml(e,t,["取消"]),!1)})),yl=ie((()=>{const e="uni.showToast.",t=["unpaired"];hl().add("en",ml(e,t,["Please note showToast must be paired with hideToast"]),!1),hl().add("es",ml(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),hl().add("fr",ml(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),hl().add("zh-Hans",ml(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),hl().add("zh-Hant",ml(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),_l=ie((()=>{const e="uni.showLoading.",t=["unpaired"];hl().add("en",ml(e,t,["Please note showLoading must be paired with hideLoading"]),!1),hl().add("es",ml(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),hl().add("fr",ml(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),hl().add("zh-Hans",ml(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),hl().add("zh-Hant",ml(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),bl=ie((()=>{const e="uni.showModal.",t=["cancel","confirm"];hl().add("en",ml(e,t,["Cancel","OK"]),!1),hl().add("es",ml(e,t,["Cancelar","OK"]),!1),hl().add("fr",ml(e,t,["Annuler","OK"]),!1),hl().add("zh-Hans",ml(e,t,["取消","确定"]),!1),hl().add("zh-Hant",ml(e,t,["取消","確定"]),!1)})),wl=ie((()=>{const e="uni.chooseFile.",t=["notUserActivation"];hl().add("en",ml(e,t,["File chooser dialog can only be shown with a user activation"]),!1),hl().add("es",ml(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),hl().add("fr",ml(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),hl().add("zh-Hans",ml(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),hl().add("zh-Hant",ml(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),xl=ie((()=>{const e="uni.setClipboardData.",t=["success","fail"];hl().add("en",ml(e,t,["Content copied","Copy failed, please copy manually"]),!1),hl().add("es",ml(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),hl().add("fr",ml(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),hl().add("zh-Hans",ml(e,t,["内容已复制","复制失败,请手动复制"]),!1),hl().add("zh-Hant",ml(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Sl=ie((()=>{const e="uni.picker.",t=["done","cancel"];hl().add("en",ml(e,t,["Done","Cancel"]),!1),hl().add("es",ml(e,t,["OK","Cancelar"]),!1),hl().add("fr",ml(e,t,["OK","Annuler"]),!1),hl().add("zh-Hans",ml(e,t,["完成","取消"]),!1),hl().add("zh-Hant",ml(e,t,["完成","取消"]),!1)}));function Tl(e){const t=new $e;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Cl=1;const kl=Object.create(null);function El(e,t){return e+"."+t}function Ol({id:e,name:t,args:n},o){t=El(o,t);const r=t=>{e&&sv.publishHandler("invokeViewApi."+e,t)},i=kl[t];i?i(n,r):r({})}const Ml=c(Tl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=sv,i=n?Cl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Al=_e(!0);let Ll;function $l(){Ll&&(clearTimeout(Ll),Ll=null)}let Pl=0,Rl=0;function Bl(e){if($l(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Pl=t,Rl=n,Ll=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Il(e){if(!Ll)return;if(1!==e.touches.length)return $l();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Pl)>10||Math.abs(n-Rl)>10?$l():void 0}function Nl(e,t){const n=Number(e);return isNaN(n)?t:n}function Dl(){const e=__uniConfig.globalStyle||{},t=Nl(e.rpxCalcMaxDeviceWidth,960),n=Nl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fl,Vl,Hl=["top","left","right","bottom"],ql={};function Wl(){return Vl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function zl(){if(Vl="string"==typeof Vl?Vl:Wl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Hl.forEach((function(e){s(o,e)})),document.body.appendChild(o),i(),Fl=!0}else Hl.forEach((function(e){ql[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Vl+"(safe-area-inset-"+n+")"};r(o,c),r(s,c),r(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),i((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,r=s.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,r=s.scrollTop,function(e){Xl.length||setTimeout((function(){var e={};Xl.forEach((function(t){e[t]=ql[t]})),Xl.length=0,Ul.forEach((function(t){t(e)}))}),0);Xl.push(e)}(n))}o.addEventListener("scroll",i,t),s.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(ql,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Yl(e){return Fl||zl(),ql[e]}var Xl=[];var Ul=[];const Kl=jl({get support(){return 0!=("string"==typeof Vl?Vl:Wl()).length},get top(){return Yl("top")},get left(){return Yl("left")},get right(){return Yl("right")},get bottom(){return Yl("bottom")},onChange:function(e){Wl()&&(Fl||zl(),"function"==typeof e&&Ul.push(e))},offChange:function(e){var t=Ul.indexOf(e);t>=0&&Ul.splice(t,1)}}),Gl=ws((()=>{}),["prevent"]),Jl=ws((e=>{}),["stop"]);function Zl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Ql(){const e=Zl(document.documentElement.style,"--window-top");return e?e+Kl.top:0}function ec(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function tc(e){return Symbol(e)}function nc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function oc(e,t=!1){if(t)return function(e){if(!nc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>nd(parseFloat(t))+"px"))}(e);if(v(e)){const t=parseInt(e)||0;return nc(e)?nd(t):t}return e}function rc(e){return e.$page}function ic(e){return 0===e.tagName.indexOf("UNI-")}const sc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",ac="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function lc(e,t="#000",n=27){return ri("svg",{width:n,height:n,viewBox:"0 0 32 32"},[ri("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function cc(){{const{$pageInstance:o}=gi();return o&&(e=o.proxy,(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id))}var e,t,n}function uc(){const e=xf(),t=e.length;if(t)return e[t-1]}function dc(){var e;const t=null==(e=uc())?void 0:e.$page;if(t)return t.meta}function fc(){const e=dc();return e?e.id:-1}function pc(){const e=uc();if(e)return e.$vm}const hc=["navigationBar","pullToRefresh"];function mc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);hc.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function gc(e,t,n,o,r,i){const{id:s,route:a}=o,l=Be(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:s,path:oe(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}function vc(e,t,n){if(v(e))n=t,t=e,e=pc();else if("number"==typeof e){const t=xf().find((t=>rc(t).id===e));e=t?t.$vm:pc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-bc)>n;return!i||r&&!s?(!i&&r&&(r=!1),!1):(bc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(s()||(_c=setTimeout(s,300))),o=!1};return function(){clearTimeout(_c),o||requestAnimationFrame(s),o=!0}}function xc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return xc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),oe(i.concat(n).join("/"))}function Sc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function Tc(){Dl(),ge(ic),window.addEventListener("touchstart",Bl,Al),window.addEventListener("touchmove",Il,Al),window.addEventListener("touchend",$l,Al),window.addEventListener("touchcancel",$l,Al)}class Cc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(fe(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&fe(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Mc(this.$el.querySelector(e));return t?kc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];g(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&sv.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function kc(e,t=!0){if(t&&e&&(e=de(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Cc(e)),e.$el.__wxsComponentDescriptor}function Ec(e,t){return kc(e,t)}function Oc(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Ec(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=de(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Ec(r,!1)]}}function Mc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Ac(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let s,a;s=be(t?r:function(e){for(;!ic(e);)e=e.parentElement;return e}(r)),a=be(i);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&S(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Lc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function $c(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Ql();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Lc(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Ql();i.touches=$c(e.touches,t),i.changedTouches=$c(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Oc(i,t,n)||[i]},createNativeEvent:Ac},Symbol.toStringTag,{value:"Module"});function Rc(e){!function(e){const t=e.globalProperties;c(t,Pc),t.$gcd=Ec}(e._context.config)}let Bc=1;function Ic(e){return(e||fc())+".invokeViewApi"}const Nc=c(Tl("view"),{invokeOnCallback:(e,t)=>av.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=av,s=o?Bc++:0;o&&r("invokeViewApi."+s,o,!0),i(Ic(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:s}=av,a=Bc++,l="invokeViewApi."+a;return r(l,n),s(Ic(o),{id:a,name:e,args:t},o),()=>{i(l)}}});function Dc(e){vc(uc(),"onResize",e),av.invokeOnCallback("onWindowResize",e)}function jc(e){const t=uc();vc(tm(),"onShow",e),vc(t,"onShow")}function Fc(){vc(tm(),"onHide"),vc(uc(),"onHide")}const Vc=["onPageScroll","onReachBottom"];function Hc(){Vc.forEach((e=>av.subscribe(e,function(e){return(t,n)=>{vc(parseInt(n),e,t)}}(e))))}function qc(){!function(){const{on:e}=av;e("onResize",Dc),e("onAppEnterForeground",jc),e("onAppEnterBackground",Fc)}(),Hc()}function Wc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new ke(this.$page.id)),e.eventChannel}}function zc(e){e._context.config.globalProperties.getOpenerEventChannel=Wc}function Yc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Xc(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${nd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Uc(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,s=e.option,a=s.transition,l={},c=[];return i.forEach((e=>{let i=e.type,s=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(s=s.map(Xc)),n.indexOf(i)>=0&&(s.length=1),c.push(`${i}(${s.join(",")})`);else if(o.concat(r).includes(s[0])){i=s[0];const e=s[1];l[i]=r.includes(i)?Xc(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{i()}),0)}const Kc={props:["animation"],watch:{animation:{deep:!0,handler(){Uc(this)}}},mounted(){Uc(this)}},Gc=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Kc),Jc(e)},Jc=e=>(e.__reserved=!0,e.compatConfig={MODE:3},bo(e));function Zc(e){return e.__wwe=!0,e}function Qc(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=be(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const eu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function tu(e){const t=sn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function a(){r=!1,t.value&&i()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Zc((function(e){e.touches.length>1||s(e)})),onMousedown:Zc((function(e){r||(s(e),window.addEventListener("mouseup",l))})),onTouchend:Zc((function(){a()})),onMouseup:Zc((function(){r&&l()})),onTouchcancel:Zc((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function nu(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const ou=tc("uf"),ru=Gc({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=sn(null);return function(e){const t=[];_r(ou,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(Qc(o,n)),()=>ri("uni-form",{ref:o},[ri("span",null,[t.default&&t.default()])],512)}});const iu={for:{type:String,default:""}},su=tc("ul");const au=Gc({name:"Label",props:iu,setup(e,{slots:t}){const n=sn(null),o=cc(),r=function(){const e=[];return _r(su,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),i=Ei((()=>e.for||t.default&&t.default.length)),s=Zc((t=>{const n=t.target;let i=/^uni-(checkbox|radio|switch)-/.test(n.className);i||(i=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),i||(e.for?sv.emit("uni-label-click-"+o+"-"+e.for,t,!0):r.length&&r[0](t,!0))}));return()=>ri("uni-label",{ref:n,class:{"uni-label-pointer":i},onClick:s},[t.default&&t.default()],10,["onClick"])}});function lu(e,t){cu(e.id,t),to((()=>e.id),((e,n)=>{uu(n,t,!0),cu(e,t,!0)})),Wo((()=>{uu(e.id,t)}))}function cu(e,t,n){const o=cc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&sv.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?sv.on(r,t[r]):e&&sv.on(`uni-${r}-${o}-${e}`,t[r])}))}function uu(e,t,n){const o=cc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&sv.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?sv.off(r,t[r]):e&&sv.off(`uni-${r}-${o}-${e}`,t[r])}))}const du=Gc({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=sn(null),o=br(ou,!1),{hovering:r,binding:i}=tu(e),s=Zc(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),a=br(su,!1);return a&&(a.addHandler(s),qo((()=>{a.removeHandler(s)}))),lu(e,{"label-click":s}),()=>{const o=e.hoverClass,a=nu(e,"disabled"),l=nu(e,"loading"),c=nu(e,"plain"),u=o&&"none"!==o;return ri("uni-button",di({ref:n,onClick:s,id:e.id,class:u&&r.value?o:""},u&&i,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),fu=tc("upm");function pu(){return br(fu)}function hu(e){const t=function(e){return qt(function(e){if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==xf().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(mc(nl().meta,e)))))}(e);return _r(fu,t),t}function mu(){return nl()}function gu(){return history.state&&history.state.__id__||1}const vu=["original","compressed"],yu=["album","camera"],_u=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function bu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function wu(e,t){return!p(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function xu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Su=1;const Tu={};function Cu(e,t,n){if("number"==typeof e){const o=Tu[e];if(o)return o.keepAlive||delete Tu[e],o.callback(t,n)}return t}const ku="success",Eu="fail",Ou="complete";function Mu(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];g(o)&&(t[n]=xu(o),delete e[n])}return t}(t),a=g(r),l=g(i),c=g(s),u=Su++;return function(e,t,n,o=!1){Tu[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),g(n)&&n(u),u.errMsg===e+":ok"?(g(o)&&o(u,t),a&&r(u)):l&&i(u),c&&s(u)})),u}const Au="success",Lu="fail",$u="complete",Pu={},Ru={};function Bu(e,t){return function(n){return e(n,t)||n}}function Iu(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function Nu(e,t={}){return[Au,Lu,$u].forEach((n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){Iu(o,e,t).then((e=>g(r)&&r(e)||e))}})),t}function Du(e,t){const n=[];p(Pu.returnValue)&&n.push(...Pu.returnValue);const o=Ru[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function ju(e){const t=Object.create(null);Object.keys(Pu).forEach((e=>{"returnValue"!==e&&(t[e]=Pu[e].slice())}));const n=Ru[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Fu(e,t,n,o){const r=ju(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return Iu(r.invoke,n).then((n=>t(Nu(ju(e),n),...o)))}return t(Nu(r,n),...o)}return t(n,...o)}function Vu(e,t){return(n={},...o)=>function(e){return!(!S(e)||![ku,Eu,Ou].find((t=>g(e[t]))))}(n)?Du(e,Fu(e,t,c({},n),o)):Du(e,new Promise(((r,i)=>{Fu(e,t,c({},n,{success:r,fail:i}),o)})))}function Hu(e,t,n,o={}){const r=t+":fail";let i="";return i=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,Cu(e,c({errMsg:i},o))}function qu(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const r=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Mu(e,n,o),i=qu(0,[n],0,o);return i?Hu(r,e,i):t(n,{resolve:t=>function(e,t,n){return Cu(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>Hu(r,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function zu(e,t,n,o){return Vu(e,Wu(e,t,0,o))}function Yu(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=qu(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Xu(e,t,n,o){return Vu(e,function(e,t,n,o){return Wu(e,t,0,o)}(e,t,0,o))}let Uu=!1,Ku=0,Gu=0,Ju=960,Zu=375,Qu=750;function ed(){let e,t,n;{const{windowWidth:o,pixelRatio:r,platform:i}=function(){const e=Yf(),t=Kf(Uf(e,Xf(e)));return{platform:Vf?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=r,n=i}Ku=e,Gu=t,Uu="ios"===n}function td(e,t){const n=Number(e);return isNaN(n)?t:n}const nd=Yu(0,((e,t)=>{if(0===Ku&&(ed(),function(){const e=__uniConfig.globalStyle||{};Ju=td(e.rpxCalcMaxDeviceWidth,960),Zu=td(e.rpxCalcBaseDeviceWidth,375),Qu=td(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Ku;n=e===Qu||n<=Ju?n:Zu;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Gu&&Uu?.5:1),e<0?-o:o}));function od(e,t){Object.keys(t).forEach((n=>{g(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{v(e)&&S(t)?od(Ru[e]||(Ru[e]={}),t):S(e)&&od(Pu,e)}));const id=new class{constructor(){this.$emitter=new $e}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},sd=Yu(0,((e,t)=>(id.on(e,t),()=>id.off(e,t)))),ad=Yu(0,((e,t)=>{p(e)||(e=e?[e]:[]),e.forEach((e=>{id.off(e,t)}))})),ld=Yu(0,((e,...t)=>{id.emit(e,...t)})),cd={formatArgs:{}},ud={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class dd{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},ud,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const fd=ie((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{dd.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),pd=Yu(0,(e=>(fd(),new dd(e))),0,cd),hd=Yu(0,(()=>{const e=tm();return e&&e.$vm?e.$vm.$locale:hl().getLocale()})),md={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const gd=Yu(0,(()=>c({},tp)));let vd,yd,_d;const bd=[];const wd=Xu("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===_d&&(_d=!1,vd="",yd="uniPush is not enabled"),bd.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==vd&&(e=vd,o=yd,bd.forEach((t=>{t(e,o)})),bd.length=0)}))})),xd=e=>{},Sd=e=>{},Td={formatArgs:{showToast:!0},beforeInvoke(){xl()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=hl(),o=n("uni.setClipboardData.success");o&&Bg({title:o,icon:"success",mask:!1})}},Cd=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=wu(e,vu)},sourceType(e,t){t.sourceType=wu(e,yu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),kd={formatArgs:{sourceType(e,t){t.sourceType=wu(e,yu)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Ed=(Boolean,["all","image","video"]),Od={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=wu(e,yu)},type(e,t){t.type=bu(e,Ed)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},Md={formatArgs:{src(e,t){t.src=Df(e)}}},Ad={formatArgs:{urls(e,t){t.urls=e.map((e=>v(e)&&e?Df(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};i.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(f(t,a)){let e=t[a];null==e?e="":S(e)&&(e=JSON.stringify(e)),s[Pd(a)]=Pd(e)}return r=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==_u[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Ld).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===$d.indexOf(t.responseType)&&(t.responseType="text")}}},Bd={formatArgs:{filePath(e,t){e&&(t.filePath=Df(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Id={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=bu((e||"").toUpperCase(),_u)},protocols(e,t){v(e)&&(t.protocols=[e])}}};const Nd={url:{type:String,required:!0}},Dd=(Hd(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Hd(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),zd("navigateTo")),jd=zd("redirectTo"),Fd=zd("reLaunch"),Vd={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(xf().length-1,e)}}};function Hd(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let qd;function Wd(){qd=""}function zd(e){return{formatArgs:{url:Yd(e)},beforeAll:Wd}}function Yd(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=xf();return n.length&&(t=rc(n[n.length-1]).route),xc(t,e)}(t)).split("?")[0],r=Sc(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(qd===t&&"appLaunch"!==n.openType)return`${qd} locked`;__uniConfig.ready&&(qd=t)}else if(r.meta.isTabBar){const e=xf(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const Xd={formatArgs:{itemColor:"#000"}},Ud=(Boolean,{formatArgs:{title:"",mask:!1}}),Kd=(Boolean,{beforeInvoke(){bl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=hl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=hl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Gd=["success","loading","none","error"],Jd=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=bu(e,Gd)},image(e,t){t.image=e?Df(e):""},duration:1500,mask:!1}});function Zd(){const e=pc();if(!e)return;const t=wf(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Tf(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,vc(e,"onHide"))}function Qd(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function ef(e){const t=wf().values();for(const n of t){const t=mf(n);if(Qd(e,t))return n.$.__isActive=!0,t.id}}const tf=Xu("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(gf.handledBeforeEntryPageRoutes)return Zd(),af({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},ef(e)).then(o).catch(r);yf.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,zd("switchTab"));function nf(){const e=uc();if(!e)return;const t=mf(e);Tf(Ef(t.path,t.id))}const of=Xu("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(gf.handledBeforeEntryPageRoutes)return nf(),af({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o);_f.push({args:{type:"redirectTo",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,jd);function rf(){const e=wf().keys();for(const t of e)Tf(t)}const sf=Xu("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(gf.handledBeforeEntryPageRoutes)return rf(),af({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);bf.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Fd);function af({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const s=tm().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Te(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Cf,__type__:e}}(e,i);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((i=>{if(xa(i))return c(i.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new ke(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}function lf(){if(gf.handledBeforeEntryPageRoutes)return;gf.handledBeforeEntryPageRoutes=!0;const e=[...vf];vf.length=0,e.forEach((({args:e,resolve:t,reject:n})=>af(e).then(t).catch(n)));const t=[...yf];yf.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(Zd(),af(e,ef(e.url)).then(t).catch(n))));const n=[..._f];_f.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(nf(),af(e).then(t).catch(n))));const o=[...bf];bf.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(rf(),af(e).then(t).catch(n))))}function cf(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const uf=cf("top:env(a)"),df=cf("top:constant(a)"),ff=(()=>uf?"env":df?"constant":"")();function pf(e){var t,n;ec({"--window-top":(n=0,ff?`calc(${n}px + ${ff}(safe-area-inset-top))`:`${n}px`),"--window-bottom":(t=0,ff?`calc(${t}px + ${ff}(safe-area-inset-bottom))`:`${t}px`)})}const hf=new Map;function mf(e){return e.$page}const gf={handledBeforeEntryPageRoutes:!1},vf=[],yf=[],_f=[],bf=[];function wf(){return hf}function xf(){return Sf()}function Sf(){const e=[],t=hf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Tf(e,t=!0){const n=hf.get(e);n.$.__isUnload=!0,vc(n,"onUnload"),hf.delete(e),t&&function(e){const t=Of.get(e);t&&(Of.delete(e),Mf.pruneCacheEntry(t))}(e)}let Cf=gu();function kf(e){const t=function(e){const t=pu();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),gc("navigateTo",n,{},t)}(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),hf.set(Ef(t.path,t.id),e),1===hf.size&&setTimeout((()=>{lf()}),0)}function Ef(e,t){return e+"$$"+t}const Of=new Map,Mf={get:e=>Of.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Mf.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);o&&o>t&&(Mf.delete(n),Mf.pruneCacheEntry(e),kn((()=>{hf.forEach(((e,t)=>{e.$.isUnmounted&&hf.delete(t)}))})))}))}(e),Of.set(e,t)},delete(e){Of.get(e)&&Of.delete(e)},forEach(e){Of.forEach(e)}};function Af(e,t){!function(e){const t=$f(e),{body:n}=document;Pf&&n.removeAttribute(Pf),t&&n.setAttribute(t,""),Pf=t}(e),pf(),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),If(e,t)}function Lf(e){const t=$f(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function $f(e){return e.type.__scopeId}let Pf;const Rf=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let Bf;function If(e,t){if(document.removeEventListener("touchmove",yc),Bf&&document.removeEventListener("scroll",Bf),t.disableScroll)return document.addEventListener("touchmove",yc,Rf);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!r)return;const i={},s=mf(e.proxy).id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&sv.publishHandler("onPageScroll",{scrollTop:o},e),n&&sv.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,r)),(null==o?void 0:o.length)&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>sv.publishHandler("onReachBottom",{},s)),Bf=wc(i),requestAnimationFrame((()=>document.addEventListener("scroll",Bf)))}function Nf(e){const{base:t}=__uniConfig.router;return 0===oe(e).indexOf(t)?oe(e):t+e}function Df(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Nf(e.slice(1));e="https:"+e}if(ee.test(e)||te.test(e)||0===e.indexOf("blob:"))return e;const o=Sf();return o.length?Nf(xc(mf(o[o.length-1]).route,e).slice(1)):e}const jf=navigator.userAgent,Ff=/android/i.test(jf),Vf=/iphone|ipad|ipod/i.test(jf),Hf=jf.match(/Windows NT ([\d|\d.\d]*)/i),qf=/Macintosh|Mac/i.test(jf),Wf=/Linux|X11/i.test(jf),zf=qf&&navigator.maxTouchPoints>0;function Yf(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Xf(e){return e&&90===Math.abs(window.orientation)}function Uf(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Kf(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}const Gf={};function Jf(e,t){const n=Gf[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return Zf(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Zf(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function Qf(e){for(const n in Gf)if(f(Gf,n)){if(Gf[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Gf[t]=e,t}function ep(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Gf[e]}const tp=Yc(),np=Yc();const op=Gc({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=sn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=qt({width:-1,height:-1});return to((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){Mo(o),Fo((()=>{t.initial&&kn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>ri("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[ri("div",{onScroll:r},[ri("div",null,null)],40,["onScroll"]),ri("div",{onScroll:r},[ri("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const rp=tc("ucg"),ip=Gc({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=sn(null);return function(e,t){const n=[],o=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);_r(rp,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:o()})}});const r=br(ou,!1);r&&r.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}})}(e,Qc(o,t)),()=>ri("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});const sp=Gc({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=sn(null),o=sn(e.checked),r=Ei((()=>"true"===o.value||!0===o.value)),i=sn(e.value);const s=Ei((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(r.value)));to([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,i.value=t}));const{uniCheckGroup:a,uniLabel:l}=function(e,t,n){const o=Ei((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),r={reset:n},i=br(rp,!1);i&&i.addField(o);const s=br(ou,!1);s&&s.addField(r);const a=br(su,!1);return qo((()=>{i&&i.removeField(o),s&&s.removeField(r)})),{uniCheckGroup:i,uniForm:s,uniLabel:a}}(o,i,(()=>{o.value=!1})),c=t=>{e.disabled||(o.value=!o.value,a&&a.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),qo((()=>{l.removeHandler(c)}))),lu(e,{"label-click":c}),()=>{const r=nu(e,"disabled");let i;return i=o.value,ri("uni-checkbox",di(r,{id:e.id,onClick:c,ref:n}),[ri("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[ri("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[i?lc(sc,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function ap(){}const lp={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function cp(e,t,n){function o(e){const t=Ei((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",ap,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",ap,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}to((()=>t.value),(e=>e&&o(e)))}const up={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},dp={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},fp={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},pp=Gc({name:"Image",props:up,setup(e,{emit:t}){const n=sn(null),o=function(e,t){const n=sn(""),o=Ei((()=>{let e="auto",o="";const r=fp[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=qt({rootEl:e,src:Ei((()=>t.src?Df(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Fo((()=>{const t=e.value;r.origWidth=t.clientWidth||0,r.origHeight=t.clientHeight||0})),r}(n,e),r=Qc(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=dp[o];if(!r)return;const{origWidth:i,origHeight:s}=n,a=i&&s?i/s:0;if(!a)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){hp&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,a))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return to((()=>t.mode),((e,t)=>{dp[t]&&r(),dp[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;a(u,d,l),kn((()=>{o()})),i.draggable=t.draggable,s&&s.remove(),s=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{a(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};to((()=>e.src),(e=>l(e))),to((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Fo((()=>l(e.src))),qo((()=>c()))}(o,e,n,i,r),()=>ri("uni-image",{ref:n},[ri("div",{style:o.modeStyle},null,4),dp[e.mode]?ri(op,{onResize:i},null,8,["onResize"]):ri("span",null,null)],512)}});const hp="Google Inc."===navigator.vendor;const mp=_e(!0),gp=[];let vp=0,yp=!1;const _p=e=>gp.forEach((t=>t.userAction=e));function bp(e={userAction:!1}){if(!yp){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!vp&&_p(!0),vp++,setTimeout((()=>{!--vp&&_p(!1)}),0)}),mp)})),yp=!0}gp.push(e)}const wp=()=>!!vp;function xp(){const e=qt({userAction:!1});return Fo((()=>{bp(e)})),qo((()=>{!function(e){const t=gp.indexOf(e);t>=0&&gp.splice(t,1)}(e)})),{state:e}}function Sp(){const e=qt({attrs:{}});return Fo((()=>{let t=gi();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Tp(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}const Cp=function(){var e,t,n;e=fc(),n=Tp,t=El(e,t="getSelectedTextRange"),kl[t]||(kl[t]=n)};function kp(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Ep=["none","text","decimal","numeric","tel","search","email","url"],Op=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Ep.indexOf(e)},cursorColor:{type:String,default:""}},lp),Mp=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Ap(e,t,n,o){let r=null;r=Ce((n=>{t.value=kp(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),to((()=>e.modelValue),r),to((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const s=Date.now();clearTimeout(n),o=()=>{o=null,r=s,e.apply(this,i)},s-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return jo((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Lp(e,t){xp();const n=Ei((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}to((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Fo((()=>{n.value&&kn(o)}))}function $p(e,t,n,o){Cp();const{fieldRef:r,state:i,trigger:s}=function(e,t,n){const o=sn(null),r=Qc(t,n),i=Ei((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=Ei((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=Ei((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Ei((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=kp(e.modelValue,e.type)||kp(e.value,e.type);const u=qt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:s,cursor:a});return to((()=>u.focus),(e=>n("update:focus",e))),to((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:a}=Ap(e,i,n,s);Lp(e,r),cp(0,r);const{state:l}=Sp();!function(e,t){const n=br(ou,!1);if(!n)return;const o=gi(),r={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(r),qo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}to([()=>t.selectionStart,()=>t.selectionEnd],s),to((()=>t.cursor),a),to((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),g(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(r,i,e,s,a,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Pp=c({},Op,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Rp=ie((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function Bp(e,t,n,o,r){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",r&&(r.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",r.fn)},o.addEventListener("blur",r.fn)),!1}else if("deleteContentBackward"===e.inputType&&Rp()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Ip=Gc({name:"Input",props:Pp,emits:["confirm",...Mp],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=Ei((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=Ei((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(A(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let a=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=sn(null!=t?t.toLocaleString():"");return to((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),to((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return sn("")}(e,i),l={fn:null};const c=sn(null),{fieldRef:u,state:d,scopedAttrsState:f,fixDisabledColor:p,trigger:h}=$p(e,c,t,((t,n)=>{const o=t.target;if("number"===i.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!a.value||!o.value)&&"-"===t.data||"-"===a.value[0]&&"deleteContentBackward"===t.inputType)return a.value="-",n.value="",l.fn=()=>{a.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=Bp(t,a,n,o,l);return"boolean"==typeof e?e:(a.value=n.value=o.value="-"===a.value?"":a.value,!1)}{const e=Bp(t,a,n,o,l);if("boolean"==typeof e)return e;a.value=o.value}const r=n.maxlength;if(r>0&&o.value.length>r){o.value=o.value.slice(0,r),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}}));to((()=>d.value),(t=>{"number"!==e.type||"-"===a.value&&""===t||(a.value=t.toString())}));const m=["number","digit"],g=Ei((()=>m.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?ri("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):ri("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:v,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return ri("uni-input",{ref:c},[ri("div",{class:"uni-input-wrapper"},[so(ri("div",di(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ki,!(d.value.length||"-"===a.value||a.value.includes("."))]]),"search"===e.confirmType?ri("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Np=["class","style"],Dp=/^on[A-Z]+/,jp=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=gi(),r=an({}),i=an({}),s=an({}),a=n.concat(Np);return o.attrs=qt(o.attrs),Qn((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:Dp.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,s.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:s}};function Fp(e){const t=[];return p(e)&&e.forEach((e=>{Zr(e)?e.type===Fr?t.push(...Fp(e.children)):t.push(e):p(e)&&t.push(...Fp(e))})),t}const Vp=Gc({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=sn(null),o=sn(!1);let{setContexts:r,events:i}=function(e,t){const n=sn(0),o=sn(0),r=qt({x:null,y:null}),i=sn(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=a){let o=t.value;function r(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=Hp(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=Zc((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(Hp(n)/i.value)}r.x=n.x,r.y=n.y}})),f=Zc((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?a.forEach((function(e){e._endScale()})):s&&s._endScale())}));function p(){h(),a.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return _r("movableAreaWidth",n),_r("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:p}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=jp(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Fo((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Zt(o))}r(e)}return _r("_isMounted",o),_r("movableAreaRootRef",n),_r("addMovableViewContext",(e=>{d.push(e),f()})),_r("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=Fp(e),ri("uni-movable-area",di({ref:n},a.value,l.value,c),[ri(op,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function Hp(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const qp=function(e,t,n,o){e.addEventListener(t,(e=>{g(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Wp,zp;function Yp(e,t,n){qo((()=>{document.removeEventListener("mousemove",Wp),document.removeEventListener("mouseup",zp)}));let o=0,r=0,i=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-r,ddx:a-i,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;qp(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=s=e.touches[0].pageY,a(e,"start",o,r)})),qp(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=s=e.pageY,a(e,"start",o,r)})),qp(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=Wp=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return i=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),qp(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=zp=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),qp(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Xp(e,t,n){return e>t-n&&ethis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Gp.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Gp.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Gp.prototype.dt=function(){return-this._x_v/this._x_a},Gp.prototype.done=function(){const e=Xp(this.s().x,this._endPositionX)||Xp(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Gp.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Gp.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Jp.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,s=t/(r*e);return{x:function(e){return(i+s*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+s*e)*t+s*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Jp.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Jp.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Jp.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Up(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Up(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Up(t,.1)&&(t=0),Up(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Up(o-e,.1)&&Up(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Jp.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Jp.prototype.done=function(e){return e||(e=(new Date).getTime()),Xp(this.x(),this._endPosition,.1)&&Up(this.dx(),.1)},Jp.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Jp.prototype.springConstant=function(){return this._k},Jp.prototype.damping=function(){return this._c},Jp.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Zp.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},Zp.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Zp.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Zp.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Qp(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const eh=Gc({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=sn(null),r=Qc(o,n),{setParent:i}=function(e,t,n){const o=br("_isMounted",sn(!1)),r=br("addMovableViewContext",(()=>{})),i=br("removeMovableViewContext",(()=>{}));let s,a,l=sn(1),c=sn(1),u=sn(!1),d=sn(0),f=sn(0),p=null,h=null,m=!1,g=null,v=null;const y=new Kp,_=new Kp,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=Ei((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Gp(1,w.value);to((()=>e.disabled),(()=>{z()}));const{_updateOldScale:S,_endScale:T,_setScale:C,scaleValueSync:k,_updateBoundary:E,_updateOffset:O,_updateWH:M,_scaleOffset:A,minX:L,minY:$,maxX:P,maxY:R,FAandSFACancel:B,_getLimitXY:I,_setTransform:N,_revise:D,dampingNumber:j,xMove:F,yMove:V,xSync:H,ySync:q,_STD:W}=function(e,t,n,o,r,i,s,a,l,c){const u=Ei((()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t})),d=Ei((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),f=sn(Number(e.scaleValue)||1);to(f,(e=>{N(e)})),to(u,(()=>{I()})),to(d,(()=>{I()})),to((()=>e.scaleValue),(e=>{f.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:m,_scaleOffset:g,minX:v,minY:y,maxX:_,maxY:b}=function(e,t,n){const o=br("movableAreaWidth",sn(0)),r=br("movableAreaHeight",sn(0)),i=br("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=sn(0),c=sn(0),u=sn(0),d=sn(0),f=sn(0),p=sn(0);function h(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),f.value=Math.max(e,t);let n=0-s.y+a.y,i=r.value-c.value-s.y-a.y;d.value=Math.min(n,i),p.value=Math.max(n,i)}function m(){s.x=oh(e.value,i.value),s.y=rh(e.value,i.value)}function g(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();c.value=r.height/t.value,l.value=r.width/t.value;let i=c.value*o,s=l.value*o;a.x=(s-l.value)/2,a.y=(i-c.value)/2}return{_updateBoundary:h,_updateOffset:m,_updateWH:g,_scaleOffset:a,minX:u,minY:d,maxX:f,maxY:p}}(t,o,B),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:T,_revise:C,dampingNumber:k,xMove:E,yMove:O,xSync:M,ySync:A,_STD:L}=function(e,t,n,o,r,i,s,a,l,c,u,d,f,p){const h=Ei((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=Ei((()=>"all"===t.direction||"horizontal"===t.direction)),g=Ei((()=>"all"===t.direction||"vertical"===t.direction)),v=sn(sh(t.x)),y=sn(sh(t.y));to((()=>t.x),(e=>{v.value=sh(e)})),to((()=>t.y),(e=>{y.value=sh(e)})),to(v,(e=>{C(e)})),to(y,(e=>{k(e)}));const _=new Zp(1,9*Math.pow(h.value,2)/40,h.value);function b(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),F.value&&(n=t.detail.dx+s,b.historyX.shift(),b.historyX.push(n),V.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(o=t.detail.dy+a,b.historyY.shift(),b.historyY.push(o),F.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let r="touch";nP.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=P.value+y.x(n-P.value)):n=P.value),o<$.value?e.outOfBounds?(r="touch-out-of-bounds",o=$.value-_.x($.value-o)):o=$.value:o>R.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=R.value+_.x(o-R.value)):o=R.value),nh((function(){N(n,o,l.value,r)}))}}}function X(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!D("out-of-bounds")&&e.inertia)){const e=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),t=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),n=d.value,o=f.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let s=r+n,a=i+o;sP.value&&(s=P.value,a=o+(P.value-n)*i/r),a<$.value?(a=$.value,s=n+($.value-o)*r/i):a>R.value&&(a=R.value,s=n+(R.value-o)*r/i),x.setEnd(s,a),h=ih(x,(function(){let e=x.s(),t=e.x,n=e.y;N(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||B()}function U(){if(!o.value)return;B();let t=e.scale?k.value:1;O(),M(t),E();let n=I(H.value+A.x,q.value+A.y),r=n.x,i=n.y;N(r,i,t,"",!0),S(t)}return Fo((()=>{Yp(n.value,(e=>{switch(e.detail.state){case"start":z();break;case"move":Y(e);break;case"end":X()}})),U(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow(j.value,2)/40,j.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:U,_endScale:T,_setScale:C};r(e),Wo((()=>{i(e)}))})),Wo((()=>{B()})),{setParent:U}}(e,r,o);return()=>ri("uni-movable-view",{ref:o},[ri(op,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let th=!1;function nh(e){th||(th=!0,requestAnimationFrame((function(){e(),th=!1})))}function oh(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=oh(e.offsetParent,t):0}function rh(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=rh(e.offsetParent,t):0}function ih(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function sh(e){return/\d+[ur]px$/i.test(e)?nd(parseFloat(e)):Number(e)||0}const ah=Gc({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return p(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=sn(null),r=sn(null),i=Qc(o,n),s=function(e){const t=qt([...e.value]),n=qt({value:t,height:34});return to((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),a=sn(null);Fo((()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)}));let l=sn([]),c=sn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==Hr));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return _r("getPickerViewColumn",(function(e){return Ei({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map((e=>e));n("update:value",e),i("change",{},{value:e})}}})})),_r("pickerViewProps",e),_r("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Fp(e);l.value=t,kn((()=>{c.value=t}))}return ri("uni-picker-view",{ref:o},[ri(op,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),ri("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class lh{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function ch(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!uh(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(uh(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),uh(t,.4)&&(t=0),uh(o,.4)&&(o=0),o+=this._endPosition),this._solution&&uh(o-e,.4)&&uh(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),ch(this.x(),this._endPosition,.4)&&uh(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class fh{constructor(e,t,n){this._extent=e,this._friction=t||new lh(.01),this._spring=n||new dh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class ph{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new fh(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(g(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const r=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function hh(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new ph(e,t);function r(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,r=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=r.screenX,n.y=r.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||r.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const i=r(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=r(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,r=n.historyTime[t],i=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=r-n.historyTime[t];if(e>30&&e<50){o.x=(i-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}const mh=Gc({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=sn(null),r=sn(null),i=br("getPickerViewColumn"),s=gi(),a=i?i(s):sn(0),l=br("pickerViewProps"),c=br("pickerViewState"),u=sn(34),d=sn(null);Fo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const f=Ei((()=>(c.height-u.value)/2)),{state:p}=Sp();let h;const m=qt({current:a.value,length:0});let g;function v(){h&&!g&&(g=!0,kn((()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),h.update(e*u.value,void 0,u.value)})))}to((()=>a.value),(e=>{e!==m.current&&(m.current=e,v())})),to((()=>m.current),(e=>a.value=e)),to([()=>u.value,()=>m.length,()=>c.height],v);let y=0;function _(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),h.scrollTo(e*u.value)}else y=t;e.preventDefault()}function b({clientY:e}){const t=o.value;if(!h.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let r=Math.min(m.current+t,m.length-1);m.current=r=Math.max(r,0),h.scrollTo(r*u.value)}}}return Fo((()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:s,handleTouchEnd:a}=hh(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new lh(1e-4),spring:new dh(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});h=n,Yp(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),v()})),()=>{const e=t.default&&t.default();m.length=Fp(e).length;const n=`${f.value}px 0`;return ri("uni-picker-view-column",{ref:o},[ri("div",{onWheel:_,onClick:b,class:"uni-picker-view-group"},[ri("div",di(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${f.value}px;${l.maskStyle}`}),null,16),ri("div",di(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[ri(op,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),ri("div",{ref:r,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),gh="#007aff",vh="backwards",yh=Gc({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:gh},activeColor:{type:String,default:gh},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:vh},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=sn(null),n=function(e){const t=sn(0),n=Ei((()=>`background-color: ${e.backgroundColor}; height: ${oc(e.strokeWidth)}px;`)),o=Ei((()=>{const n=e.color!==gh&&e.activeColor===gh?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),r=Ei((()=>{if("string"==typeof e.percent&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let t=parseFloat(e.percent);return Number.isNaN(t)||t<0?t=0:t>100&&(t=100),t}));return qt({outerBarStyle:n,innerBarStyle:o,realPercent:r,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return _h(n,e),to((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,_h(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:s}=n;return ri("uni-progress",{class:"uni-progress",ref:t},[ri("div",{style:r,class:"uni-progress-bar"},[ri("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),o?ri("p",{class:"uni-progress-info"},[s+"%"]):""],512)}}});function _h(e,t){t.active?(e.currentPercent=t.activeMode===vh?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}const bh=Gc({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=sn(null),o=Ei((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),r=Ei((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:s,refresherThreshold:a}=e;return ri("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?ri("div",{class:"uni-scroll-view-refresh"},[ri("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?ri("svg",{key:"refresh__icon",style:{transform:"rotate("+r.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[ri("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),ri("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?ri("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[ri("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?ri("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),wh=_e(!0),xh=Gc({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const r=sn(null),i=sn(null),s=sn(null),a=sn(null),l=Qc(r,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=Ei((()=>Number(e.scrollTop)||0)),n=Ei((()=>Number(e.scrollLeft)||0));return{state:qt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:f,realScrollY:p,_scrollLeftChanged:h,_scrollTopChanged:m}=function(e,t,n,o,r,i,s,a,l){let c=!1,u=0,d=!1,f=()=>{};const p=Ei((()=>e.scrollX)),h=Ei((()=>e.scrollY)),m=Ei((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=Ei((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){const n=s.value;let o=0,r="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let i=a.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+o+"px) translateZ(0)":"y"===t&&(r="translateY("+o+"px) translateZ(0)"),i.removeEventListener("transitionend",f),i.removeEventListener("webkitTransitionEnd",f),f=()=>x(e,t),i.addEventListener("transitionend",f),i.addEventListener("webkitTransitionEnd",f),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function y(e){const n=e.target;r("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),h.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function _(t){h.value&&(e.scrollWithAnimation?v(t,"y"):s.value.scrollTop=t)}function b(t){p.value&&(e.scrollWithAnimation?v(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=i.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,r=s.value.scrollLeft+n;e.scrollWithAnimation?v(r,"x"):s.value.scrollLeft=r}if(h.value){let n=o.top-t.top,r=s.value.scrollTop+n;e.scrollWithAnimation?v(r,"y"):s.value.scrollTop=r}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",f),a.value.removeEventListener("webkitTransitionEnd",f)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),r("refresherrefresh",{},{dy:C.y-T.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{dy:C.y-T.y})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{dy:C.y-T.y}))}t.refreshState=n}}let T={x:0,y:0},C={x:0,y:e.refresherThreshold};return Fo((()=>{kn((()=>{_(n.value),b(o.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),y(e)},a=null,l=function(n){if(null===T)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,l=s.value;if(Math.abs(o-T.x)>Math.abs(i-T.y))if(p.value){if(0===l.scrollLeft&&o>T.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oT.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o,dy:o})))}},f=function(e){1===e.touches.length&&(T={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),T={x:0,y:0},C={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",f,wh),s.value.addEventListener("touchmove",l,_e(!1)),s.value.addEventListener("scroll",i,_e(!1)),s.value.addEventListener("touchend",m,wh),qo((()=>{s.value.removeEventListener("touchstart",f),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",i),s.value.removeEventListener("touchend",m)}))})),Mo((()=>{h.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)})),to(n,(e=>{_(e)})),to(o,(e=>{b(e)})),to((()=>e.scrollIntoView),(e=>{w(e)})),to((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:p,realScrollY:h,_scrollTopChanged:_,_scrollLeftChanged:b}}(e,c,u,d,l,r,i,a,t),g=Ei((()=>{let e="";return f.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),v=Ei((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>i.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:f}=c;return ri("uni-scroll-view",{ref:r},[ri("div",{ref:s,class:"uni-scroll-view"},[ri("div",{ref:i,style:g.value,class:v.value},[t?ri(bh,{refreshState:f,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,ri("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function Sh(e,t,n,o,r,i){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,f=1,p=null,h=!1,m=0,g="";const v=Ei((()=>n.value.length>t.displayMultipleItems)),y=Ei((()=>e.circular&&v.value));function _(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(r-=c.length),r=a%1>.5||a<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function b(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){_(o),p=null,h=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}_(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,s=n.value.length;let a=d;if(y.value)if(r<0){for(;ae;)a-=s}else if(r>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),p&&(_(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(_(a+l-m),m=l):(_(l),e.autoplay&&T())):(u=!0,_(-t.displayMultipleItems-1))})),to((()=>t.interval),(()=>{c&&(s(),T())})),to((()=>t.current),((e,o)=>{!function(e,o){const r=g;g="";const s=n.value;if(!r){const t=s.length;S(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),to((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),to((()=>e.autoplay&&!t.userTracking),C),C(e.autoplay&&!t.userTracking),Fo((()=>{let r=!1,i=0,a=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=b(d+o);e?_(m):(g="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}Yp(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,s(),m=d,i=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&T())}return function(r){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),_(n)}const d=a-s||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Wo((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const Th=Gc({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=sn(null),r=Qc(o,n),i=sn(null),s=sn(null),a=function(e){return qt({interval:Ei((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Ei((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Ei((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Ei((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:oc(e.previousMargin,!0),bottom:oc(e.nextMargin,!0)}:{top:0,bottom:0,left:oc(e.previousMargin,!0),right:oc(e.nextMargin,!0)}),t})),c=Ei((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=sn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Zt(o))}f.value=e}_r("addSwiperContext",(function(e){d.push(e),p()}));_r("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:m,swiperEnabled:g}=Sh(e,a,f,s,n,r);let v=()=>null;return v=Ch(o,e,a,h,f,m,g),()=>{const n=t.default&&t.default();return u=Fp(n),ri("uni-swiper",{ref:o},[ri("div",{ref:i,class:"uni-swiper-wrapper"},[ri("div",{class:"uni-swiper-slides",style:l.value},[ri("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&ri("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>ri("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,u=!1,d=sn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Qn((()=>{a="auto"===t.navigation,d.value=!0!==t.navigation||a,_()})),Qn((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,u=!0,a&&(d.value=!0))}));const p={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function h(e,t,s){if(e.stopPropagation(),s)return;const a=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=a-1);break;case"next":l++,l>=a&&i.value&&(l=0)}o(l)}const m=()=>lc("M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z",t.navigationColor,26);let g;const v=n=>{clearTimeout(g);const{clientX:o,clientY:r}=n,{left:i,right:s,top:a,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(r-a{d.value=f}),300);d.value=f},y=()=>{d.value=!0};function _(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),a&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return Fo(_),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?ri(Fr,null,[ri("div",di({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},p),[m()],16,["onClick"]),ri("div",di({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},p),[m()],16,["onClick"])]):null}},kh=Gc({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=sn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,s=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=s,i.style.transform=s)}};return Fo((()=>{const e=br("addSwiperContext");e&&e(o)})),Wo((()=>{const e=br("removeSwiperContext");e&&e(o)})),()=>ri("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Eh={ensp:" ",emsp:" ",nbsp:" "};function Oh(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&Eh[t]&&" "===i&&(i=Eh[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,Eh.nbsp).replace(/ /g,Eh.ensp).replace(/ /g,Eh.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const Mh=Gc({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=sn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Hr){const n=Oh(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(si(e)),t!==r&&o.push(ri("br"))}))}else o.push(t)})),ri("uni-text",{ref:n,selectable:!!e.selectable||null},[ri("span",null,o)],8,["selectable"])}}}),Ah=c({},Op,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>$h.concat("return").includes(e)}});let Lh=!1;const $h=["done","go","next","search","send"];const Ph=Gc({name:"Textarea",props:Ah,emits:["confirm","linechange",...Mp],setup(e,{emit:t,expose:n}){const o=sn(null),r=sn(null),{fieldRef:i,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=$p(e,o,t),u=Ei((()=>s.value.split("\n"))),d=Ei((()=>$h.includes(e.confirmType))),f=sn(0),p=sn(null);function h({height:e}){f.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return to((()=>f.value),(t=>{const n=o.value,i=p.value,s=r.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=i.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Lh=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?ri("textarea",{key:"disabled-textarea",ref:i,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Lh},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):ri("textarea",{key:"textarea",ref:i,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Lh},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return ri("uni-textarea",{ref:o,"auto-height":e.autoHeight},[ri("div",{ref:r,class:"uni-textarea-wrapper"},[so(ri("div",di(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ki,!s.value.length]]),ri("div",{ref:p,class:"uni-textarea-line"},[" "],512),ri("div",{class:"uni-textarea-compute"},[u.value.map((e=>ri("div",null,[e.trim()?e:"."]))),ri(op,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?ri("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Rh=Gc({name:"View",props:c({},eu),setup(e,{slots:t}){const n=sn(null),{hovering:o,binding:r}=tu(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?ri("uni-view",di({class:o.value?i:"",ref:n},r),[Go(t,"default")],16):ri("uni-view",{ref:n},[Go(t,"default")],512)}}});function Bh(e,t,n,o){g(t)&&No(e,t.bind(n),o)}function Ih(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!g(t))&&(Oe.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];p(r)?r.forEach((e=>Bh(o,e,n,t))):Bh(o,r,n,t)}})),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,vc(n,"onLoad",e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&vc(n,"onShow")}catch(r){console.error(r.message+"\n"+r.stack)}}}function Nh(e,t,n){Ih(e,t,n)}function Dh(e,t,n){return e[t]=n}function jh(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Fh(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const i=e._instance;if(!i||!i.proxy)throw n;i.onError?vc(i.proxy,"onError",n):gn(n,0,o&&o.$.vnode,!1)}}function Vh(e,t){return e?[...new Set([].concat(e,t))]:t}function Hh(e){const t=e.config;var n;t.errorHandler=Ae(e,Fh),n=t.optionMergeStrategies,Oe.forEach((e=>{n[e]=Vh}));const o=t.globalProperties;o.$set=Dh,o.$applyOptions=Nh,o.$callMethod=jh,function(e){Me.forEach((t=>t(e)))}(e)}function qh(e){const t=tl({history:Yh(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:zh});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Wh[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let Wh=Object.create(null);const zh=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Wh[o]);if(t)return t}return{left:0,top:0};var o};function Yh(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),ma(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Sf(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=mf(t[r]);Tf(Ef(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Xh={install(e){Hh(e),Rc(e),zc(e),e.config.warnHandler||(e.config.warnHandler=Uh),qh(e)}};function Uh(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Kh={class:"uni-async-loading"},Gh=ri("i",{class:"uni-loading"},null,-1),Jh=Jc({name:"AsyncLoading",render:()=>(Yr(),Jr("div",Kh,[Gh]))});function Zh(){window.location.reload()}const Qh=Jc({name:"AsyncError",props:["error"],setup(){gl();const{t:e}=hl();return()=>ri("div",{class:"uni-async-error",onClick:Zh},[e("uni.async.error")],8,["onClick"])}});let em;function tm(){return em}function nm(e){em=e,Object.defineProperty(em.$.ctx,"$children",{get:()=>Sf().map((e=>e.$vm))});const t=em.$.appContext.app;t.component(Jh.name)||t.component(Jh.name,Jh),t.component(Qh.name)||t.component(Qh.name,Qh),function(e){e.$vm=e,e.$mpType="app";const t=sn(hl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(em),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(em),qc(),Tc()}function om(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=gi();if(n(r.proxy),o(r),i)return i(e,t)},e}function rm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?om(e.default,t):om(e,t)}function im(e){return rm(e,{clone:!0,init:kf,setup(e){e.$pageInstance=e;const t=mu(),n=xe(t.query);e.attrs.__pageQuery=n,mf(e.proxy).options=n,e.proxy.options=n;const o=pu();var r,i;return pf(),e.onReachBottom=qt([]),e.onPageScroll=qt([]),to([e.onReachBottom,e.onPageScroll],(()=>{const t=uc();e.proxy===t&&If(e,o)}),{once:!0}),jo((()=>{Af(e,o)})),Fo((()=>{Lf(e);const{onReady:n}=e;n&&R(n),cm(t)})),Lo((()=>{if(!e.__isVisible){Af(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&R(n),kn((()=>{cm(t)}))}}),"ba",r),function(e,t){Lo(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&R(t)}}})),i=o.id,sv.subscribe(El(i,"invokeViewApi"),Ol),qo((()=>{!function(e){sv.unsubscribe(El(e,"invokeViewApi")),Object.keys(kl).forEach((t=>{0===t.indexOf(e+".")&&delete kl[t]}))}(o.id)})),n}})}function sm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Tm(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";av.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function am(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&av.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function lm(){const{emit:e}=av;"visible"===document.visibilityState?e("onAppEnterForeground",c({},np)):e("onAppEnterBackground")}function cm(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&vc("onTabItemTap",{index:n,text:t,pagePath:o})}const um=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},dm=ie((()=>av.on("onWebInvokeAppService",um))),fm=Gc({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){dm();const n=sn(null),o=sn(null),{$attrs:r,$excludeAttrs:i,$listeners:s}=jp({excludeListeners:!0}),a=Qc(n,t);let l;return(()=>{const t=document.createElement("iframe");t.onload=function(t){a("load",t,{src:e.src})},Qn((()=>{for(const e in r.value)if(f(r.value,e)){const n=r.value[e];t[e]=n}})),Qn((()=>{t.src=Df(e.src)})),o.value=t,l=function(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();re(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else re(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(t)})(),Fo((()=>{var t;l(),!e.fullscreen&&(null==(t=n.value)||t.appendChild(o.value))})),Mo((()=>{e.fullscreen&&(o.value.style.display="block")})),Ao((()=>{e.fullscreen&&(o.value.style.display="none")})),qo((()=>{e.fullscreen&&document.body.removeChild(o.value)})),()=>ri(Fr,null,[ri("uni-web-view",di({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,i.value,{ref:n}),[ri(op,{onResize:l},null,8,["onResize"])],16)])}});const pm=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let hm;function mm(){if(hm=hm||pm.__DC_STAT_UUID,!hm){hm=Date.now()+""+Math.floor(1e7*Math.random());try{pm.__DC_STAT_UUID=hm}catch(e){}}return hm}function gm(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function vm(){let e,t="0",n="",o="phone";const r=navigator.language;if(Vf){e="iOS";const o=jf.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=jf.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(Ff){e="Android";const o=jf.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=jf.match(/\((.+?)\)/),i=r?r[1].split(";"):jf.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=Yf(),n=Xf(t),o=Uf(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=Kf(o);let s=window.innerHeight;const a=Kl.top,l={left:Kl.left,right:i-Kl.right,top:Kl.top,bottom:s-Kl.bottom,width:i-Kl.left-Kl.right,height:s-Kl.top-Kl.bottom},{top:c,bottom:u}=function(){const e=document.documentElement.style,t=Ql(),n=Zl(e,"--window-bottom"),o=Zl(e,"--window-left"),r=Zl(e,"--window-right"),i=Zl(e,"--top-window-height");return{top:t,bottom:n?n+Kl.bottom:0,left:o?o+Kl.left:0,right:r?r+Kl.right:0,topWindowHeight:i||0}}();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Kl.top,right:Kl.right,bottom:Kl.bottom,left:Kl.left},screenTop:r-s}}));let _m,bm=!0;function wm(){bm&&(_m=vm())}const xm=Yu(0,(()=>{wm();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=_m;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:mm(),deviceOrientation:s,deviceType:a,model:o,platform:r,system:i,osName:l?l.toLowerCase():void 0,osVersion:u})})),Sm=Yu(0,(()=>{wm();const{theme:e,language:t,browserName:n,browserVersion:o}=_m;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:hd?hd():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})})),Tm=Yu(0,(()=>{bm=!0,wm(),bm=!1;const e=ym(),t=xm(),n=Sm();bm=!0;const{ua:o,browserName:r,browserVersion:i,osname:s,osversion:a}=_m,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),Cm=Xu("getSystemInfo",((e,{resolve:t})=>t(Tm())));const km=Xu("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],r=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const r=document.createElement("textarea");r.setAttribute("inputmode","none"),r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);const i=document.execCommand("Copy",!1);r.blur(),i?t():n()}(e,t,n)}},new Promise(((e,t)=>{var i=e=>{try{a(r.next(e))}catch(n){t(n)}},s=e=>{try{a(r.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,s);a((r=r.apply(n,o)).next())}));var n,o,r}),0,Td);const Em=Yu(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Om(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Mm=Yu(0,(e=>{try{return Om(e)}catch(t){return""}})),Am=Yu(0,(e=>{localStorage&&localStorage.removeItem(e)})),Lm=Yu(0,(()=>{localStorage&&localStorage.clear()}));const $m=Xu("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,Md),Pm={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Rm({count:e,sourceType:t,type:n,extension:o}){bp();const r=document.createElement("input");return r.type="file",re(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${Pm[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}let Bm=null;const Im=Xu("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{wl();const{t:s}=hl();Bm&&(document.body.removeChild(Bm),Bm=null),Bm=Rm({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Bm),Bm.addEventListener("cancel",(()=>{i("chooseFile:fail cancel")})),Bm.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r(i=i||Qf(t),i)}),re))},tempFiles:o})})),Bm.click(),wp()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,Od);let Nm=null;const Dm=Xu("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{wl();const{t:i}=hl();Nm&&(document.body.removeChild(Nm),Nm=null),Nm=Rm({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Nm),Nm.addEventListener("cancel",(()=>{r("chooseImage:fail cancel")})),Nm.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||Qf(t),i)}),oe))},tempFiles:r})})),Nm.click(),wp()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Cd),jm={esc:["Esc","Escape"],enter:["Enter"]},Fm=Object.keys(jm);function Vm(){const e=sn(""),t=sn(!1),n=n=>{if(t.value)return;const o=Fm.find((e=>-1!==jm[e].indexOf(n.key)));o&&(e.value=o),kn((()=>e.value=""))};return Fo((()=>{document.addEventListener("keyup",n)})),qo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const Hm=ri("div",{class:"uni-mask"},null,-1);function qm(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ts(bo({setup:()=>()=>(Yr(),Jr(e,t,null,16))}))}function Wm(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function zm(e,{onEsc:t,onEnter:n}){const o=sn(e.visible),{key:r,disable:i}=Vm();return to((()=>e.visible),(e=>o.value=e)),to((()=>o.value),(e=>i.value=!e)),Qn((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Ym=0,Xm="";function Um(e){let t=Ym;Ym+=e?1:-1,Ym=Math.max(0,Ym),Ym>0?0===t&&(Xm=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Xm,Xm="")}const Km=Jc({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=qt({direction:"none"});let n=1,o=0,r=0,i=0,s=0;function a({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function c(e){const t=e.target.getBoundingClientRect();i=t.width,s=t.height,d(e)}function u(e){const a=n*o>i,l=n*r>s;t.direction=a&&l?"all":a?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return ri(Vp,{style:n,onTouchstart:Zc(c),onTouchmove:Zc(d),onTouchend:Zc(u)},{default:()=>[ri(eh,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[ri("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function Gm(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const Jm=Jc({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Fo((()=>Um(!0))),Wo((()=>Um(!1)));const{key:n}=Vm(),o=sn(null),r=sn(Gm(e));let i;function s(){i||kn((()=>{t("close")}))}function a(e){r.value=e.detail.current}to((()=>e.current),(()=>r.value=Gm(e))),to((()=>n.value),(e=>{"esc"===e&&s()})),Fo((()=>{const e=o.value;let t=0,n=0;e.addEventListener("mousedown",(e=>{i=!1,t=e.clientX,n=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(i=!0)}))}));const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return ri("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[ri(Th,{navigation:"auto",current:r.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map((e=>ri(kh,null,{default:()=>[ri(Km,{src:e},null,8,["src"])]}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!Zr(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),ri("div",{style:l},[lc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let Zm,Qm=null;const eg=()=>{Qm=null,kn((()=>{null==Zm||Zm.unmount(),Zm=null}))},tg=Xu("previewImage",((e,{resolve:t})=>{Qm?c(Qm,e):(Qm=qt(e),kn((()=>{Zm=qm(Jm,Qm,eg),Zm.mount(Wm("u-a-p"))}))),t()}),0,Ad);let ng=null;const og=Xu("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{wl();const{t:r}=hl();ng&&(document.body.removeChild(ng),ng=null),ng=Rm({sourceType:e,extension:t,type:"video"}),document.body.appendChild(ng),ng.addEventListener("cancel",(()=>{o("chooseVideo:fail cancel")})),ng.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const r={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(r,"tempFilePath",{get(){return o=o||Qf(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=Qf(t);i.onloadedmetadata=function(){ep(e),n(c(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,ep(e),n(r)}),300),i.src=e}else n(r)})),ng.click(),wp()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,kd),rg=zu("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const p=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)d=t;else if("json"===p)try{d=JSON.stringify(t)}catch(m){d=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let h;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;h=new sg(t);const f={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},p=setTimeout((function(){h.abort(),u("timeout",{errCode:5})}),l);f.signal.addEventListener("abort",(function(){clearTimeout(p),u("abort",{errCode:600003})})),window.fetch(e,f).then((e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach(((e,t)=>{s[t]=e}));const a=ig(s);if(h._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let o=0;for(const r of e)n.set(new Uint8Array(r),o),o+=r.byteLength;return n.buffer}(u);let n="text"===i?(new TextDecoder).decode(e):e;return"text"===i&&(n=lg(n,i,r)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),h._emitter.emit("chunkReceived",{data:o}),d()}))};d()}),(e=>{u(e,{errCode:5})}))}else{const t=new XMLHttpRequest;h=new sg(t),t.open(o,e);for(const e in n)f(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout((function(){t.onload=t.onabort=t.onerror=null,h.abort(),u("timeout",{errCode:5})}),l);t.responseType=i,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===i?t.responseText:t.response;"text"===i&&(n=lg(n,i,r)),c({data:n,statusCode:e,header:ag(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return h}),0,Rd),ig=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let r=0;r{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function ag(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function lg(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(r){}return o}class cg{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){g(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const ug=zu("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new cg;return p(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Zf(e)):Jf(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Bd),dg=[],fg={open:"",close:"",error:"",message:""};class pg{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach((e=>{this._callbacks[e]=[],n.addEventListener(e,(t=>{const{data:n,code:o,reason:r}=t,i="message"===e?{data:n}:"close"===e?{code:o,reason:r}:{};if(this._callbacks[e].forEach((t=>{try{t(i)}catch(n){console.error(`thirdScriptError\n${n};at socketTask.on${L(e)} callback function\n`,n)}})),this===dg[0]&&fg[e]&&av.invokeOnCallback(fg[e],i),"error"===e||"close"===e){const e=dg.indexOf(this);e>=0&&dg.splice(e,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((e=>{Object.defineProperty(this,e,{get:()=>n[e]})}))}catch(r){o=r}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw le(e,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");n.send(t),le(e,"sendSocketMessage:ok")}catch(o){le(e,{errMsg:`sendSocketMessage:fail ${o}`,errCode:602001})}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;v(o)?t.close(n,o):t.close(n),le(e,"closeSocket:ok")}catch(n){le(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const hg=zu("connectSocket",(({url:e,protocols:t},{resolve:n,reject:o})=>new pg(e,t,((e,t)=>{e?o(e.toString(),{errCode:600009}):(dg.push(t),n())}))),0,Id),mg=Xu("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===vc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(tm().$router.go(-e.delta),t()):n("onBackPress")}),0,Vd),gg=Xu("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(gf.handledBeforeEntryPageRoutes)return af({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r);vf.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,Dd);function vg(e){__uniConfig.darkmode&&av.on("onThemeChange",e)}function yg(e){av.off("onThemeChange",e)}const _g={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},bg=bo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=sn(""),o=()=>s.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),s=zm(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),a=function(e){const t=sn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=_g[e].cancelColor})(e,t)};return Qn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===gm()&&n({theme:"dark"}),vg(n))):yg(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("uni-modal",{onTouchmove:Gl},[Hm,ri("div",{class:"uni-modal"},[t?ri("div",{class:"uni-modal__hd"},[ri("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?ri("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):ri("div",{class:"uni-modal__bd",onTouchmovePassive:Jl,textContent:o},null,40,["onTouchmovePassive","textContent"]),ri("div",{class:"uni-modal__ft"},[l&&ri("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),ri("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Ki,s.value]])]})}}});let wg;const xg=ie((()=>{av.on("onHidePopup",(()=>wg.visible=!1))}));let Sg;function Tg(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&wg.editable&&(o.content=t),Sg&&Sg(o)}const Cg=Xu("showModal",((e,{resolve:t})=>{xg(),Sg=t,wg?(c(wg,e),wg.visible=!0):(wg=qt(e),kn((()=>(qm(bg,wg,Tg).mount(Wm("u-a-m")),kn((()=>wg.visible=!0))))))}),0,Kd),kg={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Gd.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Eg={light:"#fff",dark:"rgba(255,255,255,0.9)"},Og=e=>Eg[e],Mg=bo({name:"Toast",props:kg,setup(e){yl(),_l();const{Icon:t}=function(e){const t=sn(Og(gm())),n=({theme:e})=>t.value=Og(e);Qn((()=>{e.visible?vg(n):yg(n)}));return{Icon:Ei((()=>{switch(e.icon){case"success":return ri(lc(sc,t.value,38),{class:"uni-toast__icon"});case"error":return ri(lc(ac,t.value,38),{class:"uni-toast__icon"});case"loading":return ri("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=zm(e,{});return()=>{const{mask:o,duration:r,title:i,image:s}=e;return ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("uni-toast",{"data-duration":r},[o?ri("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Gl},null,40,["onTouchmove"]):"",s||t.value?ri("div",{class:"uni-toast"},[s?ri("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,ri("p",{class:"uni-toast__content"},[i])]):ri("div",{class:"uni-sample-toast"},[ri("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[Ki,n.value]])]})}}});let Ag,Lg,$g="";const Pg=je();function Rg(e){Ag?c(Ag,e):(Ag=qt(c(e,{visible:!1})),kn((()=>{Pg.run((()=>{to([()=>Ag.visible,()=>Ag.duration],(([e,t])=>{if(e){if(Lg&&clearTimeout(Lg),"onShowLoading"===$g)return;Lg=setTimeout((()=>{jg("onHideToast")}),t)}else Lg&&clearTimeout(Lg)}))})),av.on("onHidePopup",(()=>jg("onHidePopup"))),qm(Mg,Ag,(()=>{})).mount(Wm("u-a-t"))}))),setTimeout((()=>{Ag.visible=!0}),10)}const Bg=Xu("showToast",((e,{resolve:t,reject:n})=>{Rg(e),$g="onShowToast",t()}),0,Jd),Ig={icon:"loading",duration:1e8,image:""},Ng=Xu("showLoading",((e,{resolve:t,reject:n})=>{c(e,Ig),Rg(e),$g="onShowLoading",t()}),0,Ud),Dg=Xu("hideLoading",((e,{resolve:t,reject:n})=>{jg("onHideLoading"),t()}));function jg(e){const{t:t}=hl();if(!$g)return;let n="";if("onHideToast"===e&&"onShowToast"!==$g?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==$g&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);$g="",setTimeout((()=>{Ag.visible=!1}),10)}function Fg(e){const t=sn(0),n=sn(0),o=Ei((()=>t.value>=500&&n.value>=500)),r=Ei((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},r=t.content,i=t.triangle,s=e.popover;function a(e){return Number(e)||0}if(o.value&&s){c(i,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=a(s.left),t=a(s.width?s.width:300),o=a(s.top),l=a(s.height),u=e+t/2;r.transform="none !important";const d=Math.max(0,u-t/2);r.left=`${d}px`,s.width&&(r.width=`${t}px`);let f=Math.max(12,u-d);f=Math.min(t-12,f),i.left=`${f}px`;const p=n.value/2;o+l-p>p-o?(r.top="auto",r.bottom=n.value-o+6+"px",i.bottom="-6px",i["border-width"]="6px 6px 0 6px",i["border-color"]="#fcfcfd transparent transparent transparent"):(r.top=`${o+l+6}px`,i.top="-6px",i["border-width"]="0 6px 6px 6px",i["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return Fo((()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:r}=Tm();t.value=e,n.value=o+(r||0)};window.addEventListener("resize",e),e(),Wo((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:o,popupStyle:r}}const Vg={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const Hg=bo({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){vl();const n=sn(260),o=sn(0),r=sn(0),i=sn(0),s=sn(0),a=sn(null),l=sn(null),{t:c}=hl(),{_close:u}=function(e,t){function n(e){t("close",e)}const{key:o,disable:r}=Vm();return to((()=>e.visible),(e=>r.value=!e)),Qn((()=>{const{value:e}=o;"esc"===e&&n&&n(-1)})),{_close:n}}(e,t),{popupStyle:d}=Fg(e);let f;function p(e){const t=i.value+e.deltaY;Math.abs(t)>10?(s.value+=t/3,s.value=s.value>=o.value?o.value:s.value<=0?0:s.value,f.scrollTo(s.value)):i.value=t,e.preventDefault()}Fo((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=hh(a.value,{enableY:!0,friction:new lh(1e-4),spring:new dh(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});f=e,Yp(a.value,(r=>{if(e)switch(r.detail.state){case"start":t(r);break;case"move":n(r);break;case"end":case"cancel":o(r)}}),!0)})),to((()=>e.visible),(()=>{kn((()=>{e.title&&(r.value=document.querySelector(".uni-actionsheet__title").offsetHeight),f.update(),a.value&&(o.value=a.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",(e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY})),e.addEventListener("touchend",(e=>{const r=e.changedTouches[0];if(Math.abs(r.clientX-n){o[e]=r[e]})),e.target.dispatchEvent(o)}}))}(e)}))}))}));const h=function(e){const t=qt({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=Vg[e][n]}))}(e,t)};return Qn((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:gm()}),vg(n))):yg(n)})),t}(e);return()=>ri("uni-actionsheet",{onTouchmove:Gl},[ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[Ki,e.visible]])]}),ri("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[ri("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?ri(Fr,null,[ri("div",{class:"uni-actionsheet__cell",style:{height:`${r.value}px`}},null),ri("div",{class:"uni-actionsheet__title"},[e.title])]):"",ri("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[ri("div",{ref:a},[e.itemList.map(((e,t)=>ri("div",{key:t,style:{color:h.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),ri("div",{class:"uni-actionsheet__action"},[ri("div",{style:{color:h.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),ri("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let qg,Wg,zg;const Yg=ie((()=>{av.on("onHidePopup",(()=>zg.visible=!1))}));function Xg(e){-1===e?Wg&&Wg("cancel"):qg&&qg({tapIndex:e})}const Ug=Xu("showActionSheet",((e,{resolve:t,reject:n})=>{Yg(),qg=t,Wg=n,zg?(c(zg,e),zg.visible=!0):(zg=qt(e),kn((()=>(qm(Hg,zg,Xg).mount(Wm("u-s-a-s")),kn((()=>zg.visible=!0))))))}),0,Xd);function Kg(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,av.emit("onNavigationBarChange",{titleText:t})}Qn(t),Mo(t)}const Gg=Jc({name:"Layout",setup(e,{emit:t}){const n=sn(null);ec({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=nl();return{routeKey:Ei((()=>Ef("/"+e.meta.route,gu()))),isTabBar:Ei((()=>e.meta.isTabBar)),routeCache:Mf}}(),{layoutState:r,windowState:i}=function(){mu();{const e=qt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return to((()=>e.marginWidth),(e=>ec({"--window-margin":e+"px"}))),to((()=>e.leftWindowWidth+e.marginWidth),(e=>{ec({"--window-left":e+"px"})})),to((()=>e.rightWindowWidth+e.marginWidth),(e=>{ec({"--window-right":e+"px"})})),{layoutState:e,windowState:Ei((()=>({})))}}}();!function(e,t){const n=mu();function o(){const o=document.body.clientWidth,r=Sf();let i={};if(r.length>0){i=mf(r[r.length-1]).meta}else{const e=Sc(n.path,!0);e&&(i=e.meta)}const s=parseInt(String((f(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,kn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,kn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}to([()=>n.path],o),Fo((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const s=function(e){const t=sn(!1);return Ei((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(!1);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return ri(el,null,{default:Vn((({Component:o})=>[(Yr(),Jr(Eo,{matchBy:"key",cache:n},[(Yr(),Jr(Un(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o);return ri("uni-app",{ref:n,class:s.value},[e,!1],2)}}});function Jg(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Zr(e)}function Zg(e){if(e.mode===tv.TIME)return"00:00";if(e.mode===tv.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case nv.YEAR:return t.toString();case nv.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Qg(e){if(e.mode===tv.TIME)return"23:59";if(e.mode===tv.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case nv.YEAR:return t.toString();case nv.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function ev(e,t,n,o){const r=e.mode===tv.DATE?"-":":",i=e.mode===tv.DATE?t.dateArray:t.timeArray;let s;if(e.mode===tv.TIME)s=2;else switch(e.fields){case nv.YEAR:s=1;break;case nv.MONTH:s=2;break;default:s=3}const a=String(n).split(r);let l=[];for(let c=0;c=0&&(l=o?ev(e,t,o):l.map((()=>0))),l}const tv={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},nv={YEAR:"year",MONTH:"month",DAY:"day"},ov={PICKER:"picker",SELECT:"select"},rv=Gc({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:tv.SELECTOR,validator:e=>Object.values(tv).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>Zg(e)},end:{type:String,default:e=>Qg(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Sl();const{t:o}=hl(),r=sn(null),i=sn(null),s=sn(null),a=sn(null),l=sn(!1),{state:c,rangeArray:u}=function(e){const t=qt({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Ei((()=>{let n=e.range;switch(e.mode){case tv.SELECTOR:return[n];case tv.MULTISELECTOR:return n;case tv.TIME:return t.timeArray;case tv.DATE:{const n=t.dateArray;switch(e.fields){case nv.YEAR:return[n[0]];case nv.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),d=Qc(r,t),{system:f,selectorTypeComputed:h,_show:m,_l10nColumn:g,_l10nItem:v,_input:y,_fixInputPosition:_,_pickerViewChange:b,_cancel:w,_change:x,_resetFormData:S,_getFormData:T,_createTime:C,_createDate:k,_setValueSync:E}=function(e,t,n,o,r,i,s){const a=function(){const e=sn(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=sn("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),c=Ei((()=>{const t=e.selectorType;return Object.values(ov).includes(t)?t:a.value?ov.PICKER:ov.SELECT})),u=Ei((()=>e.mode===tv.DATE&&!Object.values(nv).includes(e.fields)&&t.isDesktop?l.value:"")),d=Ei((()=>ev(e,t,e.start,Zg(e)))),f=Ei((()=>ev(e,t,e.end,Qg(e))));function h(n){if(e.disabled)return;t.valueChangeSource="";let o=r.value,i=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.style.display="block";const s=i.getBoundingClientRect();t.popover={top:s.top,left:s.left,width:s.width,height:s.height},setTimeout((()=>{t.visible=!0}),20)}function m(){return{value:t.valueSync,key:e.name}}function g(){switch(e.mode){case tv.SELECTOR:t.valueSync=0;break;case tv.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case tv.DATE:case tv.TIME:t.valueSync=""}}function v(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function y(){let t=(new Date).getFullYear(),n=t-150,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&to&&(o=t)}return{start:n,end:o}}function _(){let e=[];const n=y();for(let t=n.start,i=n.end;t<=i;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let r=[];for(let t=1;t<=31;t++)r.push((t<10?"0":"")+t);t.dateArray.push(e,o,r)}function b(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;na?0:s)}}break;case tv.TIME:case tv.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function T(){let n,o=t.valueSync;switch(e.mode){case tv.MULTISELECTOR:n=[...o];break;case tv.TIME:n=ev(e,t,o,ae({mode:tv.TIME}));break;case tv.DATE:n=ev(e,t,o,ae({mode:tv.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function C(){let n=t.valueArray;switch(e.mode){case tv.SELECTOR:return n[0];case tv.MULTISELECTOR:return n.map((e=>e));case tv.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case tv.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function k(){O(),t.valueChangeSource="click";const e=C();t.valueSync=p(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===u.value&&e){const{top:n,left:o,width:r,height:i}=t.popover,{pageX:s,pageY:a}=e;if(s>o&&sn&&a{let e=r.value;e.remove(),o.value.prepend(e),e.style.display="none"}),260)}function M(){e.mode===tv.SELECTOR&&c.value===ov.SELECT&&(i.value.scrollTop=34*t.valueArray[0])}function A(e){const n=e.target;t.valueSync=n.value,kn((()=>{k()}))}function L(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;s.value.style.left=e.clientX-t.left-1.5*n+"px",s.value.style.top=e.clientY-t.top-.5*n+"px"}}function $(e){t.valueArray=P(e.detail.value,!0)}function P(t,n){const{getLocale:o}=hl();if(e.mode===tv.DATE){const r=o();if(!r.startsWith("zh"))switch(e.fields){case nv.YEAR:return t;case nv.MONTH:return[t[1],t[0]];default:switch(r){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function R(t,n){const{getLocale:o}=hl();if(e.mode===tv.DATE){const r=o();if(r.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==nv.YEAR&&n===(e.fields===nv.MONTH||"es"!==r&&"fr"!==r?0:1)){let e;switch(r){case"es":e=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return to((()=>t.visible),(e=>{e?(clearTimeout(iv),t.contentVisible=e,M()):iv=setTimeout((()=>{t.contentVisible=e}),300)})),to([()=>e.mode,()=>e.value,()=>e.range],S,{deep:!0}),to((()=>t.valueSync),T,{deep:!0}),to((()=>t.valueArray),(o=>{if(e.mode===tv.TIME||e.mode===tv.DATE){const n=e.mode===tv.TIME?b:w,o=t.valueArray,r=d.value,i=f.value;if(e.mode===tv.DATE){const e=t.dateArray,n=e[2].length,r=Number(e[2][o[2]])||1,i=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${r}`).getDate();in(i)&&x(o,i)}o.forEach(((o,r)=>{o!==t.oldValueArray[r]&&(t.oldValueArray[r]=o,e.mode===tv.MULTISELECTOR&&n("columnchange",{},{column:r,value:o}))}))})),{selectorTypeComputed:c,system:u,_show:h,_cancel:E,_change:k,_l10nColumn:P,_l10nItem:R,_input:A,_resetFormData:g,_getFormData:m,_createTime:v,_createDate:_,_setValueSync:S,_fixInputPosition:L,_pickerViewChange:$}}(e,c,d,r,i,s,a);!function(e,t,n){const{key:o,disable:r}=Vm();Qn((()=>{r.value=!e.visible})),to(o,(e=>{"esc"===e?t():"enter"===e&&n()}))}(c,w,x),function(e,t){const n=br(ou,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),qo((()=>{n.removeField(o)}))}}(S,T),C(),k(),E();const O=Fg(c);return Qn((()=>{c.isDesktop=O.isDesktop.value,c.popupStyle=O.popupStyle.value})),qo((()=>{i.value&&i.value.remove()})),Fo((()=>{l.value=!0})),()=>{let t;const{visible:d,contentVisible:p,valueArray:S,popupStyle:T,valueSync:C}=c,{rangeKey:k,mode:E,start:O,end:M}=e,A=nu(e,"disabled");return ri("uni-picker",di({ref:r},A,{onClick:Zc(m)}),[l.value?ri("div",{ref:i,class:["uni-picker-container",`uni-${E}-${h.value}`],onWheel:Gl,onTouchmove:Gl},[ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("div",{class:"uni-mask uni-picker-mask",onClick:Zc(w),onMousemove:_},null,40,["onClick","onMousemove"]),[[Ki,d]])]}),f.value?null:ri("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:T.content},[ri("div",{class:"uni-picker-header",onClick:Jl},[ri("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:Zc(w)},[o("uni.picker.cancel")],8,["onClick"]),ri("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:x},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),p?ri(ah,{value:g(S),class:"uni-picker-content",onChange:b},Jg(t=Ko(g(u.value),((e,t)=>{let n;return ri(mh,{key:t},Jg(n=Ko(e,((e,n)=>ri("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[k]||"":v(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,ri("div",{ref:s,class:"uni-picker-select",onWheel:Jl,onTouchmove:Jl},[Ko(u.value[0],((e,t)=>ri("div",{key:t,class:["uni-picker-item",{selected:S[0]===t}],onClick:()=>{S[0]=t,x()}},["object"==typeof e?e[k]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),ri("div",{style:T.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,ri("div",null,[n.default&&n.default()]),f.value?ri("div",{class:"uni-picker-system",onMousemove:Zc(_)},[ri("input",{class:["uni-picker-system_input",f.value],ref:a,value:C,type:E,tabindex:"-1",min:O,max:M,onChange:e=>{y(e),Jl(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let iv;const sv=c(Ml,{publishHandler(e,t,n){av.subscribeHandler(e,t,n)}}),av=c(Nc,{publishHandler(e,t,n){sv.subscribeHandler(e,t,n)}}),lv=Jc({name:"PageBody",setup(e,t){const n=sn(null),o=sn(null);return to((()=>false.enablePullDownRefresh),(()=>{o.value=null}),{immediate:!0}),()=>ri(Fr,null,[!1,ri("uni-page-wrapper",di({ref:n},o.value),[ri("uni-page-body",null,[Go(t.slots,"default")]),null],16)])}}),cv=Jc({name:"Page",setup(e,t){let n=hu(gu());n.navigationBar;const o={};return Kg(n),()=>ri("uni-page",{"data-page":n.route,style:o},[uv(t),null])}});function uv(e){return Yr(),Jr(lv,{key:0},{default:Vn((()=>[Go(e.slots,"page")])),_:3})}const dv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=nd;const fv=Object.assign({}),pv=Object.assign;window.__uniConfig=pv({globalStyle:{backgroundColor:"transparent",navigationBar:{backgroundColor:"#F8F8F8",titleText:"uni-app",type:"default",titleColor:"#000000"},isNVue:!1},compilerVersion:"4.76"},{appId:"__UNI__A4B5AED",appName:"Vespa",appVersion:"1.0.0",appVersionCode:"100",async:dv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(fv).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return pv(e[n]||(e[n]={}),fv[t].default),e}),{}),router:{mode:"hash",base:"/h5/web",assets:"assets",routerBase:"/h5/web"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const hv={delay:dv.delay,timeout:dv.timeout,suspensible:dv.suspensible};dv.loading&&(hv.loadingComponent={name:"SystemAsyncLoading",render:()=>ri(Yn(dv.loading))}),dv.error&&(hv.errorComponent={name:"SystemAsyncError",props:["error"],render(){return ri(Yn(dv.error),{error:this.error})}});const mv=()=>t((()=>import("./pages-union-index.PBfIvgI_.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then((e=>im(e.default||e))),gv=xo(pv({loader:mv},hv)),vv=()=>t((()=>import("./pages-union-list.D3bNu27r.js")),__vite__mapDeps([10,11,12,2,13,3,14,1,4,5,6,7,8,15])).then((e=>im(e.default||e))),yv=xo(pv({loader:vv},hv)),_v=()=>t((()=>import("./pages-union-agreement.kh2HmveY.js")),__vite__mapDeps([16,5,2,6,17])).then((e=>im(e.default||e))),bv=xo(pv({loader:_v},hv)),wv=()=>t((()=>import("./pages-union-exitApplication.BV3prXkJ.js")),__vite__mapDeps([18,1,2,3,4,19,20,7,5,6,21])).then((e=>im(e.default||e))),xv=xo(pv({loader:wv},hv)),Sv=()=>t((()=>import("./pages-union-historyRecord.Cx9d-OXr.js")),__vite__mapDeps([22,19,2,20,5,6,23])).then((e=>im(e.default||e))),Tv=xo(pv({loader:Sv},hv)),Cv=()=>t((()=>import("./pages-union-setGroup.B6GxgY7h.js")),__vite__mapDeps([24,12,2,13,3,11,14,1,4,19,20,5,6,7,25])).then((e=>im(e.default||e))),kv=xo(pv({loader:Cv},hv)),Ev=()=>t((()=>import("./pages-union-memberList.coAF--bB.js")),__vite__mapDeps([26,19,2,20,5,6,7,27])).then((e=>im(e.default||e))),Ov=xo(pv({loader:Ev},hv)),Mv=()=>t((()=>import("./pages-other-taskDesc.MywoDE-m.js")),__vite__mapDeps([28,2,29])).then((e=>im(e.default||e))),Av=xo(pv({loader:Mv},hv)),Lv=()=>t((()=>import("./pages-prop-propMall.NHgMZgQQ.js")),__vite__mapDeps([30,2,3,1,4,31,32,33])).then((e=>im(e.default||e))),$v=xo(pv({loader:Lv},hv)),Pv=()=>t((()=>import("./pages-other-grade.DBsVZrck.js")),__vite__mapDeps([34,7,19,2,20,35])).then((e=>im(e.default||e))),Rv=xo(pv({loader:Pv},hv)),Bv=()=>t((()=>import("./pages-other-gradeRule.ClaL3hLw.js")),__vite__mapDeps([36,5,2,6,37])).then((e=>im(e.default||e))),Iv=xo(pv({loader:Bv},hv)),Nv=()=>t((()=>import("./pages-other-income.Cdd8_QPJ.js")),__vite__mapDeps([38,12,2,13,3,19,20,31,32,39])).then((e=>im(e.default||e))),Dv=xo(pv({loader:Nv},hv)),jv=()=>t((()=>import("./pages-feedback-help.DjHnMIKT.js")),__vite__mapDeps([40,12,2,13,3,41,42,43,19,20,5,6,44])).then((e=>im(e.default||e))),Fv=xo(pv({loader:jv},hv)),Vv=()=>t((()=>import("./pages-feedback-customerService.3L-qQrHD.js")),__vite__mapDeps([45,5,2,6,46])).then((e=>im(e.default||e))),Hv=xo(pv({loader:Vv},hv)),qv=()=>t((()=>import("./pages-feedback-feedback.BuX_NQ3B.js")),__vite__mapDeps([47,42,2,43,3,12,13,48,41,49,19,20,5,6,7,50])).then((e=>im(e.default||e))),Wv=xo(pv({loader:qv},hv)),zv=()=>t((()=>import("./pages-feedback-teenage.CQqA6POU.js")),__vite__mapDeps([51,42,2,43,3,5,6,31,32,52])).then((e=>im(e.default||e))),Yv=xo(pv({loader:zv},hv)),Xv=()=>t((()=>import("./pages-feedback-teenageDetail.B2MwwzvV.js")),__vite__mapDeps([53,19,2,20,5,6,54])).then((e=>im(e.default||e))),Uv=xo(pv({loader:Xv},hv)),Kv=()=>t((()=>import("./pages-feedback-problemDetail.CJGquA8l.js")),__vite__mapDeps([55,12,2,13,3,19,20,5,6,56])).then((e=>im(e.default||e))),Gv=xo(pv({loader:Kv},hv)),Jv=()=>t((()=>import("./pages-feedback-report.D9w-Zj4D.js")),__vite__mapDeps([57,2,3,11,12,13,14,1,4,19,20,5,6,48,41,49,58])).then((e=>im(e.default||e))),Zv=xo(pv({loader:Jv},hv)),Qv=()=>t((()=>import("./pages-other-aboutUs.DOrfyetN.js")),__vite__mapDeps([59,5,2,6,60])).then((e=>im(e.default||e))),ey=xo(pv({loader:Qv},hv)),ty=()=>t((()=>import("./pages-other-weChatPay.C30bZxuB.js")),__vite__mapDeps([61,11,12,2,13,3,14,5,6,62])).then((e=>im(e.default||e))),ny=xo(pv({loader:ty},hv));function oy(e,t){return Yr(),Jr(cv,null,{page:Vn((()=>[ri(e,pv({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/union/index",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(gv,t)}},loader:mv,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"公会中心",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/list",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(yv,t)}},loader:vv,meta:{navigationBar:{titleText:"公会中心",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/agreement",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(bv,t)}},loader:_v,meta:{navigationBar:{titleText:"查看协议",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/exitApplication",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(xv,t)}},loader:wv,meta:{popGesture:"none",navigationBar:{titleText:"退出审核",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/historyRecord",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Tv,t)}},loader:Sv,meta:{popGesture:"none",navigationBar:{titleText:"公会补贴历史记录",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/setGroup",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(kv,t)}},loader:Cv,meta:{navigationBar:{titleText:"群聊设置",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/memberList",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Ov,t)}},loader:Ev,meta:{navigationBar:{titleText:"群聊成员",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/taskDesc",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Av,t)}},loader:Mv,meta:{popGesture:"none",navigationBar:{titleText:"规则说明",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/prop/propMall",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy($v,t)}},loader:Lv,meta:{navigationBar:{titleText:"道具商城",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/grade",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Rv,t)}},loader:Pv,meta:{navigationBar:{titleText:"等级",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/gradeRule",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Iv,t)}},loader:Bv,meta:{popGesture:"none",navigationBar:{titleText:"等级规则",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/income",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Dv,t)}},loader:Nv,meta:{navigationBar:{titleText:"邀请收益",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/help",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Fv,t)}},loader:jv,meta:{popGesture:"none",navigationBar:{titleText:"帮助与反馈",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/customerService",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Hv,t)}},loader:Vv,meta:{popGesture:"none",navigationBar:{titleText:"在线客服",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/feedback",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Wv,t)}},loader:qv,meta:{popGesture:"none",navigationBar:{titleText:"反馈问题",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/teenage",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Yv,t)}},loader:zv,meta:{navigationBar:{titleText:"青少年",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/teenageDetail",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Uv,t)}},loader:Xv,meta:{popGesture:"none",navigationBar:{titleText:"青少年详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/problemDetail",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Gv,t)}},loader:Kv,meta:{popGesture:"none",navigationBar:{titleText:"问题详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/report",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Zv,t)}},loader:Jv,meta:{navigationBar:{titleText:"举报",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/aboutUs",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(ey,t)}},loader:Qv,meta:{navigationBar:{titleText:"关于我们",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/weChatPay",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(ny,t)}},loader:ty,meta:{navigationBar:{titleText:"微信充值",style:"custom",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const ry="https://yushengapi.qxyushen.top/h5/image/",iy={BASE_URL:"https://yushengapi.qxyushen.top",IM_APP_TOKEN:"67962a777e2b13bc6a4bde3ccd389d1e",PRIMARY_BGURL:`${ry}fy_bg.jpg`,PRIMARY_BLYURL:`${ry}fy_gly.png`,BASR_COLOR:"#3ABC6D",BASE_NAME:"羽声语音",wealth_url:`${ry}wealth.png`,charm_url:`${ry}charm.png`,kefu_url:`${ry}kefu.png`,singer_url:`${ry}singer.png`,unicon_url:`${ry}uniconBack.png`,coin_url:`${ry}union/coin.png`,hongbao_url:`${ry}union/hongbao.png`,gift_url:`${ry}union/gift.png`,new_unionUrl:`${ry}union/uniconBG.png`,not_unionUrl:`${ry}union/noUnion.png`},sy=(e={})=>{console.log(e);const t={url:iy.BASE_URL+e.url,method:e.method||"GET",data:e.params||e.data||{},header:{"Content-Type":"application/json",...e.header},timeout:e.timeout||5e3,sslVerify:!1},n=Mm("token");return n&&(t.header.Authorization=`${n}`),new Promise(((e,n)=>{rg({...t,success:t=>{e(t.data)},fail:e=>{n(e)}})}))};["get","post","put","delete"].forEach((e=>{sy[e]=(t,n,o={})=>sy({url:t,method:e.toUpperCase(),data:n,...o})}));const ay={get(e,t){const n={method:"get",url:e};return t&&(n.params=t),sy(n)},post(e,t){const n={method:"post",url:e};return t&&(n.data=t),sy(n)},put(e,t){const n={method:"put",url:e};return t&&(n.params=t),sy(n)},delete(e,t){const n={method:"delete",url:e};return t&&(n.params=t),sy(n)}},ly={onLaunch:function(){},onHide:function(){Am("Theme_Data")},methods:{async getInfo(){ay.get("/api/Theme/get_theme_data").then((e=>{const{data:t,code:n}=e;n&&Em("Theme_Data",t?JSON.stringify(t):"")})).catch((e=>{Em("Theme_Data","")}))}}};rm(ly,{init:nm,setup(e){const t=mu(),n=()=>{var n;n=e,Object.keys(md).forEach((e=>{md[e].forEach((t=>{No(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i}=e,s=function({path:e,query:t}){return c(tp,{path:e,query:t}),c(np,tp),c({},tp)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:xe(t.query)});if(o&&R(o,s),r&&R(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};lf(),i&&R(i,e)}};return br(qa).isReady().then(n),Fo((()=>{window.addEventListener("resize",Ce(sm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",am),document.addEventListener("visibilitychange",lm),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{av.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Yr(),Jr(Gg));e.setup=(e,o)=>{const r=t&&t(e,o);return g(r)?n:r},e.render=n}}),function(){const e=Ts(ly);return e.config.globalProperties.$config=iy,{app:e}}().app.use(Xh).mount("#app");export{sd as $,Ki as A,he as B,Mh as C,Ng as D,Dg as E,Fr as F,fm as G,yh as H,Ip as I,Go as J,Bg as K,km as L,Ph as M,dl as N,pp as O,Cg as P,tm as Q,ru as R,xh as S,rv as T,pd as U,Dm as V,og as W,Im as X,$m as Y,tg as Z,du as _,ad as a,ug as a0,xf as a1,rd as a2,xd as a3,Sd as a4,rg as a5,Am as a6,Lm as a7,hg as a8,of as a9,tf as aa,sf as ab,Cm as ac,wd as ad,hd as ae,gd as af,sp as ag,au as ah,ip as ai,Tm as b,iy as c,Ug as d,Un as e,Jr as f,Mm as g,ay as h,pe as i,Rh as j,ri as k,oi as l,ai as m,gg as n,Yr as o,si as p,Gr as q,Yn as r,Em as s,X as t,Ko as u,mg as v,Vn as w,ld as x,ws as y,so as z}; + */(e);if(!o)return;const r=t._component;g(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const Cs="undefined"!=typeof document;const ks=Object.assign;function Es(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ms(r)?r.map(e):e(r)}return n}const Os=()=>{},Ms=Array.isArray,As=/#/g,Ls=/&/g,$s=/\//g,Ps=/=/g,Rs=/\?/g,Bs=/\+/g,Is=/%5B/g,Ns=/%5D/g,Ds=/%5E/g,js=/%60/g,Fs=/%7B/g,Vs=/%7C/g,Hs=/%7D/g,qs=/%20/g;function Ws(e){return encodeURI(""+e).replace(Vs,"|").replace(Is,"[").replace(Ns,"]")}function zs(e){return Ws(e).replace(Bs,"%2B").replace(qs,"+").replace(As,"%23").replace(Ls,"%26").replace(js,"`").replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")}function Ys(e){return null==e?"":function(e){return Ws(e).replace(As,"%23").replace(Rs,"%3F")}(e).replace($s,"%2F")}function Xs(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Us=/\/$/;function Ks(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Xs(s)}}function Gs(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Js(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qs(e[n],t[n]))return!1;return!0}function Qs(e,t){return Ms(e)?ea(e,t):Ms(t)?ea(t,e):e===t}function ea(e,t){return Ms(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ta,na,oa,ra;function ia(e){if(!e)if(Cs){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Us,"")}(na=ta||(ta={})).pop="pop",na.push="push",(ra=oa||(oa={})).back="back",ra.forward="forward",ra.unknown="";const sa=/^[^#]+#/;function aa(e,t){return e.replace(sa,"#")+t}const la=()=>({left:window.scrollX,top:window.scrollY});function ca(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function ua(e,t){return(history.state?history.state.position-t:-1)+e}const da=new Map;function fa(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Gs(n,"")}return Gs(n,e)+o+r}function pa(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?la():null}}function ha(e){const{history:t,location:n}=window,o={value:fa(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=ks({},r.value,t.state,{forward:e,scroll:la()});i(s.current,s,!0),i(e,ks({},pa(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,ks({},t.state,pa(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function ma(e){const t=ha(e=ia(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=fa(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:ta.pop,direction:u?u>0?oa.forward:oa.back:oa.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(ks({},e.state,{scroll:la()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ks({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:aa.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function ga(e){return"string"==typeof e||"symbol"==typeof e}const va={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ya=Symbol("");var _a,ba;function wa(e,t){return ks(new Error,{type:e,[ya]:!0},t)}function xa(e,t){return e instanceof Error&&ya in e&&(null==t||!!(e.type&t))}(ba=_a||(_a={}))[ba.aborted=4]="aborted",ba[ba.cancelled=8]="cancelled",ba[ba.duplicated=16]="duplicated";const Sa={sensitive:!1,strict:!1,start:!0,end:!0},Ta=/[.+*?^${}()[\]/\\]/g;function Ca(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ka(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Oa={type:0,value:""},Ma=/[a-zA-Z0-9_]/;function Aa(e,t,n){const o=function(e,t){const n=ks({},Sa,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{i(f)}:Os}function i(e){if(ga(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Na(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Ra(e)&&o.set(e.record.name,e)}return t=Ia({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw wa(1,{location:e});s=r.record.name,a=ks($a(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&$a(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw wa(1,{location:e,currentLocation:t});s=r.record.name,a=ks({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:Ba(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function $a(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Pa(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Ra(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ba(e){return e.reduce(((e,t)=>ks(e,t.meta)),{})}function Ia(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Na(e,t){return t.children.some((t=>t===e||Na(e,t)))}function Da(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&zs(e))):[o&&zs(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Fa(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ms(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Va=Symbol(""),Ha=Symbol(""),qa=Symbol(""),Wa=Symbol(""),za=Symbol("");function Ya(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Xa(e,t,n,o,r,i=(e=>e())){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(wa(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(wa(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),a())},u=i((()=>e.call(o&&o.instances[r],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function Ua(e,t,n,o,r=(e=>e())){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&i.push(Xa(s,n,o,a,e,r))}else{let s=l();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&Xa(c,n,o,a,e,r)()}))))}}var s;return i}function Ka(e){const t=br(qa),n=br(Wa),o=Ei((()=>t.resolve(un(e.to)))),r=Ei((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Js.bind(null,r));if(s>-1)return s;const a=Ja(e[t-2]);return t>1&&Ja(r)===a&&i[i.length-1].path!==a?i.findIndex(Js.bind(null,e[t-2])):s})),i=Ei((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ms(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Ei((()=>r.value>-1&&r.value===n.matched.length-1&&Zs(n.params,o.value.params)));return{route:o,href:Ei((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[un(e.replace)?"replace":"push"](un(e.to)).catch(Os):Promise.resolve()}}}const Ga=bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ka,setup(e,{slots:t}){const n=qt(Ka(e)),{options:o}=br(qa),r=Ei((()=>({[Za(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Za(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Oi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ja(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Za=(e,t,n)=>null!=e?e:null!=t?t:n;function Qa(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const el=bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=br(za),r=Ei((()=>e.route||o.value)),i=br(Ha,0),s=Ei((()=>{let e=un(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=Ei((()=>r.value.matched[s.value]));_r(Ha,Ei((()=>s.value+1))),_r(Va,a),_r(za,r);const l=sn();return to((()=>[l.value,a.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Js(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return Qa(n.default,{Component:c,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=Oi(c,ks({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return Qa(n.default,{Component:f,route:o})||f}}});function tl(e){const t=La(e.routes,e),n=e.parseQuery||Da,o=e.stringifyQuery||ja,r=e.history,i=Ya(),s=Ya(),a=Ya(),l=an(va);let c=va;Cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Es.bind(null,(e=>""+e)),d=Es.bind(null,Ys),f=Es.bind(null,Xs);function p(e,i){if(i=ks({},i||l.value),"string"==typeof e){const o=Ks(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return ks(o,s,{params:f(s.params),hash:Xs(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ks({},e,{path:Ks(n,e.path,i.path).path});else{const t=ks({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ks({},e,{params:d(t)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(f(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ks({},e,{hash:(h=c,Ws(h).replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")),path:a.path}));var h;const m=r.createHref(p);return ks({fullPath:p,hash:c,query:o===ja?Fa(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Ks(n,e,l.value.path):ks({},e)}function m(e,t){if(c!==e)return wa(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),ks({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=p(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(ks(h(u),{state:"object"==typeof u?ks({},i,u.state):i,force:s,replace:a}),t||n);const d=n;let f;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Js(t.matched[o],n.matched[r])&&Zs(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(f=wa(16,{to:d,from:r}),L(r,r,!0,!1)),(f?Promise.resolve(f):w(d,r)).catch((e=>xa(e)?xa(e,2)?e:A(e):M(e,d,r))).then((e=>{if(e){if(xa(e,2))return y(ks({replace:a},h(e.to),{state:"object"==typeof e.to?ks({},i,e.to.state):i,force:s}),t||d)}else e=S(d,r,!0,a,i);return x(d,r,e),e}))}function _(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,r,a]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sJs(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>Js(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=Ua(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(Xa(o,e,t))}));const l=_.bind(null,e,t);return n.push(l),I(n).then((()=>{n=[];for(const o of i.list())n.push(Xa(o,e,t));return n.push(l),I(n)})).then((()=>{n=Ua(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Xa(o,e,t))}));return n.push(l),I(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(Ms(o.beforeEnter))for(const r of o.beforeEnter)n.push(Xa(r,e,t));else n.push(Xa(o.beforeEnter,e,t));return n.push(l),I(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ua(a,"beforeRouteEnter",e,t,b),n.push(l),I(n)))).then((()=>{n=[];for(const o of s.list())n.push(Xa(o,e,t));return n.push(l),I(n)})).catch((e=>xa(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>b((()=>o(e,t,n)))))}function S(e,t,n,o,i){const s=m(e,t);if(s)return s;const a=t===va,c=Cs?history.state:{};n&&(o||a?r.replace(e.fullPath,ks({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,L(e,t,n,a),A()}let T;function C(){T||(T=r.listen(((e,t,n)=>{if(!B.listening)return;const o=p(e),i=v(o);if(i)return void y(ks(i,{replace:!0}),o).catch(Os);c=o;const s=l.value;var a,u;Cs&&(a=ua(s.fullPath,n.delta),u=la(),da.set(a,u)),w(o,s).catch((e=>xa(e,12)?e:xa(e,2)?(y(e.to,o).then((e=>{xa(e,20)&&!n.delta&&n.type===ta.pop&&r.go(-1,!1)})).catch(Os),Promise.reject()):(n.delta&&r.go(-n.delta,!1),M(e,o,s)))).then((e=>{(e=e||S(o,s,!1))&&(n.delta&&!xa(e,8)?r.go(-n.delta,!1):n.type===ta.pop&&xa(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Os)})))}let k,E=Ya(),O=Ya();function M(e,t,n){A(e);const o=O.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function A(e){return k||(k=!e,C(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function L(t,n,o,r){const{scrollBehavior:i}=e;if(!Cs||!i)return Promise.resolve();const s=!o&&function(e){const t=da.get(e);return da.delete(e),t}(ua(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return kn().then((()=>i(t,n,s))).then((e=>e&&ca(e))).catch((e=>M(e,t,n)))}const $=e=>r.go(e);let P;const R=new Set,B={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return ga(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(ks(h(e),{replace:!0}))},go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:function(){return k&&l.value!==va?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Ga),e.component("RouterView",el),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>un(l)}),Cs&&!P&&l.value===va&&(P=!0,g(r.location).catch((e=>{})));const t={};for(const o in va)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(qa,this),e.provide(Wa,Wt(t)),e.provide(za,l);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c=va,T&&T(),T=null,l.value=va,P=!1,k=!1),n()}}};function I(e){return e.reduce(((e,t)=>e.then((()=>b(t)))),Promise.resolve())}return B}function nl(){return br(Wa)}const ol=["{","}"];const rl=/^(?:\d)+/,il=/^(?:\w)+/;const sl=Object.prototype.hasOwnProperty,al=(e,t)=>sl.call(e,t),ll=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=ol){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class ul{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||ll,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=cl(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{al(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=cl(t,this.messages))&&(o=this.messages[t]):n=t,al(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function dl(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&hd?hd():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new ul({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=tm().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}const fl=ie((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let pl;function hl(){if(!pl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,pl=dl(e),fl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>pl.add(e,__uniConfig.locales[e]))),pl.setLocale(e)}}return pl}function ml(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const gl=ie((()=>{const e="uni.async.",t=["error"];hl().add("en",ml(e,t,["The connection timed out, click the screen to try again."]),!1),hl().add("es",ml(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),hl().add("fr",ml(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),hl().add("zh-Hans",ml(e,t,["连接服务器超时,点击屏幕重试"]),!1),hl().add("zh-Hant",ml(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),vl=ie((()=>{const e="uni.showActionSheet.",t=["cancel"];hl().add("en",ml(e,t,["Cancel"]),!1),hl().add("es",ml(e,t,["Cancelar"]),!1),hl().add("fr",ml(e,t,["Annuler"]),!1),hl().add("zh-Hans",ml(e,t,["取消"]),!1),hl().add("zh-Hant",ml(e,t,["取消"]),!1)})),yl=ie((()=>{const e="uni.showToast.",t=["unpaired"];hl().add("en",ml(e,t,["Please note showToast must be paired with hideToast"]),!1),hl().add("es",ml(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),hl().add("fr",ml(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),hl().add("zh-Hans",ml(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),hl().add("zh-Hant",ml(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),_l=ie((()=>{const e="uni.showLoading.",t=["unpaired"];hl().add("en",ml(e,t,["Please note showLoading must be paired with hideLoading"]),!1),hl().add("es",ml(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),hl().add("fr",ml(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),hl().add("zh-Hans",ml(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),hl().add("zh-Hant",ml(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),bl=ie((()=>{const e="uni.showModal.",t=["cancel","confirm"];hl().add("en",ml(e,t,["Cancel","OK"]),!1),hl().add("es",ml(e,t,["Cancelar","OK"]),!1),hl().add("fr",ml(e,t,["Annuler","OK"]),!1),hl().add("zh-Hans",ml(e,t,["取消","确定"]),!1),hl().add("zh-Hant",ml(e,t,["取消","確定"]),!1)})),wl=ie((()=>{const e="uni.chooseFile.",t=["notUserActivation"];hl().add("en",ml(e,t,["File chooser dialog can only be shown with a user activation"]),!1),hl().add("es",ml(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),hl().add("fr",ml(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),hl().add("zh-Hans",ml(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),hl().add("zh-Hant",ml(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),xl=ie((()=>{const e="uni.setClipboardData.",t=["success","fail"];hl().add("en",ml(e,t,["Content copied","Copy failed, please copy manually"]),!1),hl().add("es",ml(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),hl().add("fr",ml(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),hl().add("zh-Hans",ml(e,t,["内容已复制","复制失败,请手动复制"]),!1),hl().add("zh-Hant",ml(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Sl=ie((()=>{const e="uni.picker.",t=["done","cancel"];hl().add("en",ml(e,t,["Done","Cancel"]),!1),hl().add("es",ml(e,t,["OK","Cancelar"]),!1),hl().add("fr",ml(e,t,["OK","Annuler"]),!1),hl().add("zh-Hans",ml(e,t,["完成","取消"]),!1),hl().add("zh-Hant",ml(e,t,["完成","取消"]),!1)}));function Tl(e){const t=new $e;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Cl=1;const kl=Object.create(null);function El(e,t){return e+"."+t}function Ol({id:e,name:t,args:n},o){t=El(o,t);const r=t=>{e&&sv.publishHandler("invokeViewApi."+e,t)},i=kl[t];i?i(n,r):r({})}const Ml=c(Tl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=sv,i=n?Cl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Al=_e(!0);let Ll;function $l(){Ll&&(clearTimeout(Ll),Ll=null)}let Pl=0,Rl=0;function Bl(e){if($l(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Pl=t,Rl=n,Ll=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Il(e){if(!Ll)return;if(1!==e.touches.length)return $l();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Pl)>10||Math.abs(n-Rl)>10?$l():void 0}function Nl(e,t){const n=Number(e);return isNaN(n)?t:n}function Dl(){const e=__uniConfig.globalStyle||{},t=Nl(e.rpxCalcMaxDeviceWidth,960),n=Nl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fl,Vl,Hl=["top","left","right","bottom"],ql={};function Wl(){return Vl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function zl(){if(Vl="string"==typeof Vl?Vl:Wl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Hl.forEach((function(e){s(o,e)})),document.body.appendChild(o),i(),Fl=!0}else Hl.forEach((function(e){ql[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Vl+"(safe-area-inset-"+n+")"};r(o,c),r(s,c),r(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),i((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,r=s.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,r=s.scrollTop,function(e){Xl.length||setTimeout((function(){var e={};Xl.forEach((function(t){e[t]=ql[t]})),Xl.length=0,Ul.forEach((function(t){t(e)}))}),0);Xl.push(e)}(n))}o.addEventListener("scroll",i,t),s.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(ql,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Yl(e){return Fl||zl(),ql[e]}var Xl=[];var Ul=[];const Kl=jl({get support(){return 0!=("string"==typeof Vl?Vl:Wl()).length},get top(){return Yl("top")},get left(){return Yl("left")},get right(){return Yl("right")},get bottom(){return Yl("bottom")},onChange:function(e){Wl()&&(Fl||zl(),"function"==typeof e&&Ul.push(e))},offChange:function(e){var t=Ul.indexOf(e);t>=0&&Ul.splice(t,1)}}),Gl=ws((()=>{}),["prevent"]),Jl=ws((e=>{}),["stop"]);function Zl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Ql(){const e=Zl(document.documentElement.style,"--window-top");return e?e+Kl.top:0}function ec(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function tc(e){return Symbol(e)}function nc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function oc(e,t=!1){if(t)return function(e){if(!nc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>nd(parseFloat(t))+"px"))}(e);if(v(e)){const t=parseInt(e)||0;return nc(e)?nd(t):t}return e}function rc(e){return e.$page}function ic(e){return 0===e.tagName.indexOf("UNI-")}const sc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",ac="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function lc(e,t="#000",n=27){return ri("svg",{width:n,height:n,viewBox:"0 0 32 32"},[ri("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function cc(){{const{$pageInstance:o}=gi();return o&&(e=o.proxy,(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id))}var e,t,n}function uc(){const e=xf(),t=e.length;if(t)return e[t-1]}function dc(){var e;const t=null==(e=uc())?void 0:e.$page;if(t)return t.meta}function fc(){const e=dc();return e?e.id:-1}function pc(){const e=uc();if(e)return e.$vm}const hc=["navigationBar","pullToRefresh"];function mc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);hc.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function gc(e,t,n,o,r,i){const{id:s,route:a}=o,l=Be(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:s,path:oe(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}function vc(e,t,n){if(v(e))n=t,t=e,e=pc();else if("number"==typeof e){const t=xf().find((t=>rc(t).id===e));e=t?t.$vm:pc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-bc)>n;return!i||r&&!s?(!i&&r&&(r=!1),!1):(bc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(s()||(_c=setTimeout(s,300))),o=!1};return function(){clearTimeout(_c),o||requestAnimationFrame(s),o=!0}}function xc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return xc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),oe(i.concat(n).join("/"))}function Sc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function Tc(){Dl(),ge(ic),window.addEventListener("touchstart",Bl,Al),window.addEventListener("touchmove",Il,Al),window.addEventListener("touchend",$l,Al),window.addEventListener("touchcancel",$l,Al)}class Cc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(fe(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&fe(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Mc(this.$el.querySelector(e));return t?kc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];g(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&sv.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function kc(e,t=!0){if(t&&e&&(e=de(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Cc(e)),e.$el.__wxsComponentDescriptor}function Ec(e,t){return kc(e,t)}function Oc(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Ec(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=de(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Ec(r,!1)]}}function Mc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Ac(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let s,a;s=be(t?r:function(e){for(;!ic(e);)e=e.parentElement;return e}(r)),a=be(i);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&S(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Lc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function $c(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Ql();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Lc(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Ql();i.touches=$c(e.touches,t),i.changedTouches=$c(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Oc(i,t,n)||[i]},createNativeEvent:Ac},Symbol.toStringTag,{value:"Module"});function Rc(e){!function(e){const t=e.globalProperties;c(t,Pc),t.$gcd=Ec}(e._context.config)}let Bc=1;function Ic(e){return(e||fc())+".invokeViewApi"}const Nc=c(Tl("view"),{invokeOnCallback:(e,t)=>av.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=av,s=o?Bc++:0;o&&r("invokeViewApi."+s,o,!0),i(Ic(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:s}=av,a=Bc++,l="invokeViewApi."+a;return r(l,n),s(Ic(o),{id:a,name:e,args:t},o),()=>{i(l)}}});function Dc(e){vc(uc(),"onResize",e),av.invokeOnCallback("onWindowResize",e)}function jc(e){const t=uc();vc(tm(),"onShow",e),vc(t,"onShow")}function Fc(){vc(tm(),"onHide"),vc(uc(),"onHide")}const Vc=["onPageScroll","onReachBottom"];function Hc(){Vc.forEach((e=>av.subscribe(e,function(e){return(t,n)=>{vc(parseInt(n),e,t)}}(e))))}function qc(){!function(){const{on:e}=av;e("onResize",Dc),e("onAppEnterForeground",jc),e("onAppEnterBackground",Fc)}(),Hc()}function Wc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new ke(this.$page.id)),e.eventChannel}}function zc(e){e._context.config.globalProperties.getOpenerEventChannel=Wc}function Yc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Xc(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${nd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Uc(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,s=e.option,a=s.transition,l={},c=[];return i.forEach((e=>{let i=e.type,s=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(s=s.map(Xc)),n.indexOf(i)>=0&&(s.length=1),c.push(`${i}(${s.join(",")})`);else if(o.concat(r).includes(s[0])){i=s[0];const e=s[1];l[i]=r.includes(i)?Xc(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{i()}),0)}const Kc={props:["animation"],watch:{animation:{deep:!0,handler(){Uc(this)}}},mounted(){Uc(this)}},Gc=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Kc),Jc(e)},Jc=e=>(e.__reserved=!0,e.compatConfig={MODE:3},bo(e));function Zc(e){return e.__wwe=!0,e}function Qc(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=be(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const eu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function tu(e){const t=sn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function a(){r=!1,t.value&&i()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Zc((function(e){e.touches.length>1||s(e)})),onMousedown:Zc((function(e){r||(s(e),window.addEventListener("mouseup",l))})),onTouchend:Zc((function(){a()})),onMouseup:Zc((function(){r&&l()})),onTouchcancel:Zc((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function nu(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const ou=tc("uf"),ru=Gc({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=sn(null);return function(e){const t=[];_r(ou,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(Qc(o,n)),()=>ri("uni-form",{ref:o},[ri("span",null,[t.default&&t.default()])],512)}});const iu={for:{type:String,default:""}},su=tc("ul");const au=Gc({name:"Label",props:iu,setup(e,{slots:t}){const n=sn(null),o=cc(),r=function(){const e=[];return _r(su,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),i=Ei((()=>e.for||t.default&&t.default.length)),s=Zc((t=>{const n=t.target;let i=/^uni-(checkbox|radio|switch)-/.test(n.className);i||(i=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),i||(e.for?sv.emit("uni-label-click-"+o+"-"+e.for,t,!0):r.length&&r[0](t,!0))}));return()=>ri("uni-label",{ref:n,class:{"uni-label-pointer":i},onClick:s},[t.default&&t.default()],10,["onClick"])}});function lu(e,t){cu(e.id,t),to((()=>e.id),((e,n)=>{uu(n,t,!0),cu(e,t,!0)})),Wo((()=>{uu(e.id,t)}))}function cu(e,t,n){const o=cc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&sv.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?sv.on(r,t[r]):e&&sv.on(`uni-${r}-${o}-${e}`,t[r])}))}function uu(e,t,n){const o=cc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&sv.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?sv.off(r,t[r]):e&&sv.off(`uni-${r}-${o}-${e}`,t[r])}))}const du=Gc({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=sn(null),o=br(ou,!1),{hovering:r,binding:i}=tu(e),s=Zc(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),a=br(su,!1);return a&&(a.addHandler(s),qo((()=>{a.removeHandler(s)}))),lu(e,{"label-click":s}),()=>{const o=e.hoverClass,a=nu(e,"disabled"),l=nu(e,"loading"),c=nu(e,"plain"),u=o&&"none"!==o;return ri("uni-button",di({ref:n,onClick:s,id:e.id,class:u&&r.value?o:""},u&&i,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),fu=tc("upm");function pu(){return br(fu)}function hu(e){const t=function(e){return qt(function(e){if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==xf().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(mc(nl().meta,e)))))}(e);return _r(fu,t),t}function mu(){return nl()}function gu(){return history.state&&history.state.__id__||1}const vu=["original","compressed"],yu=["album","camera"],_u=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function bu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function wu(e,t){return!p(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function xu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Su=1;const Tu={};function Cu(e,t,n){if("number"==typeof e){const o=Tu[e];if(o)return o.keepAlive||delete Tu[e],o.callback(t,n)}return t}const ku="success",Eu="fail",Ou="complete";function Mu(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];g(o)&&(t[n]=xu(o),delete e[n])}return t}(t),a=g(r),l=g(i),c=g(s),u=Su++;return function(e,t,n,o=!1){Tu[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),g(n)&&n(u),u.errMsg===e+":ok"?(g(o)&&o(u,t),a&&r(u)):l&&i(u),c&&s(u)})),u}const Au="success",Lu="fail",$u="complete",Pu={},Ru={};function Bu(e,t){return function(n){return e(n,t)||n}}function Iu(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function Nu(e,t={}){return[Au,Lu,$u].forEach((n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){Iu(o,e,t).then((e=>g(r)&&r(e)||e))}})),t}function Du(e,t){const n=[];p(Pu.returnValue)&&n.push(...Pu.returnValue);const o=Ru[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function ju(e){const t=Object.create(null);Object.keys(Pu).forEach((e=>{"returnValue"!==e&&(t[e]=Pu[e].slice())}));const n=Ru[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Fu(e,t,n,o){const r=ju(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return Iu(r.invoke,n).then((n=>t(Nu(ju(e),n),...o)))}return t(Nu(r,n),...o)}return t(n,...o)}function Vu(e,t){return(n={},...o)=>function(e){return!(!S(e)||![ku,Eu,Ou].find((t=>g(e[t]))))}(n)?Du(e,Fu(e,t,c({},n),o)):Du(e,new Promise(((r,i)=>{Fu(e,t,c({},n,{success:r,fail:i}),o)})))}function Hu(e,t,n,o={}){const r=t+":fail";let i="";return i=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,Cu(e,c({errMsg:i},o))}function qu(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const r=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Mu(e,n,o),i=qu(0,[n],0,o);return i?Hu(r,e,i):t(n,{resolve:t=>function(e,t,n){return Cu(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>Hu(r,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function zu(e,t,n,o){return Vu(e,Wu(e,t,0,o))}function Yu(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=qu(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Xu(e,t,n,o){return Vu(e,function(e,t,n,o){return Wu(e,t,0,o)}(e,t,0,o))}let Uu=!1,Ku=0,Gu=0,Ju=960,Zu=375,Qu=750;function ed(){let e,t,n;{const{windowWidth:o,pixelRatio:r,platform:i}=function(){const e=Yf(),t=Kf(Uf(e,Xf(e)));return{platform:Vf?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=r,n=i}Ku=e,Gu=t,Uu="ios"===n}function td(e,t){const n=Number(e);return isNaN(n)?t:n}const nd=Yu(0,((e,t)=>{if(0===Ku&&(ed(),function(){const e=__uniConfig.globalStyle||{};Ju=td(e.rpxCalcMaxDeviceWidth,960),Zu=td(e.rpxCalcBaseDeviceWidth,375),Qu=td(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Ku;n=e===Qu||n<=Ju?n:Zu;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Gu&&Uu?.5:1),e<0?-o:o}));function od(e,t){Object.keys(t).forEach((n=>{g(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{v(e)&&S(t)?od(Ru[e]||(Ru[e]={}),t):S(e)&&od(Pu,e)}));const id=new class{constructor(){this.$emitter=new $e}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},sd=Yu(0,((e,t)=>(id.on(e,t),()=>id.off(e,t)))),ad=Yu(0,((e,t)=>{p(e)||(e=e?[e]:[]),e.forEach((e=>{id.off(e,t)}))})),ld=Yu(0,((e,...t)=>{id.emit(e,...t)})),cd={formatArgs:{}},ud={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class dd{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},ud,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const fd=ie((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{dd.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),pd=Yu(0,(e=>(fd(),new dd(e))),0,cd),hd=Yu(0,(()=>{const e=tm();return e&&e.$vm?e.$vm.$locale:hl().getLocale()})),md={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const gd=Yu(0,(()=>c({},tp)));let vd,yd,_d;const bd=[];const wd=Xu("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===_d&&(_d=!1,vd="",yd="uniPush is not enabled"),bd.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==vd&&(e=vd,o=yd,bd.forEach((t=>{t(e,o)})),bd.length=0)}))})),xd=e=>{},Sd=e=>{},Td={formatArgs:{showToast:!0},beforeInvoke(){xl()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=hl(),o=n("uni.setClipboardData.success");o&&Bg({title:o,icon:"success",mask:!1})}},Cd=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=wu(e,vu)},sourceType(e,t){t.sourceType=wu(e,yu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),kd={formatArgs:{sourceType(e,t){t.sourceType=wu(e,yu)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Ed=(Boolean,["all","image","video"]),Od={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=wu(e,yu)},type(e,t){t.type=bu(e,Ed)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},Md={formatArgs:{src(e,t){t.src=Df(e)}}},Ad={formatArgs:{urls(e,t){t.urls=e.map((e=>v(e)&&e?Df(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};i.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(f(t,a)){let e=t[a];null==e?e="":S(e)&&(e=JSON.stringify(e)),s[Pd(a)]=Pd(e)}return r=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==_u[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Ld).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===$d.indexOf(t.responseType)&&(t.responseType="text")}}},Bd={formatArgs:{filePath(e,t){e&&(t.filePath=Df(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Id={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=bu((e||"").toUpperCase(),_u)},protocols(e,t){v(e)&&(t.protocols=[e])}}};const Nd={url:{type:String,required:!0}},Dd=(Hd(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Hd(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),zd("navigateTo")),jd=zd("redirectTo"),Fd=zd("reLaunch"),Vd={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(xf().length-1,e)}}};function Hd(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let qd;function Wd(){qd=""}function zd(e){return{formatArgs:{url:Yd(e)},beforeAll:Wd}}function Yd(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=xf();return n.length&&(t=rc(n[n.length-1]).route),xc(t,e)}(t)).split("?")[0],r=Sc(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(qd===t&&"appLaunch"!==n.openType)return`${qd} locked`;__uniConfig.ready&&(qd=t)}else if(r.meta.isTabBar){const e=xf(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const Xd={formatArgs:{itemColor:"#000"}},Ud=(Boolean,{formatArgs:{title:"",mask:!1}}),Kd=(Boolean,{beforeInvoke(){bl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=hl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=hl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Gd=["success","loading","none","error"],Jd=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=bu(e,Gd)},image(e,t){t.image=e?Df(e):""},duration:1500,mask:!1}});function Zd(){const e=pc();if(!e)return;const t=wf(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Tf(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,vc(e,"onHide"))}function Qd(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function ef(e){const t=wf().values();for(const n of t){const t=mf(n);if(Qd(e,t))return n.$.__isActive=!0,t.id}}const tf=Xu("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(gf.handledBeforeEntryPageRoutes)return Zd(),af({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},ef(e)).then(o).catch(r);yf.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,zd("switchTab"));function nf(){const e=uc();if(!e)return;const t=mf(e);Tf(Ef(t.path,t.id))}const of=Xu("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(gf.handledBeforeEntryPageRoutes)return nf(),af({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o);_f.push({args:{type:"redirectTo",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,jd);function rf(){const e=wf().keys();for(const t of e)Tf(t)}const sf=Xu("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(gf.handledBeforeEntryPageRoutes)return rf(),af({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);bf.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Fd);function af({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const s=tm().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Te(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Cf,__type__:e}}(e,i);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((i=>{if(xa(i))return c(i.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new ke(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}function lf(){if(gf.handledBeforeEntryPageRoutes)return;gf.handledBeforeEntryPageRoutes=!0;const e=[...vf];vf.length=0,e.forEach((({args:e,resolve:t,reject:n})=>af(e).then(t).catch(n)));const t=[...yf];yf.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(Zd(),af(e,ef(e.url)).then(t).catch(n))));const n=[..._f];_f.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(nf(),af(e).then(t).catch(n))));const o=[...bf];bf.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(rf(),af(e).then(t).catch(n))))}function cf(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const uf=cf("top:env(a)"),df=cf("top:constant(a)"),ff=(()=>uf?"env":df?"constant":"")();function pf(e){var t,n;ec({"--window-top":(n=0,ff?`calc(${n}px + ${ff}(safe-area-inset-top))`:`${n}px`),"--window-bottom":(t=0,ff?`calc(${t}px + ${ff}(safe-area-inset-bottom))`:`${t}px`)})}const hf=new Map;function mf(e){return e.$page}const gf={handledBeforeEntryPageRoutes:!1},vf=[],yf=[],_f=[],bf=[];function wf(){return hf}function xf(){return Sf()}function Sf(){const e=[],t=hf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Tf(e,t=!0){const n=hf.get(e);n.$.__isUnload=!0,vc(n,"onUnload"),hf.delete(e),t&&function(e){const t=Of.get(e);t&&(Of.delete(e),Mf.pruneCacheEntry(t))}(e)}let Cf=gu();function kf(e){const t=function(e){const t=pu();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),gc("navigateTo",n,{},t)}(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),hf.set(Ef(t.path,t.id),e),1===hf.size&&setTimeout((()=>{lf()}),0)}function Ef(e,t){return e+"$$"+t}const Of=new Map,Mf={get:e=>Of.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Mf.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);o&&o>t&&(Mf.delete(n),Mf.pruneCacheEntry(e),kn((()=>{hf.forEach(((e,t)=>{e.$.isUnmounted&&hf.delete(t)}))})))}))}(e),Of.set(e,t)},delete(e){Of.get(e)&&Of.delete(e)},forEach(e){Of.forEach(e)}};function Af(e,t){!function(e){const t=$f(e),{body:n}=document;Pf&&n.removeAttribute(Pf),t&&n.setAttribute(t,""),Pf=t}(e),pf(),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),If(e,t)}function Lf(e){const t=$f(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function $f(e){return e.type.__scopeId}let Pf;const Rf=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let Bf;function If(e,t){if(document.removeEventListener("touchmove",yc),Bf&&document.removeEventListener("scroll",Bf),t.disableScroll)return document.addEventListener("touchmove",yc,Rf);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!r)return;const i={},s=mf(e.proxy).id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&sv.publishHandler("onPageScroll",{scrollTop:o},e),n&&sv.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,r)),(null==o?void 0:o.length)&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>sv.publishHandler("onReachBottom",{},s)),Bf=wc(i),requestAnimationFrame((()=>document.addEventListener("scroll",Bf)))}function Nf(e){const{base:t}=__uniConfig.router;return 0===oe(e).indexOf(t)?oe(e):t+e}function Df(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Nf(e.slice(1));e="https:"+e}if(ee.test(e)||te.test(e)||0===e.indexOf("blob:"))return e;const o=Sf();return o.length?Nf(xc(mf(o[o.length-1]).route,e).slice(1)):e}const jf=navigator.userAgent,Ff=/android/i.test(jf),Vf=/iphone|ipad|ipod/i.test(jf),Hf=jf.match(/Windows NT ([\d|\d.\d]*)/i),qf=/Macintosh|Mac/i.test(jf),Wf=/Linux|X11/i.test(jf),zf=qf&&navigator.maxTouchPoints>0;function Yf(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Xf(e){return e&&90===Math.abs(window.orientation)}function Uf(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Kf(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}const Gf={};function Jf(e,t){const n=Gf[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return Zf(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Zf(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function Qf(e){for(const n in Gf)if(f(Gf,n)){if(Gf[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Gf[t]=e,t}function ep(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Gf[e]}const tp=Yc(),np=Yc();const op=Gc({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=sn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=qt({width:-1,height:-1});return to((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){Mo(o),Fo((()=>{t.initial&&kn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>ri("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[ri("div",{onScroll:r},[ri("div",null,null)],40,["onScroll"]),ri("div",{onScroll:r},[ri("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const rp=tc("ucg"),ip=Gc({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=sn(null);return function(e,t){const n=[],o=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);_r(rp,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:o()})}});const r=br(ou,!1);r&&r.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}})}(e,Qc(o,t)),()=>ri("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});const sp=Gc({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=sn(null),o=sn(e.checked),r=Ei((()=>"true"===o.value||!0===o.value)),i=sn(e.value);const s=Ei((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(r.value)));to([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,i.value=t}));const{uniCheckGroup:a,uniLabel:l}=function(e,t,n){const o=Ei((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),r={reset:n},i=br(rp,!1);i&&i.addField(o);const s=br(ou,!1);s&&s.addField(r);const a=br(su,!1);return qo((()=>{i&&i.removeField(o),s&&s.removeField(r)})),{uniCheckGroup:i,uniForm:s,uniLabel:a}}(o,i,(()=>{o.value=!1})),c=t=>{e.disabled||(o.value=!o.value,a&&a.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),qo((()=>{l.removeHandler(c)}))),lu(e,{"label-click":c}),()=>{const r=nu(e,"disabled");let i;return i=o.value,ri("uni-checkbox",di(r,{id:e.id,onClick:c,ref:n}),[ri("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[ri("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[i?lc(sc,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function ap(){}const lp={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function cp(e,t,n){function o(e){const t=Ei((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",ap,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",ap,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}to((()=>t.value),(e=>e&&o(e)))}const up={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},dp={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},fp={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},pp=Gc({name:"Image",props:up,setup(e,{emit:t}){const n=sn(null),o=function(e,t){const n=sn(""),o=Ei((()=>{let e="auto",o="";const r=fp[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=qt({rootEl:e,src:Ei((()=>t.src?Df(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Fo((()=>{const t=e.value;r.origWidth=t.clientWidth||0,r.origHeight=t.clientHeight||0})),r}(n,e),r=Qc(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=dp[o];if(!r)return;const{origWidth:i,origHeight:s}=n,a=i&&s?i/s:0;if(!a)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){hp&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,a))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return to((()=>t.mode),((e,t)=>{dp[t]&&r(),dp[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;a(u,d,l),kn((()=>{o()})),i.draggable=t.draggable,s&&s.remove(),s=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{a(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};to((()=>e.src),(e=>l(e))),to((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Fo((()=>l(e.src))),qo((()=>c()))}(o,e,n,i,r),()=>ri("uni-image",{ref:n},[ri("div",{style:o.modeStyle},null,4),dp[e.mode]?ri(op,{onResize:i},null,8,["onResize"]):ri("span",null,null)],512)}});const hp="Google Inc."===navigator.vendor;const mp=_e(!0),gp=[];let vp=0,yp=!1;const _p=e=>gp.forEach((t=>t.userAction=e));function bp(e={userAction:!1}){if(!yp){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!vp&&_p(!0),vp++,setTimeout((()=>{!--vp&&_p(!1)}),0)}),mp)})),yp=!0}gp.push(e)}const wp=()=>!!vp;function xp(){const e=qt({userAction:!1});return Fo((()=>{bp(e)})),qo((()=>{!function(e){const t=gp.indexOf(e);t>=0&&gp.splice(t,1)}(e)})),{state:e}}function Sp(){const e=qt({attrs:{}});return Fo((()=>{let t=gi();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Tp(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}const Cp=function(){var e,t,n;e=fc(),n=Tp,t=El(e,t="getSelectedTextRange"),kl[t]||(kl[t]=n)};function kp(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Ep=["none","text","decimal","numeric","tel","search","email","url"],Op=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Ep.indexOf(e)},cursorColor:{type:String,default:""}},lp),Mp=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Ap(e,t,n,o){let r=null;r=Ce((n=>{t.value=kp(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),to((()=>e.modelValue),r),to((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const s=Date.now();clearTimeout(n),o=()=>{o=null,r=s,e.apply(this,i)},s-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return jo((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Lp(e,t){xp();const n=Ei((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}to((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Fo((()=>{n.value&&kn(o)}))}function $p(e,t,n,o){Cp();const{fieldRef:r,state:i,trigger:s}=function(e,t,n){const o=sn(null),r=Qc(t,n),i=Ei((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=Ei((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=Ei((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Ei((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=kp(e.modelValue,e.type)||kp(e.value,e.type);const u=qt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:s,cursor:a});return to((()=>u.focus),(e=>n("update:focus",e))),to((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:a}=Ap(e,i,n,s);Lp(e,r),cp(0,r);const{state:l}=Sp();!function(e,t){const n=br(ou,!1);if(!n)return;const o=gi(),r={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(r),qo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}to([()=>t.selectionStart,()=>t.selectionEnd],s),to((()=>t.cursor),a),to((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),g(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(r,i,e,s,a,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Pp=c({},Op,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Rp=ie((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function Bp(e,t,n,o,r){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",r&&(r.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",r.fn)},o.addEventListener("blur",r.fn)),!1}else if("deleteContentBackward"===e.inputType&&Rp()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Ip=Gc({name:"Input",props:Pp,emits:["confirm",...Mp],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=Ei((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=Ei((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(A(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let a=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=sn(null!=t?t.toLocaleString():"");return to((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),to((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return sn("")}(e,i),l={fn:null};const c=sn(null),{fieldRef:u,state:d,scopedAttrsState:f,fixDisabledColor:p,trigger:h}=$p(e,c,t,((t,n)=>{const o=t.target;if("number"===i.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!a.value||!o.value)&&"-"===t.data||"-"===a.value[0]&&"deleteContentBackward"===t.inputType)return a.value="-",n.value="",l.fn=()=>{a.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=Bp(t,a,n,o,l);return"boolean"==typeof e?e:(a.value=n.value=o.value="-"===a.value?"":a.value,!1)}{const e=Bp(t,a,n,o,l);if("boolean"==typeof e)return e;a.value=o.value}const r=n.maxlength;if(r>0&&o.value.length>r){o.value=o.value.slice(0,r),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}}));to((()=>d.value),(t=>{"number"!==e.type||"-"===a.value&&""===t||(a.value=t.toString())}));const m=["number","digit"],g=Ei((()=>m.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?ri("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):ri("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:v,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return ri("uni-input",{ref:c},[ri("div",{class:"uni-input-wrapper"},[so(ri("div",di(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ki,!(d.value.length||"-"===a.value||a.value.includes("."))]]),"search"===e.confirmType?ri("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Np=["class","style"],Dp=/^on[A-Z]+/,jp=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=gi(),r=an({}),i=an({}),s=an({}),a=n.concat(Np);return o.attrs=qt(o.attrs),Qn((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:Dp.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,s.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:s}};function Fp(e){const t=[];return p(e)&&e.forEach((e=>{Zr(e)?e.type===Fr?t.push(...Fp(e.children)):t.push(e):p(e)&&t.push(...Fp(e))})),t}const Vp=Gc({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=sn(null),o=sn(!1);let{setContexts:r,events:i}=function(e,t){const n=sn(0),o=sn(0),r=qt({x:null,y:null}),i=sn(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=a){let o=t.value;function r(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=Hp(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=Zc((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(Hp(n)/i.value)}r.x=n.x,r.y=n.y}})),f=Zc((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?a.forEach((function(e){e._endScale()})):s&&s._endScale())}));function p(){h(),a.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return _r("movableAreaWidth",n),_r("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:p}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=jp(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Fo((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Zt(o))}r(e)}return _r("_isMounted",o),_r("movableAreaRootRef",n),_r("addMovableViewContext",(e=>{d.push(e),f()})),_r("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=Fp(e),ri("uni-movable-area",di({ref:n},a.value,l.value,c),[ri(op,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function Hp(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const qp=function(e,t,n,o){e.addEventListener(t,(e=>{g(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Wp,zp;function Yp(e,t,n){qo((()=>{document.removeEventListener("mousemove",Wp),document.removeEventListener("mouseup",zp)}));let o=0,r=0,i=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-r,ddx:a-i,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;qp(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=s=e.touches[0].pageY,a(e,"start",o,r)})),qp(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=s=e.pageY,a(e,"start",o,r)})),qp(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=Wp=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return i=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),qp(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=zp=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),qp(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Xp(e,t,n){return e>t-n&&ethis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Gp.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Gp.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Gp.prototype.dt=function(){return-this._x_v/this._x_a},Gp.prototype.done=function(){const e=Xp(this.s().x,this._endPositionX)||Xp(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Gp.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Gp.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Jp.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,s=t/(r*e);return{x:function(e){return(i+s*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+s*e)*t+s*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Jp.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Jp.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Jp.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Up(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Up(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Up(t,.1)&&(t=0),Up(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Up(o-e,.1)&&Up(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Jp.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Jp.prototype.done=function(e){return e||(e=(new Date).getTime()),Xp(this.x(),this._endPosition,.1)&&Up(this.dx(),.1)},Jp.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Jp.prototype.springConstant=function(){return this._k},Jp.prototype.damping=function(){return this._c},Jp.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Zp.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},Zp.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Zp.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Zp.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Qp(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const eh=Gc({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=sn(null),r=Qc(o,n),{setParent:i}=function(e,t,n){const o=br("_isMounted",sn(!1)),r=br("addMovableViewContext",(()=>{})),i=br("removeMovableViewContext",(()=>{}));let s,a,l=sn(1),c=sn(1),u=sn(!1),d=sn(0),f=sn(0),p=null,h=null,m=!1,g=null,v=null;const y=new Kp,_=new Kp,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=Ei((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Gp(1,w.value);to((()=>e.disabled),(()=>{z()}));const{_updateOldScale:S,_endScale:T,_setScale:C,scaleValueSync:k,_updateBoundary:E,_updateOffset:O,_updateWH:M,_scaleOffset:A,minX:L,minY:$,maxX:P,maxY:R,FAandSFACancel:B,_getLimitXY:I,_setTransform:N,_revise:D,dampingNumber:j,xMove:F,yMove:V,xSync:H,ySync:q,_STD:W}=function(e,t,n,o,r,i,s,a,l,c){const u=Ei((()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t})),d=Ei((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),f=sn(Number(e.scaleValue)||1);to(f,(e=>{N(e)})),to(u,(()=>{I()})),to(d,(()=>{I()})),to((()=>e.scaleValue),(e=>{f.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:m,_scaleOffset:g,minX:v,minY:y,maxX:_,maxY:b}=function(e,t,n){const o=br("movableAreaWidth",sn(0)),r=br("movableAreaHeight",sn(0)),i=br("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=sn(0),c=sn(0),u=sn(0),d=sn(0),f=sn(0),p=sn(0);function h(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),f.value=Math.max(e,t);let n=0-s.y+a.y,i=r.value-c.value-s.y-a.y;d.value=Math.min(n,i),p.value=Math.max(n,i)}function m(){s.x=oh(e.value,i.value),s.y=rh(e.value,i.value)}function g(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();c.value=r.height/t.value,l.value=r.width/t.value;let i=c.value*o,s=l.value*o;a.x=(s-l.value)/2,a.y=(i-c.value)/2}return{_updateBoundary:h,_updateOffset:m,_updateWH:g,_scaleOffset:a,minX:u,minY:d,maxX:f,maxY:p}}(t,o,B),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:T,_revise:C,dampingNumber:k,xMove:E,yMove:O,xSync:M,ySync:A,_STD:L}=function(e,t,n,o,r,i,s,a,l,c,u,d,f,p){const h=Ei((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=Ei((()=>"all"===t.direction||"horizontal"===t.direction)),g=Ei((()=>"all"===t.direction||"vertical"===t.direction)),v=sn(sh(t.x)),y=sn(sh(t.y));to((()=>t.x),(e=>{v.value=sh(e)})),to((()=>t.y),(e=>{y.value=sh(e)})),to(v,(e=>{C(e)})),to(y,(e=>{k(e)}));const _=new Zp(1,9*Math.pow(h.value,2)/40,h.value);function b(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),F.value&&(n=t.detail.dx+s,b.historyX.shift(),b.historyX.push(n),V.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(o=t.detail.dy+a,b.historyY.shift(),b.historyY.push(o),F.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let r="touch";nP.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=P.value+y.x(n-P.value)):n=P.value),o<$.value?e.outOfBounds?(r="touch-out-of-bounds",o=$.value-_.x($.value-o)):o=$.value:o>R.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=R.value+_.x(o-R.value)):o=R.value),nh((function(){N(n,o,l.value,r)}))}}}function X(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!D("out-of-bounds")&&e.inertia)){const e=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),t=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),n=d.value,o=f.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let s=r+n,a=i+o;sP.value&&(s=P.value,a=o+(P.value-n)*i/r),a<$.value?(a=$.value,s=n+($.value-o)*r/i):a>R.value&&(a=R.value,s=n+(R.value-o)*r/i),x.setEnd(s,a),h=ih(x,(function(){let e=x.s(),t=e.x,n=e.y;N(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||B()}function U(){if(!o.value)return;B();let t=e.scale?k.value:1;O(),M(t),E();let n=I(H.value+A.x,q.value+A.y),r=n.x,i=n.y;N(r,i,t,"",!0),S(t)}return Fo((()=>{Yp(n.value,(e=>{switch(e.detail.state){case"start":z();break;case"move":Y(e);break;case"end":X()}})),U(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow(j.value,2)/40,j.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:U,_endScale:T,_setScale:C};r(e),Wo((()=>{i(e)}))})),Wo((()=>{B()})),{setParent:U}}(e,r,o);return()=>ri("uni-movable-view",{ref:o},[ri(op,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let th=!1;function nh(e){th||(th=!0,requestAnimationFrame((function(){e(),th=!1})))}function oh(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=oh(e.offsetParent,t):0}function rh(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=rh(e.offsetParent,t):0}function ih(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function sh(e){return/\d+[ur]px$/i.test(e)?nd(parseFloat(e)):Number(e)||0}const ah=Gc({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return p(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=sn(null),r=sn(null),i=Qc(o,n),s=function(e){const t=qt([...e.value]),n=qt({value:t,height:34});return to((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),a=sn(null);Fo((()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)}));let l=sn([]),c=sn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==Hr));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return _r("getPickerViewColumn",(function(e){return Ei({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map((e=>e));n("update:value",e),i("change",{},{value:e})}}})})),_r("pickerViewProps",e),_r("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Fp(e);l.value=t,kn((()=>{c.value=t}))}return ri("uni-picker-view",{ref:o},[ri(op,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),ri("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class lh{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function ch(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!uh(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(uh(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),uh(t,.4)&&(t=0),uh(o,.4)&&(o=0),o+=this._endPosition),this._solution&&uh(o-e,.4)&&uh(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),ch(this.x(),this._endPosition,.4)&&uh(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class fh{constructor(e,t,n){this._extent=e,this._friction=t||new lh(.01),this._spring=n||new dh(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class ph{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new fh(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(g(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const r=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function hh(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new ph(e,t);function r(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,r=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=r.screenX,n.y=r.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||r.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const i=r(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=r(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,r=n.historyTime[t],i=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=r-n.historyTime[t];if(e>30&&e<50){o.x=(i-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}const mh=Gc({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=sn(null),r=sn(null),i=br("getPickerViewColumn"),s=gi(),a=i?i(s):sn(0),l=br("pickerViewProps"),c=br("pickerViewState"),u=sn(34),d=sn(null);Fo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const f=Ei((()=>(c.height-u.value)/2)),{state:p}=Sp();let h;const m=qt({current:a.value,length:0});let g;function v(){h&&!g&&(g=!0,kn((()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),h.update(e*u.value,void 0,u.value)})))}to((()=>a.value),(e=>{e!==m.current&&(m.current=e,v())})),to((()=>m.current),(e=>a.value=e)),to([()=>u.value,()=>m.length,()=>c.height],v);let y=0;function _(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),h.scrollTo(e*u.value)}else y=t;e.preventDefault()}function b({clientY:e}){const t=o.value;if(!h.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let r=Math.min(m.current+t,m.length-1);m.current=r=Math.max(r,0),h.scrollTo(r*u.value)}}}return Fo((()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:s,handleTouchEnd:a}=hh(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new lh(1e-4),spring:new dh(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});h=n,Yp(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),v()})),()=>{const e=t.default&&t.default();m.length=Fp(e).length;const n=`${f.value}px 0`;return ri("uni-picker-view-column",{ref:o},[ri("div",{onWheel:_,onClick:b,class:"uni-picker-view-group"},[ri("div",di(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${f.value}px;${l.maskStyle}`}),null,16),ri("div",di(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[ri(op,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),ri("div",{ref:r,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),gh="#007aff",vh="backwards",yh=Gc({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:gh},activeColor:{type:String,default:gh},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:vh},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=sn(null),n=function(e){const t=sn(0),n=Ei((()=>`background-color: ${e.backgroundColor}; height: ${oc(e.strokeWidth)}px;`)),o=Ei((()=>{const n=e.color!==gh&&e.activeColor===gh?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),r=Ei((()=>{if("string"==typeof e.percent&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let t=parseFloat(e.percent);return Number.isNaN(t)||t<0?t=0:t>100&&(t=100),t}));return qt({outerBarStyle:n,innerBarStyle:o,realPercent:r,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return _h(n,e),to((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,_h(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:s}=n;return ri("uni-progress",{class:"uni-progress",ref:t},[ri("div",{style:r,class:"uni-progress-bar"},[ri("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),o?ri("p",{class:"uni-progress-info"},[s+"%"]):""],512)}}});function _h(e,t){t.active?(e.currentPercent=t.activeMode===vh?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}const bh=Gc({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=sn(null),o=Ei((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),r=Ei((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:s,refresherThreshold:a}=e;return ri("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?ri("div",{class:"uni-scroll-view-refresh"},[ri("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?ri("svg",{key:"refresh__icon",style:{transform:"rotate("+r.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[ri("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),ri("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?ri("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[ri("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?ri("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),wh=_e(!0),xh=Gc({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const r=sn(null),i=sn(null),s=sn(null),a=sn(null),l=Qc(r,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=Ei((()=>Number(e.scrollTop)||0)),n=Ei((()=>Number(e.scrollLeft)||0));return{state:qt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:f,realScrollY:p,_scrollLeftChanged:h,_scrollTopChanged:m}=function(e,t,n,o,r,i,s,a,l){let c=!1,u=0,d=!1,f=()=>{};const p=Ei((()=>e.scrollX)),h=Ei((()=>e.scrollY)),m=Ei((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=Ei((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){const n=s.value;let o=0,r="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let i=a.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+o+"px) translateZ(0)":"y"===t&&(r="translateY("+o+"px) translateZ(0)"),i.removeEventListener("transitionend",f),i.removeEventListener("webkitTransitionEnd",f),f=()=>x(e,t),i.addEventListener("transitionend",f),i.addEventListener("webkitTransitionEnd",f),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function y(e){const n=e.target;r("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),h.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function _(t){h.value&&(e.scrollWithAnimation?v(t,"y"):s.value.scrollTop=t)}function b(t){p.value&&(e.scrollWithAnimation?v(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=i.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,r=s.value.scrollLeft+n;e.scrollWithAnimation?v(r,"x"):s.value.scrollLeft=r}if(h.value){let n=o.top-t.top,r=s.value.scrollTop+n;e.scrollWithAnimation?v(r,"y"):s.value.scrollTop=r}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",f),a.value.removeEventListener("webkitTransitionEnd",f)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),r("refresherrefresh",{},{dy:C.y-T.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{dy:C.y-T.y})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{dy:C.y-T.y}))}t.refreshState=n}}let T={x:0,y:0},C={x:0,y:e.refresherThreshold};return Fo((()=>{kn((()=>{_(n.value),b(o.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),y(e)},a=null,l=function(n){if(null===T)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,l=s.value;if(Math.abs(o-T.x)>Math.abs(i-T.y))if(p.value){if(0===l.scrollLeft&&o>T.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oT.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o,dy:o})))}},f=function(e){1===e.touches.length&&(T={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),T={x:0,y:0},C={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",f,wh),s.value.addEventListener("touchmove",l,_e(!1)),s.value.addEventListener("scroll",i,_e(!1)),s.value.addEventListener("touchend",m,wh),qo((()=>{s.value.removeEventListener("touchstart",f),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",i),s.value.removeEventListener("touchend",m)}))})),Mo((()=>{h.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)})),to(n,(e=>{_(e)})),to(o,(e=>{b(e)})),to((()=>e.scrollIntoView),(e=>{w(e)})),to((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:p,realScrollY:h,_scrollTopChanged:_,_scrollLeftChanged:b}}(e,c,u,d,l,r,i,a,t),g=Ei((()=>{let e="";return f.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),v=Ei((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>i.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:f}=c;return ri("uni-scroll-view",{ref:r},[ri("div",{ref:s,class:"uni-scroll-view"},[ri("div",{ref:i,style:g.value,class:v.value},[t?ri(bh,{refreshState:f,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,ri("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function Sh(e,t,n,o,r,i){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,f=1,p=null,h=!1,m=0,g="";const v=Ei((()=>n.value.length>t.displayMultipleItems)),y=Ei((()=>e.circular&&v.value));function _(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(r-=c.length),r=a%1>.5||a<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function b(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){_(o),p=null,h=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}_(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,s=n.value.length;let a=d;if(y.value)if(r<0){for(;ae;)a-=s}else if(r>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),p&&(_(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(_(a+l-m),m=l):(_(l),e.autoplay&&T())):(u=!0,_(-t.displayMultipleItems-1))})),to((()=>t.interval),(()=>{c&&(s(),T())})),to((()=>t.current),((e,o)=>{!function(e,o){const r=g;g="";const s=n.value;if(!r){const t=s.length;S(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),to((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),to((()=>e.autoplay&&!t.userTracking),C),C(e.autoplay&&!t.userTracking),Fo((()=>{let r=!1,i=0,a=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=b(d+o);e?_(m):(g="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}Yp(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,s(),m=d,i=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&T())}return function(r){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),_(n)}const d=a-s||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Wo((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const Th=Gc({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=sn(null),r=Qc(o,n),i=sn(null),s=sn(null),a=function(e){return qt({interval:Ei((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Ei((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Ei((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Ei((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:oc(e.previousMargin,!0),bottom:oc(e.nextMargin,!0)}:{top:0,bottom:0,left:oc(e.previousMargin,!0),right:oc(e.nextMargin,!0)}),t})),c=Ei((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=sn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Zt(o))}f.value=e}_r("addSwiperContext",(function(e){d.push(e),p()}));_r("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:m,swiperEnabled:g}=Sh(e,a,f,s,n,r);let v=()=>null;return v=Ch(o,e,a,h,f,m,g),()=>{const n=t.default&&t.default();return u=Fp(n),ri("uni-swiper",{ref:o},[ri("div",{ref:i,class:"uni-swiper-wrapper"},[ri("div",{class:"uni-swiper-slides",style:l.value},[ri("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&ri("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>ri("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,u=!1,d=sn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Qn((()=>{a="auto"===t.navigation,d.value=!0!==t.navigation||a,_()})),Qn((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,u=!0,a&&(d.value=!0))}));const p={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function h(e,t,s){if(e.stopPropagation(),s)return;const a=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=a-1);break;case"next":l++,l>=a&&i.value&&(l=0)}o(l)}const m=()=>lc("M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z",t.navigationColor,26);let g;const v=n=>{clearTimeout(g);const{clientX:o,clientY:r}=n,{left:i,right:s,top:a,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(r-a{d.value=f}),300);d.value=f},y=()=>{d.value=!0};function _(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),a&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return Fo(_),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?ri(Fr,null,[ri("div",di({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},p),[m()],16,["onClick"]),ri("div",di({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},p),[m()],16,["onClick"])]):null}},kh=Gc({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=sn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,s=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=s,i.style.transform=s)}};return Fo((()=>{const e=br("addSwiperContext");e&&e(o)})),Wo((()=>{const e=br("removeSwiperContext");e&&e(o)})),()=>ri("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Eh={ensp:" ",emsp:" ",nbsp:" "};function Oh(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&Eh[t]&&" "===i&&(i=Eh[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,Eh.nbsp).replace(/ /g,Eh.ensp).replace(/ /g,Eh.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const Mh=Gc({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=sn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Hr){const n=Oh(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(si(e)),t!==r&&o.push(ri("br"))}))}else o.push(t)})),ri("uni-text",{ref:n,selectable:!!e.selectable||null},[ri("span",null,o)],8,["selectable"])}}}),Ah=c({},Op,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>$h.concat("return").includes(e)}});let Lh=!1;const $h=["done","go","next","search","send"];const Ph=Gc({name:"Textarea",props:Ah,emits:["confirm","linechange",...Mp],setup(e,{emit:t,expose:n}){const o=sn(null),r=sn(null),{fieldRef:i,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=$p(e,o,t),u=Ei((()=>s.value.split("\n"))),d=Ei((()=>$h.includes(e.confirmType))),f=sn(0),p=sn(null);function h({height:e}){f.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return to((()=>f.value),(t=>{const n=o.value,i=p.value,s=r.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=i.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Lh=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?ri("textarea",{key:"disabled-textarea",ref:i,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Lh},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):ri("textarea",{key:"textarea",ref:i,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Lh},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return ri("uni-textarea",{ref:o,"auto-height":e.autoHeight},[ri("div",{ref:r,class:"uni-textarea-wrapper"},[so(ri("div",di(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ki,!s.value.length]]),ri("div",{ref:p,class:"uni-textarea-line"},[" "],512),ri("div",{class:"uni-textarea-compute"},[u.value.map((e=>ri("div",null,[e.trim()?e:"."]))),ri(op,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?ri("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Rh=Gc({name:"View",props:c({},eu),setup(e,{slots:t}){const n=sn(null),{hovering:o,binding:r}=tu(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?ri("uni-view",di({class:o.value?i:"",ref:n},r),[Go(t,"default")],16):ri("uni-view",{ref:n},[Go(t,"default")],512)}}});function Bh(e,t,n,o){g(t)&&No(e,t.bind(n),o)}function Ih(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!g(t))&&(Oe.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];p(r)?r.forEach((e=>Bh(o,e,n,t))):Bh(o,r,n,t)}})),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,vc(n,"onLoad",e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&vc(n,"onShow")}catch(r){console.error(r.message+"\n"+r.stack)}}}function Nh(e,t,n){Ih(e,t,n)}function Dh(e,t,n){return e[t]=n}function jh(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Fh(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const i=e._instance;if(!i||!i.proxy)throw n;i.onError?vc(i.proxy,"onError",n):gn(n,0,o&&o.$.vnode,!1)}}function Vh(e,t){return e?[...new Set([].concat(e,t))]:t}function Hh(e){const t=e.config;var n;t.errorHandler=Ae(e,Fh),n=t.optionMergeStrategies,Oe.forEach((e=>{n[e]=Vh}));const o=t.globalProperties;o.$set=Dh,o.$applyOptions=Nh,o.$callMethod=jh,function(e){Me.forEach((t=>t(e)))}(e)}function qh(e){const t=tl({history:Yh(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:zh});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Wh[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let Wh=Object.create(null);const zh=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Wh[o]);if(t)return t}return{left:0,top:0};var o};function Yh(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),ma(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Sf(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=mf(t[r]);Tf(Ef(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Xh={install(e){Hh(e),Rc(e),zc(e),e.config.warnHandler||(e.config.warnHandler=Uh),qh(e)}};function Uh(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Kh={class:"uni-async-loading"},Gh=ri("i",{class:"uni-loading"},null,-1),Jh=Jc({name:"AsyncLoading",render:()=>(Yr(),Jr("div",Kh,[Gh]))});function Zh(){window.location.reload()}const Qh=Jc({name:"AsyncError",props:["error"],setup(){gl();const{t:e}=hl();return()=>ri("div",{class:"uni-async-error",onClick:Zh},[e("uni.async.error")],8,["onClick"])}});let em;function tm(){return em}function nm(e){em=e,Object.defineProperty(em.$.ctx,"$children",{get:()=>Sf().map((e=>e.$vm))});const t=em.$.appContext.app;t.component(Jh.name)||t.component(Jh.name,Jh),t.component(Qh.name)||t.component(Qh.name,Qh),function(e){e.$vm=e,e.$mpType="app";const t=sn(hl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(em),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(em),qc(),Tc()}function om(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=gi();if(n(r.proxy),o(r),i)return i(e,t)},e}function rm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?om(e.default,t):om(e,t)}function im(e){return rm(e,{clone:!0,init:kf,setup(e){e.$pageInstance=e;const t=mu(),n=xe(t.query);e.attrs.__pageQuery=n,mf(e.proxy).options=n,e.proxy.options=n;const o=pu();var r,i;return pf(),e.onReachBottom=qt([]),e.onPageScroll=qt([]),to([e.onReachBottom,e.onPageScroll],(()=>{const t=uc();e.proxy===t&&If(e,o)}),{once:!0}),jo((()=>{Af(e,o)})),Fo((()=>{Lf(e);const{onReady:n}=e;n&&R(n),cm(t)})),Lo((()=>{if(!e.__isVisible){Af(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&R(n),kn((()=>{cm(t)}))}}),"ba",r),function(e,t){Lo(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&R(t)}}})),i=o.id,sv.subscribe(El(i,"invokeViewApi"),Ol),qo((()=>{!function(e){sv.unsubscribe(El(e,"invokeViewApi")),Object.keys(kl).forEach((t=>{0===t.indexOf(e+".")&&delete kl[t]}))}(o.id)})),n}})}function sm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Tm(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";av.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function am(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&av.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function lm(){const{emit:e}=av;"visible"===document.visibilityState?e("onAppEnterForeground",c({},np)):e("onAppEnterBackground")}function cm(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&vc("onTabItemTap",{index:n,text:t,pagePath:o})}const um=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},dm=ie((()=>av.on("onWebInvokeAppService",um))),fm=Gc({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){dm();const n=sn(null),o=sn(null),{$attrs:r,$excludeAttrs:i,$listeners:s}=jp({excludeListeners:!0}),a=Qc(n,t);let l;return(()=>{const t=document.createElement("iframe");t.onload=function(t){a("load",t,{src:e.src})},Qn((()=>{for(const e in r.value)if(f(r.value,e)){const n=r.value[e];t[e]=n}})),Qn((()=>{t.src=Df(e.src)})),o.value=t,l=function(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();re(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else re(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(t)})(),Fo((()=>{var t;l(),!e.fullscreen&&(null==(t=n.value)||t.appendChild(o.value))})),Mo((()=>{e.fullscreen&&(o.value.style.display="block")})),Ao((()=>{e.fullscreen&&(o.value.style.display="none")})),qo((()=>{e.fullscreen&&document.body.removeChild(o.value)})),()=>ri(Fr,null,[ri("uni-web-view",di({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,i.value,{ref:n}),[ri(op,{onResize:l},null,8,["onResize"])],16)])}});const pm=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let hm;function mm(){if(hm=hm||pm.__DC_STAT_UUID,!hm){hm=Date.now()+""+Math.floor(1e7*Math.random());try{pm.__DC_STAT_UUID=hm}catch(e){}}return hm}function gm(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function vm(){let e,t="0",n="",o="phone";const r=navigator.language;if(Vf){e="iOS";const o=jf.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=jf.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(Ff){e="Android";const o=jf.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=jf.match(/\((.+?)\)/),i=r?r[1].split(";"):jf.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=Yf(),n=Xf(t),o=Uf(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=Kf(o);let s=window.innerHeight;const a=Kl.top,l={left:Kl.left,right:i-Kl.right,top:Kl.top,bottom:s-Kl.bottom,width:i-Kl.left-Kl.right,height:s-Kl.top-Kl.bottom},{top:c,bottom:u}=function(){const e=document.documentElement.style,t=Ql(),n=Zl(e,"--window-bottom"),o=Zl(e,"--window-left"),r=Zl(e,"--window-right"),i=Zl(e,"--top-window-height");return{top:t,bottom:n?n+Kl.bottom:0,left:o?o+Kl.left:0,right:r?r+Kl.right:0,topWindowHeight:i||0}}();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Kl.top,right:Kl.right,bottom:Kl.bottom,left:Kl.left},screenTop:r-s}}));let _m,bm=!0;function wm(){bm&&(_m=vm())}const xm=Yu(0,(()=>{wm();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=_m;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:mm(),deviceOrientation:s,deviceType:a,model:o,platform:r,system:i,osName:l?l.toLowerCase():void 0,osVersion:u})})),Sm=Yu(0,(()=>{wm();const{theme:e,language:t,browserName:n,browserVersion:o}=_m;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:hd?hd():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})})),Tm=Yu(0,(()=>{bm=!0,wm(),bm=!1;const e=ym(),t=xm(),n=Sm();bm=!0;const{ua:o,browserName:r,browserVersion:i,osname:s,osversion:a}=_m,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),Cm=Xu("getSystemInfo",((e,{resolve:t})=>t(Tm())));const km=Xu("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],r=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const r=document.createElement("textarea");r.setAttribute("inputmode","none"),r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);const i=document.execCommand("Copy",!1);r.blur(),i?t():n()}(e,t,n)}},new Promise(((e,t)=>{var i=e=>{try{a(r.next(e))}catch(n){t(n)}},s=e=>{try{a(r.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,s);a((r=r.apply(n,o)).next())}));var n,o,r}),0,Td);const Em=Yu(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Om(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Mm=Yu(0,(e=>{try{return Om(e)}catch(t){return""}})),Am=Yu(0,(e=>{localStorage&&localStorage.removeItem(e)})),Lm=Yu(0,(()=>{localStorage&&localStorage.clear()}));const $m=Xu("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,Md),Pm={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Rm({count:e,sourceType:t,type:n,extension:o}){bp();const r=document.createElement("input");return r.type="file",re(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${Pm[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}let Bm=null;const Im=Xu("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{wl();const{t:s}=hl();Bm&&(document.body.removeChild(Bm),Bm=null),Bm=Rm({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Bm),Bm.addEventListener("cancel",(()=>{i("chooseFile:fail cancel")})),Bm.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r(i=i||Qf(t),i)}),re))},tempFiles:o})})),Bm.click(),wp()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,Od);let Nm=null;const Dm=Xu("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{wl();const{t:i}=hl();Nm&&(document.body.removeChild(Nm),Nm=null),Nm=Rm({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Nm),Nm.addEventListener("cancel",(()=>{r("chooseImage:fail cancel")})),Nm.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||Qf(t),i)}),oe))},tempFiles:r})})),Nm.click(),wp()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Cd),jm={esc:["Esc","Escape"],enter:["Enter"]},Fm=Object.keys(jm);function Vm(){const e=sn(""),t=sn(!1),n=n=>{if(t.value)return;const o=Fm.find((e=>-1!==jm[e].indexOf(n.key)));o&&(e.value=o),kn((()=>e.value=""))};return Fo((()=>{document.addEventListener("keyup",n)})),qo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const Hm=ri("div",{class:"uni-mask"},null,-1);function qm(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ts(bo({setup:()=>()=>(Yr(),Jr(e,t,null,16))}))}function Wm(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function zm(e,{onEsc:t,onEnter:n}){const o=sn(e.visible),{key:r,disable:i}=Vm();return to((()=>e.visible),(e=>o.value=e)),to((()=>o.value),(e=>i.value=!e)),Qn((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Ym=0,Xm="";function Um(e){let t=Ym;Ym+=e?1:-1,Ym=Math.max(0,Ym),Ym>0?0===t&&(Xm=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Xm,Xm="")}const Km=Jc({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=qt({direction:"none"});let n=1,o=0,r=0,i=0,s=0;function a({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function c(e){const t=e.target.getBoundingClientRect();i=t.width,s=t.height,d(e)}function u(e){const a=n*o>i,l=n*r>s;t.direction=a&&l?"all":a?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return ri(Vp,{style:n,onTouchstart:Zc(c),onTouchmove:Zc(d),onTouchend:Zc(u)},{default:()=>[ri(eh,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[ri("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function Gm(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const Jm=Jc({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Fo((()=>Um(!0))),Wo((()=>Um(!1)));const{key:n}=Vm(),o=sn(null),r=sn(Gm(e));let i;function s(){i||kn((()=>{t("close")}))}function a(e){r.value=e.detail.current}to((()=>e.current),(()=>r.value=Gm(e))),to((()=>n.value),(e=>{"esc"===e&&s()})),Fo((()=>{const e=o.value;let t=0,n=0;e.addEventListener("mousedown",(e=>{i=!1,t=e.clientX,n=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(i=!0)}))}));const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return ri("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[ri(Th,{navigation:"auto",current:r.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map((e=>ri(kh,null,{default:()=>[ri(Km,{src:e},null,8,["src"])]}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!Zr(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),ri("div",{style:l},[lc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let Zm,Qm=null;const eg=()=>{Qm=null,kn((()=>{null==Zm||Zm.unmount(),Zm=null}))},tg=Xu("previewImage",((e,{resolve:t})=>{Qm?c(Qm,e):(Qm=qt(e),kn((()=>{Zm=qm(Jm,Qm,eg),Zm.mount(Wm("u-a-p"))}))),t()}),0,Ad);let ng=null;const og=Xu("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{wl();const{t:r}=hl();ng&&(document.body.removeChild(ng),ng=null),ng=Rm({sourceType:e,extension:t,type:"video"}),document.body.appendChild(ng),ng.addEventListener("cancel",(()=>{o("chooseVideo:fail cancel")})),ng.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const r={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(r,"tempFilePath",{get(){return o=o||Qf(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=Qf(t);i.onloadedmetadata=function(){ep(e),n(c(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,ep(e),n(r)}),300),i.src=e}else n(r)})),ng.click(),wp()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,kd),rg=zu("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const p=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)d=t;else if("json"===p)try{d=JSON.stringify(t)}catch(m){d=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let h;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;h=new sg(t);const f={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},p=setTimeout((function(){h.abort(),u("timeout",{errCode:5})}),l);f.signal.addEventListener("abort",(function(){clearTimeout(p),u("abort",{errCode:600003})})),window.fetch(e,f).then((e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach(((e,t)=>{s[t]=e}));const a=ig(s);if(h._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let o=0;for(const r of e)n.set(new Uint8Array(r),o),o+=r.byteLength;return n.buffer}(u);let n="text"===i?(new TextDecoder).decode(e):e;return"text"===i&&(n=lg(n,i,r)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),h._emitter.emit("chunkReceived",{data:o}),d()}))};d()}),(e=>{u(e,{errCode:5})}))}else{const t=new XMLHttpRequest;h=new sg(t),t.open(o,e);for(const e in n)f(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout((function(){t.onload=t.onabort=t.onerror=null,h.abort(),u("timeout",{errCode:5})}),l);t.responseType=i,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===i?t.responseText:t.response;"text"===i&&(n=lg(n,i,r)),c({data:n,statusCode:e,header:ag(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return h}),0,Rd),ig=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let r=0;r{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function ag(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function lg(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(r){}return o}class cg{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){g(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const ug=zu("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new cg;return p(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Zf(e)):Jf(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Bd),dg=[],fg={open:"",close:"",error:"",message:""};class pg{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach((e=>{this._callbacks[e]=[],n.addEventListener(e,(t=>{const{data:n,code:o,reason:r}=t,i="message"===e?{data:n}:"close"===e?{code:o,reason:r}:{};if(this._callbacks[e].forEach((t=>{try{t(i)}catch(n){console.error(`thirdScriptError\n${n};at socketTask.on${L(e)} callback function\n`,n)}})),this===dg[0]&&fg[e]&&av.invokeOnCallback(fg[e],i),"error"===e||"close"===e){const e=dg.indexOf(this);e>=0&&dg.splice(e,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((e=>{Object.defineProperty(this,e,{get:()=>n[e]})}))}catch(r){o=r}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw le(e,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");n.send(t),le(e,"sendSocketMessage:ok")}catch(o){le(e,{errMsg:`sendSocketMessage:fail ${o}`,errCode:602001})}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;v(o)?t.close(n,o):t.close(n),le(e,"closeSocket:ok")}catch(n){le(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const hg=zu("connectSocket",(({url:e,protocols:t},{resolve:n,reject:o})=>new pg(e,t,((e,t)=>{e?o(e.toString(),{errCode:600009}):(dg.push(t),n())}))),0,Id),mg=Xu("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===vc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(tm().$router.go(-e.delta),t()):n("onBackPress")}),0,Vd),gg=Xu("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(gf.handledBeforeEntryPageRoutes)return af({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r);vf.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,Dd);function vg(e){__uniConfig.darkmode&&av.on("onThemeChange",e)}function yg(e){av.off("onThemeChange",e)}const _g={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},bg=bo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=sn(""),o=()=>s.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),s=zm(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),a=function(e){const t=sn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=_g[e].cancelColor})(e,t)};return Qn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===gm()&&n({theme:"dark"}),vg(n))):yg(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("uni-modal",{onTouchmove:Gl},[Hm,ri("div",{class:"uni-modal"},[t?ri("div",{class:"uni-modal__hd"},[ri("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?ri("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):ri("div",{class:"uni-modal__bd",onTouchmovePassive:Jl,textContent:o},null,40,["onTouchmovePassive","textContent"]),ri("div",{class:"uni-modal__ft"},[l&&ri("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),ri("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Ki,s.value]])]})}}});let wg;const xg=ie((()=>{av.on("onHidePopup",(()=>wg.visible=!1))}));let Sg;function Tg(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&wg.editable&&(o.content=t),Sg&&Sg(o)}const Cg=Xu("showModal",((e,{resolve:t})=>{xg(),Sg=t,wg?(c(wg,e),wg.visible=!0):(wg=qt(e),kn((()=>(qm(bg,wg,Tg).mount(Wm("u-a-m")),kn((()=>wg.visible=!0))))))}),0,Kd),kg={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Gd.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Eg={light:"#fff",dark:"rgba(255,255,255,0.9)"},Og=e=>Eg[e],Mg=bo({name:"Toast",props:kg,setup(e){yl(),_l();const{Icon:t}=function(e){const t=sn(Og(gm())),n=({theme:e})=>t.value=Og(e);Qn((()=>{e.visible?vg(n):yg(n)}));return{Icon:Ei((()=>{switch(e.icon){case"success":return ri(lc(sc,t.value,38),{class:"uni-toast__icon"});case"error":return ri(lc(ac,t.value,38),{class:"uni-toast__icon"});case"loading":return ri("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=zm(e,{});return()=>{const{mask:o,duration:r,title:i,image:s}=e;return ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("uni-toast",{"data-duration":r},[o?ri("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Gl},null,40,["onTouchmove"]):"",s||t.value?ri("div",{class:"uni-toast"},[s?ri("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,ri("p",{class:"uni-toast__content"},[i])]):ri("div",{class:"uni-sample-toast"},[ri("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[Ki,n.value]])]})}}});let Ag,Lg,$g="";const Pg=je();function Rg(e){Ag?c(Ag,e):(Ag=qt(c(e,{visible:!1})),kn((()=>{Pg.run((()=>{to([()=>Ag.visible,()=>Ag.duration],(([e,t])=>{if(e){if(Lg&&clearTimeout(Lg),"onShowLoading"===$g)return;Lg=setTimeout((()=>{jg("onHideToast")}),t)}else Lg&&clearTimeout(Lg)}))})),av.on("onHidePopup",(()=>jg("onHidePopup"))),qm(Mg,Ag,(()=>{})).mount(Wm("u-a-t"))}))),setTimeout((()=>{Ag.visible=!0}),10)}const Bg=Xu("showToast",((e,{resolve:t,reject:n})=>{Rg(e),$g="onShowToast",t()}),0,Jd),Ig={icon:"loading",duration:1e8,image:""},Ng=Xu("showLoading",((e,{resolve:t,reject:n})=>{c(e,Ig),Rg(e),$g="onShowLoading",t()}),0,Ud),Dg=Xu("hideLoading",((e,{resolve:t,reject:n})=>{jg("onHideLoading"),t()}));function jg(e){const{t:t}=hl();if(!$g)return;let n="";if("onHideToast"===e&&"onShowToast"!==$g?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==$g&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);$g="",setTimeout((()=>{Ag.visible=!1}),10)}function Fg(e){const t=sn(0),n=sn(0),o=Ei((()=>t.value>=500&&n.value>=500)),r=Ei((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},r=t.content,i=t.triangle,s=e.popover;function a(e){return Number(e)||0}if(o.value&&s){c(i,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=a(s.left),t=a(s.width?s.width:300),o=a(s.top),l=a(s.height),u=e+t/2;r.transform="none !important";const d=Math.max(0,u-t/2);r.left=`${d}px`,s.width&&(r.width=`${t}px`);let f=Math.max(12,u-d);f=Math.min(t-12,f),i.left=`${f}px`;const p=n.value/2;o+l-p>p-o?(r.top="auto",r.bottom=n.value-o+6+"px",i.bottom="-6px",i["border-width"]="6px 6px 0 6px",i["border-color"]="#fcfcfd transparent transparent transparent"):(r.top=`${o+l+6}px`,i.top="-6px",i["border-width"]="0 6px 6px 6px",i["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return Fo((()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:r}=Tm();t.value=e,n.value=o+(r||0)};window.addEventListener("resize",e),e(),Wo((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:o,popupStyle:r}}const Vg={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const Hg=bo({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){vl();const n=sn(260),o=sn(0),r=sn(0),i=sn(0),s=sn(0),a=sn(null),l=sn(null),{t:c}=hl(),{_close:u}=function(e,t){function n(e){t("close",e)}const{key:o,disable:r}=Vm();return to((()=>e.visible),(e=>r.value=!e)),Qn((()=>{const{value:e}=o;"esc"===e&&n&&n(-1)})),{_close:n}}(e,t),{popupStyle:d}=Fg(e);let f;function p(e){const t=i.value+e.deltaY;Math.abs(t)>10?(s.value+=t/3,s.value=s.value>=o.value?o.value:s.value<=0?0:s.value,f.scrollTo(s.value)):i.value=t,e.preventDefault()}Fo((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=hh(a.value,{enableY:!0,friction:new lh(1e-4),spring:new dh(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});f=e,Yp(a.value,(r=>{if(e)switch(r.detail.state){case"start":t(r);break;case"move":n(r);break;case"end":case"cancel":o(r)}}),!0)})),to((()=>e.visible),(()=>{kn((()=>{e.title&&(r.value=document.querySelector(".uni-actionsheet__title").offsetHeight),f.update(),a.value&&(o.value=a.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",(e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY})),e.addEventListener("touchend",(e=>{const r=e.changedTouches[0];if(Math.abs(r.clientX-n){o[e]=r[e]})),e.target.dispatchEvent(o)}}))}(e)}))}))}));const h=function(e){const t=qt({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=Vg[e][n]}))}(e,t)};return Qn((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:gm()}),vg(n))):yg(n)})),t}(e);return()=>ri("uni-actionsheet",{onTouchmove:Gl},[ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[Ki,e.visible]])]}),ri("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[ri("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?ri(Fr,null,[ri("div",{class:"uni-actionsheet__cell",style:{height:`${r.value}px`}},null),ri("div",{class:"uni-actionsheet__title"},[e.title])]):"",ri("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[ri("div",{ref:a},[e.itemList.map(((e,t)=>ri("div",{key:t,style:{color:h.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),ri("div",{class:"uni-actionsheet__action"},[ri("div",{style:{color:h.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),ri("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let qg,Wg,zg;const Yg=ie((()=>{av.on("onHidePopup",(()=>zg.visible=!1))}));function Xg(e){-1===e?Wg&&Wg("cancel"):qg&&qg({tapIndex:e})}const Ug=Xu("showActionSheet",((e,{resolve:t,reject:n})=>{Yg(),qg=t,Wg=n,zg?(c(zg,e),zg.visible=!0):(zg=qt(e),kn((()=>(qm(Hg,zg,Xg).mount(Wm("u-s-a-s")),kn((()=>zg.visible=!0))))))}),0,Xd);function Kg(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,av.emit("onNavigationBarChange",{titleText:t})}Qn(t),Mo(t)}const Gg=Jc({name:"Layout",setup(e,{emit:t}){const n=sn(null);ec({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=nl();return{routeKey:Ei((()=>Ef("/"+e.meta.route,gu()))),isTabBar:Ei((()=>e.meta.isTabBar)),routeCache:Mf}}(),{layoutState:r,windowState:i}=function(){mu();{const e=qt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return to((()=>e.marginWidth),(e=>ec({"--window-margin":e+"px"}))),to((()=>e.leftWindowWidth+e.marginWidth),(e=>{ec({"--window-left":e+"px"})})),to((()=>e.rightWindowWidth+e.marginWidth),(e=>{ec({"--window-right":e+"px"})})),{layoutState:e,windowState:Ei((()=>({})))}}}();!function(e,t){const n=mu();function o(){const o=document.body.clientWidth,r=Sf();let i={};if(r.length>0){i=mf(r[r.length-1]).meta}else{const e=Sc(n.path,!0);e&&(i=e.meta)}const s=parseInt(String((f(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,kn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,kn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}to([()=>n.path],o),Fo((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const s=function(e){const t=sn(!1);return Ei((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(!1);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return ri(el,null,{default:Vn((({Component:o})=>[(Yr(),Jr(Eo,{matchBy:"key",cache:n},[(Yr(),Jr(Un(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o);return ri("uni-app",{ref:n,class:s.value},[e,!1],2)}}});function Jg(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Zr(e)}function Zg(e){if(e.mode===tv.TIME)return"00:00";if(e.mode===tv.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case nv.YEAR:return t.toString();case nv.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Qg(e){if(e.mode===tv.TIME)return"23:59";if(e.mode===tv.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case nv.YEAR:return t.toString();case nv.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function ev(e,t,n,o){const r=e.mode===tv.DATE?"-":":",i=e.mode===tv.DATE?t.dateArray:t.timeArray;let s;if(e.mode===tv.TIME)s=2;else switch(e.fields){case nv.YEAR:s=1;break;case nv.MONTH:s=2;break;default:s=3}const a=String(n).split(r);let l=[];for(let c=0;c=0&&(l=o?ev(e,t,o):l.map((()=>0))),l}const tv={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},nv={YEAR:"year",MONTH:"month",DAY:"day"},ov={PICKER:"picker",SELECT:"select"},rv=Gc({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:tv.SELECTOR,validator:e=>Object.values(tv).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>Zg(e)},end:{type:String,default:e=>Qg(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Sl();const{t:o}=hl(),r=sn(null),i=sn(null),s=sn(null),a=sn(null),l=sn(!1),{state:c,rangeArray:u}=function(e){const t=qt({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Ei((()=>{let n=e.range;switch(e.mode){case tv.SELECTOR:return[n];case tv.MULTISELECTOR:return n;case tv.TIME:return t.timeArray;case tv.DATE:{const n=t.dateArray;switch(e.fields){case nv.YEAR:return[n[0]];case nv.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),d=Qc(r,t),{system:f,selectorTypeComputed:h,_show:m,_l10nColumn:g,_l10nItem:v,_input:y,_fixInputPosition:_,_pickerViewChange:b,_cancel:w,_change:x,_resetFormData:S,_getFormData:T,_createTime:C,_createDate:k,_setValueSync:E}=function(e,t,n,o,r,i,s){const a=function(){const e=sn(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=sn("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),c=Ei((()=>{const t=e.selectorType;return Object.values(ov).includes(t)?t:a.value?ov.PICKER:ov.SELECT})),u=Ei((()=>e.mode===tv.DATE&&!Object.values(nv).includes(e.fields)&&t.isDesktop?l.value:"")),d=Ei((()=>ev(e,t,e.start,Zg(e)))),f=Ei((()=>ev(e,t,e.end,Qg(e))));function h(n){if(e.disabled)return;t.valueChangeSource="";let o=r.value,i=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.style.display="block";const s=i.getBoundingClientRect();t.popover={top:s.top,left:s.left,width:s.width,height:s.height},setTimeout((()=>{t.visible=!0}),20)}function m(){return{value:t.valueSync,key:e.name}}function g(){switch(e.mode){case tv.SELECTOR:t.valueSync=0;break;case tv.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case tv.DATE:case tv.TIME:t.valueSync=""}}function v(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function y(){let t=(new Date).getFullYear(),n=t-150,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&to&&(o=t)}return{start:n,end:o}}function _(){let e=[];const n=y();for(let t=n.start,i=n.end;t<=i;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let r=[];for(let t=1;t<=31;t++)r.push((t<10?"0":"")+t);t.dateArray.push(e,o,r)}function b(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;na?0:s)}}break;case tv.TIME:case tv.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function T(){let n,o=t.valueSync;switch(e.mode){case tv.MULTISELECTOR:n=[...o];break;case tv.TIME:n=ev(e,t,o,ae({mode:tv.TIME}));break;case tv.DATE:n=ev(e,t,o,ae({mode:tv.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function C(){let n=t.valueArray;switch(e.mode){case tv.SELECTOR:return n[0];case tv.MULTISELECTOR:return n.map((e=>e));case tv.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case tv.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function k(){O(),t.valueChangeSource="click";const e=C();t.valueSync=p(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===u.value&&e){const{top:n,left:o,width:r,height:i}=t.popover,{pageX:s,pageY:a}=e;if(s>o&&sn&&a{let e=r.value;e.remove(),o.value.prepend(e),e.style.display="none"}),260)}function M(){e.mode===tv.SELECTOR&&c.value===ov.SELECT&&(i.value.scrollTop=34*t.valueArray[0])}function A(e){const n=e.target;t.valueSync=n.value,kn((()=>{k()}))}function L(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;s.value.style.left=e.clientX-t.left-1.5*n+"px",s.value.style.top=e.clientY-t.top-.5*n+"px"}}function $(e){t.valueArray=P(e.detail.value,!0)}function P(t,n){const{getLocale:o}=hl();if(e.mode===tv.DATE){const r=o();if(!r.startsWith("zh"))switch(e.fields){case nv.YEAR:return t;case nv.MONTH:return[t[1],t[0]];default:switch(r){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function R(t,n){const{getLocale:o}=hl();if(e.mode===tv.DATE){const r=o();if(r.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==nv.YEAR&&n===(e.fields===nv.MONTH||"es"!==r&&"fr"!==r?0:1)){let e;switch(r){case"es":e=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return to((()=>t.visible),(e=>{e?(clearTimeout(iv),t.contentVisible=e,M()):iv=setTimeout((()=>{t.contentVisible=e}),300)})),to([()=>e.mode,()=>e.value,()=>e.range],S,{deep:!0}),to((()=>t.valueSync),T,{deep:!0}),to((()=>t.valueArray),(o=>{if(e.mode===tv.TIME||e.mode===tv.DATE){const n=e.mode===tv.TIME?b:w,o=t.valueArray,r=d.value,i=f.value;if(e.mode===tv.DATE){const e=t.dateArray,n=e[2].length,r=Number(e[2][o[2]])||1,i=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${r}`).getDate();in(i)&&x(o,i)}o.forEach(((o,r)=>{o!==t.oldValueArray[r]&&(t.oldValueArray[r]=o,e.mode===tv.MULTISELECTOR&&n("columnchange",{},{column:r,value:o}))}))})),{selectorTypeComputed:c,system:u,_show:h,_cancel:E,_change:k,_l10nColumn:P,_l10nItem:R,_input:A,_resetFormData:g,_getFormData:m,_createTime:v,_createDate:_,_setValueSync:S,_fixInputPosition:L,_pickerViewChange:$}}(e,c,d,r,i,s,a);!function(e,t,n){const{key:o,disable:r}=Vm();Qn((()=>{r.value=!e.visible})),to(o,(e=>{"esc"===e?t():"enter"===e&&n()}))}(c,w,x),function(e,t){const n=br(ou,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),qo((()=>{n.removeField(o)}))}}(S,T),C(),k(),E();const O=Fg(c);return Qn((()=>{c.isDesktop=O.isDesktop.value,c.popupStyle=O.popupStyle.value})),qo((()=>{i.value&&i.value.remove()})),Fo((()=>{l.value=!0})),()=>{let t;const{visible:d,contentVisible:p,valueArray:S,popupStyle:T,valueSync:C}=c,{rangeKey:k,mode:E,start:O,end:M}=e,A=nu(e,"disabled");return ri("uni-picker",di({ref:r},A,{onClick:Zc(m)}),[l.value?ri("div",{ref:i,class:["uni-picker-container",`uni-${E}-${h.value}`],onWheel:Gl,onTouchmove:Gl},[ri(Bi,{name:"uni-fade"},{default:()=>[so(ri("div",{class:"uni-mask uni-picker-mask",onClick:Zc(w),onMousemove:_},null,40,["onClick","onMousemove"]),[[Ki,d]])]}),f.value?null:ri("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:T.content},[ri("div",{class:"uni-picker-header",onClick:Jl},[ri("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:Zc(w)},[o("uni.picker.cancel")],8,["onClick"]),ri("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:x},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),p?ri(ah,{value:g(S),class:"uni-picker-content",onChange:b},Jg(t=Ko(g(u.value),((e,t)=>{let n;return ri(mh,{key:t},Jg(n=Ko(e,((e,n)=>ri("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[k]||"":v(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,ri("div",{ref:s,class:"uni-picker-select",onWheel:Jl,onTouchmove:Jl},[Ko(u.value[0],((e,t)=>ri("div",{key:t,class:["uni-picker-item",{selected:S[0]===t}],onClick:()=>{S[0]=t,x()}},["object"==typeof e?e[k]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),ri("div",{style:T.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,ri("div",null,[n.default&&n.default()]),f.value?ri("div",{class:"uni-picker-system",onMousemove:Zc(_)},[ri("input",{class:["uni-picker-system_input",f.value],ref:a,value:C,type:E,tabindex:"-1",min:O,max:M,onChange:e=>{y(e),Jl(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let iv;const sv=c(Ml,{publishHandler(e,t,n){av.subscribeHandler(e,t,n)}}),av=c(Nc,{publishHandler(e,t,n){sv.subscribeHandler(e,t,n)}}),lv=Jc({name:"PageBody",setup(e,t){const n=sn(null),o=sn(null);return to((()=>false.enablePullDownRefresh),(()=>{o.value=null}),{immediate:!0}),()=>ri(Fr,null,[!1,ri("uni-page-wrapper",di({ref:n},o.value),[ri("uni-page-body",null,[Go(t.slots,"default")]),null],16)])}}),cv=Jc({name:"Page",setup(e,t){let n=hu(gu());n.navigationBar;const o={};return Kg(n),()=>ri("uni-page",{"data-page":n.route,style:o},[uv(t),null])}});function uv(e){return Yr(),Jr(lv,{key:0},{default:Vn((()=>[Go(e.slots,"page")])),_:3})}const dv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=nd;const fv=Object.assign({}),pv=Object.assign;window.__uniConfig=pv({globalStyle:{backgroundColor:"transparent",navigationBar:{backgroundColor:"#F8F8F8",titleText:"uni-app",type:"default",titleColor:"#000000"},isNVue:!1},compilerVersion:"4.76"},{appId:"__UNI__A4B5AED",appName:"Vespa",appVersion:"1.0.0",appVersionCode:"100",async:dv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(fv).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return pv(e[n]||(e[n]={}),fv[t].default),e}),{}),router:{mode:"hash",base:"/h5/web",assets:"assets",routerBase:"/h5/web"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const hv={delay:dv.delay,timeout:dv.timeout,suspensible:dv.suspensible};dv.loading&&(hv.loadingComponent={name:"SystemAsyncLoading",render:()=>ri(Yn(dv.loading))}),dv.error&&(hv.errorComponent={name:"SystemAsyncError",props:["error"],render(){return ri(Yn(dv.error),{error:this.error})}});const mv=()=>t((()=>import("./pages-union-index.CI7W0mDn.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then((e=>im(e.default||e))),gv=xo(pv({loader:mv},hv)),vv=()=>t((()=>import("./pages-union-list.wZyXjN1g.js")),__vite__mapDeps([10,11,12,2,13,3,14,1,4,5,6,7,8,15])).then((e=>im(e.default||e))),yv=xo(pv({loader:vv},hv)),_v=()=>t((()=>import("./pages-union-agreement.BWIxKhIU.js")),__vite__mapDeps([16,5,2,6,17])).then((e=>im(e.default||e))),bv=xo(pv({loader:_v},hv)),wv=()=>t((()=>import("./pages-union-exitApplication.CWbxnbgC.js")),__vite__mapDeps([18,1,2,3,4,19,20,7,5,6,21])).then((e=>im(e.default||e))),xv=xo(pv({loader:wv},hv)),Sv=()=>t((()=>import("./pages-union-historyRecord.Cp203Wbx.js")),__vite__mapDeps([22,19,2,20,5,6,23])).then((e=>im(e.default||e))),Tv=xo(pv({loader:Sv},hv)),Cv=()=>t((()=>import("./pages-union-setGroup.Cz0ccj1-.js")),__vite__mapDeps([24,12,2,13,3,11,14,1,4,19,20,5,6,7,25])).then((e=>im(e.default||e))),kv=xo(pv({loader:Cv},hv)),Ev=()=>t((()=>import("./pages-union-memberList.B7USA0zX.js")),__vite__mapDeps([26,19,2,20,5,6,7,27])).then((e=>im(e.default||e))),Ov=xo(pv({loader:Ev},hv)),Mv=()=>t((()=>import("./pages-other-taskDesc.DbFGA4Wj.js")),__vite__mapDeps([28,2,29])).then((e=>im(e.default||e))),Av=xo(pv({loader:Mv},hv)),Lv=()=>t((()=>import("./pages-prop-propMall.CAIhR_Vg.js")),__vite__mapDeps([30,2,3,1,4,31,32,33])).then((e=>im(e.default||e))),$v=xo(pv({loader:Lv},hv)),Pv=()=>t((()=>import("./pages-other-grade.C6nZb-63.js")),__vite__mapDeps([34,7,19,2,20,35])).then((e=>im(e.default||e))),Rv=xo(pv({loader:Pv},hv)),Bv=()=>t((()=>import("./pages-other-gradeRule.D1gBGQhG.js")),__vite__mapDeps([36,5,2,6,37])).then((e=>im(e.default||e))),Iv=xo(pv({loader:Bv},hv)),Nv=()=>t((()=>import("./pages-other-income.GmFhI_mf.js")),__vite__mapDeps([38,12,2,13,3,19,20,31,32,39])).then((e=>im(e.default||e))),Dv=xo(pv({loader:Nv},hv)),jv=()=>t((()=>import("./pages-feedback-help.BdlXAeBH.js")),__vite__mapDeps([40,12,2,13,3,41,42,43,19,20,5,6,44])).then((e=>im(e.default||e))),Fv=xo(pv({loader:jv},hv)),Vv=()=>t((()=>import("./pages-feedback-customerService.gDjl8HmU.js")),__vite__mapDeps([45,5,2,6,46])).then((e=>im(e.default||e))),Hv=xo(pv({loader:Vv},hv)),qv=()=>t((()=>import("./pages-feedback-feedback.Co7Kw44n.js")),__vite__mapDeps([47,42,2,43,3,12,13,48,41,49,19,20,5,6,7,50])).then((e=>im(e.default||e))),Wv=xo(pv({loader:qv},hv)),zv=()=>t((()=>import("./pages-feedback-teenage.CUfeP8MW.js")),__vite__mapDeps([51,42,2,43,3,5,6,31,32,52])).then((e=>im(e.default||e))),Yv=xo(pv({loader:zv},hv)),Xv=()=>t((()=>import("./pages-feedback-teenageDetail.C-nHTfAu.js")),__vite__mapDeps([53,19,2,20,5,6,54])).then((e=>im(e.default||e))),Uv=xo(pv({loader:Xv},hv)),Kv=()=>t((()=>import("./pages-feedback-problemDetail.DoNYfLra.js")),__vite__mapDeps([55,12,2,13,3,19,20,5,6,56])).then((e=>im(e.default||e))),Gv=xo(pv({loader:Kv},hv)),Jv=()=>t((()=>import("./pages-feedback-report.BnEcOzYc.js")),__vite__mapDeps([57,2,3,11,12,13,14,1,4,19,20,5,6,48,41,49,58])).then((e=>im(e.default||e))),Zv=xo(pv({loader:Jv},hv)),Qv=()=>t((()=>import("./pages-other-aboutUs.CHEcGUIG.js")),__vite__mapDeps([59,5,2,6,60])).then((e=>im(e.default||e))),ey=xo(pv({loader:Qv},hv)),ty=()=>t((()=>import("./pages-other-weChatPay.BWrE2uLc.js")),__vite__mapDeps([61,11,12,2,13,3,14,5,6,62])).then((e=>im(e.default||e))),ny=xo(pv({loader:ty},hv));function oy(e,t){return Yr(),Jr(cv,null,{page:Vn((()=>[ri(e,pv({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/union/index",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(gv,t)}},loader:mv,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"公会中心",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/list",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(yv,t)}},loader:vv,meta:{navigationBar:{titleText:"公会中心",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/agreement",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(bv,t)}},loader:_v,meta:{navigationBar:{titleText:"查看协议",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/exitApplication",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(xv,t)}},loader:wv,meta:{popGesture:"none",navigationBar:{titleText:"退出审核",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/historyRecord",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Tv,t)}},loader:Sv,meta:{popGesture:"none",navigationBar:{titleText:"公会补贴历史记录",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/setGroup",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(kv,t)}},loader:Cv,meta:{navigationBar:{titleText:"群聊设置",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/union/memberList",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Ov,t)}},loader:Ev,meta:{navigationBar:{titleText:"群聊成员",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/taskDesc",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Av,t)}},loader:Mv,meta:{popGesture:"none",navigationBar:{titleText:"规则说明",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/prop/propMall",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy($v,t)}},loader:Lv,meta:{navigationBar:{titleText:"道具商城",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/grade",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Rv,t)}},loader:Pv,meta:{navigationBar:{titleText:"等级",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/gradeRule",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Iv,t)}},loader:Bv,meta:{popGesture:"none",navigationBar:{titleText:"等级规则",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/income",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Dv,t)}},loader:Nv,meta:{navigationBar:{titleText:"邀请收益",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/help",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Fv,t)}},loader:jv,meta:{popGesture:"none",navigationBar:{titleText:"帮助与反馈",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/customerService",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Hv,t)}},loader:Vv,meta:{popGesture:"none",navigationBar:{titleText:"在线客服",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/feedback",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Wv,t)}},loader:qv,meta:{popGesture:"none",navigationBar:{titleText:"反馈问题",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/teenage",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Yv,t)}},loader:zv,meta:{navigationBar:{titleText:"青少年",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/teenageDetail",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Uv,t)}},loader:Xv,meta:{popGesture:"none",navigationBar:{titleText:"青少年详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/problemDetail",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Gv,t)}},loader:Kv,meta:{popGesture:"none",navigationBar:{titleText:"问题详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/feedback/report",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(Zv,t)}},loader:Jv,meta:{navigationBar:{titleText:"举报",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/aboutUs",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(ey,t)}},loader:Qv,meta:{navigationBar:{titleText:"关于我们",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/other/weChatPay",component:{setup(){const e=tm(),t=e&&e.$route&&e.$route.query||{};return()=>oy(ny,t)}},loader:ty,meta:{navigationBar:{titleText:"微信充值",style:"custom",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const ry="https://yushengapi.qxyushen.top/h5/image/",iy={BASE_URL:"https://yushengapi.qxyushen.top",IM_APP_TOKEN:"67962a777e2b13bc6a4bde3ccd389d1e",PRIMARY_BGURL:`${ry}fy_bg.jpg`,PRIMARY_BLYURL:`${ry}fy_gly.png`,BASR_COLOR:"#3ABC6D",BASE_NAME:"羽声语音",wealth_url:`${ry}wealth.png`,charm_url:`${ry}charm.png`,kefu_url:`${ry}kefu.png`,singer_url:`${ry}singer.png`,unicon_url:`${ry}uniconBack.png`,coin_url:`${ry}union/coin.png`,hongbao_url:`${ry}union/hongbao.png`,gift_url:`${ry}union/gift.png`,new_unionUrl:`${ry}union/uniconBG.png`,not_unionUrl:`${ry}union/noUnion.png`},sy=(e={})=>{console.log(e);const t={url:iy.BASE_URL+e.url,method:e.method||"GET",data:e.params||e.data||{},header:{"Content-Type":"application/json",...e.header},timeout:e.timeout||5e3,sslVerify:!1},n=Mm("token");return n&&(t.header.Authorization=`${n}`),new Promise(((e,n)=>{rg({...t,success:t=>{e(t.data)},fail:e=>{n(e)}})}))};["get","post","put","delete"].forEach((e=>{sy[e]=(t,n,o={})=>sy({url:t,method:e.toUpperCase(),data:n,...o})}));const ay={get(e,t){const n={method:"get",url:e};return t&&(n.params=t),sy(n)},post(e,t){const n={method:"post",url:e};return t&&(n.data=t),sy(n)},put(e,t){const n={method:"put",url:e};return t&&(n.params=t),sy(n)},delete(e,t){const n={method:"delete",url:e};return t&&(n.params=t),sy(n)}},ly={onLaunch:function(){},onHide:function(){Am("Theme_Data")},methods:{async getInfo(){ay.get("/api/Theme/get_theme_data").then((e=>{const{data:t,code:n}=e;n&&Em("Theme_Data",t?JSON.stringify(t):"")})).catch((e=>{Em("Theme_Data","")}))}}};rm(ly,{init:nm,setup(e){const t=mu(),n=()=>{var n;n=e,Object.keys(md).forEach((e=>{md[e].forEach((t=>{No(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i}=e,s=function({path:e,query:t}){return c(tp,{path:e,query:t}),c(np,tp),c({},tp)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:xe(t.query)});if(o&&R(o,s),r&&R(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};lf(),i&&R(i,e)}};return br(qa).isReady().then(n),Fo((()=>{window.addEventListener("resize",Ce(sm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",am),document.addEventListener("visibilitychange",lm),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{av.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Yr(),Jr(Gg));e.setup=(e,o)=>{const r=t&&t(e,o);return g(r)?n:r},e.render=n}}),function(){const e=Ts(ly);return e.config.globalProperties.$config=iy,{app:e}}().app.use(Xh).mount("#app");export{sd as $,ld as A,ws as B,so as C,Ki as D,he as E,Fr as F,Mh as G,fm as H,Ip as I,yh as J,Go as K,km as L,Ph as M,dl as N,pp as O,Cg as P,tm as Q,ru as R,xh as S,rv as T,pd as U,Dm as V,og as W,Im as X,$m as Y,tg as Z,du as _,ad as a,ug as a0,xf as a1,rd as a2,xd as a3,Sd as a4,rg as a5,Am as a6,Lm as a7,hg as a8,of as a9,tf as aa,sf as ab,Cm as ac,wd as ad,hd as ae,gd as af,sp as ag,au as ah,ip as ai,Tm as b,iy as c,Ug as d,Un as e,Jr as f,Mm as g,ay as h,pe as i,Rh as j,ri as k,oi as l,ai as m,gg as n,Yr as o,si as p,Gr as q,Yn as r,Em as s,X as t,Ko as u,mg as v,Vn as w,Ng as x,Dg as y,Bg as z}; diff --git a/unpackage/dist/build/web/assets/list-I4M9I2M7.css b/unpackage/dist/build/web/assets/list-TuJGdJTs.css similarity index 54% rename from unpackage/dist/build/web/assets/list-I4M9I2M7.css rename to unpackage/dist/build/web/assets/list-TuJGdJTs.css index f9103023..0b2f3d90 100644 --- a/unpackage/dist/build/web/assets/list-I4M9I2M7.css +++ b/unpackage/dist/build/web/assets/list-TuJGdJTs.css @@ -1 +1 @@ -.view-page[data-v-ce53933e]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page .popup_view[data-v-ce53933e]{width:17.1875rem;background-color:#fff;border-radius:1rem;padding:1rem}.view-page .popup_view .popup_title[data-v-ce53933e]{text-align:center}.view-page .popup_view .messageContent[data-v-ce53933e]{margin:.75rem 0}.view-page .popup_view .popup_button[data-v-ce53933e]{margin-top:.75rem;width:100%;justify-content:space-around}.view-page .popup_view .popup_button .close_button[data-v-ce53933e],.view-page .popup_view .popup_button .confirm-button[data-v-ce53933e]{width:6.25rem;height:2.625rem;background:#f3f3f3;border-radius:3.3125rem;color:#999;justify-content:center}.view-page .popup_view .popup_button .confirm-button[data-v-ce53933e]{background:var(--primary-color);color:var(--font-button-color)}.view-page .content[data-v-ce53933e]{padding:0 1rem}.view-page .flex-input[data-v-ce53933e]{width:100%;display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:row}.view-page .flex-input .search-button[data-v-ce53933e]{padding:0 0 0 .625rem}.view-page .hotspot-view[data-v-ce53933e]{margin-top:.875rem}.view-page .hotspot-view .hotspot-box[data-v-ce53933e]{width:calc(100% - 1.5rem);padding:.75rem;position:relative;background:#fff;border-radius:.625rem;margin-bottom:.75rem;display:inline-flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;flex-direction:row}.view-page .hotspot-view .hotspot-box .head-portrait[data-v-ce53933e]{width:3.75rem;height:3.75rem;border-radius:50%}.view-page .hotspot-view .hotspot-box .head-portrait img[data-v-ce53933e]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .info-box[data-v-ce53933e]{padding:0 .75rem;width:55%}.view-page .hotspot-view .hotspot-box .info-box .icon-box[data-v-ce53933e]{width:.625rem;height:.625rem;margin-left:.15625rem}.view-page .hotspot-view .hotspot-box .info-box .chairman[data-v-ce53933e]{min-width:3.3125rem;height:1.125rem;padding:0 .375rem;color:#fff;font-size:.75rem;text-align:right;background:var(--subss-color);border-radius:3.625rem;border:.0625rem solid var(--subss-color);position:relative;left:.3125rem;margin:1rem 0;display:inline-flex}.view-page .hotspot-view .hotspot-box .info-box .chairman .truncate-three[data-v-ce53933e]{text-align:left}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-portrait[data-v-ce53933e]{width:1.5625rem;height:1.5625rem;border-radius:50%;border:.0625rem solid #FFFFFF;position:absolute;top:-.3125rem;left:-.625rem}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-portrait img[data-v-ce53933e]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-name[data-v-ce53933e]{margin-left:.9rem}.view-page .hotspot-view .hotspot-box .info-box .id-title[data-v-ce53933e]{font-size:.75rem;color:#666;margin-left:.75rem}.view-page .hotspot-view .hotspot-box .info-box .subhead-title[data-v-ce53933e]{display:block;font-weight:400;font-size:.75rem;color:#666;margin:.25rem 0}.view-page .hotspot-view .hotspot-box .info-box .like-box[data-v-ce53933e]{display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:row;padding:.1875rem .75rem;background:#2afec0;border-radius:1.09375rem;font-family:Source Han Sans CN,Source Han Sans CN;font-weight:400;font-size:.875rem;color:#333;margin:.25rem 0}.view-page .hotspot-view .hotspot-box .right-button[data-v-ce53933e]{text-align:right;position:absolute;right:.9375rem;bottom:1.5625rem}.view-page .hotspot-view .hotspot-box .right-button .apply-button[data-v-ce53933e]{display:inline-block;background:var(--primary-color);font-size:var(--font-button-size);color:var(--font-button-color);border-radius:2.125rem;text-align:center;padding:.125rem .9375rem}.view-page .hotspot-view .hotspot-box .right-button .online-view[data-v-ce53933e]{margin-top:.75rem;padding:.375rem .25rem;text-align:right;width:5rem;height:1.375rem;line-height:1.375rem;border-radius:2.875rem;position:relative}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-ce53933e]{width:1.375rem;height:1.375rem;border-radius:50%;position:absolute;border:2px solid white;background-size:cover;box-shadow:0 5px 15px rgba(0,0,0,.2);transition:all .4s ease}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar img[data-v-ce53933e]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-ce53933e]:nth-child(1){left:calc(50% - 1.875rem);z-index:3}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-ce53933e]:nth-child(2){left:calc(50% - 1.09375rem);z-index:2}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-ce53933e]:nth-child(3){left:calc(50% - .3125rem);z-index:1}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-ce53933e]:hover{transform:translateY(-10px);box-shadow:0 10px 25px rgba(0,0,0,.25);z-index:10}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatars-container[data-v-ce53933e]{position:absolute;top:.3125rem;left:40%}.view-page .hotspot-view .hotspot-box .right-button .online-view .online-people[data-v-ce53933e]{color:rgba(0,0,0,.5);font-size:.75rem;text-align:left;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all} +.view-page[data-v-1b77193b]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page .popup_view[data-v-1b77193b]{width:17.1875rem;background-color:#fff;border-radius:1rem;padding:1rem}.view-page .popup_view .popup_title[data-v-1b77193b]{text-align:center}.view-page .popup_view .messageContent[data-v-1b77193b]{margin:.75rem 0}.view-page .popup_view .popup_button[data-v-1b77193b]{margin-top:.75rem;width:100%;justify-content:space-around}.view-page .popup_view .popup_button .close_button[data-v-1b77193b],.view-page .popup_view .popup_button .confirm-button[data-v-1b77193b]{width:6.25rem;height:2.625rem;background:#f3f3f3;border-radius:3.3125rem;color:#999;justify-content:center}.view-page .popup_view .popup_button .confirm-button[data-v-1b77193b]{background:var(--primary-color);color:var(--font-button-color)}.view-page .content[data-v-1b77193b]{padding:0 1rem}.view-page .flex-input[data-v-1b77193b]{width:100%;display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:row}.view-page .flex-input .search-button[data-v-1b77193b]{padding:0 0 0 .625rem}.view-page .hotspot-view[data-v-1b77193b]{margin-top:.875rem}.view-page .hotspot-view .hotspot-box[data-v-1b77193b]{width:calc(100% - 1.5rem);padding:.75rem;position:relative;background:#fff;border-radius:.625rem;margin-bottom:.75rem;display:inline-flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;flex-direction:row}.view-page .hotspot-view .hotspot-box .head-portrait[data-v-1b77193b]{width:3.75rem;height:3.75rem;border-radius:50%}.view-page .hotspot-view .hotspot-box .head-portrait img[data-v-1b77193b]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .info-box[data-v-1b77193b]{padding:0 .75rem;width:55%}.view-page .hotspot-view .hotspot-box .info-box .icon-box[data-v-1b77193b]{width:.625rem;height:.625rem;margin-left:.15625rem}.view-page .hotspot-view .hotspot-box .info-box .chairman[data-v-1b77193b]{min-width:3.3125rem;height:1.125rem;padding:0 .375rem;color:#fff;font-size:.75rem;text-align:right;background:var(--subss-color);border-radius:3.625rem;border:.0625rem solid var(--subss-color);position:relative;left:.3125rem;margin:1rem 0;display:inline-flex}.view-page .hotspot-view .hotspot-box .info-box .chairman .truncate-three[data-v-1b77193b]{text-align:left}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-portrait[data-v-1b77193b]{width:1.5625rem;height:1.5625rem;border-radius:50%;border:.0625rem solid #FFFFFF;position:absolute;top:-.3125rem;left:-.625rem}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-portrait img[data-v-1b77193b]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-name[data-v-1b77193b]{margin-left:.9rem}.view-page .hotspot-view .hotspot-box .info-box .id-title[data-v-1b77193b]{font-size:.75rem;color:#666;margin-left:.75rem}.view-page .hotspot-view .hotspot-box .info-box .subhead-title[data-v-1b77193b]{display:block;font-weight:400;font-size:.75rem;color:#666;margin:.25rem 0}.view-page .hotspot-view .hotspot-box .info-box .like-box[data-v-1b77193b]{display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:row;padding:.1875rem .75rem;background:#2afec0;border-radius:1.09375rem;font-family:Source Han Sans CN,Source Han Sans CN;font-weight:400;font-size:.875rem;color:#333;margin:.25rem 0}.view-page .hotspot-view .hotspot-box .right-button[data-v-1b77193b]{text-align:right;position:absolute;right:.9375rem;bottom:1.5625rem}.view-page .hotspot-view .hotspot-box .right-button .apply-button[data-v-1b77193b]{display:inline-block;background:var(--primary-color);font-size:var(--font-button-size);color:var(--font-button-color);border-radius:2.125rem;text-align:center;padding:.125rem .9375rem}.view-page .hotspot-view .hotspot-box .right-button .online-view[data-v-1b77193b]{margin-top:.75rem;padding:.375rem .25rem;text-align:right;width:5rem;height:1.375rem;line-height:1.375rem;border-radius:2.875rem;position:relative}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-1b77193b]{width:1.375rem;height:1.375rem;border-radius:50%;position:absolute;border:2px solid white;background-size:cover;box-shadow:0 5px 15px rgba(0,0,0,.2);transition:all .4s ease}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar img[data-v-1b77193b]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-1b77193b]:nth-child(1){left:calc(50% - 1.875rem);z-index:3}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-1b77193b]:nth-child(2){left:calc(50% - 1.09375rem);z-index:2}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-1b77193b]:nth-child(3){left:calc(50% - .3125rem);z-index:1}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatar[data-v-1b77193b]:hover{transform:translateY(-10px);box-shadow:0 10px 25px rgba(0,0,0,.25);z-index:10}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatars-container[data-v-1b77193b]{position:absolute;top:.3125rem;left:40%}.view-page .hotspot-view .hotspot-box .right-button .online-view .online-people[data-v-1b77193b]{color:rgba(0,0,0,.5);font-size:.75rem;text-align:left;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all} diff --git a/unpackage/dist/build/web/assets/nav.CvI0lGd-.js b/unpackage/dist/build/web/assets/nav.BBjj-z52.js similarity index 91% rename from unpackage/dist/build/web/assets/nav.CvI0lGd-.js rename to unpackage/dist/build/web/assets/nav.BBjj-z52.js index e4b5f65d..922dfd0a 100644 --- a/unpackage/dist/build/web/assets/nav.CvI0lGd-.js +++ b/unpackage/dist/build/web/assets/nav.BBjj-z52.js @@ -1 +1 @@ -import{v as a,o as t,f as e,w as s,k as A,J as o,q as l,p as i,t as n,i as r,j as d}from"./index-BifMHC6c.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const f=c({name:"navBar",props:{bgColor:{type:String,default:()=>"transparent"},navTitle:{type:String,default:()=>"标题"},emitBack:{type:Boolean,default:()=>!1},isLeftSlot:{type:Boolean,default:()=>!1}},methods:{back(){this.emitBack?this.$emit("backEvent"):a()}}},[["render",function(a,c,f,g,B,u){const p=d;return t(),e(p,{class:"nav flex-line",style:r(`background-color:${f.bgColor}`)},{default:s((()=>[A(p,{class:"icon-image"},{default:s((()=>[f.isLeftSlot?o(a.$slots,"leftView",{key:0},void 0,!0):(t(),l("img",{key:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAStJREFUaEPt2GEKwjAMBeBmeKDRHUdhHkFPokdQ0OOsJxIqgw2GqKxrXtJC9rsr70s6yEqu8ocqz+8MoN1B64B1ILMCdoRSCui93xPRbhiGe8p7/9aKdcB7fyGi0xgmxngIITw5ECKAZfgp9JGrC3DAZ/gY4zWEcOao/rgHFIAODwVIhIcBpMJDAJLh2QHS4VkBGuHZAFrhWQCa4bMB2uGzACWE3wwoJfwmQNd1vXPuNs8y3LNN6oyUPAtNM/2jWsAYvOojNFe+FETyEVqe0RIQWYASjlM2QBvBAtBEsAG0EKwADQQ7QBoBAUgiYAApBBQggYADfiDquhv9gqjnbnQ5O7Vt2zdN8+K6md70Q5P6w4FeL/INIBEGQFZ3zd7WgTVVQq6xDiCru2bvN0OV8zHm2XzEAAAAAElFTkSuQmCC",alt:"",onClick:c[0]||(c[0]=(...a)=>u.back&&u.back(...a))}))])),_:3}),A(p,{class:"color-3 title font-w500 font-36"},{default:s((()=>[i(n(f.navTitle),1)])),_:1}),A(p,{class:"flex-line"},{default:s((()=>[o(a.$slots,"rightView",{},void 0,!0)])),_:3})])),_:3},8,["style"])}],["__scopeId","data-v-d84aaf9a"]]);export{f as n}; +import{v as a,o as t,f as e,w as s,k as A,K as o,q as l,p as i,t as n,i as r,j as d}from"./index-759PoYgM.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const f=c({name:"navBar",props:{bgColor:{type:String,default:()=>"transparent"},navTitle:{type:String,default:()=>"标题"},emitBack:{type:Boolean,default:()=>!1},isLeftSlot:{type:Boolean,default:()=>!1}},methods:{back(){this.emitBack?this.$emit("backEvent"):a()}}},[["render",function(a,c,f,g,B,u){const p=d;return t(),e(p,{class:"nav flex-line",style:r(`background-color:${f.bgColor}`)},{default:s((()=>[A(p,{class:"icon-image"},{default:s((()=>[f.isLeftSlot?o(a.$slots,"leftView",{key:0},void 0,!0):(t(),l("img",{key:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAStJREFUaEPt2GEKwjAMBeBmeKDRHUdhHkFPokdQ0OOsJxIqgw2GqKxrXtJC9rsr70s6yEqu8ocqz+8MoN1B64B1ILMCdoRSCui93xPRbhiGe8p7/9aKdcB7fyGi0xgmxngIITw5ECKAZfgp9JGrC3DAZ/gY4zWEcOao/rgHFIAODwVIhIcBpMJDAJLh2QHS4VkBGuHZAFrhWQCa4bMB2uGzACWE3wwoJfwmQNd1vXPuNs8y3LNN6oyUPAtNM/2jWsAYvOojNFe+FETyEVqe0RIQWYASjlM2QBvBAtBEsAG0EKwADQQ7QBoBAUgiYAApBBQggYADfiDquhv9gqjnbnQ5O7Vt2zdN8+K6md70Q5P6w4FeL/INIBEGQFZ3zd7WgTVVQq6xDiCru2bvN0OV8zHm2XzEAAAAAElFTkSuQmCC",alt:"",onClick:c[0]||(c[0]=(...a)=>u.back&&u.back(...a))}))])),_:3}),A(p,{class:"color-3 title font-w500 font-36"},{default:s((()=>[i(n(f.navTitle),1)])),_:1}),A(p,{class:"flex-line"},{default:s((()=>[o(a.$slots,"rightView",{},void 0,!0)])),_:3})])),_:3},8,["style"])}],["__scopeId","data-v-d84aaf9a"]]);export{f as n}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-customerService.3L-qQrHD.js b/unpackage/dist/build/web/assets/pages-feedback-customerService.gDjl8HmU.js similarity index 85% rename from unpackage/dist/build/web/assets/pages-feedback-customerService.3L-qQrHD.js rename to unpackage/dist/build/web/assets/pages-feedback-customerService.gDjl8HmU.js index cc2f9b1e..a65779b3 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-customerService.3L-qQrHD.js +++ b/unpackage/dist/build/web/assets/pages-feedback-customerService.gDjl8HmU.js @@ -1 +1 @@ -import{s as a,g as s,r as t,f as e,w as r,i as o,j as l,o as n,k as i,b as p,l as m}from"./index-BifMHC6c.js";import{n as u}from"./nav.CvI0lGd-.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=g({components:{navBar:u},data:()=>({statusBarHeight:0}),onLoad(t){const{h:e}=t;this.statusBarHeight=e,a("BarHeight",e),s("Theme_Data")&&(this.ThemeData=JSON.parse(s("Theme_Data")))}},[["render",function(a,s,u,g,c,d){const h=t("navBar"),f=l;return n(),e(f,{class:"view-page",style:o({backgroundImage:`url('${a.ThemeData?a.ThemeData.app_bg:a.baseBgUrl}')`})},{default:r((()=>[i(h,{style:o({marginTop:`${c.statusBarHeight}${"ios"===p().platform?"px":"dp"}`}),navTitle:"在线客服",emitBack:!1},null,8,["style"]),i(f,{class:""},{default:r((()=>[m("img",{src:a.$config.kefu_url,alt:""},null,8,["src"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-16a4d36d"]]);export{c as default}; +import{s as a,g as s,r as t,f as e,w as r,i as o,j as l,o as n,k as i,b as p,l as m}from"./index-759PoYgM.js";import{n as u}from"./nav.BBjj-z52.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=g({components:{navBar:u},data:()=>({statusBarHeight:0}),onLoad(t){const{h:e}=t;this.statusBarHeight=e,a("BarHeight",e),s("Theme_Data")&&(this.ThemeData=JSON.parse(s("Theme_Data")))}},[["render",function(a,s,u,g,c,d){const h=t("navBar"),f=l;return n(),e(f,{class:"view-page",style:o({backgroundImage:`url('${a.ThemeData?a.ThemeData.app_bg:a.baseBgUrl}')`})},{default:r((()=>[i(h,{style:o({marginTop:`${c.statusBarHeight}${"ios"===p().platform?"px":"dp"}`}),navTitle:"在线客服",emitBack:!1},null,8,["style"]),i(f,{class:""},{default:r((()=>[m("img",{src:a.$config.kefu_url,alt:""},null,8,["src"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-16a4d36d"]]);export{c as default}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-feedback.BuX_NQ3B.js b/unpackage/dist/build/web/assets/pages-feedback-feedback.Co7Kw44n.js similarity index 89% rename from unpackage/dist/build/web/assets/pages-feedback-feedback.BuX_NQ3B.js rename to unpackage/dist/build/web/assets/pages-feedback-feedback.Co7Kw44n.js index 39312988..55c52a5a 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-feedback.BuX_NQ3B.js +++ b/unpackage/dist/build/web/assets/pages-feedback-feedback.Co7Kw44n.js @@ -1 +1 @@ -import{s as e,v as t,h as o,g as a,K as s,D as l,E as i,r as n,e as r,f as c,w as d,j as u,o as f,k as p,p as g,m,q as h,u as _,F as x,M as k,I as y,l as v,B as I,t as L}from"./index-BifMHC6c.js";import{_ as b}from"./uni-load-more.B-hqwG84.js";import{r as C}from"./uni-app.es.BM6_Rfsu.js";import{_ as w}from"./uni-icons.CP-9I_4O.js";import{u as j}from"./uploadImage.m53ARKO3.js";import{h as P}from"./headerHeight.DQi3EG4R.js";import{n as R}from"./nav.CvI0lGd-.js";import{l as M}from"./logo.DDDG-929.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-cloud.es.VFO8_T8A.js";const V=U({components:{headerHeight:P,navBar:R,uploadImage:j},data:()=>({logo:M,icon:"/h5/web/assets/yichuli-qEP_9Oc4.png",footerList:[{title:"意见反馈",icon:"mail-open"},{title:"我的反馈",icon:"person"}],pageConfig:{pageSize:5,currentPage:1,total:0},footerIndex:0,loading:!1,errorPage:!1,total:0,last_page:0,page:1,limit:10,dataList:[],phone:"",description:"",uploadResult:"",noMore:!0}),onLoad(t){const{id:o}=t;e("token",o),this.errorPage=!o},onReachBottom(){this.loading||this.noMore||this.getUserFeedList()},methods:{back(){t()},successUpload(e){const t=e.map((e=>e.tempFilePath));t&&t.length?this.uploadResult=t.join(","):this.uploadResult=""},operate(e){e&&(this.pageConfig.currentPage=1,this.dataList=[],this.getUserFeedList()),setTimeout((()=>{this.footerIndex=e}),500)},async getUserFeedList(){await o.get("/api/Suggest/my_suggest",{token:a("token"),page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize}).then((e=>{const{data:t,code:o}=e;if(o){this.pageConfig.total=t.count,this.loading=!1;const e=t.list||[];if(0===e.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...e],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}))},submit(){if(!a("token"))return void s({title:"暂无用户身份信息",icon:"none"});if(""===this.description)return void s({title:"请输入问题描述",icon:"none"});const e={token:a("token"),image:this.uploadResult,content:this.description,tell:this.phone};l({title:"提交中",mask:!0}),o.post("/api/Suggest/create_suggest",e).then((e=>{const{data:t,code:o}=e;o?setTimeout((()=>{i(),s({title:"提交成功",icon:"none",mask:!0}),this.description="",this.phone="",this.uploadResult="",this.$refs.uploadImage.clearImage(),this.operate(1)}),1e3):(s({title:"提交失败",icon:"none"}),i())})).catch((e=>{s({title:"提交失败",icon:"none"}),i()}))}}},[["render",function(e,t,o,a,s,l){const i=n("headerHeight"),j=n("navBar"),P=u,R=k,M=n("uploadImage"),U=y,V=C(r("uni-load-more"),b),B=C(r("uni-icons"),w);return f(),c(P,{class:"view-page"},{default:d((()=>[p(i,{bgColor:"#fff"}),p(j,{navTitle:s.footerIndex?"反馈列表":"反馈问题",bgColor:"#fff"},null,8,["navTitle"]),s.errorPage?(f(),c(P,{key:1,class:""},{default:d((()=>[g(" 暂无身份信息 ")])),_:1})):(f(),c(P,{key:0,class:"container"},{default:d((()=>[0===s.footerIndex?(f(),c(P,{key:0},{default:d((()=>[p(P,{class:""},{default:d((()=>[p(P,{class:"title font-32 color-3 font-w500"},{default:d((()=>[g(" 问题描述 ")])),_:1}),p(P,{class:"textarea-view"},{default:d((()=>[p(R,{modelValue:s.description,"onUpdate:modelValue":t[0]||(t[0]=e=>s.description=e),"placeholder-style":"color:#666",placeholder:"请输入问题描述"},null,8,["modelValue"])])),_:1})])),_:1}),p(P,{class:"",style:{"margin-top":"24rpx"}},{default:d((()=>[p(P,{class:"title font-32 color-3 font-w500"},{default:d((()=>[g(" 问题截图(选填) ")])),_:1}),p(P,{class:"textarea-view"},{default:d((()=>[p(M,{onChangeImageList:l.successUpload,ref:"uploadImage"},null,8,["onChangeImageList"])])),_:1})])),_:1}),p(P,{class:"",style:{"margin-top":"24rpx"}},{default:d((()=>[p(P,{class:"title font-32 color-3 font-w500"},{default:d((()=>[g(" 联系电话(选填) ")])),_:1}),p(P,{class:"textarea-view"},{default:d((()=>[p(U,{modelValue:s.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>s.phone=e),class:"uni-input",type:"number",placeholder:"请输入联系电话"},null,8,["modelValue"])])),_:1})])),_:1}),p(P,{class:"flex-line confirm-view"},{default:d((()=>[p(P,{class:"confirm-button color-3 font-28",onClick:l.submit},{default:d((()=>[g(" 提交 ")])),_:1},8,["onClick"])])),_:1})])),_:1})):m("",!0),1===s.footerIndex?(f(),c(P,{key:1},{default:d((()=>[s.dataList&&s.dataList.length?(f(),c(P,{key:0},{default:d((()=>[(f(!0),h(x,null,_(s.dataList,(e=>(f(),c(P,{class:"feed-box",key:e.id},{default:d((()=>[p(P,{class:"box-top-line"},{default:d((()=>[e.image?(f(),c(P,{key:0,class:"new-box-image"},{default:d((()=>[v("img",{src:e.image,alt:""},null,8,["src"])])),_:2},1024)):m("",!0),p(P,{class:I(e.image?"ml-20 text-content-image":"text-content")},{default:d((()=>[p(P,{class:"color-6 font-28 multi-line w-fill"},{default:d((()=>[g(L(e.content),1)])),_:2},1024),p(P,{class:"font-24 color-9 mt-24"},{default:d((()=>[g(L(e.updatetime),1)])),_:2},1024),2===e.is_deal?(f(),h("img",{key:0,style:{width:"100rpx",height:"100rpx",position:"absolute",right:"5%",bottom:"2%"},src:s.icon,alt:""},null,8,["src"])):m("",!0)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})):m("",!0),p(V,{status:s.loading?"loading":s.noMore?"noMore":"more"},null,8,["status"])])),_:1})):m("",!0)])),_:1})),p(P,{class:"footer flex-line"},{default:d((()=>[(f(!0),h(x,null,_(s.footerList,((t,o)=>(f(),c(P,{class:"footer-button flex-line",onClick:e=>l.operate(o),key:o},{default:d((()=>[p(P,{class:"icon"},{default:d((()=>[p(B,{type:t.icon,color:s.footerIndex===o?e.$config.BASR_COLOR:"#333",size:"20"},null,8,["type","color"])])),_:2},1024),p(P,{class:I([s.footerIndex===o?"active":"","title ml-6 color-3 font-28 font-w400"])},{default:d((()=>[g(L(t.title),1)])),_:2},1032,["class"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-b0b6da1a"]]);export{V as default}; +import{s as e,v as t,h as o,g as a,z as s,x as l,y as i,r as n,e as r,f as c,w as d,j as u,o as f,k as p,p as g,m,q as h,u as _,F as x,M as k,I as y,l as v,E as I,t as L}from"./index-759PoYgM.js";import{_ as b}from"./uni-load-more.BV7jV9SQ.js";import{r as C}from"./uni-app.es.Hulr8kk-.js";import{_ as w}from"./uni-icons.BNs6RC_T.js";import{u as j}from"./uploadImage.BpNxfxIh.js";import{h as P}from"./headerHeight.UQ4SBLpb.js";import{n as R}from"./nav.BBjj-z52.js";import{l as M}from"./logo.DDDG-929.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-cloud.es.BW6KsUMN.js";const V=U({components:{headerHeight:P,navBar:R,uploadImage:j},data:()=>({logo:M,icon:"/h5/web/assets/yichuli-qEP_9Oc4.png",footerList:[{title:"意见反馈",icon:"mail-open"},{title:"我的反馈",icon:"person"}],pageConfig:{pageSize:5,currentPage:1,total:0},footerIndex:0,loading:!1,errorPage:!1,total:0,last_page:0,page:1,limit:10,dataList:[],phone:"",description:"",uploadResult:"",noMore:!0}),onLoad(t){const{id:o}=t;e("token",o),this.errorPage=!o},onReachBottom(){this.loading||this.noMore||this.getUserFeedList()},methods:{back(){t()},successUpload(e){const t=e.map((e=>e.tempFilePath));t&&t.length?this.uploadResult=t.join(","):this.uploadResult=""},operate(e){e&&(this.pageConfig.currentPage=1,this.dataList=[],this.getUserFeedList()),setTimeout((()=>{this.footerIndex=e}),500)},async getUserFeedList(){await o.get("/api/Suggest/my_suggest",{token:a("token"),page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize}).then((e=>{const{data:t,code:o}=e;if(o){this.pageConfig.total=t.count,this.loading=!1;const e=t.list||[];if(0===e.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...e],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}))},submit(){if(!a("token"))return void s({title:"暂无用户身份信息",icon:"none"});if(""===this.description)return void s({title:"请输入问题描述",icon:"none"});const e={token:a("token"),image:this.uploadResult,content:this.description,tell:this.phone};l({title:"提交中",mask:!0}),o.post("/api/Suggest/create_suggest",e).then((e=>{const{data:t,code:o}=e;o?setTimeout((()=>{i(),s({title:"提交成功",icon:"none",mask:!0}),this.description="",this.phone="",this.uploadResult="",this.$refs.uploadImage.clearImage(),this.operate(1)}),1e3):(s({title:"提交失败",icon:"none"}),i())})).catch((e=>{s({title:"提交失败",icon:"none"}),i()}))}}},[["render",function(e,t,o,a,s,l){const i=n("headerHeight"),j=n("navBar"),P=u,R=k,M=n("uploadImage"),U=y,V=C(r("uni-load-more"),b),z=C(r("uni-icons"),w);return f(),c(P,{class:"view-page"},{default:d((()=>[p(i,{bgColor:"#fff"}),p(j,{navTitle:s.footerIndex?"反馈列表":"反馈问题",bgColor:"#fff"},null,8,["navTitle"]),s.errorPage?(f(),c(P,{key:1,class:""},{default:d((()=>[g(" 暂无身份信息 ")])),_:1})):(f(),c(P,{key:0,class:"container"},{default:d((()=>[0===s.footerIndex?(f(),c(P,{key:0},{default:d((()=>[p(P,{class:""},{default:d((()=>[p(P,{class:"title font-32 color-3 font-w500"},{default:d((()=>[g(" 问题描述 ")])),_:1}),p(P,{class:"textarea-view"},{default:d((()=>[p(R,{modelValue:s.description,"onUpdate:modelValue":t[0]||(t[0]=e=>s.description=e),"placeholder-style":"color:#666",placeholder:"请输入问题描述"},null,8,["modelValue"])])),_:1})])),_:1}),p(P,{class:"",style:{"margin-top":"24rpx"}},{default:d((()=>[p(P,{class:"title font-32 color-3 font-w500"},{default:d((()=>[g(" 问题截图(选填) ")])),_:1}),p(P,{class:"textarea-view"},{default:d((()=>[p(M,{onChangeImageList:l.successUpload,ref:"uploadImage"},null,8,["onChangeImageList"])])),_:1})])),_:1}),p(P,{class:"",style:{"margin-top":"24rpx"}},{default:d((()=>[p(P,{class:"title font-32 color-3 font-w500"},{default:d((()=>[g(" 联系电话(选填) ")])),_:1}),p(P,{class:"textarea-view"},{default:d((()=>[p(U,{modelValue:s.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>s.phone=e),class:"uni-input",type:"number",placeholder:"请输入联系电话"},null,8,["modelValue"])])),_:1})])),_:1}),p(P,{class:"flex-line confirm-view"},{default:d((()=>[p(P,{class:"confirm-button color-3 font-28",onClick:l.submit},{default:d((()=>[g(" 提交 ")])),_:1},8,["onClick"])])),_:1})])),_:1})):m("",!0),1===s.footerIndex?(f(),c(P,{key:1},{default:d((()=>[s.dataList&&s.dataList.length?(f(),c(P,{key:0},{default:d((()=>[(f(!0),h(x,null,_(s.dataList,(e=>(f(),c(P,{class:"feed-box",key:e.id},{default:d((()=>[p(P,{class:"box-top-line"},{default:d((()=>[e.image?(f(),c(P,{key:0,class:"new-box-image"},{default:d((()=>[v("img",{src:e.image,alt:""},null,8,["src"])])),_:2},1024)):m("",!0),p(P,{class:I(e.image?"ml-20 text-content-image":"text-content")},{default:d((()=>[p(P,{class:"color-6 font-28 multi-line w-fill"},{default:d((()=>[g(L(e.content),1)])),_:2},1024),p(P,{class:"font-24 color-9 mt-24"},{default:d((()=>[g(L(e.updatetime),1)])),_:2},1024),2===e.is_deal?(f(),h("img",{key:0,style:{width:"100rpx",height:"100rpx",position:"absolute",right:"5%",bottom:"2%"},src:s.icon,alt:""},null,8,["src"])):m("",!0)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})):m("",!0),p(V,{status:s.loading?"loading":s.noMore?"noMore":"more"},null,8,["status"])])),_:1})):m("",!0)])),_:1})),p(P,{class:"footer flex-line"},{default:d((()=>[(f(!0),h(x,null,_(s.footerList,((t,o)=>(f(),c(P,{class:"footer-button flex-line",onClick:e=>l.operate(o),key:o},{default:d((()=>[p(P,{class:"icon"},{default:d((()=>[p(z,{type:t.icon,color:s.footerIndex===o?e.$config.BASR_COLOR:"#333",size:"20"},null,8,["type","color"])])),_:2},1024),p(P,{class:I([s.footerIndex===o?"active":"","title ml-6 color-3 font-28 font-w400"])},{default:d((()=>[g(L(t.title),1)])),_:2},1032,["class"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-b0b6da1a"]]);export{V as default}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-help.DjHnMIKT.js b/unpackage/dist/build/web/assets/pages-feedback-help.BdlXAeBH.js similarity index 84% rename from unpackage/dist/build/web/assets/pages-feedback-help.DjHnMIKT.js rename to unpackage/dist/build/web/assets/pages-feedback-help.BdlXAeBH.js index 3d1a5cf6..9966595a 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-help.DjHnMIKT.js +++ b/unpackage/dist/build/web/assets/pages-feedback-help.BdlXAeBH.js @@ -1 +1 @@ -import{g as e,s as t,e as a,o as l,f as s,w as i,q as o,t as c,m as n,k as r,B as d,p as h,y as m,i as u,F as p,u as g,j as f,C as A,S as b,c as y,h as k,n as w,b as C,r as D,l as x}from"./index-BifMHC6c.js";import{_}from"./uni-icons.CP-9I_4O.js";import{r as S}from"./uni-app.es.BM6_Rfsu.js";import{t as B}from"./uni-cloud.es.VFO8_T8A.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as E}from"./uni-load-more.B-hqwG84.js";import{h as I}from"./headerHeight.DQi3EG4R.js";import{n as L}from"./nav.CvI0lGd-.js";const M=v({name:"uni-data-select",mixins:[B.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue},textShow(){let e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout((()=>{e.apply(this,l)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:l}=e;if(l=l?`(${l})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${l}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(t=this.getCurrentCacheKey()){return(e(this.cacheKey)||{})[t]},setCache(a,l=this.getCurrentCacheKey()){let s=e(this.cacheKey)||{};s[l]=a,t(this.cacheKey,s)},removeCache(a=this.getCurrentCacheKey()){let l=e(this.cacheKey)||{};delete l[a],t(this.cacheKey,l)}}},[["render",function(e,t,y,k,w,C){const D=f,x=S(a("uni-icons"),_),B=A,v=b;return l(),s(D,{class:"uni-stat__select"},{default:i((()=>[y.label?(l(),o("span",{key:0,class:"uni-label-text hide-on-phone"},c(y.label+":"),1)):n("",!0),r(D,{class:d(["uni-stat-box",{"uni-stat__actived":w.current}])},{default:i((()=>[r(D,{class:d(["uni-select",{"uni-select--disabled":y.disabled}])},{default:i((()=>[r(D,{class:"uni-select__input-box",onClick:C.toggleSelector},{default:i((()=>[w.current?(l(),s(D,{key:0,class:"uni-select__input-text"},{default:i((()=>[h(c(C.textShow),1)])),_:1})):(l(),s(D,{key:1,class:"uni-select__input-text uni-select__input-placeholder"},{default:i((()=>[h(c(C.typePlaceholder),1)])),_:1})),w.current&&y.clear&&!y.disabled?(l(),s(D,{key:2,onClick:m(C.clearVal,["stop"])},{default:i((()=>[r(x,{type:"clear",color:"#c0c4cc",size:"24"})])),_:1},8,["onClick"])):(l(),s(D,{key:3},{default:i((()=>[r(x,{type:w.showSelector?"top":"bottom",size:"14",color:"#999"},null,8,["type"])])),_:1}))])),_:1},8,["onClick"]),w.showSelector?(l(),s(D,{key:0,class:"uni-select--mask",onClick:C.toggleSelector},null,8,["onClick"])):n("",!0),w.showSelector?(l(),s(D,{key:1,class:"uni-select__selector",style:u(C.getOffsetByPlacement)},{default:i((()=>[r(D,{class:d("bottom"==y.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top")},null,8,["class"]),r(v,{"scroll-y":"true",class:"uni-select__selector-scroll"},{default:i((()=>[0===w.mixinDatacomResData.length?(l(),s(D,{key:0,class:"uni-select__selector-empty"},{default:i((()=>[r(B,null,{default:i((()=>[h(c(y.emptyTips),1)])),_:1})])),_:1})):(l(!0),o(p,{key:1},g(w.mixinDatacomResData,((e,t)=>(l(),s(D,{class:"uni-select__selector-item",key:t,onClick:t=>C.change(e)},{default:i((()=>[r(B,{class:d({"uni-select__selector__disabled":e.disable})},{default:i((()=>[h(c(C.formatItemName(e)),1)])),_:2},1032,["class"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])):n("",!0)])),_:1},8,["class"])])),_:1},8,["class"])])),_:1})}],["__scopeId","data-v-fe4b6be6"]]);const Q=v({components:{headerHeight:I,navBar:L},data:()=>({statusBarHeight:0,baseBgUrl:y.PRIMARY_BGURL,problemList:[{title:"问题分类",id:0,list:[{title:"全部问题"}]},{title:"常见问题",id:1,list:[]}],footerList:[{title:"在线客服",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA/5JREFUaEPtmE3ID1EUxp+3LCyIBWWhEAsLhSKEEGKhkBSxIApRFMqbBcqCEIoiCqVQCjuiEEIUhSiEIkShLCgL96czdZvm487cv79ezV1NM3fOPc95ztc9Heriq6OL668GwL9msGHgf2Sgm6SBkgZL6m4Av0t6J+mFpF+tBN0qF+onaZGkWZLGeoqndQXIHbfnoqSTkj7GgokFMETSZmfZxZKwfJX1Q9JpSdskva7yo7+3LgCURfFNKWvjHjcdE/fNXT4bsN7O4oAdlcEQQHZI2unk8Vxp1QHQX9IpSRO8k/BtlDgr6VuJBr2MseWSRnh7Ab5Q0tsqCKoCIDivWpByzldJGySdqBmcKww4DLFwpSlVXKoKACx/w1MeN5lj2aWK0dJ7B1hAJ4wCYmIoE6EASIeXPbchi8yt47M5SJF/zmWomfYdd4KJ0pQbCmCLE7zVEz69hconmAABwwQ6i/PIUIUrBAB+/9SyDT5P4L0pE1zzO276SBIxQUYaJullkawQAMdcUC0xISslHa6pXOhvyyQdtc3HnbGWxgCgwr4y6z+UNDJUi4h91BgYp24QA7CSW7HLGFgvabcps0bSwQjFqvzqs0Ca3pP3cxkAMs8080fYKCtSVZQs2ksMfLIqfs0yUub+IgBQ+cUx0ENSoZBWaZ2SQ8GcbMbrmZdSiwAMNV9ELm608S8pmid2l1V5vhMPmdmoCMBUV7iutDH7pIHQZhyylxS4S1lIiwDMdjn/vP20QNKZNjMwz5pDjqVluRADAAF0iQQ0wcwz7cSTFoGiYM2wlIlsWgnOSQwYDYAGi4qcXlxIVllXWgcL2YZCiYLp9cFAtISBIuUeSxpdozei97mduhPknRPNAIK5y9JgPbOGiwsM2YEV1HiltNvrmFtn77gQ8YwxkIk8/8IUDYA2YlzKyvjoA6OZJq9vSPtrClNjKFS4EK5Cg+i3C7BDU5cYKBpAXhvh52oCMTSo/RoDk50ZvrPWAdxn76MB5AnwD6FqXg+M5ElW3dmO6+zP+M9P4w2AhoGUizQulBgktBcKcSHy9q3AIB5v7UJREEf3Qj7NeYXqiOuLmLCxaDVCL/vk9+f2X969l9HldtuTm+GKGKCYvLdiw4yTdsEfwpL379l9mfeDAq2fbOOuDWimD4xS/BrCe9oMiiUTbYpk5ty07Erpz4OomAdsaEvlpLhxW2PVmVb4/T7KUbSo+BQ5ZPcx2XmF7s/nMgDpiVmWkRnozq9o/WQ7Q2LuGnmrdAJYBgDBgIAJ3+K8p//BR6mipSPAAiVXu2/EWGLxRDaMlI7cQwAkZwNkjBcTdyMV9zEhe7jXGNL5/gxhtQqAEHlt39MAaLvJUwc2DDQMRFrgN+x98DHrjqwcAAAAAElFTkSuQmCC"},{title:"意见反馈",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAspJREFUaEPtmT2sDUEYhp+bKBQKpVJCoZAolBQSElQIBUHQ6RCEDhVCQqdEQlBdKiSEgoREqSBR0NErFAr7ykwyxs7O7OzMnr3J+ZqTc3Z39nm/n5lv5iywxG1hifMzFzDrCM4jkBmBI8AO8+xD4EnmOKPXwHLgAbDbA74JnMoRMWYKCX7R8bzPmyViLAFt8AJeCRx1lPQWMYaAFcbz2xzQi8Al8/0GcDJXRG0Bgn8KbA7A25+zRdQUsAp4Baxz4M8DVwPFmiWiloDVxvMuvLhjOd5bRA0Bgpfn9dlmRUWUFuDD/wL2A1t6FmpyJEoKULqoYK3nBa8F63nmbOOLkCMe+SEtJUDwShsVrsyHz51tbgHHzcP3gMM1BGwCngGaMmU/jedfFphtbjsL3R3gWGkBW4HHHryatLeRviYlx/17lI7/NX1DUmi7gVebIPtuivVzBD4lnVIE/h0nV4AP/9U0aanwXSJ0Lbm1yBGwq1ld1cNbzwte0+S3RM/7t/nedq/H1ozeEdhr4JeZtwyFD0VCv0fh+6bQCTOofeknkza5nnc9nZzzubPQuSZlrjgPfwTUHv/ITJsi8KkRuNDcqP7d2htgp5nvh/Jne96+OFbEPvwLYM9U4GMRuNy0BOrfrWm1FbzahKE22POxCFxrvHxm6vChCGwEPjjwahUOTM3zXRFwZxzlvAr299CcAYqljcvSVsRu4bqnB0M0VIEPpVBpAdXgxxBQFb62gOrwNQWMAl9LwGjwNQSMCl9awOjwJQXMBD4kwF2J35kjk65FbD2wz7mhbSd1EFg7ZCVsjle0+7vrj9G2Eq9pjgO127Lbxj7vbYPX/2E60ylhh4D7sVZC10+bHVgfEdeBsy2U8r5O1UqY/s35JwpdG5oNZttoT9xCANofvG6avvcdhIpC6LQ6VdgX3/uhGkgdcBL3xbaUk4DsgpgLmHWI/gAf2LUxhCYAdwAAAABJRU5ErkJggg=="}],page:1,limit:10,typeData:null,typeId:null,ThemeData:null}),onLoad(a){const{id:l,h:s}=a;t("token",l),e("token")&&this.getHelpList(),this.statusBarHeight=s,t("BarHeight",s),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{async getHelpList(){k.get("/api/Help/help_type",{token:e("token")||""}).then((e=>{const{data:t,code:a}=e;a&&(this.problemList[0].list=t.map((e=>({...e,text:`${e.type_name}的相关问题`,value:e.id}))),this.typeId=t.length?t[0].id:null,this.typeData=t.length?t[0]:null),this.$nextTick((()=>{this.getProblemList(this.typeId)})),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},async getProblemList(t){k.get("/api/Help/help_list",{token:e("token")||"",type:t,page:this.page,page_limit:this.limit}).then((e=>{const{data:t,code:a}=e;a&&(this.problemList[1].list=t)}))},changeType(e){this.typeId=e,this.typeData=this.problemList[0].list.filter((e=>this.typeId===e.id))[0],this.getProblemList(this.typeId),this.problemList[1].list=[]},jumpPage(e){w({url:`/pages/feedback/problemDetail?id=${e.id}`})},operate(t){if(t)w({url:`/pages/feedback/feedback?id=${e("token")}`});else{const e=C().platform;"ios"===e?(console.log("调用iOS原生方法"),window.webkit.messageHandlers.nativeHandler.postMessage({action:"customerService"})):"android"===e&&(console.log("调用Android原生方法"),window.Android.customerService())}},back(){this.closeWeb()},closeWeb(){const e=C().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()}}},[["render",function(e,t,d,m,A,b){const y=D("navBar"),k=f,w=S(a("uni-icons"),_),B=S(a("uni-data-select"),M),v=S(a("uni-load-more"),E);return l(),s(k,{class:"view-page",style:u({backgroundImage:`url('${A.ThemeData?A.ThemeData.app_bg:A.baseBgUrl}')`})},{default:i((()=>[r(y,{style:u({marginTop:`${A.statusBarHeight}${"ios"===C().platform?"px":"dp"}`}),navTitle:"帮助与反馈",emitBack:!0,onBackEvent:b.back},null,8,["style","onBackEvent"]),r(k,{class:"content"},{default:i((()=>[r(k,{class:"top-tip flex-line flex-spaceB"},{default:i((()=>[r(k,{class:""},{default:i((()=>[r(k,{class:"tip"},{default:i((()=>[h(" Hi,有什么可以帮你 ")])),_:1}),r(k,{class:"color-6 font-24 font-w400"},{default:i((()=>[h(" 尽全力,帮助你 ")])),_:1})])),_:1}),r(k,{class:"kefu-icon"},{default:i((()=>[x("img",{src:"/h5/web/assets/kefu-BdcHH_a1.png",alt:""})])),_:1})])),_:1}),r(k,{class:"problem-view"},{default:i((()=>[(l(!0),o(p,null,g(A.problemList,((e,a)=>(l(),s(k,{class:"problem-box",key:a},{default:i((()=>[r(k,{class:"box-title color-0 font-w500 font-32"},{default:i((()=>[h(c(e.id?`${A.typeData?A.typeData.type_name:""}相关问题`:e.title),1)])),_:2},1024),e.list&&0!==e.list.length?(l(),s(k,{key:0,class:"box-content"},{default:i((()=>[e.id?(l(!0),o(p,{key:0},g(e.list,((t,a)=>(l(),s(k,{class:"flex-line box-line box-lines",onClick:e=>b.jumpPage(t)},{default:i((()=>[r(k,{class:"title"},{default:i((()=>[e.id?(l(),o(p,{key:0},[h(c(t.title),1)],64)):n("",!0)])),_:2},1024),r(k,{class:""},{default:i((()=>[e.id?(l(),s(w,{key:0,type:"right",size:"14",color:"rgb(153, 153, 153)"})):n("",!0)])),_:2},1024)])),_:2},1032,["onClick"])))),256)):(l(),s(B,{key:1,class:"box-line",modelValue:A.typeId,"onUpdate:modelValue":t[0]||(t[0]=e=>A.typeId=e),clear:!1,localdata:e.list,onChange:b.changeType},null,8,["modelValue","localdata","onChange"]))])),_:2},1024)):(l(),s(k,{key:1,class:""},{default:i((()=>[r(v,{status:"noMore"})])),_:1}))])),_:2},1024)))),128))])),_:1})])),_:1}),r(k,{class:"footer flex-line"},{default:i((()=>[(l(!0),o(p,null,g(A.footerList,((e,t)=>(l(),s(k,{class:"footer-button flex-line",onClick:e=>b.operate(t),key:t},{default:i((()=>[r(k,{class:"icon"},{default:i((()=>[x("img",{src:e.icon,alt:""},null,8,["src"])])),_:2},1024),r(k,{class:"title ml-6 color-3 font-28 font-w400"},{default:i((()=>[h(c(e.title),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-420acdf0"]]);export{Q as default}; +import{g as e,s as t,e as a,o as l,f as s,w as i,q as o,t as c,m as n,k as r,E as d,p as h,B as m,i as u,F as p,u as g,j as f,G as A,S as b,c as y,h as k,n as w,b as D,r as C,l as x}from"./index-759PoYgM.js";import{_}from"./uni-icons.BNs6RC_T.js";import{r as S}from"./uni-app.es.Hulr8kk-.js";import{t as B}from"./uni-cloud.es.BW6KsUMN.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as E}from"./uni-load-more.BV7jV9SQ.js";import{h as I}from"./headerHeight.UQ4SBLpb.js";import{n as L}from"./nav.BBjj-z52.js";const M=v({name:"uni-data-select",mixins:[B.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue},textShow(){let e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout((()=>{e.apply(this,l)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:l}=e;if(l=l?`(${l})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${l}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(t=this.getCurrentCacheKey()){return(e(this.cacheKey)||{})[t]},setCache(a,l=this.getCurrentCacheKey()){let s=e(this.cacheKey)||{};s[l]=a,t(this.cacheKey,s)},removeCache(a=this.getCurrentCacheKey()){let l=e(this.cacheKey)||{};delete l[a],t(this.cacheKey,l)}}},[["render",function(e,t,y,k,w,D){const C=f,x=S(a("uni-icons"),_),B=A,v=b;return l(),s(C,{class:"uni-stat__select"},{default:i((()=>[y.label?(l(),o("span",{key:0,class:"uni-label-text hide-on-phone"},c(y.label+":"),1)):n("",!0),r(C,{class:d(["uni-stat-box",{"uni-stat__actived":w.current}])},{default:i((()=>[r(C,{class:d(["uni-select",{"uni-select--disabled":y.disabled}])},{default:i((()=>[r(C,{class:"uni-select__input-box",onClick:D.toggleSelector},{default:i((()=>[w.current?(l(),s(C,{key:0,class:"uni-select__input-text"},{default:i((()=>[h(c(D.textShow),1)])),_:1})):(l(),s(C,{key:1,class:"uni-select__input-text uni-select__input-placeholder"},{default:i((()=>[h(c(D.typePlaceholder),1)])),_:1})),w.current&&y.clear&&!y.disabled?(l(),s(C,{key:2,onClick:m(D.clearVal,["stop"])},{default:i((()=>[r(x,{type:"clear",color:"#c0c4cc",size:"24"})])),_:1},8,["onClick"])):(l(),s(C,{key:3},{default:i((()=>[r(x,{type:w.showSelector?"top":"bottom",size:"14",color:"#999"},null,8,["type"])])),_:1}))])),_:1},8,["onClick"]),w.showSelector?(l(),s(C,{key:0,class:"uni-select--mask",onClick:D.toggleSelector},null,8,["onClick"])):n("",!0),w.showSelector?(l(),s(C,{key:1,class:"uni-select__selector",style:u(D.getOffsetByPlacement)},{default:i((()=>[r(C,{class:d("bottom"==y.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top")},null,8,["class"]),r(v,{"scroll-y":"true",class:"uni-select__selector-scroll"},{default:i((()=>[0===w.mixinDatacomResData.length?(l(),s(C,{key:0,class:"uni-select__selector-empty"},{default:i((()=>[r(B,null,{default:i((()=>[h(c(y.emptyTips),1)])),_:1})])),_:1})):(l(!0),o(p,{key:1},g(w.mixinDatacomResData,((e,t)=>(l(),s(C,{class:"uni-select__selector-item",key:t,onClick:t=>D.change(e)},{default:i((()=>[r(B,{class:d({"uni-select__selector__disabled":e.disable})},{default:i((()=>[h(c(D.formatItemName(e)),1)])),_:2},1032,["class"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])):n("",!0)])),_:1},8,["class"])])),_:1},8,["class"])])),_:1})}],["__scopeId","data-v-fe4b6be6"]]);const Q=v({components:{headerHeight:I,navBar:L},data:()=>({statusBarHeight:0,baseBgUrl:y.PRIMARY_BGURL,problemList:[{title:"问题分类",id:0,list:[{title:"全部问题"}]},{title:"常见问题",id:1,list:[]}],footerList:[{title:"在线客服",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA/5JREFUaEPtmE3ID1EUxp+3LCyIBWWhEAsLhSKEEGKhkBSxIApRFMqbBcqCEIoiCqVQCjuiEEIUhSiEIkShLCgL96czdZvm487cv79ezV1NM3fOPc95ztc9Heriq6OL668GwL9msGHgf2Sgm6SBkgZL6m4Av0t6J+mFpF+tBN0qF+onaZGkWZLGeoqndQXIHbfnoqSTkj7GgokFMETSZmfZxZKwfJX1Q9JpSdskva7yo7+3LgCURfFNKWvjHjcdE/fNXT4bsN7O4oAdlcEQQHZI2unk8Vxp1QHQX9IpSRO8k/BtlDgr6VuJBr2MseWSRnh7Ab5Q0tsqCKoCIDivWpByzldJGySdqBmcKww4DLFwpSlVXKoKACx/w1MeN5lj2aWK0dJ7B1hAJ4wCYmIoE6EASIeXPbchi8yt47M5SJF/zmWomfYdd4KJ0pQbCmCLE7zVEz69hconmAABwwQ6i/PIUIUrBAB+/9SyDT5P4L0pE1zzO276SBIxQUYaJullkawQAMdcUC0xISslHa6pXOhvyyQdtc3HnbGWxgCgwr4y6z+UNDJUi4h91BgYp24QA7CSW7HLGFgvabcps0bSwQjFqvzqs0Ca3pP3cxkAMs8080fYKCtSVZQs2ksMfLIqfs0yUub+IgBQ+cUx0ENSoZBWaZ2SQ8GcbMbrmZdSiwAMNV9ELm608S8pmid2l1V5vhMPmdmoCMBUV7iutDH7pIHQZhyylxS4S1lIiwDMdjn/vP20QNKZNjMwz5pDjqVluRADAAF0iQQ0wcwz7cSTFoGiYM2wlIlsWgnOSQwYDYAGi4qcXlxIVllXWgcL2YZCiYLp9cFAtISBIuUeSxpdozei97mduhPknRPNAIK5y9JgPbOGiwsM2YEV1HiltNvrmFtn77gQ8YwxkIk8/8IUDYA2YlzKyvjoA6OZJq9vSPtrClNjKFS4EK5Cg+i3C7BDU5cYKBpAXhvh52oCMTSo/RoDk50ZvrPWAdxn76MB5AnwD6FqXg+M5ElW3dmO6+zP+M9P4w2AhoGUizQulBgktBcKcSHy9q3AIB5v7UJREEf3Qj7NeYXqiOuLmLCxaDVCL/vk9+f2X969l9HldtuTm+GKGKCYvLdiw4yTdsEfwpL379l9mfeDAq2fbOOuDWimD4xS/BrCe9oMiiUTbYpk5ty07Erpz4OomAdsaEvlpLhxW2PVmVb4/T7KUbSo+BQ5ZPcx2XmF7s/nMgDpiVmWkRnozq9o/WQ7Q2LuGnmrdAJYBgDBgIAJ3+K8p//BR6mipSPAAiVXu2/EWGLxRDaMlI7cQwAkZwNkjBcTdyMV9zEhe7jXGNL5/gxhtQqAEHlt39MAaLvJUwc2DDQMRFrgN+x98DHrjqwcAAAAAElFTkSuQmCC"},{title:"意见反馈",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAspJREFUaEPtmT2sDUEYhp+bKBQKpVJCoZAolBQSElQIBUHQ6RCEDhVCQqdEQlBdKiSEgoREqSBR0NErFAr7ykwyxs7O7OzMnr3J+ZqTc3Z39nm/n5lv5iywxG1hifMzFzDrCM4jkBmBI8AO8+xD4EnmOKPXwHLgAbDbA74JnMoRMWYKCX7R8bzPmyViLAFt8AJeCRx1lPQWMYaAFcbz2xzQi8Al8/0GcDJXRG0Bgn8KbA7A25+zRdQUsAp4Baxz4M8DVwPFmiWiloDVxvMuvLhjOd5bRA0Bgpfn9dlmRUWUFuDD/wL2A1t6FmpyJEoKULqoYK3nBa8F63nmbOOLkCMe+SEtJUDwShsVrsyHz51tbgHHzcP3gMM1BGwCngGaMmU/jedfFphtbjsL3R3gWGkBW4HHHryatLeRviYlx/17lI7/NX1DUmi7gVebIPtuivVzBD4lnVIE/h0nV4AP/9U0aanwXSJ0Lbm1yBGwq1ld1cNbzwte0+S3RM/7t/nedq/H1ozeEdhr4JeZtwyFD0VCv0fh+6bQCTOofeknkza5nnc9nZzzubPQuSZlrjgPfwTUHv/ITJsi8KkRuNDcqP7d2htgp5nvh/Jne96+OFbEPvwLYM9U4GMRuNy0BOrfrWm1FbzahKE22POxCFxrvHxm6vChCGwEPjjwahUOTM3zXRFwZxzlvAr299CcAYqljcvSVsRu4bqnB0M0VIEPpVBpAdXgxxBQFb62gOrwNQWMAl9LwGjwNQSMCl9awOjwJQXMBD4kwF2J35kjk65FbD2wz7mhbSd1EFg7ZCVsjle0+7vrj9G2Eq9pjgO127Lbxj7vbYPX/2E60ylhh4D7sVZC10+bHVgfEdeBsy2U8r5O1UqY/s35JwpdG5oNZttoT9xCANofvG6avvcdhIpC6LQ6VdgX3/uhGkgdcBL3xbaUk4DsgpgLmHWI/gAf2LUxhCYAdwAAAABJRU5ErkJggg=="}],page:1,limit:10,typeData:null,typeId:null,ThemeData:null}),onLoad(a){const{id:l,h:s}=a;t("token",l),e("token")&&this.getHelpList(),this.statusBarHeight=s,t("BarHeight",s),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{async getHelpList(){k.get("/api/Help/help_type",{token:e("token")||""}).then((e=>{const{data:t,code:a}=e;a&&(this.problemList[0].list=t.map((e=>({...e,text:`${e.type_name}的相关问题`,value:e.id}))),this.typeId=t.length?t[0].id:null,this.typeData=t.length?t[0]:null),this.$nextTick((()=>{this.getProblemList(this.typeId)})),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},async getProblemList(t){k.get("/api/Help/help_list",{token:e("token")||"",type:t,page:this.page,page_limit:this.limit}).then((e=>{const{data:t,code:a}=e;a&&(this.problemList[1].list=t)}))},changeType(e){this.typeId=e,this.typeData=this.problemList[0].list.filter((e=>this.typeId===e.id))[0],this.getProblemList(this.typeId),this.problemList[1].list=[]},jumpPage(e){w({url:`/pages/feedback/problemDetail?id=${e.id}`})},operate(t){if(t)w({url:`/pages/feedback/feedback?id=${e("token")}`});else{const e=D().platform;"ios"===e?(console.log("调用iOS原生方法"),window.webkit.messageHandlers.nativeHandler.postMessage({action:"customerService"})):"android"===e&&(console.log("调用Android原生方法"),window.Android.customerService())}},back(){this.closeWeb()},closeWeb(){const e=D().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()}}},[["render",function(e,t,d,m,A,b){const y=C("navBar"),k=f,w=S(a("uni-icons"),_),B=S(a("uni-data-select"),M),v=S(a("uni-load-more"),E);return l(),s(k,{class:"view-page",style:u({backgroundImage:`url('${A.ThemeData?A.ThemeData.app_bg:A.baseBgUrl}')`})},{default:i((()=>[r(y,{style:u({marginTop:`${A.statusBarHeight}${"ios"===D().platform?"px":"dp"}`}),navTitle:"帮助与反馈",emitBack:!0,onBackEvent:b.back},null,8,["style","onBackEvent"]),r(k,{class:"content"},{default:i((()=>[r(k,{class:"top-tip flex-line flex-spaceB"},{default:i((()=>[r(k,{class:""},{default:i((()=>[r(k,{class:"tip"},{default:i((()=>[h(" Hi,有什么可以帮你 ")])),_:1}),r(k,{class:"color-6 font-24 font-w400"},{default:i((()=>[h(" 尽全力,帮助你 ")])),_:1})])),_:1}),r(k,{class:"kefu-icon"},{default:i((()=>[x("img",{src:"/h5/web/assets/kefu-BdcHH_a1.png",alt:""})])),_:1})])),_:1}),r(k,{class:"problem-view"},{default:i((()=>[(l(!0),o(p,null,g(A.problemList,((e,a)=>(l(),s(k,{class:"problem-box",key:a},{default:i((()=>[r(k,{class:"box-title color-0 font-w500 font-32"},{default:i((()=>[h(c(e.id?`${A.typeData?A.typeData.type_name:""}相关问题`:e.title),1)])),_:2},1024),e.list&&0!==e.list.length?(l(),s(k,{key:0,class:"box-content"},{default:i((()=>[e.id?(l(!0),o(p,{key:0},g(e.list,((t,a)=>(l(),s(k,{class:"flex-line box-line box-lines",onClick:e=>b.jumpPage(t)},{default:i((()=>[r(k,{class:"title"},{default:i((()=>[e.id?(l(),o(p,{key:0},[h(c(t.title),1)],64)):n("",!0)])),_:2},1024),r(k,{class:""},{default:i((()=>[e.id?(l(),s(w,{key:0,type:"right",size:"14",color:"rgb(153, 153, 153)"})):n("",!0)])),_:2},1024)])),_:2},1032,["onClick"])))),256)):(l(),s(B,{key:1,class:"box-line",modelValue:A.typeId,"onUpdate:modelValue":t[0]||(t[0]=e=>A.typeId=e),clear:!1,localdata:e.list,onChange:b.changeType},null,8,["modelValue","localdata","onChange"]))])),_:2},1024)):(l(),s(k,{key:1,class:""},{default:i((()=>[r(v,{status:"noMore"})])),_:1}))])),_:2},1024)))),128))])),_:1})])),_:1}),r(k,{class:"footer flex-line"},{default:i((()=>[(l(!0),o(p,null,g(A.footerList,((e,t)=>(l(),s(k,{class:"footer-button flex-line",onClick:e=>b.operate(t),key:t},{default:i((()=>[r(k,{class:"icon"},{default:i((()=>[x("img",{src:e.icon,alt:""},null,8,["src"])])),_:2},1024),r(k,{class:"title ml-6 color-3 font-28 font-w400"},{default:i((()=>[h(c(e.title),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-420acdf0"]]);export{Q as default}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-problemDetail.CJGquA8l.js b/unpackage/dist/build/web/assets/pages-feedback-problemDetail.DoNYfLra.js similarity index 85% rename from unpackage/dist/build/web/assets/pages-feedback-problemDetail.CJGquA8l.js rename to unpackage/dist/build/web/assets/pages-feedback-problemDetail.DoNYfLra.js index 5c06702e..d05c9fe4 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-problemDetail.CJGquA8l.js +++ b/unpackage/dist/build/web/assets/pages-feedback-problemDetail.DoNYfLra.js @@ -1 +1 @@ -import{h as a,g as e,v as t,r as s,e as l,f as o,w as n,j as i,o as r,k as c,p as d,t as f,m as p}from"./index-BifMHC6c.js";import{_ as u}from"./uni-icons.CP-9I_4O.js";import{r as h}from"./uni-app.es.BM6_Rfsu.js";import{h as m}from"./headerHeight.DQi3EG4R.js";import{n as _}from"./nav.CvI0lGd-.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=g({components:{headerHeight:m,navBar:_},data:()=>({errorPage:!1,detailData:null,statusBarHeight:0}),onLoad(a){const{id:e}=a;e&&this.getDetail(e)},methods:{getDetail(t){a.get("/api/Help/help_detail",{token:e("token")||"",id:t}).then((a=>{const{data:e,code:t}=a;console.log(t,e),this.detailData=t?e:null,this.errorPage=!1})).catch((a=>{this.errorPage=!0}))},back(){t()}}},[["render",function(a,e,t,m,_,g){const v=s("headerHeight"),k=s("navBar"),b=i,j=h(l("uni-icons"),u);return r(),o(b,{class:"view-page"},{default:n((()=>[c(v),c(k,{navTitle:"问题详情",bgColor:"#fff",emitBack:!0,onBackEvent:g.back},null,8,["onBackEvent"]),_.detailData?(r(),o(b,{key:0,class:"container"},{default:n((()=>[c(b,{class:"title"},{default:n((()=>[d(f(_.detailData.title),1)])),_:1}),c(b,{class:"title mt-24",innerHTML:_.detailData.content},null,8,["innerHTML"])])),_:1})):p("",!0),c(b,{class:"flex-line footer mt-24 w-fill"},{default:n((()=>[c(b,{class:"help-box"},{default:n((()=>[c(b,{class:"help-icon"},{default:n((()=>[c(j,{type:"hand-up",size:"30"})])),_:1}),c(b,{class:"color-0 mt-24 font-24"},{default:n((()=>[d(" 有帮助 ")])),_:1})])),_:1}),c(b,{class:"help-box"},{default:n((()=>[c(b,{class:"help-icon"},{default:n((()=>[c(j,{type:"hand-down",size:"30"})])),_:1}),c(b,{class:"color-0 mt-24 font-24"},{default:n((()=>[d(" 没帮助 ")])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-4e1bb458"]]);export{v as default}; +import{h as a,g as e,v as t,r as s,e as l,f as o,w as n,j as i,o as r,k as c,p as d,t as f,m as p}from"./index-759PoYgM.js";import{_ as u}from"./uni-icons.BNs6RC_T.js";import{r as h}from"./uni-app.es.Hulr8kk-.js";import{h as m}from"./headerHeight.UQ4SBLpb.js";import{n as _}from"./nav.BBjj-z52.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=g({components:{headerHeight:m,navBar:_},data:()=>({errorPage:!1,detailData:null,statusBarHeight:0}),onLoad(a){const{id:e}=a;e&&this.getDetail(e)},methods:{getDetail(t){a.get("/api/Help/help_detail",{token:e("token")||"",id:t}).then((a=>{const{data:e,code:t}=a;console.log(t,e),this.detailData=t?e:null,this.errorPage=!1})).catch((a=>{this.errorPage=!0}))},back(){t()}}},[["render",function(a,e,t,m,_,g){const v=s("headerHeight"),k=s("navBar"),b=i,j=h(l("uni-icons"),u);return r(),o(b,{class:"view-page"},{default:n((()=>[c(v),c(k,{navTitle:"问题详情",bgColor:"#fff",emitBack:!0,onBackEvent:g.back},null,8,["onBackEvent"]),_.detailData?(r(),o(b,{key:0,class:"container"},{default:n((()=>[c(b,{class:"title"},{default:n((()=>[d(f(_.detailData.title),1)])),_:1}),c(b,{class:"title mt-24",innerHTML:_.detailData.content},null,8,["innerHTML"])])),_:1})):p("",!0),c(b,{class:"flex-line footer mt-24 w-fill"},{default:n((()=>[c(b,{class:"help-box"},{default:n((()=>[c(b,{class:"help-icon"},{default:n((()=>[c(j,{type:"hand-up",size:"30"})])),_:1}),c(b,{class:"color-0 mt-24 font-24"},{default:n((()=>[d(" 有帮助 ")])),_:1})])),_:1}),c(b,{class:"help-box"},{default:n((()=>[c(b,{class:"help-icon"},{default:n((()=>[c(j,{type:"hand-down",size:"30"})])),_:1}),c(b,{class:"color-0 mt-24 font-24"},{default:n((()=>[d(" 没帮助 ")])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-4e1bb458"]]);export{v as default}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-report.D9w-Zj4D.js b/unpackage/dist/build/web/assets/pages-feedback-report.BnEcOzYc.js similarity index 95% rename from unpackage/dist/build/web/assets/pages-feedback-report.D9w-Zj4D.js rename to unpackage/dist/build/web/assets/pages-feedback-report.BnEcOzYc.js index 3cc07107..f840363a 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-report.D9w-Zj4D.js +++ b/unpackage/dist/build/web/assets/pages-feedback-report.BnEcOzYc.js @@ -1 +1 @@ -import{K as e,P as t,o as a,f as r,w as i,J as s,k as l,B as n,i as o,p as u,m,t as d,C as h,j as f,Q as c,R as g,s as p,g as b,v as y,b as v,h as _,r as x,e as k,T as w}from"./index-BifMHC6c.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as S}from"./uni-app.es.BM6_Rfsu.js";import{_ as M}from"./uni-easyinput.CmmQ9HCd.js";import{_ as A,a as V}from"./uni-popup.D8sN-IRM.js";import{h as D}from"./headerHeight.DQi3EG4R.js";import{n as F}from"./nav.CvI0lGd-.js";import{u as I}from"./uploadImage.m53ARKO3.js";import"./uni-icons.CP-9I_4O.js";import"./uni-cloud.es.VFO8_T8A.js";const L=j({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"70px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(a,r=!0){const{formData:i,localData:s,errShowType:l,validateCheck:n,validateTrigger:o,_isRequiredField:u,_realName:m}=this.form,d=m(this.name);a||(a=this.form.formData[d]);const h=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!h||0===h)return;const f=u(this.itemRules.rules||[]);let c=null;return"bind"===o||r?(c=await this.validator.validateUpdate({[d]:a},i),f||void 0!==a&&""!==a||(c=null),c&&c.errorMessage?("undertext"===l&&(this.errMsg=c?c.errorMessage:""),"toast"===l&&e({title:c.errorMessage||"校验错误",icon:"none"}),"modal"===l&&t({title:"提示",content:c.errorMessage||"校验错误"})):this.errMsg="",n(c||null)):this.errMsg="",c||null},init(e=!1){const{validator:t,formRules:a,childrens:r,formData:i,localData:s,_realName:l,labelWidth:n,_getDataValue:o,_setDataValue:u}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(n),this.localLabelPos=this._labelPosition(),this.form&&e&&r.push(this),!t||!a)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const m=l(this.name),d=this.userRules||this.rules;"object"==typeof a&&d&&(a[m]={rules:d},t.updateSchema(a));const h=a[m]||{};this.itemRules=h,this.validator=t,this.itemSetValue(o(this.name,s))},unInit(){if(this.form){const{childrens:e,formData:t,_realName:a}=this.form;e.forEach(((e,r)=>{e===this&&(this.form.childrens.splice(r,1),delete t[a(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),a=this.itemRules.rules||[],r=this.form._getValue(t,e,a);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?70:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,a)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===a?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}},[["render",function(e,t,c,g,p,b){const y=h,v=f;return a(),r(v,{class:n(["uni-forms-item",["is-direction-"+p.localLabelPos,p.border?"uni-forms-item--border":"",p.border&&p.isFirstBorder?"is-first-border":""]])},{default:i((()=>[s(e.$slots,"label",{},(()=>[l(v,{class:n(["uni-forms-item__label",{"no-label":!c.label&&!c.required}]),style:o({width:p.localLabelWidth,justifyContent:p.localLabelAlign})},{default:i((()=>[c.required?(a(),r(y,{key:0,class:"is-required"},{default:i((()=>[u("*")])),_:1})):m("",!0),l(y,null,{default:i((()=>[u(d(c.label),1)])),_:1})])),_:1},8,["class","style"])]),!0),l(v,{class:"uni-forms-item__content"},{default:i((()=>[s(e.$slots,"default",{},void 0,!0),l(v,{class:n(["uni-forms-item__error",{"msg--active":b.msg}])},{default:i((()=>[l(y,null,{default:i((()=>[u(d(b.msg),1)])),_:1})])),_:1},8,["class"])])),_:3})])),_:3},8,["class"])}],["__scopeId","data-v-ab882ba0"]]);var R={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const T={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function N(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let a=t;for(let r in e){let t=new RegExp("{"+r+"}");a=a.replace(t,e[r])}return a}const O={integer:e=>O.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return O.number(e)&&!O.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!O.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(R.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(R.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(a){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(R.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const $={required:(e,t,a)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?N(e,e.errorMessage||a.required):null,range(e,t,a){const{range:r,errorMessage:i}=e;let s=new Array(r.length);for(let n=0;n-1&&(l=!0),l?null:N(e,i||a.enum)},rangeNumber(e,t,a){if(!O.number(t))return N(e,e.errorMessage||a.pattern.mismatch);let{minimum:r,maximum:i,exclusiveMinimum:s,exclusiveMaximum:l}=e,n=s?t<=r:t=i:t>i;return void 0!==r&&n?N(e,e.errorMessage||a.number[s?"exclusiveMinimum":"minimum"]):void 0!==i&&o?N(e,e.errorMessage||a.number[l?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(n||o)?N(e,e.errorMessage||a.number.range):null},rangeLength(e,t,a){if(!O.string(t)&&!O.array(t))return N(e,e.errorMessage||a.pattern.mismatch);let r=e.minLength,i=e.maxLength,s=t.length;return void 0!==r&&si?N(e,e.errorMessage||a.length.maxLength):void 0!==r&&void 0!==i&&(si)?N(e,e.errorMessage||a.length.range):null},pattern:(e,t,a)=>O.pattern(e.pattern,t)?null:N(e,e.errorMessage||a.pattern.mismatch),format(e,t,a){var r=Object.keys(O),i=T[e.format]?T[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!O[i](t)?N(e,e.errorMessage||a.typeError):null},arrayTypeFormat(e,t,a){if(!Array.isArray(t))return N(e,e.errorMessage||a.typeError);for(let r=0;re.required))<0){if(null==a)return s;if("string"==typeof a&&!a.length)return s}var n=this._message;if(void 0===l)return n.default;for(var o=0;o{l=e}));(l||"string"==typeof n&&n||!1===n)&&(s=this._getMessage(e,l||n,i))}catch(l){s=this._getMessage(e,l.message,i)}return s}_getMessage(e,t,a){return N(e,t||e.errorMessage||this._message[a]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}{constructor(e,t){super(P.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!1,t)),a.length?a[0]:null}async validateAll(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!0,t)),a}async validateUpdate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidateUpdate(e,!1,t)),a.length?a[0]:null}async invokeValidate(e,t,a){let r=[],i=this._schema;for(let s in i){let l=i[s],n=await this.validateRule(s,l,e[s],e,a);if(null!=n&&(r.push({key:s,errorMessage:n}),!t))break}return r}async invokeValidateUpdate(e,t,a){let r=[];for(let i in e){let s=await this.validateRule(i,this._schema[i],e[i],e,a);if(null!=s&&(r.push({key:i,errorMessage:s}),!t))break}return r}_checkFieldInSchema(e){var t=Object.keys(e),a=Object.keys(this._schema);if(new Set(t.concat(a)).size===a.length)return"";var r=t.filter((e=>a.indexOf(e)<0));return[{key:"invalid",errorMessage:N({field:JSON.stringify(r)},P.message.TAG+P.message.defaultInvalid)}]}}P.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const B=(e,t,a)=>{const r=a.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),i=a.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return r&&(t=t||0===t?z(Number(t))?Number(t):t:null),i&&(t=!!J(t)&&t),t},C=(e,t)=>U(t,e),q=(e,t={})=>{const a=H(e);if("object"==typeof a&&Array.isArray(a)&&a.length>1){return a.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return a[0]||e},W=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>z(e)?Number(e):e)),t},E=(e,t,a)=>("object"!=typeof e||H(t).reduce(((e,t,r,i)=>r===i.length-1?(e[t]=a,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])),e),e);function H(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const U=(e,t,a="undefined")=>{let r=H(t).reduce(((e,t)=>(e||{})[t]),e);return r&&void 0===r?a:r},z=e=>!isNaN(Number(e)),J=e=>"boolean"==typeof e;const G=j({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){c().$vm.$.appContext.config.globalProperties.binddata||(c().$vm.$.appContext.config.globalProperties.binddata=function(e,t,a){if(a)this.$refs[a].setValue(e,t);else{let a;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){a=t;break}}if(!a)return console.error("当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new P(e)},setValue(e,t){let a=this.childrens.find((t=>t.name===e));return a?(this.formData[e]=B(0,t,this.formRules[e]&&this.formRules[e].rules||[]),a.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let a={};return this.childrens.forEach((t=>{const r=q(t.name);-1!==e.indexOf(r)&&(a=Object.assign({},a,{[r]:this.formData[r]}))})),this.checkAll(a,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const a=q(t.name);-1!==e.indexOf(a)&&(t.errMsg="")}}))},submit(e,t,a){for(let r in this.dataValue){this.childrens.find((e=>e.name===r))&&void 0===this.formData[r]&&(this.formData[r]=this._getValue(r,this.dataValue[r]))}return a||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,a,r){if(!this.validator)return;let i,s=[];for(let u in e){const e=this.childrens.find((e=>q(e.name)===u));e&&s.push(e)}a||"function"!=typeof t||(a=t),!a&&"function"!=typeof a&&Promise&&(i=new Promise(((e,t)=>{a=function(a,r){a?t(a):e(r)}})));let l=[],n=JSON.parse(JSON.stringify(e));for(let u in s){const e=s[u];let t=q(e.name);const a=await e.onFieldChange(n[t]);if(a&&(l.push(a),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(l)&&0===l.length&&(l=null),Array.isArray(t)&&t.forEach((e=>{let t=q(e),a=C(e,this.localData);void 0!==a&&(n[t]=a)})),"submit"===r?this.$emit("submit",{detail:{value:n,errors:l}}):this.$emit("validate",l);let o={};return o=((e={},t)=>{let a=JSON.parse(JSON.stringify(e)),r={};for(let i in a){let e=W(i);E(r,e,a[i])}return r})(n,this.name),a&&"function"==typeof a&&a(l,o),i&&a?i:null},validateCheck(e){this.$emit("validate",e)},_getValue:B,_isRequiredField:e=>{let t=!1;for(let a=0;a(t[e]=a,a||""),_getDataValue:C,_realName:q,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==a){var r=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(r.length!=i.length)return!1;for(var s=0;s[l(d,null,{default:i((()=>[s(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})}],["__scopeId","data-v-a2a9907e"]]);const K=j({components:{headerHeight:D,uploadImage:I,navBar:F},data:()=>({formData:{content:""},optionsProps:{},array:[],typeList:[],statusBarHeight:0,typeIndex:0,messageText:"",msgType:"success",fromView:null}),watch:{typeIndex(e){console.log(e)}},onLoad(e){const{id:t,fromType:a,fromId:r,fromView:i,h:s}=e;this.optionsProps={id:t,fromType:a,fromId:r},this.fromView=i,p("token",t),this.statusBarHeight=s,p("BarHeight",s),b("token")&&this.getTypeList()},methods:{back(){1==this.fromView?y():this.closeWeb()},closeWeb(){const e=v().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getTypeList(){_.get("/api/Report/report_type_list",{token:b("token")||""}).then((e=>{const{code:t,data:a}=e;this.typeList=a,this.array=a.map((e=>e.type)),this.typeIndex=0}))},bindPickerChange({detail:e}){this.typeIndex=e.value},comfirm(){const e={type_id:this.typeList[this.typeIndex].id,report_type:this.optionsProps.fromType||1,content:this.formData.content||"",image:this.formData.image,from_id:this.optionsProps.fromId||""};_.post("/api/Report/report",{...e,token:b("token")||""}).then((e=>{const{data:t,code:a,msg:r}=e;a?(this.messageText="提交成功",this.$refs.message.open(),this.msgType="success",this.formData={content:"",image:""},this.$refs.uploadImage.clearImage()):(this.messageText=r,this.msgType="error",this.$refs.message.open())}))},successUpload(e){const t=e.map((e=>e.tempFilePath));t&&t.length?this.formData.image=t.join(","):this.formData.image=""}}},[["render",function(e,t,s,n,m,h){const c=x("navBar"),g=f,p=w,b=S(k("uni-forms-item"),L),y=S(k("uni-easyinput"),M),_=S(k("uni-forms"),G),j=x("uploadImage"),D=S(k("uni-popup-message"),A),F=S(k("uni-popup"),V);return a(),r(g,{class:"view-page"},{default:i((()=>[l(c,{style:o({paddingTop:`${m.statusBarHeight}${"ios"===v().platform?"px":"dp"}`}),navTitle:"举报",bgColor:"#fff",emitBack:!0,onBackEvent:h.back},null,8,["style","onBackEvent"]),l(g,{class:"content"},{default:i((()=>[l(_,{ref:"baseForm",modelValue:m.formData,"label-position":"top"},{default:i((()=>[l(b,{label:"举报类型",required:""},{default:i((()=>[l(g,{class:"view-picker"},{default:i((()=>[l(g,{class:"uni-list-cell"},{default:i((()=>[l(g,{class:"uni-list-cell-db"},{default:i((()=>[l(p,{onChange:h.bindPickerChange,value:m.typeIndex,range:m.array},{default:i((()=>[l(g,{class:"uni-input"},{default:i((()=>[u(d(m.array[m.typeIndex]),1)])),_:1})])),_:1},8,["onChange","value","range"])])),_:1})])),_:1})])),_:1})])),_:1}),l(b,{label:"举报原因",required:""},{default:i((()=>[l(g,{class:""},{default:i((()=>[l(y,{type:"textarea",autoHeight:"",modelValue:m.formData.content,"onUpdate:modelValue":t[0]||(t[0]=e=>m.formData.content=e),placeholder:"请输入举报原因"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"]),l(g,{class:"view-picker"},{default:i((()=>[l(j,{ref:"uploadImage",onChangeImageList:h.successUpload},null,8,["onChangeImageList"])])),_:1}),l(g,{class:"flex-line w-fill mt-24 color-3",style:{"justify-content":"center"}},{default:i((()=>[l(g,{class:"comfirmButton flex-line",onClick:h.comfirm},{default:i((()=>[u(" 确认举报 ")])),_:1},8,["onClick"])])),_:1})])),_:1}),l(F,{ref:"message",type:"message"},{default:i((()=>[l(D,{type:m.msgType,message:m.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1})}],["__scopeId","data-v-4120dc32"]]);export{K as default}; +import{z as e,P as t,o as a,f as r,w as i,K as s,k as l,E as n,i as o,p as u,m,t as d,G as h,j as f,Q as c,R as g,s as p,g as b,v as y,b as v,h as _,r as x,e as k,T as w}from"./index-759PoYgM.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as S}from"./uni-app.es.Hulr8kk-.js";import{_ as M}from"./uni-easyinput.C4HErVdH.js";import{_ as A,a as V}from"./uni-popup.DAsKHQxH.js";import{h as D}from"./headerHeight.UQ4SBLpb.js";import{n as F}from"./nav.BBjj-z52.js";import{u as I}from"./uploadImage.BpNxfxIh.js";import"./uni-icons.BNs6RC_T.js";import"./uni-cloud.es.BW6KsUMN.js";const L=j({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"70px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(a,r=!0){const{formData:i,localData:s,errShowType:l,validateCheck:n,validateTrigger:o,_isRequiredField:u,_realName:m}=this.form,d=m(this.name);a||(a=this.form.formData[d]);const h=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!h||0===h)return;const f=u(this.itemRules.rules||[]);let c=null;return"bind"===o||r?(c=await this.validator.validateUpdate({[d]:a},i),f||void 0!==a&&""!==a||(c=null),c&&c.errorMessage?("undertext"===l&&(this.errMsg=c?c.errorMessage:""),"toast"===l&&e({title:c.errorMessage||"校验错误",icon:"none"}),"modal"===l&&t({title:"提示",content:c.errorMessage||"校验错误"})):this.errMsg="",n(c||null)):this.errMsg="",c||null},init(e=!1){const{validator:t,formRules:a,childrens:r,formData:i,localData:s,_realName:l,labelWidth:n,_getDataValue:o,_setDataValue:u}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(n),this.localLabelPos=this._labelPosition(),this.form&&e&&r.push(this),!t||!a)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const m=l(this.name),d=this.userRules||this.rules;"object"==typeof a&&d&&(a[m]={rules:d},t.updateSchema(a));const h=a[m]||{};this.itemRules=h,this.validator=t,this.itemSetValue(o(this.name,s))},unInit(){if(this.form){const{childrens:e,formData:t,_realName:a}=this.form;e.forEach(((e,r)=>{e===this&&(this.form.childrens.splice(r,1),delete t[a(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),a=this.itemRules.rules||[],r=this.form._getValue(t,e,a);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?70:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,a)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===a?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}},[["render",function(e,t,c,g,p,b){const y=h,v=f;return a(),r(v,{class:n(["uni-forms-item",["is-direction-"+p.localLabelPos,p.border?"uni-forms-item--border":"",p.border&&p.isFirstBorder?"is-first-border":""]])},{default:i((()=>[s(e.$slots,"label",{},(()=>[l(v,{class:n(["uni-forms-item__label",{"no-label":!c.label&&!c.required}]),style:o({width:p.localLabelWidth,justifyContent:p.localLabelAlign})},{default:i((()=>[c.required?(a(),r(y,{key:0,class:"is-required"},{default:i((()=>[u("*")])),_:1})):m("",!0),l(y,null,{default:i((()=>[u(d(c.label),1)])),_:1})])),_:1},8,["class","style"])]),!0),l(v,{class:"uni-forms-item__content"},{default:i((()=>[s(e.$slots,"default",{},void 0,!0),l(v,{class:n(["uni-forms-item__error",{"msg--active":b.msg}])},{default:i((()=>[l(y,null,{default:i((()=>[u(d(b.msg),1)])),_:1})])),_:1},8,["class"])])),_:3})])),_:3},8,["class"])}],["__scopeId","data-v-ab882ba0"]]);var R={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const T={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function N(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let a=t;for(let r in e){let t=new RegExp("{"+r+"}");a=a.replace(t,e[r])}return a}const O={integer:e=>O.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return O.number(e)&&!O.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!O.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(R.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(R.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(a){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(R.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const $={required:(e,t,a)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?N(e,e.errorMessage||a.required):null,range(e,t,a){const{range:r,errorMessage:i}=e;let s=new Array(r.length);for(let n=0;n-1&&(l=!0),l?null:N(e,i||a.enum)},rangeNumber(e,t,a){if(!O.number(t))return N(e,e.errorMessage||a.pattern.mismatch);let{minimum:r,maximum:i,exclusiveMinimum:s,exclusiveMaximum:l}=e,n=s?t<=r:t=i:t>i;return void 0!==r&&n?N(e,e.errorMessage||a.number[s?"exclusiveMinimum":"minimum"]):void 0!==i&&o?N(e,e.errorMessage||a.number[l?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(n||o)?N(e,e.errorMessage||a.number.range):null},rangeLength(e,t,a){if(!O.string(t)&&!O.array(t))return N(e,e.errorMessage||a.pattern.mismatch);let r=e.minLength,i=e.maxLength,s=t.length;return void 0!==r&&si?N(e,e.errorMessage||a.length.maxLength):void 0!==r&&void 0!==i&&(si)?N(e,e.errorMessage||a.length.range):null},pattern:(e,t,a)=>O.pattern(e.pattern,t)?null:N(e,e.errorMessage||a.pattern.mismatch),format(e,t,a){var r=Object.keys(O),i=T[e.format]?T[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!O[i](t)?N(e,e.errorMessage||a.typeError):null},arrayTypeFormat(e,t,a){if(!Array.isArray(t))return N(e,e.errorMessage||a.typeError);for(let r=0;re.required))<0){if(null==a)return s;if("string"==typeof a&&!a.length)return s}var n=this._message;if(void 0===l)return n.default;for(var o=0;o{l=e}));(l||"string"==typeof n&&n||!1===n)&&(s=this._getMessage(e,l||n,i))}catch(l){s=this._getMessage(e,l.message,i)}return s}_getMessage(e,t,a){return N(e,t||e.errorMessage||this._message[a]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}{constructor(e,t){super(P.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!1,t)),a.length?a[0]:null}async validateAll(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!0,t)),a}async validateUpdate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidateUpdate(e,!1,t)),a.length?a[0]:null}async invokeValidate(e,t,a){let r=[],i=this._schema;for(let s in i){let l=i[s],n=await this.validateRule(s,l,e[s],e,a);if(null!=n&&(r.push({key:s,errorMessage:n}),!t))break}return r}async invokeValidateUpdate(e,t,a){let r=[];for(let i in e){let s=await this.validateRule(i,this._schema[i],e[i],e,a);if(null!=s&&(r.push({key:i,errorMessage:s}),!t))break}return r}_checkFieldInSchema(e){var t=Object.keys(e),a=Object.keys(this._schema);if(new Set(t.concat(a)).size===a.length)return"";var r=t.filter((e=>a.indexOf(e)<0));return[{key:"invalid",errorMessage:N({field:JSON.stringify(r)},P.message.TAG+P.message.defaultInvalid)}]}}P.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const B=(e,t,a)=>{const r=a.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),i=a.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return r&&(t=t||0===t?z(Number(t))?Number(t):t:null),i&&(t=!!J(t)&&t),t},C=(e,t)=>U(t,e),q=(e,t={})=>{const a=H(e);if("object"==typeof a&&Array.isArray(a)&&a.length>1){return a.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return a[0]||e},E=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>z(e)?Number(e):e)),t},W=(e,t,a)=>("object"!=typeof e||H(t).reduce(((e,t,r,i)=>r===i.length-1?(e[t]=a,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])),e),e);function H(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const U=(e,t,a="undefined")=>{let r=H(t).reduce(((e,t)=>(e||{})[t]),e);return r&&void 0===r?a:r},z=e=>!isNaN(Number(e)),J=e=>"boolean"==typeof e;const G=j({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){c().$vm.$.appContext.config.globalProperties.binddata||(c().$vm.$.appContext.config.globalProperties.binddata=function(e,t,a){if(a)this.$refs[a].setValue(e,t);else{let a;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){a=t;break}}if(!a)return console.error("当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new P(e)},setValue(e,t){let a=this.childrens.find((t=>t.name===e));return a?(this.formData[e]=B(0,t,this.formRules[e]&&this.formRules[e].rules||[]),a.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let a={};return this.childrens.forEach((t=>{const r=q(t.name);-1!==e.indexOf(r)&&(a=Object.assign({},a,{[r]:this.formData[r]}))})),this.checkAll(a,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const a=q(t.name);-1!==e.indexOf(a)&&(t.errMsg="")}}))},submit(e,t,a){for(let r in this.dataValue){this.childrens.find((e=>e.name===r))&&void 0===this.formData[r]&&(this.formData[r]=this._getValue(r,this.dataValue[r]))}return a||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,a,r){if(!this.validator)return;let i,s=[];for(let u in e){const e=this.childrens.find((e=>q(e.name)===u));e&&s.push(e)}a||"function"!=typeof t||(a=t),!a&&"function"!=typeof a&&Promise&&(i=new Promise(((e,t)=>{a=function(a,r){a?t(a):e(r)}})));let l=[],n=JSON.parse(JSON.stringify(e));for(let u in s){const e=s[u];let t=q(e.name);const a=await e.onFieldChange(n[t]);if(a&&(l.push(a),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(l)&&0===l.length&&(l=null),Array.isArray(t)&&t.forEach((e=>{let t=q(e),a=C(e,this.localData);void 0!==a&&(n[t]=a)})),"submit"===r?this.$emit("submit",{detail:{value:n,errors:l}}):this.$emit("validate",l);let o={};return o=((e={},t)=>{let a=JSON.parse(JSON.stringify(e)),r={};for(let i in a){let e=E(i);W(r,e,a[i])}return r})(n,this.name),a&&"function"==typeof a&&a(l,o),i&&a?i:null},validateCheck(e){this.$emit("validate",e)},_getValue:B,_isRequiredField:e=>{let t=!1;for(let a=0;a(t[e]=a,a||""),_getDataValue:C,_realName:q,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==a){var r=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(r.length!=i.length)return!1;for(var s=0;s[l(d,null,{default:i((()=>[s(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})}],["__scopeId","data-v-a2a9907e"]]);const K=j({components:{headerHeight:D,uploadImage:I,navBar:F},data:()=>({formData:{content:""},optionsProps:{},array:[],typeList:[],statusBarHeight:0,typeIndex:0,messageText:"",msgType:"success",fromView:null}),watch:{typeIndex(e){console.log(e)}},onLoad(e){const{id:t,fromType:a,fromId:r,fromView:i,h:s}=e;this.optionsProps={id:t,fromType:a,fromId:r},this.fromView=i,p("token",t),this.statusBarHeight=s,p("BarHeight",s),b("token")&&this.getTypeList()},methods:{back(){1==this.fromView?y():this.closeWeb()},closeWeb(){const e=v().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getTypeList(){_.get("/api/Report/report_type_list",{token:b("token")||""}).then((e=>{const{code:t,data:a}=e;this.typeList=a,this.array=a.map((e=>e.type)),this.typeIndex=0}))},bindPickerChange({detail:e}){this.typeIndex=e.value},comfirm(){const e={type_id:this.typeList[this.typeIndex].id,report_type:this.optionsProps.fromType||1,content:this.formData.content||"",image:this.formData.image,from_id:this.optionsProps.fromId||""};_.post("/api/Report/report",{...e,token:b("token")||""}).then((e=>{const{data:t,code:a,msg:r}=e;a?(this.messageText="提交成功",this.$refs.message.open(),this.msgType="success",this.formData={content:"",image:""},this.$refs.uploadImage.clearImage()):(this.messageText=r,this.msgType="error",this.$refs.message.open())}))},successUpload(e){const t=e.map((e=>e.tempFilePath));t&&t.length?this.formData.image=t.join(","):this.formData.image=""}}},[["render",function(e,t,s,n,m,h){const c=x("navBar"),g=f,p=w,b=S(k("uni-forms-item"),L),y=S(k("uni-easyinput"),M),_=S(k("uni-forms"),G),j=x("uploadImage"),D=S(k("uni-popup-message"),A),F=S(k("uni-popup"),V);return a(),r(g,{class:"view-page"},{default:i((()=>[l(c,{style:o({paddingTop:`${m.statusBarHeight}${"ios"===v().platform?"px":"dp"}`}),navTitle:"举报",bgColor:"#fff",emitBack:!0,onBackEvent:h.back},null,8,["style","onBackEvent"]),l(g,{class:"content"},{default:i((()=>[l(_,{ref:"baseForm",modelValue:m.formData,"label-position":"top"},{default:i((()=>[l(b,{label:"举报类型",required:""},{default:i((()=>[l(g,{class:"view-picker"},{default:i((()=>[l(g,{class:"uni-list-cell"},{default:i((()=>[l(g,{class:"uni-list-cell-db"},{default:i((()=>[l(p,{onChange:h.bindPickerChange,value:m.typeIndex,range:m.array},{default:i((()=>[l(g,{class:"uni-input"},{default:i((()=>[u(d(m.array[m.typeIndex]),1)])),_:1})])),_:1},8,["onChange","value","range"])])),_:1})])),_:1})])),_:1})])),_:1}),l(b,{label:"举报原因",required:""},{default:i((()=>[l(g,{class:""},{default:i((()=>[l(y,{type:"textarea",autoHeight:"",modelValue:m.formData.content,"onUpdate:modelValue":t[0]||(t[0]=e=>m.formData.content=e),placeholder:"请输入举报原因"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"]),l(g,{class:"view-picker"},{default:i((()=>[l(j,{ref:"uploadImage",onChangeImageList:h.successUpload},null,8,["onChangeImageList"])])),_:1}),l(g,{class:"flex-line w-fill mt-24 color-3",style:{"justify-content":"center"}},{default:i((()=>[l(g,{class:"comfirmButton flex-line",onClick:h.comfirm},{default:i((()=>[u(" 确认举报 ")])),_:1},8,["onClick"])])),_:1})])),_:1}),l(F,{ref:"message",type:"message"},{default:i((()=>[l(D,{type:m.msgType,message:m.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1})}],["__scopeId","data-v-4120dc32"]]);export{K as default}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-teenage.CQqA6POU.js b/unpackage/dist/build/web/assets/pages-feedback-teenage.CUfeP8MW.js similarity index 92% rename from unpackage/dist/build/web/assets/pages-feedback-teenage.CQqA6POU.js rename to unpackage/dist/build/web/assets/pages-feedback-teenage.CUfeP8MW.js index 052ebdcb..08c39b70 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-teenage.CQqA6POU.js +++ b/unpackage/dist/build/web/assets/pages-feedback-teenage.CUfeP8MW.js @@ -1 +1 @@ -import{s as a,g as e,b as t,h as s,n as i,r as o,e as n,f as r,w as l,i as d,j as g,o as h,k as c,q as p,u,F as f,p as m,t as b,l as _}from"./index-BifMHC6c.js";import{_ as k}from"./uni-load-more.B-hqwG84.js";import{r as v}from"./uni-app.es.BM6_Rfsu.js";import{n as T}from"./nav.CvI0lGd-.js";import{N as y}from"./tab.DH0wT1MO.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=L({components:{navBar:T,NavigationTabs:y},data:()=>({errorPage:!0,currentIndex:0,statusBarHeight:0,pageConfig:{pageSize:10,currentPage:1,total:0},loading:!1,noMore:!1,tabs:[],dataList:[],ThemeData:null}),onReachBottom(){this.loading||this.noMore||this.getUnderageModeList(this.tabs[0].type)},onLoad(t){this.errorPage=!0,this.dataList=[];const{id:s,h:i}=t;a("token",s),this.statusBarHeight=i,a("BarHeight",i),e("token")&&this.getUnderageTypeList(),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const a=t().platform;"ios"===a?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===a&&window.Android.closeWeb()},async getUnderageTypeList(){s.get("/api/Usermode/getUnderageTypeList",{token:e("token")||""}).then((a=>{const{data:e,code:t}=a;t&&(this.tabs=e.map((a=>({type:a.id,value:a.type_name})))),this.errorPage=!1,this.$nextTick((()=>{this.getUnderageModeList(this.tabs[0].type)}))})).catch((a=>{this.tabs=[],this.errorPage=!0}))},async getUnderageModeList(a){s.get("/api/Usermode/getUnderageModeList",{token:e("token")||"",type:a,page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize}).then((a=>{const{code:e,data:t}=a;if(e){this.pageConfig.total=t.total,this.loading=!1;const a=t.data||[];if(0===a.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...a],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}))},handleTabChange(a){this.dataList=[],this.noMore=!1,this.loading=!1,this.pageConfig.currentPage=1,this.pageConfig.pageSize=10,this.getUnderageModeList(a.tab.type)},openDetail(a){i({url:`/pages/feedback/teenageDetail?dataId=${a.id}`})}}},[["render",function(a,e,s,i,T,y){const L=o("navBar"),w=o("NavigationTabs"),C=g,M=v(n("uni-load-more"),k);return h(),r(C,{class:"view-page",style:d({backgroundImage:`url('${T.ThemeData?T.ThemeData.app_bg:a.baseBgUrl}')`})},{default:l((()=>[c(L,{style:d({marginTop:`${T.statusBarHeight}${"ios"===t().platform?"px":"dp"}`}),navTitle:"青少年模式",emitBack:!0,onBackEvent:y.back},null,8,["style","onBackEvent"]),c(C,{class:"content-view"},{default:l((()=>[c(C,{class:"flex-line"},{default:l((()=>[c(w,{"tabs-data":T.tabs,"default-active":T.currentIndex,onTabChange:y.handleTabChange},null,8,["tabs-data","default-active","onTabChange"])])),_:1}),c(C,{class:""},{default:l((()=>[(h(!0),p(f,null,u(T.dataList,((a,e)=>(h(),r(C,{class:"flex-line flex-spaceB w-fill new-box",key:e,onClick:e=>y.openDetail(a)},{default:l((()=>[c(C,{class:""},{default:l((()=>[c(C,{class:"color-3 font-32 font-w500"},{default:l((()=>[m(b(a.title),1)])),_:2},1024),c(C,{class:"color-6 mt-24 font-28 font-w400 multi-line"},{default:l((()=>[m(b(a.introduced),1)])),_:2},1024)])),_:2},1024),c(C,{class:"new-box-image"},{default:l((()=>[_("img",{src:a.img,alt:""},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128)),c(M,{class:"mt-24",status:T.loading?"loading":T.noMore?"noMore":"more"},null,8,["status"])])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-9bcf8341"]]);export{w as default}; +import{s as a,g as e,b as t,h as s,n as i,r as o,e as n,f as r,w as l,i as d,j as g,o as h,k as c,q as p,u,F as f,p as m,t as b,l as _}from"./index-759PoYgM.js";import{_ as k}from"./uni-load-more.BV7jV9SQ.js";import{r as v}from"./uni-app.es.Hulr8kk-.js";import{n as T}from"./nav.BBjj-z52.js";import{N as y}from"./tab.Nc_JIfEj.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=L({components:{navBar:T,NavigationTabs:y},data:()=>({errorPage:!0,currentIndex:0,statusBarHeight:0,pageConfig:{pageSize:10,currentPage:1,total:0},loading:!1,noMore:!1,tabs:[],dataList:[],ThemeData:null}),onReachBottom(){this.loading||this.noMore||this.getUnderageModeList(this.tabs[0].type)},onLoad(t){this.errorPage=!0,this.dataList=[];const{id:s,h:i}=t;a("token",s),this.statusBarHeight=i,a("BarHeight",i),e("token")&&this.getUnderageTypeList(),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const a=t().platform;"ios"===a?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===a&&window.Android.closeWeb()},async getUnderageTypeList(){s.get("/api/Usermode/getUnderageTypeList",{token:e("token")||""}).then((a=>{const{data:e,code:t}=a;t&&(this.tabs=e.map((a=>({type:a.id,value:a.type_name})))),this.errorPage=!1,this.$nextTick((()=>{this.getUnderageModeList(this.tabs[0].type)}))})).catch((a=>{this.tabs=[],this.errorPage=!0}))},async getUnderageModeList(a){s.get("/api/Usermode/getUnderageModeList",{token:e("token")||"",type:a,page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize}).then((a=>{const{code:e,data:t}=a;if(e){this.pageConfig.total=t.total,this.loading=!1;const a=t.data||[];if(0===a.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...a],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}))},handleTabChange(a){this.dataList=[],this.noMore=!1,this.loading=!1,this.pageConfig.currentPage=1,this.pageConfig.pageSize=10,this.getUnderageModeList(a.tab.type)},openDetail(a){i({url:`/pages/feedback/teenageDetail?dataId=${a.id}`})}}},[["render",function(a,e,s,i,T,y){const L=o("navBar"),w=o("NavigationTabs"),C=g,M=v(n("uni-load-more"),k);return h(),r(C,{class:"view-page",style:d({backgroundImage:`url('${T.ThemeData?T.ThemeData.app_bg:a.baseBgUrl}')`})},{default:l((()=>[c(L,{style:d({marginTop:`${T.statusBarHeight}${"ios"===t().platform?"px":"dp"}`}),navTitle:"青少年模式",emitBack:!0,onBackEvent:y.back},null,8,["style","onBackEvent"]),c(C,{class:"content-view"},{default:l((()=>[c(C,{class:"flex-line"},{default:l((()=>[c(w,{"tabs-data":T.tabs,"default-active":T.currentIndex,onTabChange:y.handleTabChange},null,8,["tabs-data","default-active","onTabChange"])])),_:1}),c(C,{class:""},{default:l((()=>[(h(!0),p(f,null,u(T.dataList,((a,e)=>(h(),r(C,{class:"flex-line flex-spaceB w-fill new-box",key:e,onClick:e=>y.openDetail(a)},{default:l((()=>[c(C,{class:""},{default:l((()=>[c(C,{class:"color-3 font-32 font-w500"},{default:l((()=>[m(b(a.title),1)])),_:2},1024),c(C,{class:"color-6 mt-24 font-28 font-w400 multi-line"},{default:l((()=>[m(b(a.introduced),1)])),_:2},1024)])),_:2},1024),c(C,{class:"new-box-image"},{default:l((()=>[_("img",{src:a.img,alt:""},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128)),c(M,{class:"mt-24",status:T.loading?"loading":T.noMore?"noMore":"more"},null,8,["status"])])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-9bcf8341"]]);export{w as default}; diff --git a/unpackage/dist/build/web/assets/pages-feedback-teenageDetail.B2MwwzvV.js b/unpackage/dist/build/web/assets/pages-feedback-teenageDetail.C-nHTfAu.js similarity index 59% rename from unpackage/dist/build/web/assets/pages-feedback-teenageDetail.B2MwwzvV.js rename to unpackage/dist/build/web/assets/pages-feedback-teenageDetail.C-nHTfAu.js index 809f6ad5..3fa13789 100644 --- a/unpackage/dist/build/web/assets/pages-feedback-teenageDetail.B2MwwzvV.js +++ b/unpackage/dist/build/web/assets/pages-feedback-teenageDetail.C-nHTfAu.js @@ -1 +1 @@ -import{g as a,D as e,h as t,E as s,r as l,f as i,w as n,i as d,j as r,o,k as h,q as m,l as c,p as g,t as u,F as D,m as p}from"./index-BifMHC6c.js";import{h as f}from"./headerHeight.DQi3EG4R.js";import{n as _}from"./nav.CvI0lGd-.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=T({components:{headerHeight:f,navBar:_},data:()=>({detailData:null,ThemeData:null,BarHeight:0}),onLoad(e){const{dataId:t}=e;t&&this.getDetail(t),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data"))),this.BarHeight=a("BarHeight")},methods:{async getDetail(l){e({mask:!0,title:"加载中"}),t.get("/api/Usermode/getUnderageModeContent",{id:l,token:a("token")||""}).then((a=>{s();const{data:e,code:t}=a;this.detailData=t?e:null,console.log(this.detailData)}))}}},[["render",function(a,e,t,s,f,_){const T=l("headerHeight"),v=l("navBar"),k=r;return o(),i(k,{class:"view-page",style:d({backgroundImage:`url('${f.ThemeData?f.ThemeData.app_bg:a.baseBgUrl}')`})},{default:n((()=>[h(T),h(v,{navTitle:"内容详情"}),f.detailData?(o(),m(D,{key:0},[2===f.detailData.from?(o(),i(k,{key:0,class:""},{default:n((()=>[c("iframe",{id:"myIframe",src:f.detailData.url,style:{width:"100%",border:"none",height:"100dvh"}},null,8,["src"])])),_:1})):(o(),i(k,{key:1,class:"detailContent"},{default:n((()=>[h(k,{class:""},{default:n((()=>[h(k,{class:"detailTitle"},{default:n((()=>[g(u(f.detailData.title),1)])),_:1}),h(k,{class:"detailData",innerHTML:f.detailData.content||""},null,8,["innerHTML"])])),_:1})])),_:1}))],64)):p("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-67e5d027"]]);export{v as default}; +import{g as a,x as e,h as t,y as s,r as l,f as i,w as n,i as d,j as r,o,k as h,q as m,l as c,p as g,t as u,F as p,m as D}from"./index-759PoYgM.js";import{h as f}from"./headerHeight.UQ4SBLpb.js";import{n as _}from"./nav.BBjj-z52.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=T({components:{headerHeight:f,navBar:_},data:()=>({detailData:null,ThemeData:null,BarHeight:0}),onLoad(e){const{dataId:t}=e;t&&this.getDetail(t),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data"))),this.BarHeight=a("BarHeight")},methods:{async getDetail(l){e({mask:!0,title:"加载中"}),t.get("/api/Usermode/getUnderageModeContent",{id:l,token:a("token")||""}).then((a=>{s();const{data:e,code:t}=a;this.detailData=t?e:null,console.log(this.detailData)}))}}},[["render",function(a,e,t,s,f,_){const T=l("headerHeight"),v=l("navBar"),y=r;return o(),i(y,{class:"view-page",style:d({backgroundImage:`url('${f.ThemeData?f.ThemeData.app_bg:a.baseBgUrl}')`})},{default:n((()=>[h(T),h(v,{navTitle:"内容详情"}),f.detailData?(o(),m(p,{key:0},[2===f.detailData.from?(o(),i(y,{key:0,class:""},{default:n((()=>[c("iframe",{id:"myIframe",src:f.detailData.url,style:{width:"100%",border:"none",height:"100dvh"}},null,8,["src"])])),_:1})):(o(),i(y,{key:1,class:"detailContent"},{default:n((()=>[h(y,{class:""},{default:n((()=>[h(y,{class:"detailTitle"},{default:n((()=>[g(u(f.detailData.title),1)])),_:1}),h(y,{class:"detailData",innerHTML:f.detailData.content||""},null,8,["innerHTML"])])),_:1})])),_:1}))],64)):D("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-67e5d027"]]);export{v as default}; diff --git a/unpackage/dist/build/web/assets/pages-other-aboutUs.DOrfyetN.js b/unpackage/dist/build/web/assets/pages-other-aboutUs.CHEcGUIG.js similarity index 89% rename from unpackage/dist/build/web/assets/pages-other-aboutUs.DOrfyetN.js rename to unpackage/dist/build/web/assets/pages-other-aboutUs.CHEcGUIG.js index af1ad3ac..effe7903 100644 --- a/unpackage/dist/build/web/assets/pages-other-aboutUs.DOrfyetN.js +++ b/unpackage/dist/build/web/assets/pages-other-aboutUs.CHEcGUIG.js @@ -1 +1 @@ -import{c as a,g as e,b as s,r as t,f as o,w as n,i as r,j as l,o as i,k as c,G as p}from"./index-BifMHC6c.js";import{n as d}from"./nav.CvI0lGd-.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const m=h({components:{navBar:d},data:()=>({statusBarHeight:0,ThemeData:null,httpUrl:null}),onLoad(s){this.httpUrl=a.BASE_URL;const{h:t}=s;this.statusBarHeight=t,e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const a=s().platform;"ios"===a?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===a&&window.Android.closeWeb()}}},[["render",function(a,e,d,h,m,u){const g=t("navBar"),_=p,b=l;return i(),o(b,{class:"view-page",style:r({backgroundImage:`url('${m.ThemeData?m.ThemeData.app_bg:a.baseBgUrl}')`})},{default:n((()=>[c(g,{style:r({marginTop:`${m.statusBarHeight}${"ios"===s().platform?"px":"dp"}`}),navTitle:"关于我们",emitBack:!0,onBackEvent:u.back},null,8,["style","onBackEvent"]),c(b,{class:"dec-view"},{default:n((()=>[c(_,{src:`${m.httpUrl}/api/Page/page_show?id=20`},null,8,["src"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-aa8ce06a"]]);export{m as default}; +import{c as a,g as e,b as s,r as t,f as o,w as n,i as r,j as l,o as i,k as c,H as p}from"./index-759PoYgM.js";import{n as d}from"./nav.BBjj-z52.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const m=h({components:{navBar:d},data:()=>({statusBarHeight:0,ThemeData:null,httpUrl:null}),onLoad(s){this.httpUrl=a.BASE_URL;const{h:t}=s;this.statusBarHeight=t,e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const a=s().platform;"ios"===a?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===a&&window.Android.closeWeb()}}},[["render",function(a,e,d,h,m,u){const g=t("navBar"),_=p,b=l;return i(),o(b,{class:"view-page",style:r({backgroundImage:`url('${m.ThemeData?m.ThemeData.app_bg:a.baseBgUrl}')`})},{default:n((()=>[c(g,{style:r({marginTop:`${m.statusBarHeight}${"ios"===s().platform?"px":"dp"}`}),navTitle:"关于我们",emitBack:!0,onBackEvent:u.back},null,8,["style","onBackEvent"]),c(b,{class:"dec-view"},{default:n((()=>[c(_,{src:`${m.httpUrl}/api/Page/page_show?id=20`},null,8,["src"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-aa8ce06a"]]);export{m as default}; diff --git a/unpackage/dist/build/web/assets/pages-other-grade.DBsVZrck.js b/unpackage/dist/build/web/assets/pages-other-grade.C6nZb-63.js similarity index 97% rename from unpackage/dist/build/web/assets/pages-other-grade.DBsVZrck.js rename to unpackage/dist/build/web/assets/pages-other-grade.C6nZb-63.js index 1ab02f9a..e79cf829 100644 --- a/unpackage/dist/build/web/assets/pages-other-grade.DBsVZrck.js +++ b/unpackage/dist/build/web/assets/pages-other-grade.C6nZb-63.js @@ -1 +1 @@ -import{o as e,q as t,l,F as a,u as s,m as r,B as i,t as n,s as c,g as o,h as v,b as u,r as d,f as g,w as h,j as f,k as A,i as p,p as x,H as m}from"./index-BifMHC6c.js";import{l as _}from"./logo.DDDG-929.js";import{h as y}from"./headerHeight.DQi3EG4R.js";import{_ as D}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=D({components:{headerHeight:y,LevelProgress:D({props:{lvList:{type:Array,default:()=>[]},currentIndex:{type:Number,default:()=>0}}},[["render",function(c,o,v,u,d,g){return e(),t("div",{class:"level-container"},[(e(),t("svg",{class:"level-svg",viewBox:"0 0 500 150"},[l("defs",null,[l("filter",{id:"glowFilter"},[l("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"5"}),l("feColorMatrix",{type:"matrix",values:"\n 1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 0.5 0"}),l("feBlend",{in2:"SourceGraphic",mode:"normal"})])]),l("path",{class:"track",d:"M 50 75 \n Q 250 25 450 75"}),(e(!0),t(a,null,s(v.lvList,((l,s)=>(e(),t(a,{key:s},[0===s?(e(),t("circle",{key:0,class:i(l.level===v.currentIndex?"highlight-dot":"normal-dot"),cx:"50",cy:"75",r:"6"},null,2)):r("",!0),1===s?(e(),t("circle",{key:1,class:i(l.level===v.currentIndex?"highlight-dot":"normal-dot"),cx:"250",cy:"50",r:"8",fill:"#fff",style:{filter:"drop-shadow(0 0 8px rgba(255,255,255,1))"}},null,2)):r("",!0),2===s?(e(),t("circle",{key:2,class:i(l.level===v.currentIndex?"highlight-dot":"normal-dot"),cx:"450",cy:"75",r:"6"},null,2)):r("",!0)],64)))),128))])),v.lvList&&v.lvList.length?(e(!0),t(a,{key:0},s(v.lvList,((l,a)=>(e(),t("div",{class:i(["level-text",`text-${a+1}`])},n(`Lv.${l.level}`),3)))),256)):r("",!0)])}],["__scopeId","data-v-deb39de0"]])},data:()=>({logo:_,detailData:null,statusBarHeight:0,errorPage:!0,tabs:[],listData:[],currentIndex:0,levelActiveData:null,levelList:[],levelCurrent:0,nextLevelData:null,userSinger:!1,currentSelectedLevel:2,userSingerLevel:0}),onLoad(e){this.errorPage=!0;const{id:t,type:l,h:a}=e;this.currentIndex=void 0!==l?+l:0,c("token",t),this.statusBarHeight=a,c("BarHeight",a),o("token")&&(this.getData(),this.getSingInfo())},methods:{getData(){this.levelActiveData=[],1===this.currentIndex?this.getCharmLevel():0===this.currentIndex?this.getWealthLevel():2===this.currentIndex&&this.getSingerLevel()},cutTabPage(e){this.currentIndex=e,this.getData()},async getSingInfo(){v.get("/api/Level/is_singer",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;this.userSinger=!0,this.userSingerLevel=Number(t.level)})).catch((e=>{this.userSinger=!1}))},async getCharmLevel(){v.get("/api/Level/get_level_rule",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;l&&(this.detailData=t,this.levelList=t.level.map((e=>({...e,title:e.name}))),this.levelCurrent=t.user.level,this.nextLevelData=t.level.filter((e=>e.level===t.user.level+1)),this.levelActiveData=t.level.filter((e=>e.level===t.user.level))),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},closeWeb(){const e=u().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getWealthLevel(){v.get("/api/Level/get_wealth_rule",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;l&&(this.detailData=t,this.levelList=t.level.map((e=>({...e,title:e.name}))),this.levelCurrent=t.user.level,this.nextLevelData=t.level.filter((e=>e.level===t.user.level+1)),this.levelActiveData=t.level.filter((e=>e.level===t.user.level))),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},async getSingerLevel(){v.get("/api/Level/get_singer_level",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;l&&(console.log(t),this.detailData=t,this.levelList=t.level.map((e=>({...e,title:e.name}))),this.levelCurrent=Number(t.user.level),this.nextLevelData=t.level.filter((e=>e.level===Number(t.user.level)+1)),this.levelActiveData=t.level.filter((e=>e.level===Number(t.user.level)))),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))}}},[["render",function(a,s,c,o,v,u){const _=f,y=m,D=d("LevelProgress");return v.levelActiveData&&v.detailData?(e(),g(_,{key:0,class:"view-page"},{default:h((()=>[A(_,{class:"top-view"},{default:h((()=>[A(_,{class:"navbar",style:p({"margin-top":`${v.statusBarHeight||0}px`})},{default:h((()=>[A(_,{class:""},{default:h((()=>[l("img",{onClick:s[0]||(s[0]=(...e)=>u.closeWeb&&u.closeWeb(...e)),class:"icon-image",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAARtJREFUaEPt2GEKwjAMBeAEvKWCHkFPokdQ0FsKkcKEMaY0a17SQvxdy/uSDtIyDf7jwfNTAqI7mB3IDjRWII+QpoAisieiHTM/NP/7t9atAyJyJaLzFObAzC8LhAtgEb7kPll1AQ5YCX9j5otF9cseUAA6PBTgER4G8AoPAXiGNwd4hzcFRIQ3A0SFNwFEhm8GRIdvAvQQfjOgl/CbACJyJKL7bJYxnW20M5J6Fppm+uewgBJ86CP0rXwvCPURmp/RHhBNgB6OUzMgGmECiESYAaIQpoAIhDnAGwEBeCJgAC8EFOCBgAN+IMZ6G11BjPM2upidyl3ibfUyvelCo71woNe7fANIRAKQ1a3ZOztQUyXkmuwAsro1e38A/fyfMZa6LOQAAAAASUVORK5CYII=",alt:""})])),_:1}),A(_,{class:"tab"},{default:h((()=>[A(_,{onClick:s[1]||(s[1]=e=>u.cutTabPage(0)),class:i(0==v.currentIndex?"active":"")},{default:h((()=>[x(" 财富等级 ")])),_:1},8,["class"]),A(_,{onClick:s[2]||(s[2]=e=>u.cutTabPage(1)),class:i(1==v.currentIndex?"active":"")},{default:h((()=>[x(" 魅力等级 ")])),_:1},8,["class"]),v.userSinger?(e(),g(_,{key:0,onClick:s[3]||(s[3]=e=>u.cutTabPage(2)),class:i(2==v.currentIndex?"active":"")},{default:h((()=>[x(" 歌手等级 ")])),_:1},8,["class"])):r("",!0)])),_:1}),A(_,{class:"icon-image"})])),_:1},8,["style"]),v.levelActiveData.length?(e(),g(_,{key:0,class:"swiper-view"},{default:h((()=>[A(_,{class:"swiper-image",style:p({"background-image":`url('${v.levelActiveData[0].bg_image}')`})},{default:h((()=>[A(_,{class:"view-level"},{default:h((()=>[A(_,{class:""},{default:h((()=>[A(_,{class:"level-str",style:p({textShadow:`0px 0px 5px ${v.levelActiveData[0].color}`})},{default:h((()=>[x(n(v.levelActiveData[0].name),1)])),_:1},8,["style"]),A(_,{class:"color-9 flex-line",style:{"font-size":"20rpx"}},{default:h((()=>[l("span",{style:{"white-space":"nowrap"}},n(`lv.${v.levelActiveData[0].level}`),1),A(y,{style:{width:"200rpx",margin:"0 24rpx"},"border-radius":52,percent:3,activeColor:v.levelActiveData[0].color,"stroke-width":"3"},null,8,["activeColor"]),l("span",{style:{"white-space":"nowrap"}},n(`lv.${v.nextLevelData[0].level}`),1)])),_:1}),A(_,{class:"color-9 mt-24",style:{"font-size":"20rpx"}},{default:h((()=>[x(" 距离下一个段位还差"+n(v.detailData.user.next_exp)+"经验值 ",1)])),_:1})])),_:1}),[1,2].includes(v.currentIndex)?(e(),g(_,{key:0,style:{width:"196rpx",height:"196rpx"}},{default:h((()=>[l("img",{src:v.levelActiveData[0].rights_icon,alt:""},null,8,["src"])])),_:1})):r("",!0)])),_:1})])),_:1},8,["style"])])),_:1})):r("",!0),A(_,{class:"LevelProgress-view"},{default:h((()=>[A(D,{currentIndex:v.levelCurrent,lvList:v.levelList},null,8,["currentIndex","lvList"])])),_:1}),A(_,{class:"w-fill flex-line business-card"},{default:h((()=>[A(_,{class:""},{default:h((()=>[A(_,{class:"font-36 color-0D"},{default:h((()=>[x(n(v.detailData.user.exp||0),1)])),_:1}),A(_,{class:"font-24 color-f"},{default:h((()=>[x(" 当前经验 ")])),_:1})])),_:1}),A(_,{class:"head-sculpture"},{default:h((()=>[l("img",{src:v.detailData.user.user_avatar||v.logo,alt:""},null,8,["src"])])),_:1}),A(_,{class:""},{default:h((()=>[A(_,{class:"font-36 color-0D"},{default:h((()=>[x(n(v.detailData.user.next_exp),1)])),_:1}),A(_,{class:"font-24 color-f"},{default:h((()=>[x(" 下个等级 ")])),_:1})])),_:1})])),_:1}),v.detailData?(e(),g(_,{key:1,class:"content-view"},{default:h((()=>[A(_,{class:"font-32 color-3 font-w500"},{default:h((()=>[x(n(`如何获得${1===v.currentIndex?"魅力":2===v.currentIndex?"歌手经验":"财富"}值?`),1)])),_:1}),A(_,{class:"mt-24 color-3 font-w400",style:{"font-size":"28rpx"}},{default:h((()=>[x(n(""+(1===v.currentIndex?`在平台收到的所有打赏均可转化为魅力值,具体比例为1金币=${v.detailData.coin_charm_exp}魅力值。`:2===v.currentIndex?`在平台的所有打赏均可转化为歌手经验值,具体比例为1金币=${v.detailData.singer_coin_exp}经验值`:`在平台的所有打赏均可转化为财富值,具体比例为1金币=${v.detailData.coin_wealth_exp}财富值。`)),1)])),_:1}),A(_,{class:"mt-24"},{default:h((()=>[v.currentIndex?r("",!0):(e(),t("img",{key:0,src:a.$config.wealth_url,alt:""},null,8,["src"])),1==v.currentIndex?(e(),t("img",{key:1,src:a.$config.charm_url,alt:""},null,8,["src"])):r("",!0),2==v.currentIndex?(e(),t("img",{key:2,src:a.$config.singer_url,alt:""},null,8,["src"])):r("",!0)])),_:1})])),_:1})):r("",!0)])),_:1})])),_:1})):r("",!0)}],["__scopeId","data-v-20df0c35"]]);export{w as default}; +import{o as e,q as t,l,F as a,u as s,m as r,E as i,t as n,s as c,g as o,h as v,b as u,r as d,f as g,w as h,j as f,k as A,i as p,p as x,J as m}from"./index-759PoYgM.js";import{l as _}from"./logo.DDDG-929.js";import{h as y}from"./headerHeight.UQ4SBLpb.js";import{_ as D}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=D({components:{headerHeight:y,LevelProgress:D({props:{lvList:{type:Array,default:()=>[]},currentIndex:{type:Number,default:()=>0}}},[["render",function(c,o,v,u,d,g){return e(),t("div",{class:"level-container"},[(e(),t("svg",{class:"level-svg",viewBox:"0 0 500 150"},[l("defs",null,[l("filter",{id:"glowFilter"},[l("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"5"}),l("feColorMatrix",{type:"matrix",values:"\n 1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 0.5 0"}),l("feBlend",{in2:"SourceGraphic",mode:"normal"})])]),l("path",{class:"track",d:"M 50 75 \n Q 250 25 450 75"}),(e(!0),t(a,null,s(v.lvList,((l,s)=>(e(),t(a,{key:s},[0===s?(e(),t("circle",{key:0,class:i(l.level===v.currentIndex?"highlight-dot":"normal-dot"),cx:"50",cy:"75",r:"6"},null,2)):r("",!0),1===s?(e(),t("circle",{key:1,class:i(l.level===v.currentIndex?"highlight-dot":"normal-dot"),cx:"250",cy:"50",r:"8",fill:"#fff",style:{filter:"drop-shadow(0 0 8px rgba(255,255,255,1))"}},null,2)):r("",!0),2===s?(e(),t("circle",{key:2,class:i(l.level===v.currentIndex?"highlight-dot":"normal-dot"),cx:"450",cy:"75",r:"6"},null,2)):r("",!0)],64)))),128))])),v.lvList&&v.lvList.length?(e(!0),t(a,{key:0},s(v.lvList,((l,a)=>(e(),t("div",{class:i(["level-text",`text-${a+1}`])},n(`Lv.${l.level}`),3)))),256)):r("",!0)])}],["__scopeId","data-v-deb39de0"]])},data:()=>({logo:_,detailData:null,statusBarHeight:0,errorPage:!0,tabs:[],listData:[],currentIndex:0,levelActiveData:null,levelList:[],levelCurrent:0,nextLevelData:null,userSinger:!1,currentSelectedLevel:2,userSingerLevel:0}),onLoad(e){this.errorPage=!0;const{id:t,type:l,h:a}=e;this.currentIndex=void 0!==l?+l:0,c("token",t),this.statusBarHeight=a,c("BarHeight",a),o("token")&&(this.getData(),this.getSingInfo())},methods:{getData(){this.levelActiveData=[],1===this.currentIndex?this.getCharmLevel():0===this.currentIndex?this.getWealthLevel():2===this.currentIndex&&this.getSingerLevel()},cutTabPage(e){this.currentIndex=e,this.getData()},async getSingInfo(){v.get("/api/Level/is_singer",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;this.userSinger=!0,this.userSingerLevel=Number(t.level)})).catch((e=>{this.userSinger=!1}))},async getCharmLevel(){v.get("/api/Level/get_level_rule",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;l&&(this.detailData=t,this.levelList=t.level.map((e=>({...e,title:e.name}))),this.levelCurrent=t.user.level,this.nextLevelData=t.level.filter((e=>e.level===t.user.level+1)),this.levelActiveData=t.level.filter((e=>e.level===t.user.level))),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},closeWeb(){const e=u().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getWealthLevel(){v.get("/api/Level/get_wealth_rule",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;l&&(this.detailData=t,this.levelList=t.level.map((e=>({...e,title:e.name}))),this.levelCurrent=t.user.level,this.nextLevelData=t.level.filter((e=>e.level===t.user.level+1)),this.levelActiveData=t.level.filter((e=>e.level===t.user.level))),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},async getSingerLevel(){v.get("/api/Level/get_singer_level",{token:o("token")||""}).then((e=>{const{data:t,code:l}=e;l&&(console.log(t),this.detailData=t,this.levelList=t.level.map((e=>({...e,title:e.name}))),this.levelCurrent=Number(t.user.level),this.nextLevelData=t.level.filter((e=>e.level===Number(t.user.level)+1)),this.levelActiveData=t.level.filter((e=>e.level===Number(t.user.level)))),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))}}},[["render",function(a,s,c,o,v,u){const _=f,y=m,D=d("LevelProgress");return v.levelActiveData&&v.detailData?(e(),g(_,{key:0,class:"view-page"},{default:h((()=>[A(_,{class:"top-view"},{default:h((()=>[A(_,{class:"navbar",style:p({"margin-top":`${v.statusBarHeight||0}px`})},{default:h((()=>[A(_,{class:""},{default:h((()=>[l("img",{onClick:s[0]||(s[0]=(...e)=>u.closeWeb&&u.closeWeb(...e)),class:"icon-image",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAARtJREFUaEPt2GEKwjAMBeAEvKWCHkFPokdQ0FsKkcKEMaY0a17SQvxdy/uSDtIyDf7jwfNTAqI7mB3IDjRWII+QpoAisieiHTM/NP/7t9atAyJyJaLzFObAzC8LhAtgEb7kPll1AQ5YCX9j5otF9cseUAA6PBTgER4G8AoPAXiGNwd4hzcFRIQ3A0SFNwFEhm8GRIdvAvQQfjOgl/CbACJyJKL7bJYxnW20M5J6Fppm+uewgBJ86CP0rXwvCPURmp/RHhBNgB6OUzMgGmECiESYAaIQpoAIhDnAGwEBeCJgAC8EFOCBgAN+IMZ6G11BjPM2upidyl3ibfUyvelCo71woNe7fANIRAKQ1a3ZOztQUyXkmuwAsro1e38A/fyfMZa6LOQAAAAASUVORK5CYII=",alt:""})])),_:1}),A(_,{class:"tab"},{default:h((()=>[A(_,{onClick:s[1]||(s[1]=e=>u.cutTabPage(0)),class:i(0==v.currentIndex?"active":"")},{default:h((()=>[x(" 财富等级 ")])),_:1},8,["class"]),A(_,{onClick:s[2]||(s[2]=e=>u.cutTabPage(1)),class:i(1==v.currentIndex?"active":"")},{default:h((()=>[x(" 魅力等级 ")])),_:1},8,["class"]),v.userSinger?(e(),g(_,{key:0,onClick:s[3]||(s[3]=e=>u.cutTabPage(2)),class:i(2==v.currentIndex?"active":"")},{default:h((()=>[x(" 歌手等级 ")])),_:1},8,["class"])):r("",!0)])),_:1}),A(_,{class:"icon-image"})])),_:1},8,["style"]),v.levelActiveData.length?(e(),g(_,{key:0,class:"swiper-view"},{default:h((()=>[A(_,{class:"swiper-image",style:p({"background-image":`url('${v.levelActiveData[0].bg_image}')`})},{default:h((()=>[A(_,{class:"view-level"},{default:h((()=>[A(_,{class:""},{default:h((()=>[A(_,{class:"level-str",style:p({textShadow:`0px 0px 5px ${v.levelActiveData[0].color}`})},{default:h((()=>[x(n(v.levelActiveData[0].name),1)])),_:1},8,["style"]),A(_,{class:"color-9 flex-line",style:{"font-size":"20rpx"}},{default:h((()=>[l("span",{style:{"white-space":"nowrap"}},n(`lv.${v.levelActiveData[0].level}`),1),A(y,{style:{width:"200rpx",margin:"0 24rpx"},"border-radius":52,percent:3,activeColor:v.levelActiveData[0].color,"stroke-width":"3"},null,8,["activeColor"]),l("span",{style:{"white-space":"nowrap"}},n(`lv.${v.nextLevelData[0].level}`),1)])),_:1}),A(_,{class:"color-9 mt-24",style:{"font-size":"20rpx"}},{default:h((()=>[x(" 距离下一个段位还差"+n(v.detailData.user.next_exp)+"经验值 ",1)])),_:1})])),_:1}),[1,2].includes(v.currentIndex)?(e(),g(_,{key:0,style:{width:"196rpx",height:"196rpx"}},{default:h((()=>[l("img",{src:v.levelActiveData[0].rights_icon,alt:""},null,8,["src"])])),_:1})):r("",!0)])),_:1})])),_:1},8,["style"])])),_:1})):r("",!0),A(_,{class:"LevelProgress-view"},{default:h((()=>[A(D,{currentIndex:v.levelCurrent,lvList:v.levelList},null,8,["currentIndex","lvList"])])),_:1}),A(_,{class:"w-fill flex-line business-card"},{default:h((()=>[A(_,{class:""},{default:h((()=>[A(_,{class:"font-36 color-0D"},{default:h((()=>[x(n(v.detailData.user.exp||0),1)])),_:1}),A(_,{class:"font-24 color-f"},{default:h((()=>[x(" 当前经验 ")])),_:1})])),_:1}),A(_,{class:"head-sculpture"},{default:h((()=>[l("img",{src:v.detailData.user.user_avatar||v.logo,alt:""},null,8,["src"])])),_:1}),A(_,{class:""},{default:h((()=>[A(_,{class:"font-36 color-0D"},{default:h((()=>[x(n(v.detailData.user.next_exp),1)])),_:1}),A(_,{class:"font-24 color-f"},{default:h((()=>[x(" 下个等级 ")])),_:1})])),_:1})])),_:1}),v.detailData?(e(),g(_,{key:1,class:"content-view"},{default:h((()=>[A(_,{class:"font-32 color-3 font-w500"},{default:h((()=>[x(n(`如何获得${1===v.currentIndex?"魅力":2===v.currentIndex?"歌手经验":"财富"}值?`),1)])),_:1}),A(_,{class:"mt-24 color-3 font-w400",style:{"font-size":"28rpx"}},{default:h((()=>[x(n(""+(1===v.currentIndex?`在平台收到的所有打赏均可转化为魅力值,具体比例为1金币=${v.detailData.coin_charm_exp}魅力值。`:2===v.currentIndex?`在平台的所有打赏均可转化为歌手经验值,具体比例为1金币=${v.detailData.singer_coin_exp}经验值`:`在平台的所有打赏均可转化为财富值,具体比例为1金币=${v.detailData.coin_wealth_exp}财富值。`)),1)])),_:1}),A(_,{class:"mt-24"},{default:h((()=>[v.currentIndex?r("",!0):(e(),t("img",{key:0,src:a.$config.wealth_url,alt:""},null,8,["src"])),1==v.currentIndex?(e(),t("img",{key:1,src:a.$config.charm_url,alt:""},null,8,["src"])):r("",!0),2==v.currentIndex?(e(),t("img",{key:2,src:a.$config.singer_url,alt:""},null,8,["src"])):r("",!0)])),_:1})])),_:1})):r("",!0)])),_:1})])),_:1})):r("",!0)}],["__scopeId","data-v-20df0c35"]]);export{w as default}; diff --git a/unpackage/dist/build/web/assets/pages-other-gradeRule.ClaL3hLw.js b/unpackage/dist/build/web/assets/pages-other-gradeRule.D1gBGQhG.js similarity index 87% rename from unpackage/dist/build/web/assets/pages-other-gradeRule.ClaL3hLw.js rename to unpackage/dist/build/web/assets/pages-other-gradeRule.D1gBGQhG.js index 2857c2b5..8cc773f7 100644 --- a/unpackage/dist/build/web/assets/pages-other-gradeRule.ClaL3hLw.js +++ b/unpackage/dist/build/web/assets/pages-other-gradeRule.D1gBGQhG.js @@ -1 +1 @@ -import{c as a,g as e,r as t,f as s,w as l,i as n,j as r,o,k as p,m as i,G as h}from"./index-BifMHC6c.js";import{n as d}from"./nav.CvI0lGd-.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=g({components:{navBar:d},data:()=>({httpUrl:null,statusBarHeight:0,flagIndex:null,ThemeData:null}),onLoad(t){const{h:s,flag:l}=t;this.flagIndex=+l,this.httpUrl=a.BASE_URL,this.statusBarHeight=s,e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))}},[["render",function(a,e,d,g,u,m){const c=t("navBar"),f=h,_=r;return o(),s(_,{class:"view-page",style:n({backgroundImage:`url('${u.ThemeData?u.ThemeData.app_bg:a.baseBgUrl}')`})},{default:l((()=>[p(c,{navTitle:"规则说明",style:n({"margin-top":`${u.statusBarHeight||0}px`})},null,8,["style"]),null!==u.flagIndex?(o(),s(_,{key:0,class:"dec-view"},{default:l((()=>[p(f,{src:`${u.httpUrl}/api/Page/page_show?id=${1===u.flagIndex?10:11}`},null,8,["src"])])),_:1})):i("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-490dde42"]]);export{u as default}; +import{c as a,g as e,r as t,f as s,w as l,i as n,j as r,o,k as p,m as i,H as h}from"./index-759PoYgM.js";import{n as d}from"./nav.BBjj-z52.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=g({components:{navBar:d},data:()=>({httpUrl:null,statusBarHeight:0,flagIndex:null,ThemeData:null}),onLoad(t){const{h:s,flag:l}=t;this.flagIndex=+l,this.httpUrl=a.BASE_URL,this.statusBarHeight=s,e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))}},[["render",function(a,e,d,g,u,m){const c=t("navBar"),f=h,_=r;return o(),s(_,{class:"view-page",style:n({backgroundImage:`url('${u.ThemeData?u.ThemeData.app_bg:a.baseBgUrl}')`})},{default:l((()=>[p(c,{navTitle:"规则说明",style:n({"margin-top":`${u.statusBarHeight||0}px`})},null,8,["style"]),null!==u.flagIndex?(o(),s(_,{key:0,class:"dec-view"},{default:l((()=>[p(f,{src:`${u.httpUrl}/api/Page/page_show?id=${1===u.flagIndex?10:11}`},null,8,["src"])])),_:1})):i("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-490dde42"]]);export{u as default}; diff --git a/unpackage/dist/build/web/assets/pages-other-income.Cdd8_QPJ.js b/unpackage/dist/build/web/assets/pages-other-income.GmFhI_mf.js similarity index 97% rename from unpackage/dist/build/web/assets/pages-other-income.Cdd8_QPJ.js rename to unpackage/dist/build/web/assets/pages-other-income.GmFhI_mf.js index f4dbfefe..14801240 100644 --- a/unpackage/dist/build/web/assets/pages-other-income.Cdd8_QPJ.js +++ b/unpackage/dist/build/web/assets/pages-other-income.GmFhI_mf.js @@ -1 +1 @@ -import{o as t,f as e,w as a,k as i,q as s,u as l,F as n,j as o,i as d,p as c,t as A,l as r,m as u,J as g,c as f,s as h,g as p,b as w,K as v,L as m,h as C,D as b,E,e as k,r as B,z as y,A as D,I as H}from"./index-BifMHC6c.js";import{_ as I}from"./uni-icons.CP-9I_4O.js";import{r as P}from"./uni-app.es.BM6_Rfsu.js";import{h as U}from"./headerHeight.DQi3EG4R.js";import{_ as Q}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{N as M}from"./tab.DH0wT1MO.js";const R="data:image/png;base64,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";const x=Q({components:{NavigationTabs:M,headerHeight:U,Table:Q({props:{tableData:{},tableLabel:[]},data:()=>({icon:R,columns:[]}),created(){this.tableLabel&&this.tableLabel.length?this.columns=[...this.tableLabel]:this.columns=[{title:"昵称",key:"nickname",width:"50%"},{title:"时间",key:"createtime",width:"50%"}]}},[["render",function(g,f,h,p,w,v){const m=o;return t(),e(m,{class:"table"},{default:a((()=>[i(m,{class:"tr header"},{default:a((()=>[(t(!0),s(n,null,l(w.columns,(i=>(t(),e(m,{class:"th",style:d({width:i.width}),key:i.key},{default:a((()=>[c(A(i.title),1)])),_:2},1032,["style"])))),128))])),_:1}),(t(!0),s(n,null,l(h.tableData,((i,o)=>(t(),e(m,{class:"tr",key:o},{default:a((()=>[(t(!0),s(n,null,l(w.columns,(l=>(t(),e(m,{class:"td color-6",style:d([{display:"inline-flex","align-items":"center","justify-content":"flex-start"},{width:l.width}]),key:l.key},{default:a((()=>[r("span",{class:"truncate"},A(i[l.key]),1),"earnings"===l.key?(t(),s("img",{key:0,style:{width:"20rpx",height:"20rpx","margin-left":"10rpx"},src:w.icon,alt:""},null,8,["src"])):u("",!0)])),_:2},1032,["style"])))),128))])),_:2},1024)))),128))])),_:1})}],["__scopeId","data-v-4c4e3493"]]),MiddlePopup:Q({name:"MiddlePopup",data:()=>({isVisible:!1}),methods:{openPopup(){this.isVisible=!0,document.body.style.overflow="hidden"},closePopup(){this.isVisible=!1,document.body.style.overflow="auto"}}},[["render",function(e,a,i,l,n,o){return n.isVisible?(t(),s("div",{key:0,class:"popup-container"},[r("div",{class:"popup-content"},[g(e.$slots,"default",{},void 0,!0)])])):u("",!0)}],["__scopeId","data-v-df836264"]])},data:()=>({ConfigData:f,PopupStatus:!1,errorPage:!1,detailData:null,currentIndex:0,listData:[{icon:R,prop:"diamond_total",value:120,title:"钻石余额"},{icon:R,value:200,prop:"today_earnings",title:"今日收益"},{icon:R,value:200,prop:"total_earnings",title:"累计收益"}],statusBarHeight:0,bindValue:"",dataList:[],isShow:!0,columns:[{title:"昵称",key:"nickname",width:"20%"},{title:"时间",key:"createtime",width:"35%"},{title:"充值金币",key:"coin",width:"30%"},{title:"获得收益",key:"earnings",width:"30%"}]}),onLoad(t){const{id:e,h:a,is_show:i}=t;if(h("token",e),i){const t=Number(i);this.isShow=1===t}p("token")&&this.gettabs(),this.statusBarHeight=this.getStatusBarHeight(),this.statusBarHeight=a},methods:{copyText(t){if(t){if("h5"===w().platform){const e=document.createElement("textarea");return e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),void v({title:"复制成功",icon:"none"})}m({data:t,success:()=>{v({title:"已复制到剪贴板",icon:"none",duration:1500})},fail:()=>{v({title:"复制失败,请重试",icon:"none"})}})}else v({title:"暂无可复制文本",icon:"none"})},getStatusBarHeight(){const t=w();return h("BarHeight",t.statusBarHeight),t.statusBarHeight||0},closeWeb(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===t&&window.Android.closeWeb()},async gettabs(){C.get("/api/Invited/get_init_code",{token:p("token")||""}).then((t=>{const{data:e,code:a}=t;a&&(this.detailData=e),this.$nextTick((()=>{this.getData()})),this.errorPage=!1})).catch((t=>{this.errorPage=!0}))},getData(){this.currentIndex?this.getBillList():this.getInvitedList()},getInvitedList(){C.get("/api/Invited/invited_list",{token:p("token")||""}).then((t=>{const{data:e,code:a}=t;a&&(this.dataList=e)})).catch((t=>{}))},getBillList(){C.get("/api/Invited/bill_list",{token:p("token")||""}).then((t=>{const{data:e,code:a}=t;a&&(this.dataList=e)})).catch((t=>{this.errorPage=!0}))},Withdrawal(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"Withdrawal"}):"android"===t&&window.Android.Withdrawal()},invite(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"inviteUser"}):"android"===t&&window.Android.inviteUser()},exChangeData(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"exchange"}):"android"===t&&window.Android.exchange()},closePopup(){this.$refs.popup.close()},handleTabChange({index:t,tab:e}){this.currentIndex=t,this.getData()},bind(){this.PopupStatus=!0,this.$refs.bindPopup.openPopup()},closeBind(){this.$refs.bindPopup.closePopup(),this.PopupStatus=!1},decorate(){this.bindValue?(b({mask:!0}),C.post("/api/Invited/invited_bind",{token:p("token")||"",init_code:this.bindValue}).then((t=>{const{data:e,code:a,msg:i}=t;a?(v({title:"绑定成功",icon:"none",mask:!0,duration:1e3}),E(),this.closeBind()):(v({title:i,icon:"none",mask:!0,duration:1e3}),E(),this.closeBind())})).catch((t=>{}))):v({title:"请输入邀请码",icon:"none",mask:!0,duration:1e3})}}},[["render",function(g,f,h,p,v,m){const C=P(k("uni-icons"),I),b=o,E=B("NavigationTabs"),U=B("Table"),Q=H,M=B("middle-popup");return t(),e(b,{class:"view-page"},{default:a((()=>[i(b,{class:"nav w-fill flex-line",style:d({marginTop:`${v.statusBarHeight}${"ios"===w().platform?"px":"dp"}`})},{default:a((()=>[i(b,{class:"icon-image",onClick:m.closeWeb},{default:a((()=>[i(C,{type:"left",size:"24"})])),_:1},8,["onClick"]),i(b,{class:"color-3 title font-w500 font-32"},{default:a((()=>[c(" 邀请收益 ")])),_:1}),i(b,{class:"font-24",onClick:m.bind,style:{color:"#FF8ACC"}},{default:a((()=>[c(" 手动绑定 ")])),_:1},8,["onClick"])])),_:1},8,["style"]),v.detailData?(t(),e(b,{key:0,class:"content-view"},{default:a((()=>[i(b,{class:"content"},{default:a((()=>[i(b,{class:"nav-coinList flex-container"},{default:a((()=>[(t(!0),s(n,null,l(v.listData,((s,l)=>(t(),e(b,{key:l,class:"flex-item decorate-box flex-line"},{default:a((()=>[i(b,{class:"image-icon"},{default:a((()=>[r("img",{src:s.icon,alt:""},null,8,["src"])])),_:2},1024),i(b,{class:"decorate-title"},{default:a((()=>[i(b,{class:"title font-24 font-w400"},{default:a((()=>[c(A(s.title),1)])),_:2},1024),i(b,{class:"value font-24 font-w400 flex-line"},{default:a((()=>[i(b,{class:""},{default:a((()=>[c(A(v.detailData[s.prop]),1)])),_:2},1024),l?u("",!0):(t(),e(b,{key:0,class:"ml-6",onClick:m.exChangeData,style:{width:"68rpx",height:"32rpx"}},{default:a((()=>[r("img",{src:"data:image/png;base64,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",alt:""})])),_:1},8,["onClick"]))])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),i(b,{class:"title-view"},{default:a((()=>[i(b,{class:"QRCode-view w-fill flex-line flex-spaceB"},{default:a((()=>[i(b,{class:"flex-line w-fill flex-spaceB"},{default:a((()=>[i(b,{class:""},{default:a((()=>[i(b,{class:"color-3 font-32 font-w500"},{default:a((()=>[c(A(v.ConfigData.BASE_NAME),1)])),_:1}),i(b,{class:"color-3 font-32 mt-24 font-w500"},{default:a((()=>[c(" 邀请码 ")])),_:1}),i(b,{class:"color-6 font-24 mt-24"},{default:a((()=>[c(A(v.detailData.invited_draw||0)+"%为邀请收益 ",1)])),_:1})])),_:1}),i(b,{class:"QRCodeImage"})])),_:1}),i(b,{class:"flex-line w-fill mt-24 flex-spaceB"},{default:a((()=>[i(b,{class:"Code-view color-3 font-w500",style:{"letter-spacing":"44rpx","text-align":"center"}},{default:a((()=>[c(A(v.detailData.init_code),1)])),_:1}),i(b,{class:"copy-button color-3 font-w500 font-24",onClick:f[0]||(f[0]=t=>m.copyText(v.detailData.init_code))},{default:a((()=>[c(" 复制 ")])),_:1})])),_:1})])),_:1}),i(b,{class:"NavigationTabs-view"},{default:a((()=>[i(E,{"tabs-data":[{type:1,value:"我的邀请"},{type:2,value:"账单明细"}],"default-active":v.currentIndex,onTabChange:m.handleTabChange},null,8,["default-active","onTabChange"]),v.currentIndex?(t(),e(U,{key:1,tableData:v.dataList,tableLabel:v.columns},null,8,["tableData","tableLabel"])):(t(),e(U,{key:0,tableData:v.dataList},null,8,["tableData"]))])),_:1})])),_:1}),v.isShow?(t(),e(b,{key:0,class:"tiXian",onClick:m.Withdrawal},{default:a((()=>[r("img",{src:"data:image/png;base64,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",alt:""})])),_:1},8,["onClick"])):u("",!0)])),_:1})])),_:1})):u("",!0),y(i(M,{ref:"bindPopup"},{default:a((()=>[i(b,{class:"bindPopup-view"},{default:a((()=>[i(b,{class:"bindPopup-Content"},{default:a((()=>[i(b,{class:"bind-title font-32 font-w500 color-3"},{default:a((()=>[i(b,{class:""},{default:a((()=>[c(" 手动绑定 ")])),_:1}),r("img",{onClick:f[1]||(f[1]=(...t)=>m.closeBind&&m.closeBind(...t)),class:"closeIcon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAXCAYAAAAP6L+eAAAAAXNSR0IArs4c6QAAA15JREFUSEuVlU1oVFcUx//nvpk7bfyikDZRm4ULF4Lool1Id01CN4HWRRIFRRSVx3xklIBSKMJQSkupDfgyH3lJhFZE0BGKCxcuMl0VBHUREV24cKXGRCxJjWXevLmn74RMmEzei+lZvXfvOT/OPed/zyUElsvldFdXV7sxRhlj3ti2/U7WN2ojIyMfJhKJdqWUUUrN2rZdI9d125n5RyL6BoAGUAng2WQy+Xwj4FKptFMpdRFAHzN7RHSrVqudp/HxcYeZk0RkMTMBqDPzX0R02Lbtl+vBXdfdzszXiegLANaybx2AIxnPAWhvBjCzAfBnvV4/mk6nZ8LghUKh07KsqwC+JCLV4vNKwAsAtoQES+Z3mPlEMpmcbd4vlUqfAPhNKfVVU6bNLvMCvgzgBAApQ6v5zHzb87zT2WxWTgbHcT7WWk8QUR+AWEgMA7hKjuN8qrW+QUQHIuA1Zv7D9/2UQGKxWImIDgKIh0GZ+a7neYOSJRWLxV1KKWnCZ+vAr8seEQ2uA31gjDmUSqWeNY5P+Xx+dywWk8z3RcC95QxFkq3GzPzQ9/3BTCbzFMCSvJZMpDY6OrpHa10moj0R8DCBSE0fV6vVwaGhoSdEJP+rGybwfD6/V2t9E8DuDcAF8tTzvP5MJvOoAV0DbmQ+MTGxX9QAYMd7bt8L3/f7UqnUdDM0FCyLhUJhs2VZl5cbFcmWW1ev10+l0+m3rU5rtOu6bhuAcwDOA5Dv9ewdM/9MRBdbB9cqsEyptra2s0T0HYBN74E2thcDef+wuLh4aXh4+N/G4grYcZyE1jod3Pvv/wd0BW6MuVCr1YrZbLa6UmOBxuPx00T0U3CszaGaYn69FEC0amA1yfUtEX1brVYnBS6zIm6MOa6U+jViGInG/2bmk8tgaepHEWX6B8AwgN9pbGysH4A4b41wnvd9356bmyvLfmdn5wARuQC2RZxswbKsY5LxNAC5xmuMmUVGyZmZmWu5XE5mtDxjqqOj4wgRFaPKBmBawNLJD0K4IqXM1NTUlXK5LK/Cig0MDFg9PT3HgnrnwyTJzL6A7wH4vDmQmatBXc9UKpXJVmjDT+Dd3d2ngnpfCpqeaEnsvrx5XzOz1K8xtTxjzLlKpVKIgjbDe3t704E8f2nEM7NU4Oh/ZrN/+4E7kXMAAAAASUVORK5CYII=",alt:""})])),_:1}),i(b,{class:"bind-input"},{default:a((()=>[i(Q,{class:"uni-input",modelValue:v.bindValue,"onUpdate:modelValue":f[2]||(f[2]=t=>v.bindValue=t),placeholder:"输入好友邀请码"},null,8,["modelValue"])])),_:1}),i(b,{class:"color-3 font-w400 font-24",style:{"text-align":"left"}},{default:a((()=>[c(A(v.detailData.explain),1)])),_:1}),i(b,{class:"bind-footer",onClick:m.decorate},{default:a((()=>[i(b,{class:"confirm-button flex-line"},{default:a((()=>[c(" 确定 ")])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512),[[D,v.PopupStatus]])])),_:1})}],["__scopeId","data-v-c26c9f91"]]);export{x as default}; +import{o as t,f as e,w as a,k as i,q as s,u as l,F as n,j as o,i as d,p as c,t as A,l as r,m as u,K as g,c as f,s as h,g as p,b as w,z as v,L as m,h as C,x as b,y as E,e as k,r as B,C as y,D,I as H}from"./index-759PoYgM.js";import{_ as I}from"./uni-icons.BNs6RC_T.js";import{r as P}from"./uni-app.es.Hulr8kk-.js";import{h as U}from"./headerHeight.UQ4SBLpb.js";import{_ as Q}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{N as M}from"./tab.Nc_JIfEj.js";const R="data:image/png;base64,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";const x=Q({components:{NavigationTabs:M,headerHeight:U,Table:Q({props:{tableData:{},tableLabel:[]},data:()=>({icon:R,columns:[]}),created(){this.tableLabel&&this.tableLabel.length?this.columns=[...this.tableLabel]:this.columns=[{title:"昵称",key:"nickname",width:"50%"},{title:"时间",key:"createtime",width:"50%"}]}},[["render",function(g,f,h,p,w,v){const m=o;return t(),e(m,{class:"table"},{default:a((()=>[i(m,{class:"tr header"},{default:a((()=>[(t(!0),s(n,null,l(w.columns,(i=>(t(),e(m,{class:"th",style:d({width:i.width}),key:i.key},{default:a((()=>[c(A(i.title),1)])),_:2},1032,["style"])))),128))])),_:1}),(t(!0),s(n,null,l(h.tableData,((i,o)=>(t(),e(m,{class:"tr",key:o},{default:a((()=>[(t(!0),s(n,null,l(w.columns,(l=>(t(),e(m,{class:"td color-6",style:d([{display:"inline-flex","align-items":"center","justify-content":"flex-start"},{width:l.width}]),key:l.key},{default:a((()=>[r("span",{class:"truncate"},A(i[l.key]),1),"earnings"===l.key?(t(),s("img",{key:0,style:{width:"20rpx",height:"20rpx","margin-left":"10rpx"},src:w.icon,alt:""},null,8,["src"])):u("",!0)])),_:2},1032,["style"])))),128))])),_:2},1024)))),128))])),_:1})}],["__scopeId","data-v-4c4e3493"]]),MiddlePopup:Q({name:"MiddlePopup",data:()=>({isVisible:!1}),methods:{openPopup(){this.isVisible=!0,document.body.style.overflow="hidden"},closePopup(){this.isVisible=!1,document.body.style.overflow="auto"}}},[["render",function(e,a,i,l,n,o){return n.isVisible?(t(),s("div",{key:0,class:"popup-container"},[r("div",{class:"popup-content"},[g(e.$slots,"default",{},void 0,!0)])])):u("",!0)}],["__scopeId","data-v-df836264"]])},data:()=>({ConfigData:f,PopupStatus:!1,errorPage:!1,detailData:null,currentIndex:0,listData:[{icon:R,prop:"diamond_total",value:120,title:"钻石余额"},{icon:R,value:200,prop:"today_earnings",title:"今日收益"},{icon:R,value:200,prop:"total_earnings",title:"累计收益"}],statusBarHeight:0,bindValue:"",dataList:[],isShow:!0,columns:[{title:"昵称",key:"nickname",width:"20%"},{title:"时间",key:"createtime",width:"35%"},{title:"充值金币",key:"coin",width:"30%"},{title:"获得收益",key:"earnings",width:"30%"}]}),onLoad(t){const{id:e,h:a,is_show:i}=t;if(h("token",e),i){const t=Number(i);this.isShow=1===t}p("token")&&this.gettabs(),this.statusBarHeight=this.getStatusBarHeight(),this.statusBarHeight=a},methods:{copyText(t){if(t){if("h5"===w().platform){const e=document.createElement("textarea");return e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),void v({title:"复制成功",icon:"none"})}m({data:t,success:()=>{v({title:"已复制到剪贴板",icon:"none",duration:1500})},fail:()=>{v({title:"复制失败,请重试",icon:"none"})}})}else v({title:"暂无可复制文本",icon:"none"})},getStatusBarHeight(){const t=w();return h("BarHeight",t.statusBarHeight),t.statusBarHeight||0},closeWeb(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===t&&window.Android.closeWeb()},async gettabs(){C.get("/api/Invited/get_init_code",{token:p("token")||""}).then((t=>{const{data:e,code:a}=t;a&&(this.detailData=e),this.$nextTick((()=>{this.getData()})),this.errorPage=!1})).catch((t=>{this.errorPage=!0}))},getData(){this.currentIndex?this.getBillList():this.getInvitedList()},getInvitedList(){C.get("/api/Invited/invited_list",{token:p("token")||""}).then((t=>{const{data:e,code:a}=t;a&&(this.dataList=e)})).catch((t=>{}))},getBillList(){C.get("/api/Invited/bill_list",{token:p("token")||""}).then((t=>{const{data:e,code:a}=t;a&&(this.dataList=e)})).catch((t=>{this.errorPage=!0}))},Withdrawal(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"Withdrawal"}):"android"===t&&window.Android.Withdrawal()},invite(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"inviteUser"}):"android"===t&&window.Android.inviteUser()},exChangeData(){const t=w().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"exchange"}):"android"===t&&window.Android.exchange()},closePopup(){this.$refs.popup.close()},handleTabChange({index:t,tab:e}){this.currentIndex=t,this.getData()},bind(){this.PopupStatus=!0,this.$refs.bindPopup.openPopup()},closeBind(){this.$refs.bindPopup.closePopup(),this.PopupStatus=!1},decorate(){this.bindValue?(b({mask:!0}),C.post("/api/Invited/invited_bind",{token:p("token")||"",init_code:this.bindValue}).then((t=>{const{data:e,code:a,msg:i}=t;a?(v({title:"绑定成功",icon:"none",mask:!0,duration:1e3}),E(),this.closeBind()):(v({title:i,icon:"none",mask:!0,duration:1e3}),E(),this.closeBind())})).catch((t=>{}))):v({title:"请输入邀请码",icon:"none",mask:!0,duration:1e3})}}},[["render",function(g,f,h,p,v,m){const C=P(k("uni-icons"),I),b=o,E=B("NavigationTabs"),U=B("Table"),Q=H,M=B("middle-popup");return t(),e(b,{class:"view-page"},{default:a((()=>[i(b,{class:"nav w-fill flex-line",style:d({marginTop:`${v.statusBarHeight}${"ios"===w().platform?"px":"dp"}`})},{default:a((()=>[i(b,{class:"icon-image",onClick:m.closeWeb},{default:a((()=>[i(C,{type:"left",size:"24"})])),_:1},8,["onClick"]),i(b,{class:"color-3 title font-w500 font-32"},{default:a((()=>[c(" 邀请收益 ")])),_:1}),i(b,{class:"font-24",onClick:m.bind,style:{color:"#FF8ACC"}},{default:a((()=>[c(" 手动绑定 ")])),_:1},8,["onClick"])])),_:1},8,["style"]),v.detailData?(t(),e(b,{key:0,class:"content-view"},{default:a((()=>[i(b,{class:"content"},{default:a((()=>[i(b,{class:"nav-coinList flex-container"},{default:a((()=>[(t(!0),s(n,null,l(v.listData,((s,l)=>(t(),e(b,{key:l,class:"flex-item decorate-box flex-line"},{default:a((()=>[i(b,{class:"image-icon"},{default:a((()=>[r("img",{src:s.icon,alt:""},null,8,["src"])])),_:2},1024),i(b,{class:"decorate-title"},{default:a((()=>[i(b,{class:"title font-24 font-w400"},{default:a((()=>[c(A(s.title),1)])),_:2},1024),i(b,{class:"value font-24 font-w400 flex-line"},{default:a((()=>[i(b,{class:""},{default:a((()=>[c(A(v.detailData[s.prop]),1)])),_:2},1024),l?u("",!0):(t(),e(b,{key:0,class:"ml-6",onClick:m.exChangeData,style:{width:"68rpx",height:"32rpx"}},{default:a((()=>[r("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAkCAYAAAAq23xmAAAAAXNSR0IArs4c6QAACEVJREFUaEPtWn1sU9cV/91nP+fTThyykKiokA1VTcfUgUC0EqhZpa3pQuysmdpsdKyIgcbCWFKtbClRunbpUg22pCiMrR2CMrGydaPkA7qtG0sFakEgPlbWAMoGQ0xx0gQnzocdO353Oje2a8fPfu85CIq691ece+655/7e+T6PweDjfuzL8wNBeZUCvgLAvQAWAMg1yOaWkHPOBxmDi4FdZFC6ZZPSZT945D9GDmd6iP9eWmr+rM22WmHYBGCpnj0fWxrOT4DxVu/IWHtxd7dPS05NgPocjnLG0ApgoRazO2mdc35RYkrt3PbDf04md0KArpSWpmfmWHdxsKfupIsblZWB750YGd2YSJtUAbr+6KPzzBb5zTvenPSjdW7KH6iY99Zb12duiQMoBM6xkPPVf8SdT3l1yh9YOROkGIDIrDJybO8B+Lzh+0oSoCja2/TShTixrCwgGAT3JfCnxI8ePWdrSMc5Tvs8npXR5hYDUL+zYk8qPsdcXIzcLT+A951ujB84kFQM67p1sCxdBs/ONgQuXNAEdO6hdvgvvA93Q4MqbfrDD8NWswlj+/Zhov2QJj8tAvJJc9s714bpIgD1O52PcPA/aTFQXZdl5DW/BALKXf9DBC5fViUzFRRgTttOKOPjuFFXC2V4WPO4pADJMvJ3/gJSbi4GN6yP52dQW8PCcB5cVdRx+DD9FgCRaaXbrGcZY5T4pfSY774beS2tCPb1YaiuFggE4vjkNj6HtCVLMLx9GyaPH9d1TjKAsqqrkV39tYR8pq5fh/uF56EMDOg6K0LEeW+PZ7TkC93dUwIgl3PVE4CU3DZ0HGFdvwGZ5eUY3fcaJg4ejNlBppCz+XvwHv0bPDt26OA2TZIIIPmee2BvehHKsBu+kydj+JkLi5C2bBmCA/0YrKlRfVlaAnAefKqo4/Br0wA5HO+B4QGtTXHrkiQEidir1Yrs1U9i4tCbCLpcH5FLJuTU1QEmE0Zafh4j8OSpU3EOlkxVOGcAeU0vInDl3xjdvVv8Jr9FpkrgkGm5G7bGmrQsY872n8FUVIQb9fWY+lev4WvRBnLYRR0dy1hfZdkCxi1XUuFClyjY/9tUtkb2DKz+Ovj4eAwPe1MTLIs+p8qXfA2BQyCN7tkD71/fjqHLqa0TL82zaxd8xylbQRx/vQIrgakFbMDprFHA2/RuiqYLA+S/dAkTB/9oiAVFM1PBXKgBZFm8GJLdLviRWZIvGQ/xNxUWIfvxxw2d1V/pNEQfJuZQNrF+p+MNDnw1FQ5hgHwnT2CkudkQi7yWFsjFn1YFKJpRnA+SJGSvWYOsyq+Azp0M+R9LSQkyvvgleN/+C/w9PYJF1mNVMM+bh1QBAscB5nJWvA+wRYZuFyK+LQABkBctEr5p7MDrkbwrHARGdrwM39GjQsKwqaYMEHCOuRwVH4Kx/P8DpIrAMHM5HTwVcGjPrdSg4eZmpC1fjsl334V54cJbpUG4KQApHg+mrhlq1EH+zEKwjIykPkgqKMCnXnkVitcLZrGAmUwY2vKM+HumiWU8Ugbbxo0xSehNMDEBkDvVlilp0JyWlhgFlKw2cfGg2w0E/NNrsgUmux3K+FhcyB3avDm2ECUnvPpJWJYsgVxcPB2mg0FMnj4lHHIiDaKomFnhEFn81JXprGXWAFHL1uV0nE2pek9gl7lbG0QeMrj5uwheuyaoyDRy65+NcarJzDpPJHqFmDxzFhkrV8YUq/mvvArJahUvgfv94KGShqWnCw2jOi/8RP+PElJPa+zL1HYt/AIB9DqAam1ifRT5v94NyWbDQPUTkQzZKECmu+4SNR21MGaGeeu3N4JZ5BhhKGkMJ5aUMwUuX4oTNtDbC++RI/ouEaLiHH+YVaI48zRTYSHyf/kr+D/4AO5n6yPLRgGK5qvV7iDanPp6pC9/QCSU9HIGa74DPjpqCAw1YpEo0hhnMmi+OmtuAMJ+gEqA6N6MJkCynLCg1AIo7Jx9x45horMD9uaX4D9/HsNNP551Ey2NSg0CxuV0nJpt/1kuKYH9+ReEDxjaVBPjjLUAsv+kWRSV4YJUrwalr1gBW93TUIYGMVRXJ87MdFbCunbtdNegrS11kDg/UdjR+aAAaMDh+KbCsDdVLbIsXYqcuqchZWVhZPs2+Gb0erQAIsdLEe4GVfwzHlUNCkW6rKoq0dK40dAQ0/MhP5VZVobJM2dE9yA1c1OqC9u7ficAosFgSY6NChj9sy9JgnzffcisqBD2T6F4bO8eTHR2xl2Sik/7cz8CRZLxN34fiTxESA459/vPwNvdrRplZgJEZYZt/QaY588X0W2kpQXK0FDcmdnfWAMBoNuNsd/sA5mgWhNP1fdwftHnGV1MvelIy/VDh6M8yNClR4tED3prA0z50xUKCUo94UStVsqXRHgO9XjUznA3NsL/j/NiiUDL++k2MEkS4ZwuRz1sShUs998vwvvY/v3C5yRr1qc/9BCs674lHLfoazc26jI5hmBZeKCYctOe1Jge6rnoab5Tc4suR8JGP6R5gZ6eSHIXXsvZskWUMsE+l9A60hK6MPEgcNS0Rg14Ojezqgq+7nd0Nc84+N4itaY9MQ+NfajLdGfP3/WYgTrNOe+I58GEYx/a80keHJqDyor8rq7/RmOXbPRM3tb4ADH1t3f7dnKcNitK5UxwSKBP/McL5HN8Rj9eiH6VNFBUuNI6m5nZ7VONJCdz3suh1IYHhIkoNb8P+sh5ZzvBpdqUxkMfJ4Q4TksItv3TM76fBoNaoukCKJpJX1nZAlNaWjkHL+Xg94KjMNWWrZZwN2GdZttXwUEfSx2XA0qX/YixT/D+B0odMGTPjz16AAAAAElFTkSuQmCC",alt:""})])),_:1},8,["onClick"]))])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),i(b,{class:"title-view"},{default:a((()=>[i(b,{class:"QRCode-view w-fill flex-line flex-spaceB"},{default:a((()=>[i(b,{class:"flex-line w-fill flex-spaceB"},{default:a((()=>[i(b,{class:""},{default:a((()=>[i(b,{class:"color-3 font-32 font-w500"},{default:a((()=>[c(A(v.ConfigData.BASE_NAME),1)])),_:1}),i(b,{class:"color-3 font-32 mt-24 font-w500"},{default:a((()=>[c(" 邀请码 ")])),_:1}),i(b,{class:"color-6 font-24 mt-24"},{default:a((()=>[c(A(v.detailData.invited_draw||0)+"%为邀请收益 ",1)])),_:1})])),_:1}),i(b,{class:"QRCodeImage"})])),_:1}),i(b,{class:"flex-line w-fill mt-24 flex-spaceB"},{default:a((()=>[i(b,{class:"Code-view color-3 font-w500",style:{"letter-spacing":"44rpx","text-align":"center"}},{default:a((()=>[c(A(v.detailData.init_code),1)])),_:1}),i(b,{class:"copy-button color-3 font-w500 font-24",onClick:f[0]||(f[0]=t=>m.copyText(v.detailData.init_code))},{default:a((()=>[c(" 复制 ")])),_:1})])),_:1})])),_:1}),i(b,{class:"NavigationTabs-view"},{default:a((()=>[i(E,{"tabs-data":[{type:1,value:"我的邀请"},{type:2,value:"账单明细"}],"default-active":v.currentIndex,onTabChange:m.handleTabChange},null,8,["default-active","onTabChange"]),v.currentIndex?(t(),e(U,{key:1,tableData:v.dataList,tableLabel:v.columns},null,8,["tableData","tableLabel"])):(t(),e(U,{key:0,tableData:v.dataList},null,8,["tableData"]))])),_:1})])),_:1}),v.isShow?(t(),e(b,{key:0,class:"tiXian",onClick:m.Withdrawal},{default:a((()=>[r("img",{src:"data:image/png;base64,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",alt:""})])),_:1},8,["onClick"])):u("",!0)])),_:1})])),_:1})):u("",!0),y(i(M,{ref:"bindPopup"},{default:a((()=>[i(b,{class:"bindPopup-view"},{default:a((()=>[i(b,{class:"bindPopup-Content"},{default:a((()=>[i(b,{class:"bind-title font-32 font-w500 color-3"},{default:a((()=>[i(b,{class:""},{default:a((()=>[c(" 手动绑定 ")])),_:1}),r("img",{onClick:f[1]||(f[1]=(...t)=>m.closeBind&&m.closeBind(...t)),class:"closeIcon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAXCAYAAAAP6L+eAAAAAXNSR0IArs4c6QAAA15JREFUSEuVlU1oVFcUx//nvpk7bfyikDZRm4ULF4Lool1Id01CN4HWRRIFRRSVx3xklIBSKMJQSkupDfgyH3lJhFZE0BGKCxcuMl0VBHUREV24cKXGRCxJjWXevLmn74RMmEzei+lZvXfvOT/OPed/zyUElsvldFdXV7sxRhlj3ti2/U7WN2ojIyMfJhKJdqWUUUrN2rZdI9d125n5RyL6BoAGUAng2WQy+Xwj4FKptFMpdRFAHzN7RHSrVqudp/HxcYeZk0RkMTMBqDPzX0R02Lbtl+vBXdfdzszXiegLANaybx2AIxnPAWhvBjCzAfBnvV4/mk6nZ8LghUKh07KsqwC+JCLV4vNKwAsAtoQES+Z3mPlEMpmcbd4vlUqfAPhNKfVVU6bNLvMCvgzgBAApQ6v5zHzb87zT2WxWTgbHcT7WWk8QUR+AWEgMA7hKjuN8qrW+QUQHIuA1Zv7D9/2UQGKxWImIDgKIh0GZ+a7neYOSJRWLxV1KKWnCZ+vAr8seEQ2uA31gjDmUSqWeNY5P+Xx+dywWk8z3RcC95QxFkq3GzPzQ9/3BTCbzFMCSvJZMpDY6OrpHa10moj0R8DCBSE0fV6vVwaGhoSdEJP+rGybwfD6/V2t9E8DuDcAF8tTzvP5MJvOoAV0DbmQ+MTGxX9QAYMd7bt8L3/f7UqnUdDM0FCyLhUJhs2VZl5cbFcmWW1ev10+l0+m3rU5rtOu6bhuAcwDOA5Dv9ewdM/9MRBdbB9cqsEyptra2s0T0HYBN74E2thcDef+wuLh4aXh4+N/G4grYcZyE1jod3Pvv/wd0BW6MuVCr1YrZbLa6UmOBxuPx00T0U3CszaGaYn69FEC0amA1yfUtEX1brVYnBS6zIm6MOa6U+jViGInG/2bmk8tgaepHEWX6B8AwgN9pbGysH4A4b41wnvd9356bmyvLfmdn5wARuQC2RZxswbKsY5LxNAC5xmuMmUVGyZmZmWu5XE5mtDxjqqOj4wgRFaPKBmBawNLJD0K4IqXM1NTUlXK5LK/Cig0MDFg9PT3HgnrnwyTJzL6A7wH4vDmQmatBXc9UKpXJVmjDT+Dd3d2ngnpfCpqeaEnsvrx5XzOz1K8xtTxjzLlKpVKIgjbDe3t704E8f2nEM7NU4Oh/ZrN/+4E7kXMAAAAASUVORK5CYII=",alt:""})])),_:1}),i(b,{class:"bind-input"},{default:a((()=>[i(Q,{class:"uni-input",modelValue:v.bindValue,"onUpdate:modelValue":f[2]||(f[2]=t=>v.bindValue=t),placeholder:"输入好友邀请码"},null,8,["modelValue"])])),_:1}),i(b,{class:"color-3 font-w400 font-24",style:{"text-align":"left"}},{default:a((()=>[c(A(v.detailData.explain),1)])),_:1}),i(b,{class:"bind-footer",onClick:m.decorate},{default:a((()=>[i(b,{class:"confirm-button flex-line"},{default:a((()=>[c(" 确定 ")])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512),[[D,v.PopupStatus]])])),_:1})}],["__scopeId","data-v-c26c9f91"]]);export{x as default}; diff --git a/unpackage/dist/build/web/assets/pages-other-taskDesc.MywoDE-m.js b/unpackage/dist/build/web/assets/pages-other-taskDesc.DbFGA4Wj.js similarity index 86% rename from unpackage/dist/build/web/assets/pages-other-taskDesc.MywoDE-m.js rename to unpackage/dist/build/web/assets/pages-other-taskDesc.DbFGA4Wj.js index 38f00cf3..c859ad03 100644 --- a/unpackage/dist/build/web/assets/pages-other-taskDesc.MywoDE-m.js +++ b/unpackage/dist/build/web/assets/pages-other-taskDesc.DbFGA4Wj.js @@ -1 +1 @@ -import{c as a,f as e,w as s,j as r,o as t,k as l,l as o,G as n}from"./index-BifMHC6c.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=d({data:()=>({httpUrl:null,webviewStyles:{progress:{color:"transparent"},android:{hardwareAccelerated:!0,backgroundColor:"transparent"},ios:{allowsInlineMediaPlayback:!0,backgroundColor:"transparent"}}}),onLoad(){this.httpUrl=a.BASE_URL},onReady(){}},[["render",function(a,d,c,i,p,u){const w=r,g=n;return t(),e(w,{class:"view-page"},{default:s((()=>[l(w,{class:"image"},{default:s((()=>[o("img",{src:"/h5/web/assets/rule-D8yU_r7I.png",alt:""})])),_:1}),l(w,{class:"dec-view",style:{"background-color":"transparent !important"}},{default:s((()=>[l(g,{style:{backgroundColor:"transparent"},"webview-styles":p.webviewStyles,src:`${p.httpUrl}/api/Page/page_show?id=17`},null,8,["webview-styles","src"])])),_:1})])),_:1})}],["__scopeId","data-v-7097dda3"]]);export{c as default}; +import{c as a,f as e,w as s,j as r,o as t,k as l,l as o,H as n}from"./index-759PoYgM.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=d({data:()=>({httpUrl:null,webviewStyles:{progress:{color:"transparent"},android:{hardwareAccelerated:!0,backgroundColor:"transparent"},ios:{allowsInlineMediaPlayback:!0,backgroundColor:"transparent"}}}),onLoad(){this.httpUrl=a.BASE_URL},onReady(){}},[["render",function(a,d,c,i,p,u){const w=r,g=n;return t(),e(w,{class:"view-page"},{default:s((()=>[l(w,{class:"image"},{default:s((()=>[o("img",{src:"/h5/web/assets/rule-D8yU_r7I.png",alt:""})])),_:1}),l(w,{class:"dec-view",style:{"background-color":"transparent !important"}},{default:s((()=>[l(g,{style:{backgroundColor:"transparent"},"webview-styles":p.webviewStyles,src:`${p.httpUrl}/api/Page/page_show?id=17`},null,8,["webview-styles","src"])])),_:1})])),_:1})}],["__scopeId","data-v-7097dda3"]]);export{c as default}; diff --git a/unpackage/dist/build/web/assets/pages-other-weChatPay.C30bZxuB.js b/unpackage/dist/build/web/assets/pages-other-weChatPay.BWrE2uLc.js similarity index 95% rename from unpackage/dist/build/web/assets/pages-other-weChatPay.C30bZxuB.js rename to unpackage/dist/build/web/assets/pages-other-weChatPay.BWrE2uLc.js index f31197a1..229cc285 100644 --- a/unpackage/dist/build/web/assets/pages-other-weChatPay.C30bZxuB.js +++ b/unpackage/dist/build/web/assets/pages-other-weChatPay.BWrE2uLc.js @@ -1 +1 @@ -import{g as e,K as t,a5 as a,s,c as n,P as o,D as i,E as r,r as c,e as l,f as d,w as u,i as h,j as m,o as p,k as y,b as g,p as f,q as w,u as x,F as _,B as S,t as P,y as C,_ as A,ag as I,C as b,ah as k,ai as T,l as W}from"./index-BifMHC6c.js";import{_ as D}from"./uni-easyinput.CmmQ9HCd.js";import{r as j}from"./uni-app.es.BM6_Rfsu.js";import{n as E}from"./nav.CvI0lGd-.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.CP-9I_4O.js";const $="https://yourdomain.com/api";const B=new class{constructor(){this.isWeixin=this.checkWeixin(),this.openid=e("wx_openid")||""}checkWeixin(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}getQueryParam(e){const t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(t);return null!=a?decodeURIComponent(a[2]):null}async wxAuth(){if(!this.isWeixin)return t({title:"请在微信中打开",icon:"none"}),null;const e=this.getQueryParam("code");if(!e){const e=encodeURIComponent(window.location.href.split("#")[0]),t=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appId}&redirect_uri=${e}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;return window.location.href=t,null}return e}async getOpenId(e){try{const t=await a({url:`${$}/wx/auth`,method:"GET",data:{code:e}});if(0===t[1].data.code){const{openid:e}=t[1].data.data;return this.openid=e,s("wx_openid",e),e}return null}catch(t){return console.error("获取openid失败:",t),null}}async initWxJsSDK(){if(!this.isWeixin)return!1;try{const e=window.location.href.split("#")[0],s=await a({url:`${$}/jssdk/config`,method:"GET",data:{url:encodeURIComponent(e)}});if(0===s[1].data.code){const e=s[1].data.data;return await this.loadWxJsSDK(),wx.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["chooseWXPay","onMenuShareTimeline","onMenuShareAppMessage","scanQRCode"]}),new Promise((e=>{wx.ready((()=>{console.log("微信 JS-SDK 初始化成功"),e(!0)})),wx.error((a=>{console.error("微信 JS-SDK 初始化失败:",a),t({title:"微信初始化失败",icon:"none"}),e(!1)}))}))}return!1}catch(e){return console.error("初始化JS-SDK失败:",e),!1}}loadWxJsSDK(){return new Promise(((e,t)=>{if("undefined"!=typeof wx)return void e();const a=document.createElement("script");a.src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js",a.onload=e,a.onerror=t,document.head.appendChild(a)}))}async createPayment(e){try{if(!this.openid){const e=await this.wxAuth();e&&await this.getOpenId(e)}if(!this.openid)throw new Error("获取用户信息失败");const t=await a({url:`${$}/wxpay/unifiedorder`,method:"POST",header:{"Content-Type":"application/json"},data:{openid:this.openid,body:e.body||"账户充值",total_fee:e.amount,out_trade_no:e.orderNo,attach:e.attach||""}});if(0===t[1].data.code)return t[1].data.data;throw new Error(t[1].data.msg||"创建订单失败")}catch(t){throw console.error("创建支付订单失败:",t),t}}async launchPayment(e){return new Promise(((t,a)=>{wx.chooseWXPay({timestamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:e=>{"chooseWXPay:ok"===e.errMsg?t({success:!0,message:"支付成功"}):a(new Error("支付失败: "+e.errMsg))},fail:e=>{a(new Error("支付失败: "+JSON.stringify(e)))},cancel:()=>{a(new Error("用户取消支付"))}})}))}async pay(e,a,s=""){try{if(!this.isWeixin)return t({title:"请在微信中打开",icon:"none"}),{success:!1,message:"非微信环境"};if(!(await this.initWxJsSDK()))return{success:!1,message:"微信初始化失败"};const n=await this.createPayment({amount:e,orderNo:a,attach:s}),o=await this.launchPayment(n);return o.success?(await this.verifyPayment(a),{success:!0,message:"支付成功"}):o}catch(n){return console.error("支付流程错误:",n),{success:!1,message:n.message||"支付失败"}}}async verifyPayment(e){try{const t=await a({url:`${$}/wxpay/query`,method:"GET",data:{out_trade_no:e}});if(0===t[1].data.code){if("SUCCESS"===t[1].data.data.trade_state)return!0}return!1}catch(t){return console.error("验证支付结果失败:",t),!1}}};const J=v({components:{navBar:E},data:()=>({baseBgUrl:n.new_unionUrl||"",unionBgUrl:n.unicon_url||"",statusBarHeight:0,ThemeData:null,searchValue:"",Coin:"/h5/web/assets/coin-tLYa0maw.png",moneyList:[{coin:300,money:3},{coin:500,money:5},{coin:1e3,money:10},{coin:1500,money:15},{coin:2e3,money:20},{coin:3e3,money:30},{coin:5e3,money:50},{coin:1e4,money:100}],selectedIndex:-1,selectedAmount:0,selectedCoin:0,isPaying:!1,isAgreed:!1}),onLoad(){this.initWxPay()},methods:{async initWxPay(){try{await B.initWxJsSDK()}catch(e){console.error("初始化微信支付失败:",e)}},selectAmount(e){this.selectedIndex=e,this.selectedAmount=this.moneyList[e].money,this.selectedCoin=this.moneyList[e].coin},handleAgreementChange(e){this.isAgreed=e.detail.value.length>0},showAgreement(){o({title:"充值协议",content:"1. 充值前请确认您已满18周岁\n2. 充值金额一经充值成功,不支持退款\n3. 请勿通过非官方渠道充值,谨防上当受骗\n4. 充值遇到问题请联系客服处理\n5. 本平台保留最终解释权",confirmText:"我知道了",showCancel:!1})},async handlePay(){if(this.searchValue&&""!==this.searchValue.trim())if(-1!==this.selectedIndex)if(this.isAgreed){if(!this.isPaying){this.isPaying=!0,i({title:"正在发起支付...",mask:!0});try{const e=this.generateOrderNo(),a=Math.round(100*this.selectedAmount),s=JSON.stringify({userId:this.searchValue.trim(),coin:this.selectedCoin}),n=await B.pay(a,e,s);r(),n.success?(t({title:"支付成功",icon:"success",duration:2e3}),setTimeout((()=>{this.handlePaySuccess()}),2e3)):t({title:n.message||"支付失败",icon:"none",duration:2e3})}catch(e){r(),console.error("支付错误:",e);let a="支付失败";e.message&&(a=e.message.includes("取消")?"您已取消支付":e.message),t({title:a,icon:"none",duration:2e3})}finally{this.isPaying=!1}}}else t({title:"请先阅读并同意充值协议",icon:"none",duration:2e3});else t({title:"请选择充值金额",icon:"none",duration:2e3});else t({title:"请输入您在羽声语音的ID",icon:"none",duration:2e3})},generateOrderNo:()=>`YS${Date.now()}${Math.floor(1e4*Math.random()).toString().padStart(4,"0")}`,handlePaySuccess(){this.selectedIndex=-1,this.selectedAmount=0,this.selectedCoin=0,this.isAgreed=!1}}},[["render",function(e,t,a,s,n,o){const i=c("navBar"),r=j(l("uni-easyinput"),D),E=m,v=A,$=I,B=b,J=k,V=T;return p(),d(E,{class:"view-page",style:h({backgroundImage:`url('${n.ThemeData?n.ThemeData.app_bg:n.baseBgUrl}')`})},{default:u((()=>[y(i,{style:h({marginTop:`${n.statusBarHeight}${"ios"===g().platform?"px":"dp"}`}),navTitle:"羽声充值",isLeftSlot:!0},null,8,["style"]),y(E,{class:"content"},{default:u((()=>[y(E,{class:""},{default:u((()=>[y(r,{prefixIcon:"search",clearSize:"18",modelValue:n.searchValue,"onUpdate:modelValue":t[0]||(t[0]=e=>n.searchValue=e),placeholder:"请输入您在羽声语音的ID"},null,8,["modelValue"])])),_:1}),y(E,{class:"show_ByIdView"},{default:u((()=>[y(E,{class:""},{default:u((()=>[f(" 余额 ")])),_:1}),y(E,{class:""},{default:u((()=>[f(" 金币 ")])),_:1})])),_:1}),y(E,{class:"coinWrap"},{default:u((()=>[(p(!0),w(_,null,x(n.moneyList,((e,t)=>(p(),d(E,{class:S(["coinBox",{selected:n.selectedIndex===t}]),key:t,onClick:e=>o.selectAmount(t)},{default:u((()=>[y(E,{class:"w-fill coin"},{default:u((()=>[W("img",{style:{width:"40rpx",height:"40rpx"},src:n.Coin,alt:""},null,8,["src"]),f(P(e.coin),1)])),_:2},1024),y(E,{class:"w-fill money"},{default:u((()=>[f(" ¥"+P(e.money),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1}),y(E,{class:"text-wrap"},{default:u((()=>[y(E,{class:"",style:{"margin-bottom":"20rpx"}},{default:u((()=>[f(" 充值小贴士: ")])),_:1}),y(E,{class:"font-24",style:{"margin-bottom":"20rpx"}},{default:u((()=>[f(" 1.为避免您的账号及资金被冻结,请勿通过非官方渠道 充值,谨防上当受损! ")])),_:1}),y(E,{class:"font-24"},{default:u((()=>[f(" 2.充值前请确定您已满18周岁 ")])),_:1})])),_:1}),y(E,{class:"pay-button-wrap"},{default:u((()=>[y(v,{class:S(["pay-button",{disabled:-1===n.selectedIndex||n.isPaying||!n.isAgreed}]),disabled:-1===n.selectedIndex||n.isPaying||!n.isAgreed,onClick:o.handlePay},{default:u((()=>[f(P(n.isPaying?"支付中...":"立即支付"),1)])),_:1},8,["class","disabled","onClick"]),y(E,{class:"agreement-wrap"},{default:u((()=>[y(V,{onChange:o.handleAgreementChange},{default:u((()=>[y(J,{class:"agreement-label"},{default:u((()=>[y($,{checked:n.isAgreed,color:"#3ABC6D",style:{transform:"scale(0.8)"}},null,8,["checked"]),y(B,{class:"agreement-text"},{default:u((()=>[f("我已阅读并同意")])),_:1}),y(B,{class:"agreement-link",onClick:C(o.showAgreement,["stop"])},{default:u((()=>[f("《充值协议》")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["onChange"])])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-1a9fb82e"]]);export{J as default}; +import{g as e,z as t,a5 as a,s,c as n,P as o,x as i,y as r,r as c,e as l,f as d,w as u,i as h,j as m,o as p,k as y,b as g,p as f,q as w,u as x,F as _,E as S,t as P,B as C,_ as A,ag as I,G as b,ah as k,ai as T,l as W}from"./index-759PoYgM.js";import{_ as D}from"./uni-easyinput.C4HErVdH.js";import{r as j}from"./uni-app.es.Hulr8kk-.js";import{n as E}from"./nav.BBjj-z52.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.BNs6RC_T.js";const $="https://yourdomain.com/api";const B=new class{constructor(){this.isWeixin=this.checkWeixin(),this.openid=e("wx_openid")||""}checkWeixin(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}getQueryParam(e){const t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(t);return null!=a?decodeURIComponent(a[2]):null}async wxAuth(){if(!this.isWeixin)return t({title:"请在微信中打开",icon:"none"}),null;const e=this.getQueryParam("code");if(!e){const e=encodeURIComponent(window.location.href.split("#")[0]),t=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appId}&redirect_uri=${e}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;return window.location.href=t,null}return e}async getOpenId(e){try{const t=await a({url:`${$}/wx/auth`,method:"GET",data:{code:e}});if(0===t[1].data.code){const{openid:e}=t[1].data.data;return this.openid=e,s("wx_openid",e),e}return null}catch(t){return console.error("获取openid失败:",t),null}}async initWxJsSDK(){if(!this.isWeixin)return!1;try{const e=window.location.href.split("#")[0],s=await a({url:`${$}/jssdk/config`,method:"GET",data:{url:encodeURIComponent(e)}});if(0===s[1].data.code){const e=s[1].data.data;return await this.loadWxJsSDK(),wx.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["chooseWXPay","onMenuShareTimeline","onMenuShareAppMessage","scanQRCode"]}),new Promise((e=>{wx.ready((()=>{console.log("微信 JS-SDK 初始化成功"),e(!0)})),wx.error((a=>{console.error("微信 JS-SDK 初始化失败:",a),t({title:"微信初始化失败",icon:"none"}),e(!1)}))}))}return!1}catch(e){return console.error("初始化JS-SDK失败:",e),!1}}loadWxJsSDK(){return new Promise(((e,t)=>{if("undefined"!=typeof wx)return void e();const a=document.createElement("script");a.src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js",a.onload=e,a.onerror=t,document.head.appendChild(a)}))}async createPayment(e){try{if(!this.openid){const e=await this.wxAuth();e&&await this.getOpenId(e)}if(!this.openid)throw new Error("获取用户信息失败");const t=await a({url:`${$}/wxpay/unifiedorder`,method:"POST",header:{"Content-Type":"application/json"},data:{openid:this.openid,body:e.body||"账户充值",total_fee:e.amount,out_trade_no:e.orderNo,attach:e.attach||""}});if(0===t[1].data.code)return t[1].data.data;throw new Error(t[1].data.msg||"创建订单失败")}catch(t){throw console.error("创建支付订单失败:",t),t}}async launchPayment(e){return new Promise(((t,a)=>{wx.chooseWXPay({timestamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:e=>{"chooseWXPay:ok"===e.errMsg?t({success:!0,message:"支付成功"}):a(new Error("支付失败: "+e.errMsg))},fail:e=>{a(new Error("支付失败: "+JSON.stringify(e)))},cancel:()=>{a(new Error("用户取消支付"))}})}))}async pay(e,a,s=""){try{if(!this.isWeixin)return t({title:"请在微信中打开",icon:"none"}),{success:!1,message:"非微信环境"};if(!(await this.initWxJsSDK()))return{success:!1,message:"微信初始化失败"};const n=await this.createPayment({amount:e,orderNo:a,attach:s}),o=await this.launchPayment(n);return o.success?(await this.verifyPayment(a),{success:!0,message:"支付成功"}):o}catch(n){return console.error("支付流程错误:",n),{success:!1,message:n.message||"支付失败"}}}async verifyPayment(e){try{const t=await a({url:`${$}/wxpay/query`,method:"GET",data:{out_trade_no:e}});if(0===t[1].data.code){if("SUCCESS"===t[1].data.data.trade_state)return!0}return!1}catch(t){return console.error("验证支付结果失败:",t),!1}}};const J=v({components:{navBar:E},data:()=>({baseBgUrl:n.new_unionUrl||"",unionBgUrl:n.unicon_url||"",statusBarHeight:0,ThemeData:null,searchValue:"",Coin:"/h5/web/assets/coin-tLYa0maw.png",moneyList:[{coin:300,money:3},{coin:500,money:5},{coin:1e3,money:10},{coin:1500,money:15},{coin:2e3,money:20},{coin:3e3,money:30},{coin:5e3,money:50},{coin:1e4,money:100}],selectedIndex:-1,selectedAmount:0,selectedCoin:0,isPaying:!1,isAgreed:!1}),onLoad(){this.initWxPay()},methods:{async initWxPay(){try{await B.initWxJsSDK()}catch(e){console.error("初始化微信支付失败:",e)}},selectAmount(e){this.selectedIndex=e,this.selectedAmount=this.moneyList[e].money,this.selectedCoin=this.moneyList[e].coin},handleAgreementChange(e){this.isAgreed=e.detail.value.length>0},showAgreement(){o({title:"充值协议",content:"1. 充值前请确认您已满18周岁\n2. 充值金额一经充值成功,不支持退款\n3. 请勿通过非官方渠道充值,谨防上当受骗\n4. 充值遇到问题请联系客服处理\n5. 本平台保留最终解释权",confirmText:"我知道了",showCancel:!1})},async handlePay(){if(this.searchValue&&""!==this.searchValue.trim())if(-1!==this.selectedIndex)if(this.isAgreed){if(!this.isPaying){this.isPaying=!0,i({title:"正在发起支付...",mask:!0});try{const e=this.generateOrderNo(),a=Math.round(100*this.selectedAmount),s=JSON.stringify({userId:this.searchValue.trim(),coin:this.selectedCoin}),n=await B.pay(a,e,s);r(),n.success?(t({title:"支付成功",icon:"success",duration:2e3}),setTimeout((()=>{this.handlePaySuccess()}),2e3)):t({title:n.message||"支付失败",icon:"none",duration:2e3})}catch(e){r(),console.error("支付错误:",e);let a="支付失败";e.message&&(a=e.message.includes("取消")?"您已取消支付":e.message),t({title:a,icon:"none",duration:2e3})}finally{this.isPaying=!1}}}else t({title:"请先阅读并同意充值协议",icon:"none",duration:2e3});else t({title:"请选择充值金额",icon:"none",duration:2e3});else t({title:"请输入您在羽声语音的ID",icon:"none",duration:2e3})},generateOrderNo:()=>`YS${Date.now()}${Math.floor(1e4*Math.random()).toString().padStart(4,"0")}`,handlePaySuccess(){this.selectedIndex=-1,this.selectedAmount=0,this.selectedCoin=0,this.isAgreed=!1}}},[["render",function(e,t,a,s,n,o){const i=c("navBar"),r=j(l("uni-easyinput"),D),E=m,v=A,$=I,B=b,J=k,V=T;return p(),d(E,{class:"view-page",style:h({backgroundImage:`url('${n.ThemeData?n.ThemeData.app_bg:n.baseBgUrl}')`})},{default:u((()=>[y(i,{style:h({marginTop:`${n.statusBarHeight}${"ios"===g().platform?"px":"dp"}`}),navTitle:"羽声充值",isLeftSlot:!0},null,8,["style"]),y(E,{class:"content"},{default:u((()=>[y(E,{class:""},{default:u((()=>[y(r,{prefixIcon:"search",clearSize:"18",modelValue:n.searchValue,"onUpdate:modelValue":t[0]||(t[0]=e=>n.searchValue=e),placeholder:"请输入您在羽声语音的ID"},null,8,["modelValue"])])),_:1}),y(E,{class:"show_ByIdView"},{default:u((()=>[y(E,{class:""},{default:u((()=>[f(" 余额 ")])),_:1}),y(E,{class:""},{default:u((()=>[f(" 金币 ")])),_:1})])),_:1}),y(E,{class:"coinWrap"},{default:u((()=>[(p(!0),w(_,null,x(n.moneyList,((e,t)=>(p(),d(E,{class:S(["coinBox",{selected:n.selectedIndex===t}]),key:t,onClick:e=>o.selectAmount(t)},{default:u((()=>[y(E,{class:"w-fill coin"},{default:u((()=>[W("img",{style:{width:"40rpx",height:"40rpx"},src:n.Coin,alt:""},null,8,["src"]),f(P(e.coin),1)])),_:2},1024),y(E,{class:"w-fill money"},{default:u((()=>[f(" ¥"+P(e.money),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1}),y(E,{class:"text-wrap"},{default:u((()=>[y(E,{class:"",style:{"margin-bottom":"20rpx"}},{default:u((()=>[f(" 充值小贴士: ")])),_:1}),y(E,{class:"font-24",style:{"margin-bottom":"20rpx"}},{default:u((()=>[f(" 1.为避免您的账号及资金被冻结,请勿通过非官方渠道 充值,谨防上当受损! ")])),_:1}),y(E,{class:"font-24"},{default:u((()=>[f(" 2.充值前请确定您已满18周岁 ")])),_:1})])),_:1}),y(E,{class:"pay-button-wrap"},{default:u((()=>[y(v,{class:S(["pay-button",{disabled:-1===n.selectedIndex||n.isPaying||!n.isAgreed}]),disabled:-1===n.selectedIndex||n.isPaying||!n.isAgreed,onClick:o.handlePay},{default:u((()=>[f(P(n.isPaying?"支付中...":"立即支付"),1)])),_:1},8,["class","disabled","onClick"]),y(E,{class:"agreement-wrap"},{default:u((()=>[y(V,{onChange:o.handleAgreementChange},{default:u((()=>[y(J,{class:"agreement-label"},{default:u((()=>[y($,{checked:n.isAgreed,color:"#3ABC6D",style:{transform:"scale(0.8)"}},null,8,["checked"]),y(B,{class:"agreement-text"},{default:u((()=>[f("我已阅读并同意")])),_:1}),y(B,{class:"agreement-link",onClick:C(o.showAgreement,["stop"])},{default:u((()=>[f("《充值协议》")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["onChange"])])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-1a9fb82e"]]);export{J as default}; diff --git a/unpackage/dist/build/web/assets/pages-prop-propMall.NHgMZgQQ.js b/unpackage/dist/build/web/assets/pages-prop-propMall.CAIhR_Vg.js similarity index 92% rename from unpackage/dist/build/web/assets/pages-prop-propMall.NHgMZgQQ.js rename to unpackage/dist/build/web/assets/pages-prop-propMall.CAIhR_Vg.js index 07de7bf4..5ec35e84 100644 --- a/unpackage/dist/build/web/assets/pages-prop-propMall.NHgMZgQQ.js +++ b/unpackage/dist/build/web/assets/pages-prop-propMall.CAIhR_Vg.js @@ -1 +1 @@ -import{o as e,f as t,w as a,k as s,i as l,B as i,p as n,C as o,j as u,I as c,s as r,g as d,h as p,D as h,E as f,b as g,r as m,e as b,q as y,u as _,F as D,l as x,t as A,m as k,S as w}from"./index-BifMHC6c.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as V}from"./uni-app.es.BM6_Rfsu.js";import{a as T,_ as P}from"./uni-popup.D8sN-IRM.js";import{N as B}from"./tab.DH0wT1MO.js";const N=C({name:"UniNumberBox",emits:["change","input","update:modelValue","blur","focus"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},background:{type:String,default:"#f5f5f5"},color:{type:String,default:"#333"},disabled:{type:Boolean,default:!1},width:{type:Number,default:40}},data:()=>({inputValue:0}),watch:{value(e){this.inputValue=+e},modelValue(e){this.inputValue=+e}},computed:{widthWithPx(){return this.width+"px"}},created(){1===this.value&&(this.inputValue=+this.modelValue),1===this.modelValue&&(this.inputValue=+this.value)},methods:{_calcValue(e){if(this.disabled)return;const t=this._getDecimalScale();let a=this.inputValue*t,s=this.step*t;if("minus"===e){if(a-=s,athis.max*t&&(a=this.max*t)}if("plus"===e){if(a+=s,a>this.max*t)return;athis.max?t=this.max:t[s(b,{onClick:d[0]||(d[0]=e=>g._calcValue("minus")),class:"uni-numbox__minus uni-numbox-btns",style:l({background:p.background})},{default:a((()=>[s(m,{class:i(["uni-numbox--text",{"uni-numbox--disabled":f.inputValue<=p.min||p.disabled}]),style:l({color:p.color})},{default:a((()=>[n("-")])),_:1},8,["class","style"])])),_:1},8,["style"]),s(y,{disabled:p.disabled,onFocus:g._onFocus,onBlur:g._onBlur,class:"uni-numbox__value",type:p.step<1?"digit":"number",modelValue:f.inputValue,"onUpdate:modelValue":d[1]||(d[1]=e=>f.inputValue=e),style:l({background:p.background,color:p.color,width:g.widthWithPx})},null,8,["disabled","onFocus","onBlur","type","modelValue","style"]),s(b,{onClick:d[2]||(d[2]=e=>g._calcValue("plus")),class:"uni-numbox__plus uni-numbox-btns",style:l({background:p.background})},{default:a((()=>[s(m,{class:i(["uni-numbox--text",{"uni-numbox--disabled":f.inputValue>=p.max||p.disabled}]),style:l({color:p.color})},{default:a((()=>[n("+")])),_:1},8,["class","style"])])),_:1},8,["style"])])),_:1})}],["__scopeId","data-v-91750ff9"]]),v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAB7BJREFUWEedV0tsnUcV/s7M/7jX177Xj8SN7ThJ1bz6oKVUlUiqNnQDCLVILJCQYMEKgVABRaA0RGKB1KalFY1U1E3FColFkVg0bKJKQEO7KARQHooTO7ET52HycHx9c9//zBw0M/9/H3YaHrOx//+fOec73/nOOXMJ/8fi1dVR5M00KCkCYBiuINLXiSZv/6/m6L85wHwiRHv6qzDVr4CbX2adTIITANr5BwKQjBkI/4Ugdwxy6Cjk2FEispvuu+4LgPlKHi36LlT5J9DlCTatHmPWce9xBpj8K5EDZOkqBWNHEFd/RbSj92AfoE8FwMmtfUhuvsutGzvAKo3Ubmdw4w5MYwUwLTCzjR6UG4bIjwEkug4oBKLxCxSNfofCiT/di4p7AuD64n5WV19Fshp7igmmdgO6PAuouxBhBIoLIBkCRGCtwK0ajEoAOQhZ2g5RGE/9ERAUWxxOHhT5B4/Y7b1A+gAwM6F56RVuzB+Eqbt93KpA3T4JETJkYRwURF3DzP1ZsPuNhmmswiQKYng3RFRyIEnmGdHUaxjYfYiIOiD6ATQX96N+7k3WNfdeVxbB1QUEI1OAjNZmvO95Lb3MBqZeBuQoZHGLD1vkmeOJ/XLwiSPZ/g4ATq49w3fP/pGTlYhAUCsXQGYVQWlTKjYGUwgqPAFuLgDJHRtYdwWj4Nw2UO00fIU4/sBJE0YHoMEt7g0Fg5rCkX1U3POxe3bbTpwIsUOfMY35nfbZVJeA1hKC4iYnMu+JgdKzAElAFoC7J4D2Te8nHAcVPw9WVpgN/y1bNnSTwHAelB93ZigamaVT8aP0/PPKU3337PdQO/WO3ciqAb180tPeSzIbaC4iKO2wXALxlHNkqabhvUBzEWANVVmA5DuAsKa7FFkmEE2AwgEfhCh9Xz7wwjvE/J7klbFz3Li83YJJbpyGHIhBQdw9n0qG2w1wsAnh6A6wAzHtjTUvWfVBlS+C1BIoyvniWbOMMpBDD3oWZH6WNn1jN3Hlb8+Y6uxHrKswrRr0yhnIoQ19FFIwCIrGnE1OWqB4EiK2TnQnRp0k4OY1iDDnzprWTZBNhz2TFgsbBcpNgaJBB5xF/Bzp5Q/eQHX2x9ZSe/kCCFVQaiRDIUefA8VjHTE6i8kt68b9a1NC8UafmjR0Uz4J05j33rNly1EMQhY2O3YNxFtklt47zq3rz9ptrat/hcjnUtH5DNj3svQkRDyY9aQeo2v7WOaMoO9eAjevpG2sexQUIBh5GLbSmPAXUlfevQ61OmFBNub/DDlkB1yvhC2dBqBCnybl4CTCkW2A0WjfnoFpVfozzlWIKPAhuGaagjUG0fjnfMsmXCd9+e2q0bUCVILGpQ8hCoOdyDMOLNqe8J0jMbANwcguwLSR3PoHjFp1UfXEmgJaq0ZCOPYZVw1EqJFaeLPOppm34mosfAiRtx8YbI25s74PuKKKNkAMTHoAuU1uJtiBpJtVsK558dUWYZKy+78Pth1alnYA8fhnvRCBBqmLh8ts2iWr6Nr5YxD5PMhOjN4+74AQoskvQhYsAPtCg5tL/i6Qs93Sg1XL/0Sycip9XjOuXVCM3NQeiCBn+2SFkgs/n4VRtrugdv4DUNR7yGPOSAw3PAWZK3bS6QXeT7GqXIOqzPUI3wbTs09IDGz9gv9ONEdq7tD7bPhFa7V+6RM7gdKPaf1mPFp6lYWTd9QGpWlEY1Ngk6C1NAvTqqaKb0CEZp32MkQiLiE3+bTbK4iOUnv2wA9hcMQCUOWraN+aAQWyWwdpHXsVdJm1IgyHt7re3759Fqyq6/XnmhC7lGYrHH0IYWmrTxjzj6gx8/K2QOCiBcQ6QX3hI5AwaeX0OHXV1DUm8lsQDk+BdQPt5VlAp/eHXofZrS37SwL5zXv8aCcyitV25yE5//JRZn7BIk2W59Euz4OE6KB3gnQp84DssxyYRlicAOs6kjvzMLreFW9GlN2fTlN7xkYejbmRAwPzh3jXL170AOYO7gHzxzZAO92aVz6BUd5g6jETTRdAfgrB0EZAN5CUF8GmuS5tHdCWlXAAuamnQcI1J2YSe6Kdhz/pcKzOH/gNg75lkXJSR/P6CTdssogdmM7dwAtShCX3zqgyROBLNyvhrH6cAyERTzwJGZd8eQO/jXa//k0HMIPNMwfHEuK/E8EpRDdX0b55Cqza3Tbq0GQdhsEmTY3suQl7xN0zJBA/8DhkftSnEbwgW/QUPf7aSh8Ad+7CTx/TxhxnxojLU1JH++YZmHZ1TXS+t/dH3El8JxUU5hFvfAwiHko1hBWpeR89/PrpbNO6a3kyc2AvCXqfATt/XTRJ5QpU+TKMbqeGumLsLbEscpvnoDiNYHgrKP2dQMAtlvpr4fY33F3wUwE4nzMHdyrBvwfwaCdFRkM3bkNVb/jJZ1PTY4WE/a0whKAwDlnY6MTWqR5BZwzT1+Ndh8/1Ol+Xgt6PPPdS3DYDP5NELzHDc9hBw2ArUKN9bxAByF7N+q7JrmzrbMwvg0L7VZp+y1+P1qx1KVi7gecPbVWJ+gEgvg2wV1K6sghdJD09gghlgH4daPk2PfLK5Xs5vm8K7nXAMqL00F4I8yUAj4CxmcBF451XAL4K0FkIcSx4aO440e98Df+H9W+Gs6THWunqqgAAAABJRU5ErkJggg==";const E=C({components:{NavigationTabs:B},data:()=>({errorPage:!0,tabs:[],listData:[],currentIndex:0,indicatorLeft:5,decorateDetail:null,currentMenuIndex:0,payData:null,isShow:!0,msgType:"success",messageText:"操作成功"}),onLoad(e){this.errorPage=!0;const{id:t,is_show:a}=e;if(r("token",t),a){const e=Number(a);this.isShow=1===e}else this.isShow=!0;d("token")&&this.gettabs()},methods:{async gettabs(){p.get("/api/Decorate/get_type_list",{token:d("token")||"",have_hot:0}).then((e=>{const{data:t,code:a}=e;a&&(this.tabs=t.map((e=>({type:e.id,value:e.name})))),this.errorPage=!1,this.$nextTick((()=>{this.getDecorate(this.tabs[0].type)}))})).catch((e=>{this.tabs=[],this.errorPage=!0}))},async getDecorate(e){p.get("/api/Decorate/get_decorate_list",{token:d("token")||"",type:e}).then((e=>{const{data:t,code:a}=e;this.listData=a?t:[]})).catch((e=>{this.tabs=[],this.errorPage=!0}))},async getDecorateDetail(e,t){this.payData={},p.get("/api/Decorate/get_decorate_detail",{token:d("token")||"",did:e}).then((e=>{const{data:a,code:s}=e;this.decorateDetail=s?{...t,...a,tab:this.tabs[this.currentIndex]}:null,this.currentMenuIndex=0,12!==this.decorateDetail.tab.type?this.payData=this.decorateDetail.decorate.price_list[this.currentMenuIndex]:(this.payData.price=this.decorateDetail.decorate.price,this.payData.number=1,this.payData.allPrice=1*this.decorateDetail.decorate.price),this.$refs.popup.open("bottom")})).catch((e=>{}))},changeValue(e){this.payData.allPrice=e*this.payData.price},changePayData(e,t){this.payData=e,this.currentMenuIndex=t},handleTabChange({index:e,tab:t}){this.currentIndex=e,console.log(e,t);const{type:a}=t;this.getDecorate(a)},openPopup(e){this.getDecorateDetail(e.did,e)},closePopup(){this.decorateDetail=null,this.currentMenuIndex=0,this.payData=null,this.$refs.popup.close()},toPay(){if(12!==this.decorateDetail.tab.type){if(this.payData.price>this.decorateDetail.user_info.user_coin)return this.messageText="余额不足",this.msgType="error",void this.$refs.message.open()}else if(this.payData.allPrice>this.decorateDetail.user_info.user_coin)return this.messageText="余额不足",this.msgType="error",void this.$refs.message.open();this.payDecorate(this.decorateDetail.tab.type)},payDecorate(e){h({mask:!0}),p.post("/api/Decorate/pay_decorate",{token:d("token")||"",did:this.decorateDetail.did,day:12!==e?this.payData.day:0,num:12!==e?0:this.payData.number}).then((e=>{e.code?(this.messageText="购买成功",this.msgType="success",this.$refs.message.open(),f(),this.closePopup()):(this.messageText=e.msg,this.msgType="error",this.$refs.message.open())})).catch((e=>{}))},RechargeCoin(){const e=g().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"Recharge"}):"android"===e&&window.Android.Recharge()}}},[["render",function(l,o,c,r,d,p){const h=m("NavigationTabs"),f=u,g=w,C=V(b("uni-number-box"),N),B=V(b("uni-popup"),T),E=V(b("uni-popup-message"),P);return e(),t(f,{class:"view-page"},{default:a((()=>[d.errorPage?(e(),t(f,{key:1})):(e(),t(f,{key:0},{default:a((()=>[s(h,{"tabs-data":d.tabs,"default-active":d.currentIndex,onTabChange:p.handleTabChange},null,8,["tabs-data","default-active","onTabChange"]),s(f,{class:"swiper-view"}),s(g,{"scroll-y":"true",class:"list-view"},{default:a((()=>[d.listData&&d.listData.length?(e(),t(f,{key:0,class:"flex-container"},{default:a((()=>[(e(!0),y(D,null,_(d.listData,((l,i)=>(e(),t(f,{onClick:e=>p.openPopup(l),key:i,class:"flex-item decorate-box"},{default:a((()=>[s(f,{class:"decorate-content"},{default:a((()=>[s(f,{class:"decorate-image"},{default:a((()=>[x("img",{src:l.base_image,alt:""},null,8,["src"])])),_:2},1024),s(f,{class:"decorate-title w-fill color-3 font-28"},{default:a((()=>[n(A(l.title),1)])),_:2},1024),s(f,{class:"decorate-price color-3 w-fill"},{default:a((()=>[x("img",{class:"icon-goin",src:v,alt:""}),n(" "+A(l.price),1)])),_:2},1024),[6,7,8].includes(l.type)?(e(),t(f,{key:0,class:"decorate-tag"},{default:a((()=>[6===l.type?(e(),y("span",{key:0},"个人靓号")):k("",!0),7===l.type?(e(),y("span",{key:1},"房间靓号")):k("",!0),8===l.type?(e(),y("span",{key:2},"公会靓号")):k("",!0)])),_:2},1024)):k("",!0)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):(e(),t(f,{key:1,class:"color-9",style:{"text-align":"center","font-size":"24rpx"}},{default:a((()=>[n(" 暂无数据 ")])),_:1}))])),_:1}),s(B,{ref:"popup",borderRadius:"32rpx 32rpx 0 0",type:"bottom","background-color":"#fff"},{default:a((()=>[12!==d.decorateDetail.tab.type?(e(),t(f,{key:0,class:"popup-view"},{default:a((()=>[s(f,{class:"decorate-image"},{default:a((()=>[x("img",{src:d.decorateDetail.base_image,alt:""},null,8,["src"])])),_:1}),s(f,{class:"decorate-title w-fill color-3 font-28"},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1}),s(f,{class:"decorate-info"},{default:a((()=>[s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品名称 ")])),_:1}),s(f,{class:""},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品价格 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[n(A(d.payData.price)+" ",1),x("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1})])),_:1}),d.decorateDetail.decorate&&d.decorateDetail.decorate.price_list?(e(),y(D,{key:0},[s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 有效期至 ")])),_:1}),s(f,{class:""},{default:a((()=>[n(A(d.payData.end_time),1)])),_:1})])),_:1}),s(f,{style:{padding:"18rpx 0"}},{default:a((()=>[s(f,{class:"line-lable",style:{"text-align":"left"}},{default:a((()=>[n(" 购买时长 ")])),_:1})])),_:1}),s(f,{class:"info-line setmenut",style:{"justify-content":"flex-start"}},{default:a((()=>[(e(!0),y(D,null,_(d.decorateDetail.decorate.price_list,((l,o)=>(e(),t(f,{class:i(d.currentMenuIndex===o?"active-menubox":"menubox"),onClick:e=>p.changePayData(l,o)},{default:a((()=>[s(f,null,{default:a((()=>[n(A(l.day)+"天 ",1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),256))])),_:1})],64)):k("",!0)])),_:1}),s(f,{class:"flex-line user-account font-28"},{default:a((()=>[s(f,{class:""},{default:a((()=>[x("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1}),s(f,{class:"color-6 ml-20"},{default:a((()=>[n(A(d.decorateDetail.user_info.user_coin),1)])),_:1}),d.isShow?(e(),t(f,{key:0,class:"chongzhi-text ml-20",onClick:p.RechargeCoin},{default:a((()=>[n(" 去充值 ")])),_:1},8,["onClick"])):k("",!0)])),_:1}),s(f,{class:"button-footer"},{default:a((()=>[s(f,{class:"pay-button",onClick:p.toPay},{default:a((()=>[n(" 确认支付 ")])),_:1},8,["onClick"])])),_:1})])),_:1})):(e(),t(f,{key:1,class:"popup-view"},{default:a((()=>[s(f,{class:"decorate-image",style:{width:"280rpx",height:"300rpx"}},{default:a((()=>[x("img",{src:d.decorateDetail.base_image,alt:""},null,8,["src"])])),_:1}),s(f,{class:"decorate-title w-fill color-3 font-28"},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1}),s(f,{class:"decorate-info"},{default:a((()=>[s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品名称 ")])),_:1}),s(f,{class:""},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品单价 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[n(A(d.decorateDetail.decorate.price)+" ",1),x("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 购买次数 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[s(C,{modelValue:d.payData.number,"onUpdate:modelValue":o[0]||(o[0]=e=>d.payData.number=e),onChange:p.changeValue},null,8,["modelValue","onChange"])])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品总价 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[n(A(d.payData.allPrice),1)])),_:1})])),_:1})])),_:1}),s(f,{class:"flex-line user-account font-28"},{default:a((()=>[s(f,{class:""},{default:a((()=>[x("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1}),s(f,{class:"color-6 ml-20"},{default:a((()=>[n(A(d.decorateDetail.user_info.user_coin),1)])),_:1}),d.isShow?(e(),t(f,{key:0,class:"chongzhi-text ml-20",onClick:p.RechargeCoin},{default:a((()=>[n(" 去充值 ")])),_:1},8,["onClick"])):k("",!0)])),_:1}),s(f,{class:"button-footer"},{default:a((()=>[s(f,{class:"pay-button",onClick:p.toPay},{default:a((()=>[n(" 确认支付 ")])),_:1},8,["onClick"])])),_:1})])),_:1}))])),_:1},512)])),_:1})),s(B,{ref:"message",type:"message"},{default:a((()=>[s(E,{type:d.msgType,message:d.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1})}],["__scopeId","data-v-f545ffda"]]);export{E as default}; +import{o as e,f as t,w as a,k as s,i as l,E as i,p as n,G as o,j as u,I as c,s as r,g as d,h as p,x as h,y as f,b as g,r as m,e as b,q as y,u as _,F as x,l as D,t as A,m as k,S as w}from"./index-759PoYgM.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as V}from"./uni-app.es.Hulr8kk-.js";import{a as T,_ as P}from"./uni-popup.DAsKHQxH.js";import{N as B}from"./tab.Nc_JIfEj.js";const N=C({name:"UniNumberBox",emits:["change","input","update:modelValue","blur","focus"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},background:{type:String,default:"#f5f5f5"},color:{type:String,default:"#333"},disabled:{type:Boolean,default:!1},width:{type:Number,default:40}},data:()=>({inputValue:0}),watch:{value(e){this.inputValue=+e},modelValue(e){this.inputValue=+e}},computed:{widthWithPx(){return this.width+"px"}},created(){1===this.value&&(this.inputValue=+this.modelValue),1===this.modelValue&&(this.inputValue=+this.value)},methods:{_calcValue(e){if(this.disabled)return;const t=this._getDecimalScale();let a=this.inputValue*t,s=this.step*t;if("minus"===e){if(a-=s,athis.max*t&&(a=this.max*t)}if("plus"===e){if(a+=s,a>this.max*t)return;athis.max?t=this.max:t[s(b,{onClick:d[0]||(d[0]=e=>g._calcValue("minus")),class:"uni-numbox__minus uni-numbox-btns",style:l({background:p.background})},{default:a((()=>[s(m,{class:i(["uni-numbox--text",{"uni-numbox--disabled":f.inputValue<=p.min||p.disabled}]),style:l({color:p.color})},{default:a((()=>[n("-")])),_:1},8,["class","style"])])),_:1},8,["style"]),s(y,{disabled:p.disabled,onFocus:g._onFocus,onBlur:g._onBlur,class:"uni-numbox__value",type:p.step<1?"digit":"number",modelValue:f.inputValue,"onUpdate:modelValue":d[1]||(d[1]=e=>f.inputValue=e),style:l({background:p.background,color:p.color,width:g.widthWithPx})},null,8,["disabled","onFocus","onBlur","type","modelValue","style"]),s(b,{onClick:d[2]||(d[2]=e=>g._calcValue("plus")),class:"uni-numbox__plus uni-numbox-btns",style:l({background:p.background})},{default:a((()=>[s(m,{class:i(["uni-numbox--text",{"uni-numbox--disabled":f.inputValue>=p.max||p.disabled}]),style:l({color:p.color})},{default:a((()=>[n("+")])),_:1},8,["class","style"])])),_:1},8,["style"])])),_:1})}],["__scopeId","data-v-91750ff9"]]),v="data:image/png;base64,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";const E=C({components:{NavigationTabs:B},data:()=>({errorPage:!0,tabs:[],listData:[],currentIndex:0,indicatorLeft:5,decorateDetail:null,currentMenuIndex:0,payData:null,isShow:!0,msgType:"success",messageText:"操作成功"}),onLoad(e){this.errorPage=!0;const{id:t,is_show:a}=e;if(r("token",t),a){const e=Number(a);this.isShow=1===e}else this.isShow=!0;d("token")&&this.gettabs()},methods:{async gettabs(){p.get("/api/Decorate/get_type_list",{token:d("token")||"",have_hot:0}).then((e=>{const{data:t,code:a}=e;a&&(this.tabs=t.map((e=>({type:e.id,value:e.name})))),this.errorPage=!1,this.$nextTick((()=>{this.getDecorate(this.tabs[0].type)}))})).catch((e=>{this.tabs=[],this.errorPage=!0}))},async getDecorate(e){p.get("/api/Decorate/get_decorate_list",{token:d("token")||"",type:e}).then((e=>{const{data:t,code:a}=e;this.listData=a?t:[]})).catch((e=>{this.tabs=[],this.errorPage=!0}))},async getDecorateDetail(e,t){this.payData={},p.get("/api/Decorate/get_decorate_detail",{token:d("token")||"",did:e}).then((e=>{const{data:a,code:s}=e;this.decorateDetail=s?{...t,...a,tab:this.tabs[this.currentIndex]}:null,this.currentMenuIndex=0,12!==this.decorateDetail.tab.type?this.payData=this.decorateDetail.decorate.price_list[this.currentMenuIndex]:(this.payData.price=this.decorateDetail.decorate.price,this.payData.number=1,this.payData.allPrice=1*this.decorateDetail.decorate.price),this.$refs.popup.open("bottom")})).catch((e=>{}))},changeValue(e){this.payData.allPrice=e*this.payData.price},changePayData(e,t){this.payData=e,this.currentMenuIndex=t},handleTabChange({index:e,tab:t}){this.currentIndex=e,console.log(e,t);const{type:a}=t;this.getDecorate(a)},openPopup(e){this.getDecorateDetail(e.did,e)},closePopup(){this.decorateDetail=null,this.currentMenuIndex=0,this.payData=null,this.$refs.popup.close()},toPay(){if(12!==this.decorateDetail.tab.type){if(this.payData.price>this.decorateDetail.user_info.user_coin)return this.messageText="余额不足",this.msgType="error",void this.$refs.message.open()}else if(this.payData.allPrice>this.decorateDetail.user_info.user_coin)return this.messageText="余额不足",this.msgType="error",void this.$refs.message.open();this.payDecorate(this.decorateDetail.tab.type)},payDecorate(e){h({mask:!0}),p.post("/api/Decorate/pay_decorate",{token:d("token")||"",did:this.decorateDetail.did,day:12!==e?this.payData.day:0,num:12!==e?0:this.payData.number}).then((e=>{e.code?(this.messageText="购买成功",this.msgType="success",this.$refs.message.open(),f(),this.closePopup()):(this.messageText=e.msg,this.msgType="error",this.$refs.message.open())})).catch((e=>{}))},RechargeCoin(){const e=g().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"Recharge"}):"android"===e&&window.Android.Recharge()}}},[["render",function(l,o,c,r,d,p){const h=m("NavigationTabs"),f=u,g=w,C=V(b("uni-number-box"),N),B=V(b("uni-popup"),T),E=V(b("uni-popup-message"),P);return e(),t(f,{class:"view-page"},{default:a((()=>[d.errorPage?(e(),t(f,{key:1})):(e(),t(f,{key:0},{default:a((()=>[s(h,{"tabs-data":d.tabs,"default-active":d.currentIndex,onTabChange:p.handleTabChange},null,8,["tabs-data","default-active","onTabChange"]),s(f,{class:"swiper-view"}),s(g,{"scroll-y":"true",class:"list-view"},{default:a((()=>[d.listData&&d.listData.length?(e(),t(f,{key:0,class:"flex-container"},{default:a((()=>[(e(!0),y(x,null,_(d.listData,((l,i)=>(e(),t(f,{onClick:e=>p.openPopup(l),key:i,class:"flex-item decorate-box"},{default:a((()=>[s(f,{class:"decorate-content"},{default:a((()=>[s(f,{class:"decorate-image"},{default:a((()=>[D("img",{src:l.base_image,alt:""},null,8,["src"])])),_:2},1024),s(f,{class:"decorate-title w-fill color-3 font-28"},{default:a((()=>[n(A(l.title),1)])),_:2},1024),s(f,{class:"decorate-price color-3 w-fill"},{default:a((()=>[D("img",{class:"icon-goin",src:v,alt:""}),n(" "+A(l.price),1)])),_:2},1024),[6,7,8].includes(l.type)?(e(),t(f,{key:0,class:"decorate-tag"},{default:a((()=>[6===l.type?(e(),y("span",{key:0},"个人靓号")):k("",!0),7===l.type?(e(),y("span",{key:1},"房间靓号")):k("",!0),8===l.type?(e(),y("span",{key:2},"公会靓号")):k("",!0)])),_:2},1024)):k("",!0)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):(e(),t(f,{key:1,class:"color-9",style:{"text-align":"center","font-size":"24rpx"}},{default:a((()=>[n(" 暂无数据 ")])),_:1}))])),_:1}),s(B,{ref:"popup",borderRadius:"32rpx 32rpx 0 0",type:"bottom","background-color":"#fff"},{default:a((()=>[12!==d.decorateDetail.tab.type?(e(),t(f,{key:0,class:"popup-view"},{default:a((()=>[s(f,{class:"decorate-image"},{default:a((()=>[D("img",{src:d.decorateDetail.base_image,alt:""},null,8,["src"])])),_:1}),s(f,{class:"decorate-title w-fill color-3 font-28"},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1}),s(f,{class:"decorate-info"},{default:a((()=>[s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品名称 ")])),_:1}),s(f,{class:""},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品价格 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[n(A(d.payData.price)+" ",1),D("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1})])),_:1}),d.decorateDetail.decorate&&d.decorateDetail.decorate.price_list?(e(),y(x,{key:0},[s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 有效期至 ")])),_:1}),s(f,{class:""},{default:a((()=>[n(A(d.payData.end_time),1)])),_:1})])),_:1}),s(f,{style:{padding:"18rpx 0"}},{default:a((()=>[s(f,{class:"line-lable",style:{"text-align":"left"}},{default:a((()=>[n(" 购买时长 ")])),_:1})])),_:1}),s(f,{class:"info-line setmenut",style:{"justify-content":"flex-start"}},{default:a((()=>[(e(!0),y(x,null,_(d.decorateDetail.decorate.price_list,((l,o)=>(e(),t(f,{class:i(d.currentMenuIndex===o?"active-menubox":"menubox"),onClick:e=>p.changePayData(l,o)},{default:a((()=>[s(f,null,{default:a((()=>[n(A(l.day)+"天 ",1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),256))])),_:1})],64)):k("",!0)])),_:1}),s(f,{class:"flex-line user-account font-28"},{default:a((()=>[s(f,{class:""},{default:a((()=>[D("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1}),s(f,{class:"color-6 ml-20"},{default:a((()=>[n(A(d.decorateDetail.user_info.user_coin),1)])),_:1}),d.isShow?(e(),t(f,{key:0,class:"chongzhi-text ml-20",onClick:p.RechargeCoin},{default:a((()=>[n(" 去充值 ")])),_:1},8,["onClick"])):k("",!0)])),_:1}),s(f,{class:"button-footer"},{default:a((()=>[s(f,{class:"pay-button",onClick:p.toPay},{default:a((()=>[n(" 确认支付 ")])),_:1},8,["onClick"])])),_:1})])),_:1})):(e(),t(f,{key:1,class:"popup-view"},{default:a((()=>[s(f,{class:"decorate-image",style:{width:"280rpx",height:"300rpx"}},{default:a((()=>[D("img",{src:d.decorateDetail.base_image,alt:""},null,8,["src"])])),_:1}),s(f,{class:"decorate-title w-fill color-3 font-28"},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1}),s(f,{class:"decorate-info"},{default:a((()=>[s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品名称 ")])),_:1}),s(f,{class:""},{default:a((()=>[n(A(d.decorateDetail.title),1)])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品单价 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[n(A(d.decorateDetail.decorate.price)+" ",1),D("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 购买次数 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[s(C,{modelValue:d.payData.number,"onUpdate:modelValue":o[0]||(o[0]=e=>d.payData.number=e),onChange:p.changeValue},null,8,["modelValue","onChange"])])),_:1})])),_:1}),s(f,{class:"info-line"},{default:a((()=>[s(f,{class:"line-lable"},{default:a((()=>[n(" 商品总价 ")])),_:1}),s(f,{class:"flex-line"},{default:a((()=>[n(A(d.payData.allPrice),1)])),_:1})])),_:1})])),_:1}),s(f,{class:"flex-line user-account font-28"},{default:a((()=>[s(f,{class:""},{default:a((()=>[D("img",{class:"icon-goin ml-6",src:v,alt:""})])),_:1}),s(f,{class:"color-6 ml-20"},{default:a((()=>[n(A(d.decorateDetail.user_info.user_coin),1)])),_:1}),d.isShow?(e(),t(f,{key:0,class:"chongzhi-text ml-20",onClick:p.RechargeCoin},{default:a((()=>[n(" 去充值 ")])),_:1},8,["onClick"])):k("",!0)])),_:1}),s(f,{class:"button-footer"},{default:a((()=>[s(f,{class:"pay-button",onClick:p.toPay},{default:a((()=>[n(" 确认支付 ")])),_:1},8,["onClick"])])),_:1})])),_:1}))])),_:1},512)])),_:1})),s(B,{ref:"message",type:"message"},{default:a((()=>[s(E,{type:d.msgType,message:d.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1})}],["__scopeId","data-v-f545ffda"]]);export{E as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-agreement.kh2HmveY.js b/unpackage/dist/build/web/assets/pages-union-agreement.BWIxKhIU.js similarity index 95% rename from unpackage/dist/build/web/assets/pages-union-agreement.kh2HmveY.js rename to unpackage/dist/build/web/assets/pages-union-agreement.BWIxKhIU.js index 51a3cd46..da1ae7fd 100644 --- a/unpackage/dist/build/web/assets/pages-union-agreement.kh2HmveY.js +++ b/unpackage/dist/build/web/assets/pages-union-agreement.BWIxKhIU.js @@ -1 +1 @@ -import{c as a,s as e,g as t,h as s,r as n,f as l,w as r,i,j as o,o as u,k as d,b as g,q as m,u as p,F as c,m as h,l as f}from"./index-BifMHC6c.js";import{n as _}from"./nav.CvI0lGd-.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=B({components:{navBar:_},data:()=>({baseBgUrl:a.new_unionUrl||"",unionBgUrl:a.unicon_url||"",statusBarHeight:0,ThemeData:null,detailData:null,isAndroid:!1,agreemenrList:[]}),onLoad(a){const{h:s}=a;this.statusBarHeight=s,e("BarHeight",s),t("token")&&this.getInfo()},methods:{async getInfo(){s.get("/api/Guild/my_guild",{token:t("token")||""}).then((a=>{const{data:e,code:t}=a;this.detailData=!!t&&e,this.agreemenrList=this.detailData.agreement.split(",")}))}}},[["render",function(a,e,t,s,_,B){const v=n("navBar"),y=o;return u(),l(y,{class:"view-page",style:i({backgroundImage:`url('${_.ThemeData?_.ThemeData.app_bg:_.baseBgUrl}')`})},{default:r((()=>[d(v,{style:i({marginTop:`${_.statusBarHeight}${"ios"===g().platform?"px":"dp"}`}),navTitle:"公会协议"},null,8,["style"]),_.detailData?(u(),l(y,{key:0,class:"dec-view"},{default:r((()=>[(u(!0),m(c,null,p(_.agreemenrList,((a,e)=>(u(),l(y,{class:"",key:e},{default:r((()=>[f("img",{src:a,alt:""},null,8,["src"])])),_:2},1024)))),128))])),_:1})):h("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-381abf7e"]]);export{v as default}; +import{c as a,s as e,g as t,h as s,r as n,f as l,w as r,i,j as o,o as u,k as d,b as g,q as m,u as p,F as c,m as h,l as f}from"./index-759PoYgM.js";import{n as _}from"./nav.BBjj-z52.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=B({components:{navBar:_},data:()=>({baseBgUrl:a.new_unionUrl||"",unionBgUrl:a.unicon_url||"",statusBarHeight:0,ThemeData:null,detailData:null,isAndroid:!1,agreemenrList:[]}),onLoad(a){const{h:s}=a;this.statusBarHeight=s,e("BarHeight",s),t("token")&&this.getInfo()},methods:{async getInfo(){s.get("/api/Guild/my_guild",{token:t("token")||""}).then((a=>{const{data:e,code:t}=a;this.detailData=!!t&&e,this.agreemenrList=this.detailData.agreement.split(",")}))}}},[["render",function(a,e,t,s,_,B){const v=n("navBar"),y=o;return u(),l(y,{class:"view-page",style:i({backgroundImage:`url('${_.ThemeData?_.ThemeData.app_bg:_.baseBgUrl}')`})},{default:r((()=>[d(v,{style:i({marginTop:`${_.statusBarHeight}${"ios"===g().platform?"px":"dp"}`}),navTitle:"公会协议"},null,8,["style"]),_.detailData?(u(),l(y,{key:0,class:"dec-view"},{default:r((()=>[(u(!0),m(c,null,p(_.agreemenrList,((a,e)=>(u(),l(y,{class:"",key:e},{default:r((()=>[f("img",{src:a,alt:""},null,8,["src"])])),_:2},1024)))),128))])),_:1})):h("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-381abf7e"]]);export{v as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-exitApplication.BV3prXkJ.js b/unpackage/dist/build/web/assets/pages-union-exitApplication.CWbxnbgC.js similarity index 84% rename from unpackage/dist/build/web/assets/pages-union-exitApplication.BV3prXkJ.js rename to unpackage/dist/build/web/assets/pages-union-exitApplication.CWbxnbgC.js index 34656ee1..7e953cd8 100644 --- a/unpackage/dist/build/web/assets/pages-union-exitApplication.BV3prXkJ.js +++ b/unpackage/dist/build/web/assets/pages-union-exitApplication.CWbxnbgC.js @@ -1 +1 @@ -import{c as s,g as e,h as a,r as t,e as l,f as i,w as o,i as r,j as n,o as u,k as d,q as p,u as m,F as c,l as g,p as f,t as h,B as _}from"./index-BifMHC6c.js";import{_ as y,a as x}from"./uni-popup.D8sN-IRM.js";import{r as T}from"./uni-app.es.BM6_Rfsu.js";import{h as k}from"./headerHeight.DQi3EG4R.js";import{l as D}from"./logo.DDDG-929.js";import{n as v}from"./nav.CvI0lGd-.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const j=b({components:{headerHeight:k,navBar:v},data:()=>({logo:D,baseBgUrl:s.PRIMARY_BGURL,guildId:null,msgType:"",messageText:"",dataList:[],searchParams:{guild_id:0,token:e("token")||""},ThemeData:null}),onLoad(s){const{id:a}=s;this.searchParams.guild_id=a,a&&this.getList(),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{async RefuseOrAgreeData(s,t){const{code:l,data:i,msg:o}=await a.post("/api/Guild/quit_apply_audit",{token:e("token")||"",apply_id:s.id,type:t});1===l?(this.msgType="success",this.messageText="操作成功",this.$refs.message.open(),this.getList()):(this.messageText=o,this.msgType="error",this.$refs.message.open())},async getList(){const{code:s,data:e}=await a.get("/api/Guild/quit_apply_list",this.searchParams);s&&(this.dataList=e.list)}}},[["render",function(s,e,a,k,D,v){const b=t("headerHeight"),j=t("navBar"),L=n,w=T(l("uni-popup-message"),y),B=T(l("uni-popup"),x);return u(),i(L,{class:"view-page",style:r({backgroundImage:`url('${D.ThemeData?D.ThemeData.app_bg:D.baseBgUrl}')`})},{default:o((()=>[d(b),d(j,{navTitle:"退出审核"}),d(L,{class:"content"},{default:o((()=>[(u(!0),p(c,null,m(D.dataList,((s,e)=>(u(),i(L,{class:"box-line flex-line w-fill"},{default:o((()=>[d(L,{class:"flex-line"},{default:o((()=>[g("img",{style:{width:"100rpx",height:"100rpx","border-radius":"50%"},src:s.avatar||D.logo,alt:""},null,8,["src"]),d(L,{class:"ml-20"},{default:o((()=>[d(L,{class:"color-3 font-32 font-w500"},{default:o((()=>[f(h(s.nickname),1)])),_:2},1024),d(L,{class:"color-6 font-24"},{default:o((()=>[f(" ID: "+h(s.user_code),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),d(L,null,{default:o((()=>[s.status?(u(),i(L,{key:0,class:_(1===s.status?"success-text":"error-text")},{default:o((()=>[f(h(1===s.status?"已同意":"已拒绝"),1)])),_:2},1032,["class"])):(u(),i(L,{key:1,class:"flex-line"},{default:o((()=>[d(L,{class:"no-button",onClick:e=>v.RefuseOrAgreeData(s,2)},{default:o((()=>[f(" 拒绝 ")])),_:2},1032,["onClick"]),d(L,{class:"agree-button",onClick:e=>v.RefuseOrAgreeData(s,1)},{default:o((()=>[f(" 同意 ")])),_:2},1032,["onClick"])])),_:2},1024))])),_:2},1024)])),_:2},1024)))),256))])),_:1}),d(B,{ref:"message",type:"message"},{default:o((()=>[d(w,{type:D.msgType,message:D.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-d278ed32"]]);export{j as default}; +import{c as s,g as e,h as a,r as t,e as l,f as i,w as o,i as r,j as n,o as u,k as d,q as p,u as m,F as c,l as g,p as f,t as h,E as _}from"./index-759PoYgM.js";import{_ as y,a as x}from"./uni-popup.DAsKHQxH.js";import{r as T}from"./uni-app.es.Hulr8kk-.js";import{h as k}from"./headerHeight.UQ4SBLpb.js";import{l as D}from"./logo.DDDG-929.js";import{n as v}from"./nav.BBjj-z52.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const j=b({components:{headerHeight:k,navBar:v},data:()=>({logo:D,baseBgUrl:s.PRIMARY_BGURL,guildId:null,msgType:"",messageText:"",dataList:[],searchParams:{guild_id:0,token:e("token")||""},ThemeData:null}),onLoad(s){const{id:a}=s;this.searchParams.guild_id=a,a&&this.getList(),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{async RefuseOrAgreeData(s,t){const{code:l,data:i,msg:o}=await a.post("/api/Guild/quit_apply_audit",{token:e("token")||"",apply_id:s.id,type:t});1===l?(this.msgType="success",this.messageText="操作成功",this.$refs.message.open(),this.getList()):(this.messageText=o,this.msgType="error",this.$refs.message.open())},async getList(){const{code:s,data:e}=await a.get("/api/Guild/quit_apply_list",this.searchParams);s&&(this.dataList=e.list)}}},[["render",function(s,e,a,k,D,v){const b=t("headerHeight"),j=t("navBar"),L=n,w=T(l("uni-popup-message"),y),R=T(l("uni-popup"),x);return u(),i(L,{class:"view-page",style:r({backgroundImage:`url('${D.ThemeData?D.ThemeData.app_bg:D.baseBgUrl}')`})},{default:o((()=>[d(b),d(j,{navTitle:"退出审核"}),d(L,{class:"content"},{default:o((()=>[(u(!0),p(c,null,m(D.dataList,((s,e)=>(u(),i(L,{class:"box-line flex-line w-fill"},{default:o((()=>[d(L,{class:"flex-line"},{default:o((()=>[g("img",{style:{width:"100rpx",height:"100rpx","border-radius":"50%"},src:s.avatar||D.logo,alt:""},null,8,["src"]),d(L,{class:"ml-20"},{default:o((()=>[d(L,{class:"color-3 font-32 font-w500"},{default:o((()=>[f(h(s.nickname),1)])),_:2},1024),d(L,{class:"color-6 font-24"},{default:o((()=>[f(" ID: "+h(s.user_code),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),d(L,null,{default:o((()=>[s.status?(u(),i(L,{key:0,class:_(1===s.status?"success-text":"error-text")},{default:o((()=>[f(h(1===s.status?"已同意":"已拒绝"),1)])),_:2},1032,["class"])):(u(),i(L,{key:1,class:"flex-line"},{default:o((()=>[d(L,{class:"no-button",onClick:e=>v.RefuseOrAgreeData(s,2)},{default:o((()=>[f(" 拒绝 ")])),_:2},1032,["onClick"]),d(L,{class:"agree-button",onClick:e=>v.RefuseOrAgreeData(s,1)},{default:o((()=>[f(" 同意 ")])),_:2},1032,["onClick"])])),_:2},1024))])),_:2},1024)])),_:2},1024)))),256))])),_:1}),d(R,{ref:"message",type:"message"},{default:o((()=>[d(w,{type:D.msgType,message:D.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-d278ed32"]]);export{j as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-historyRecord.Cx9d-OXr.js b/unpackage/dist/build/web/assets/pages-union-historyRecord.Cp203Wbx.js similarity index 95% rename from unpackage/dist/build/web/assets/pages-union-historyRecord.Cx9d-OXr.js rename to unpackage/dist/build/web/assets/pages-union-historyRecord.Cp203Wbx.js index 1b1df858..14622cf4 100644 --- a/unpackage/dist/build/web/assets/pages-union-historyRecord.Cx9d-OXr.js +++ b/unpackage/dist/build/web/assets/pages-union-historyRecord.Cp203Wbx.js @@ -1 +1 @@ -import{b as t,o as a,f as e,w as s,k as i,p as l,q as o,u as r,F as n,m as d,i as h,C as c,j as g,S as u,t as m,B as f,c as p,g as _,h as D,r as b}from"./index-BifMHC6c.js";import{h as w}from"./headerHeight.DQi3EG4R.js";import{n as y}from"./nav.CvI0lGd-.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";const S=M({components:{headerHeight:w,navBar:y,tableView:M({props:{tableData:{type:Array,default:()=>[]}},data:()=>({sortOrder:"desc",page:1,pageSize:10,loading:!1,noMore:!1,scrollHeight:600}),created(){this.calculateScrollHeight()},methods:{calculateScrollHeight(){const a=t();this.scrollHeight=a.windowHeight-50-67},toggleSort(){this.sortOrder="desc"===this.sortOrder?"asc":"desc",this.page=1,this.tableData=[],this.noMore=!1,this.loadData()},async loadData(){if(!this.loading&&!this.noMore){this.loading=!0;try{const t=this.getMockData(this.page,this.pageSize,this.sortOrder);if(0===t.length)return void(this.noMore=!0);1===this.page?this.tableData=t:this.tableData=[...this.tableData,...t],this.page++}finally{this.loading=!1}}},loadMore(){this.loadData()},getMockData(t,a,e){if(t>3)return[];const s=[],i=new Date,l=[0,1,2];for(let o=0;onew Date(t.time)-new Date(a.time))):s.sort(((t,a)=>new Date(a.time)-new Date(t.time)))},getStatusText:t=>({0:"待审核",1:"已通过",2:"已拒绝"}[t]||"未知")}},[["render",function(t,p,_,D,b,w){const y=c,M=g,S=u;return a(),e(M,{class:"container"},{default:s((()=>[i(S,{"scroll-y":"",class:"table-scroll",onScrolltolower:w.loadMore,style:h({height:b.scrollHeight+"px"})},{default:s((()=>[i(M,{class:"table-header"},{default:s((()=>[i(M,{class:"header-item time-col",onClick:w.toggleSort},{default:s((()=>[i(y,null,{default:s((()=>[l("时间")])),_:1})])),_:1},8,["onClick"]),i(M,{class:"header-item"},{default:s((()=>[l("累计流水")])),_:1}),i(M,{class:"header-item"},{default:s((()=>[l("获得补贴")])),_:1}),i(M,{class:"header-item"},{default:s((()=>[l("状态")])),_:1})])),_:1}),(a(!0),o(n,null,r(_.tableData,((t,o)=>(a(),e(M,{class:"table-row",key:o},{default:s((()=>[i(M,{class:"row-item time-col"},{default:s((()=>[l(m(t.time),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[l(m(t.total_transaction),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[l(m(t.subsidy_amount),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[i(y,{class:f("status-"+("已发放"===t.status_str?0:1))},{default:s((()=>[l(m(t.status_str),1)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)))),128)),i(M,{class:"load-more"},{default:s((()=>[b.loading?(a(),e(y,{key:0},{default:s((()=>[l("加载中...")])),_:1})):b.noMore?(a(),e(y,{key:1},{default:s((()=>[l("没有更多数据了")])),_:1})):d("",!0)])),_:1})])),_:1},8,["onScrolltolower","style"])])),_:1})}],["__scopeId","data-v-ceedcd16"]])},data:()=>({guildId:null,aseBgUrl:p.PRIMARY_BGURL,dataList:[],pageConfig:{currentPage:1,pageSize:10},searchParams:{guild_id:0,token:_("token")||""},ThemeData:null}),onLoad(t){const{id:a}=t;this.searchParams.guild_id=a,a&&this.getList(),_("Theme_Data")&&(this.ThemeData=JSON.parse(_("Theme_Data")))},methods:{async getList(){const{code:t,data:a}=await D.get("/api/Guild/guild_subsidy_list",{...this.searchParams,page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize});if(t){this.pageConfig.total=a.count,this.loading=!1;const t=a.list||[];if(0===t.length)return void(this.noMore=!0);if(this.dataList.length===this.pageConfig.total)return void(this.noMore=!0);this.dataList=[...this.dataList,...t],this.pageConfig.currentPage++}}}},[["render",function(t,l,o,r,n,d){const c=b("headerHeight"),u=b("navBar"),m=b("tableView"),f=g;return a(),e(f,{class:"view-page",style:h({backgroundImage:`url('${n.ThemeData?n.ThemeData.app_bg:t.baseBgUrl}')`})},{default:s((()=>[i(c),i(u,{navTitle:"历史记录"}),i(f,{class:"content"},{default:s((()=>[i(m,{tableData:n.dataList},null,8,["tableData"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-d1bfb876"]]);export{S as default}; +import{b as t,o as a,f as e,w as s,k as i,p as l,q as o,u as r,F as n,m as d,i as h,G as c,j as g,S as u,t as m,E as f,c as p,g as _,h as D,r as b}from"./index-759PoYgM.js";import{h as w}from"./headerHeight.UQ4SBLpb.js";import{n as y}from"./nav.BBjj-z52.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";const S=M({components:{headerHeight:w,navBar:y,tableView:M({props:{tableData:{type:Array,default:()=>[]}},data:()=>({sortOrder:"desc",page:1,pageSize:10,loading:!1,noMore:!1,scrollHeight:600}),created(){this.calculateScrollHeight()},methods:{calculateScrollHeight(){const a=t();this.scrollHeight=a.windowHeight-50-67},toggleSort(){this.sortOrder="desc"===this.sortOrder?"asc":"desc",this.page=1,this.tableData=[],this.noMore=!1,this.loadData()},async loadData(){if(!this.loading&&!this.noMore){this.loading=!0;try{const t=this.getMockData(this.page,this.pageSize,this.sortOrder);if(0===t.length)return void(this.noMore=!0);1===this.page?this.tableData=t:this.tableData=[...this.tableData,...t],this.page++}finally{this.loading=!1}}},loadMore(){this.loadData()},getMockData(t,a,e){if(t>3)return[];const s=[],i=new Date,l=[0,1,2];for(let o=0;onew Date(t.time)-new Date(a.time))):s.sort(((t,a)=>new Date(a.time)-new Date(t.time)))},getStatusText:t=>({0:"待审核",1:"已通过",2:"已拒绝"}[t]||"未知")}},[["render",function(t,p,_,D,b,w){const y=c,M=g,S=u;return a(),e(M,{class:"container"},{default:s((()=>[i(S,{"scroll-y":"",class:"table-scroll",onScrolltolower:w.loadMore,style:h({height:b.scrollHeight+"px"})},{default:s((()=>[i(M,{class:"table-header"},{default:s((()=>[i(M,{class:"header-item time-col",onClick:w.toggleSort},{default:s((()=>[i(y,null,{default:s((()=>[l("时间")])),_:1})])),_:1},8,["onClick"]),i(M,{class:"header-item"},{default:s((()=>[l("累计流水")])),_:1}),i(M,{class:"header-item"},{default:s((()=>[l("获得补贴")])),_:1}),i(M,{class:"header-item"},{default:s((()=>[l("状态")])),_:1})])),_:1}),(a(!0),o(n,null,r(_.tableData,((t,o)=>(a(),e(M,{class:"table-row",key:o},{default:s((()=>[i(M,{class:"row-item time-col"},{default:s((()=>[l(m(t.time),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[l(m(t.total_transaction),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[l(m(t.subsidy_amount),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[i(y,{class:f("status-"+("已发放"===t.status_str?0:1))},{default:s((()=>[l(m(t.status_str),1)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)))),128)),i(M,{class:"load-more"},{default:s((()=>[b.loading?(a(),e(y,{key:0},{default:s((()=>[l("加载中...")])),_:1})):b.noMore?(a(),e(y,{key:1},{default:s((()=>[l("没有更多数据了")])),_:1})):d("",!0)])),_:1})])),_:1},8,["onScrolltolower","style"])])),_:1})}],["__scopeId","data-v-ceedcd16"]])},data:()=>({guildId:null,aseBgUrl:p.PRIMARY_BGURL,dataList:[],pageConfig:{currentPage:1,pageSize:10},searchParams:{guild_id:0,token:_("token")||""},ThemeData:null}),onLoad(t){const{id:a}=t;this.searchParams.guild_id=a,a&&this.getList(),_("Theme_Data")&&(this.ThemeData=JSON.parse(_("Theme_Data")))},methods:{async getList(){const{code:t,data:a}=await D.get("/api/Guild/guild_subsidy_list",{...this.searchParams,page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize});if(t){this.pageConfig.total=a.count,this.loading=!1;const t=a.list||[];if(0===t.length)return void(this.noMore=!0);if(this.dataList.length===this.pageConfig.total)return void(this.noMore=!0);this.dataList=[...this.dataList,...t],this.pageConfig.currentPage++}}}},[["render",function(t,l,o,r,n,d){const c=b("headerHeight"),u=b("navBar"),m=b("tableView"),f=g;return a(),e(f,{class:"view-page",style:h({backgroundImage:`url('${n.ThemeData?n.ThemeData.app_bg:t.baseBgUrl}')`})},{default:s((()=>[i(c),i(u,{navTitle:"历史记录"}),i(f,{class:"content"},{default:s((()=>[i(m,{tableData:n.dataList},null,8,["tableData"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-d1bfb876"]]);export{S as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-index.PBfIvgI_.js b/unpackage/dist/build/web/assets/pages-union-index.CI7W0mDn.js similarity index 97% rename from unpackage/dist/build/web/assets/pages-union-index.PBfIvgI_.js rename to unpackage/dist/build/web/assets/pages-union-index.CI7W0mDn.js index 8b98968d..bc3f0c28 100644 --- a/unpackage/dist/build/web/assets/pages-union-index.PBfIvgI_.js +++ b/unpackage/dist/build/web/assets/pages-union-index.CI7W0mDn.js @@ -1 +1 @@ -import{c as s,s as e,g as t,$ as i,n as a,a as o,b as l,h as n,d as r,r as u,e as d,f as c,w as p,i as g,j as h,o as _,k as m,l as f,m as b,p as k,t as y,q as w,u as x,F as v}from"./index-BifMHC6c.js";import{_ as C,a as U}from"./uni-popup.D8sN-IRM.js";import{r as M}from"./uni-app.es.BM6_Rfsu.js";import{n as T}from"./nav.CvI0lGd-.js";import{l as $}from"./logo.DDDG-929.js";import{l as B}from"./logout.q3EjtEfG.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const D=L({components:{navBar:T},data:()=>({noUnionImage:s.not_unionUrl,baseBgUrl:s.new_unionUrl,unionBgUrl:s.unicon_url,logo:$,logout:B,loading:!1,noMore:!1,isMerber:null,listData:[],UnionByUser:null,statusBarHeight:0,ThemeData:null,swiperList:[],isLeader:!1,isHasUnicon:!1,cardList:[{icon:s.coin_url,title:"本周金额",prop:"week_income"},{icon:s.hongbao_url,title:"厅主收益",prop:"room_author_ratio"},{icon:s.gift_url,title:"礼物分成",prop:"settlement_ratio"}],messageContent:"",popupStstus:0,messageText:"",msgType:"success",statusData:null,guild_id:""}),onLoad(s){const{id:o,h:l}=s;e("token",o||""),t("token")&&(this.getInfo(),this.getStatus()),this.statusBarHeight=l,e("BarHeight",l),t("Theme_Data")&&(this.ThemeData=JSON.parse(t("Theme_Data"))),i("refreshList",(s=>{this.refreshList()})),s.guild_id&&(this.guild_id=s.guild_id,a({url:"/pages/union/list?guild_id="+s.guild_id}))},onUnload(){o("refreshList")},methods:{back(){this.closeWeb()},search(){this.pageConfig.currentPage=1,this.listData=[],this.getList()},refreshList(){this.getInfo(),this.getStatus()},closeWeb(){const s=l().platform;"ios"===s?(console.log("调用iOS原生方法"),window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"})):"android"===s&&(console.log("调用Android原生方法"),window.Android.closeWeb())},async getStatus(){n.get("/api/Guild/is_guild_member",{token:t("token")||""}).then((s=>{const{data:e,code:t,msg:i}=s;this.statusData={...e.guild,msg:i,code:t}})).catch((s=>{}))},async getInfo(){n.get("/api/Guild/my_guild",{token:t("token")||""}).then((s=>{const{data:e,code:t}=s;this.isLeader=!!t&&1==e.is_leader,this.isHasUnicon=!!t&&!!e.guild_id,this.isMerber=!!t&&e})).catch((s=>{this.isMerber=null,this.isHasUnicon=!1,this.isLeader=!1}))},exit(){r({itemList:["申请退出","付费退出"],success:s=>{0===s.tapIndex?this.applyToWithdraw():1===s.tapIndex&&this.paidWithdrawal()},fail:s=>{console.error("用户取消选择:",s)}})},applyToWithdraw(){this.popupStstus=0,this.messageContent="亲爱的会员,会长将在3天内审核,若超时未通过,您将自动退出并可加入其他公会;若通过,则30天内无法加入其他公会,是否还需要申请退出?",this.$refs.popup.open("center")},paidWithdrawal(){this.popupStstus=2,this.messageContent=`亲爱的会员,支付${this.isMerber.quit_guild_gold||0}金币,即可及时退出公会!是否需要付费退出?`,this.$refs.popup.open("center")},dissolveUnion(){this.popupStstus=4,this.messageContent="亲爱的会长,您当前操作将解散公会,是否解散?",this.$refs.popup.open("center")},closePopup(){this.$refs.popup.close()},confirmPopup(){null!==this.popupStstus&&(0===this.popupStstus?this.exitUnionize(1):2===this.popupStstus?this.exitUnionize(2):4===this.popupStstus&&this.isMerber.is_leader&&this.unionDissolve())},async exitUnionize(s){n.post("/api/Guild/quit_guild",{guild_id:this.isMerber.guild_id,type:s,token:t("token")||""}).then((e=>{const{data:t,code:i,msg:a}=e;1===i?(this.msgType="success",this.messageText=""+(1===s?"退出申请已提交,请等待审核":"付费退出成功"),this.$refs.message.open(),this.refreshList()):(this.messageText=a,this.msgType="error",this.$refs.message.open()),this.closePopup()}))},async unionDissolve(){n.post("/api/Guild/diss_guild",{guild_id:this.isMerber.guild_id,token:t("token")||""}).then((s=>{const{data:e,code:t,msg:i}=s;1===t?(this.msgType="success",this.messageText="操作成功",this.$refs.message.open(),this.refreshList()):(this.messageText=i,this.msgType="error",this.$refs.message.open()),this.closePopup()}))},applyUnion(){""==this.guild_id?a({url:"/pages/union/list"}):a({url:`/pages/union/list?guild_id=${this.guild_id}`})},reportUnion(){a({url:`/pages/feedback/report?id=${t("token")}&fromType=4&fromId=${this.isMerber.guild_id}&fromView=1&h=${this.statusBarHeight}`})},viewAgreement(){a({url:`/pages/union/agreement?h=${this.statusBarHeight}`})},groupChat(){const s=l().platform,e={group_id:this.isMerber.guild_id,cover:this.isMerber.user_avatar,guild_name:this.isMerber.guild_name};"ios"===s?window.webkit.messageHandlers.nativeHandler.postMessage({action:"enterGroupChat",data:e}):"android"===s&&window.Android.enterGroupChat(this.isMerber.guild_id,this.isMerber.user_avatar,this.isMerber.guild_name)}}},[["render",function(s,e,i,a,o,n){const r=h,T=u("navBar"),$=M(d("uni-popup-message"),C),B=M(d("uni-popup"),U);return _(),c(r,{class:"view-page",style:g({backgroundImage:`url('${o.ThemeData?o.ThemeData.app_bg:o.baseBgUrl}')`})},{default:p((()=>[m(T,{style:g({marginTop:`${o.statusBarHeight}${"ios"===l().platform?"px":"dp"}`}),navTitle:"我的公会",emitBack:!0,onBackEvent:n.back},{rightView:p((()=>[o.isHasUnicon&&!o.isLeader?(_(),c(r,{key:0,class:"icon-right flex-line",onClick:n.exit},{default:p((()=>[f("img",{src:o.logout,alt:""},null,8,["src"])])),_:1},8,["onClick"])):b("",!0)])),_:1},8,["style","onBackEvent"]),m(r,{class:"content"},{default:p((()=>[o.isHasUnicon?(_(),c(r,{key:0,class:""},{default:p((()=>[m(r,{class:"w-fill unionBgView",style:g({backgroundImage:`url('${o.unionBgUrl}')`})},{default:p((()=>[m(r,{class:"avatar"},{default:p((()=>[f("img",{src:o.isMerber.user_avatar,alt:""},null,8,["src"])])),_:1}),m(r,{class:"basic_info_view"},{default:p((()=>[m(r,{class:"unionName color-0 font-32"},{default:p((()=>[k(y(o.isMerber.user_nickname),1)])),_:1}),m(r,{class:"unionId mt-6"},{default:p((()=>[k(" ID:"+y(o.isMerber.guild_code),1)])),_:1}),m(r,{class:"unicon mt-12"},{default:p((()=>[k(" 已加入"+y(o.isMerber.guild_name),1)])),_:1})])),_:1}),m(r,{class:"card-view"},{default:p((()=>[(_(!0),w(v,null,x(o.cardList,((s,e)=>(_(),c(r,{class:"card-box",key:e},{default:p((()=>[m(r,{class:"card-title"},{default:p((()=>[f("img",{src:s.icon,class:"icon-box",alt:""},null,8,["src"]),k(y(s.title),1)])),_:2},1024),m(r,{class:"card-value"},{default:p((()=>[k(y(o.isMerber[s.prop])+" ",1),e?(_(),w("span",{key:0},"%")):b("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["style"]),m(r,{class:"lineWrap"},{default:p((()=>[m(r,{class:"line-box"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(y(o.isMerber.guild_name)+"的公会协议 ",1)])),_:1}),m(r,{class:"right-text",onClick:n.viewAgreement},{default:p((()=>[k(" 查看协议 ")])),_:1},8,["onClick"])])),_:1}),m(r,{class:"line-box"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(y(o.isMerber.guild_name)+"的公会群聊 ",1)])),_:1}),m(r,{class:"right-text",onClick:n.groupChat},{default:p((()=>[k(" 进入群聊 ")])),_:1},8,["onClick"])])),_:1}),m(r,{class:"line-box"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(" 举报公会 ")])),_:1}),m(r,{class:"right-text",style:{color:"#999"},onClick:n.reportUnion},{default:p((()=>[k(" 举报 ")])),_:1},8,["onClick"])])),_:1})])),_:1}),o.isLeader?(_(),c(r,{key:0,class:"button-view"},{default:p((()=>[m(r,{class:"button-box",onClick:n.dissolveUnion},{default:p((()=>[k(" 解散公会 ")])),_:1},8,["onClick"])])),_:1})):b("",!0)])),_:1})):(_(),c(r,{key:1,class:"no-status"},{default:p((()=>[m(r,{class:"noView"},{default:p((()=>[f("img",{src:o.noUnionImage,alt:""},null,8,["src"])])),_:1}),m(r,{class:"mt-24"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(y(o.statusData.status_str),1)])),_:1}),m(r,{class:"font-24 color-9 mt-24"},{default:p((()=>[k(y(o.statusData.msg),1)])),_:1})])),_:1}),t("token")&&2!==o.statusData.status?(_(),c(r,{key:0,class:"button-view"},{default:p((()=>[m(r,{class:"button-box",onClick:n.applyUnion},{default:p((()=>[k(" 申请加入公会 ")])),_:1},8,["onClick"])])),_:1})):b("",!0)])),_:1}))])),_:1}),m(B,{ref:"message",type:"message"},{default:p((()=>[m($,{type:o.msgType,message:o.messageText,duration:2e3},null,8,["type","message"])])),_:1},512),m(B,{ref:"popup",type:"center"},{default:p((()=>[m(r,{class:"popup_view"},{default:p((()=>[m(r,{class:"color-3 font-32 popup_title"},{default:p((()=>[k(" 温馨提示 ")])),_:1}),m(r,{class:"color-3 font-24 messageContent"},{default:p((()=>[k(y(o.messageContent),1)])),_:1}),m(r,{class:"popup_button flex-line"},{default:p((()=>[m(r,{class:"close_button flex-line",onClick:n.closePopup},{default:p((()=>[k(" 取消 ")])),_:1},8,["onClick"]),m(r,{class:"confirm-button flex-line",onClick:n.confirmPopup},{default:p((()=>[k(" 确认 ")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-06b7eba3"]]);export{D as default}; +import{c as s,s as e,g as t,$ as i,n as a,a as o,b as l,h as n,d as r,r as u,e as d,f as c,w as p,i as g,j as h,o as _,k as m,l as f,m as b,p as k,t as y,q as w,u as x,F as v}from"./index-759PoYgM.js";import{_ as C,a as U}from"./uni-popup.DAsKHQxH.js";import{r as M}from"./uni-app.es.Hulr8kk-.js";import{n as T}from"./nav.BBjj-z52.js";import{l as $}from"./logo.DDDG-929.js";import{l as B}from"./logout.q3EjtEfG.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const D=L({components:{navBar:T},data:()=>({noUnionImage:s.not_unionUrl,baseBgUrl:s.new_unionUrl,unionBgUrl:s.unicon_url,logo:$,logout:B,loading:!1,noMore:!1,isMerber:null,listData:[],UnionByUser:null,statusBarHeight:0,ThemeData:null,swiperList:[],isLeader:!1,isHasUnicon:!1,cardList:[{icon:s.coin_url,title:"本周金额",prop:"week_income"},{icon:s.hongbao_url,title:"厅主收益",prop:"room_author_ratio"},{icon:s.gift_url,title:"礼物分成",prop:"settlement_ratio"}],messageContent:"",popupStstus:0,messageText:"",msgType:"success",statusData:null,guild_id:""}),onLoad(s){const{id:o,h:l}=s;e("token",o||""),t("token")&&(this.getInfo(),this.getStatus()),this.statusBarHeight=l,e("BarHeight",l),t("Theme_Data")&&(this.ThemeData=JSON.parse(t("Theme_Data"))),i("refreshList",(s=>{this.refreshList()})),s.guild_id&&(this.guild_id=s.guild_id,a({url:"/pages/union/list?guild_id="+s.guild_id}))},onUnload(){o("refreshList")},methods:{back(){this.closeWeb()},search(){this.pageConfig.currentPage=1,this.listData=[],this.getList()},refreshList(){this.getInfo(),this.getStatus()},closeWeb(){const s=l().platform;"ios"===s?(console.log("调用iOS原生方法"),window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"})):"android"===s&&(console.log("调用Android原生方法"),window.Android.closeWeb())},async getStatus(){n.get("/api/Guild/is_guild_member",{token:t("token")||""}).then((s=>{const{data:e,code:t,msg:i}=s;this.statusData={...e.guild,msg:i,code:t}})).catch((s=>{}))},async getInfo(){n.get("/api/Guild/my_guild",{token:t("token")||""}).then((s=>{const{data:e,code:t}=s;this.isLeader=!!t&&1==e.is_leader,this.isHasUnicon=!!t&&!!e.guild_id,this.isMerber=!!t&&e})).catch((s=>{this.isMerber=null,this.isHasUnicon=!1,this.isLeader=!1}))},exit(){r({itemList:["申请退出","付费退出"],success:s=>{0===s.tapIndex?this.applyToWithdraw():1===s.tapIndex&&this.paidWithdrawal()},fail:s=>{console.error("用户取消选择:",s)}})},applyToWithdraw(){this.popupStstus=0,this.messageContent="亲爱的会员,会长将在3天内审核,若超时未通过,您将自动退出并可加入其他公会;若通过,则30天内无法加入其他公会,是否还需要申请退出?",this.$refs.popup.open("center")},paidWithdrawal(){this.popupStstus=2,this.messageContent=`亲爱的会员,支付${this.isMerber.quit_guild_gold||0}金币,即可及时退出公会!是否需要付费退出?`,this.$refs.popup.open("center")},dissolveUnion(){this.popupStstus=4,this.messageContent="亲爱的会长,您当前操作将解散公会,是否解散?",this.$refs.popup.open("center")},closePopup(){this.$refs.popup.close()},confirmPopup(){null!==this.popupStstus&&(0===this.popupStstus?this.exitUnionize(1):2===this.popupStstus?this.exitUnionize(2):4===this.popupStstus&&this.isMerber.is_leader&&this.unionDissolve())},async exitUnionize(s){n.post("/api/Guild/quit_guild",{guild_id:this.isMerber.guild_id,type:s,token:t("token")||""}).then((e=>{const{data:t,code:i,msg:a}=e;1===i?(this.msgType="success",this.messageText=""+(1===s?"退出申请已提交,请等待审核":"付费退出成功"),this.$refs.message.open(),this.refreshList()):(this.messageText=a,this.msgType="error",this.$refs.message.open()),this.closePopup()}))},async unionDissolve(){n.post("/api/Guild/diss_guild",{guild_id:this.isMerber.guild_id,token:t("token")||""}).then((s=>{const{data:e,code:t,msg:i}=s;1===t?(this.msgType="success",this.messageText="操作成功",this.$refs.message.open(),this.refreshList()):(this.messageText=i,this.msgType="error",this.$refs.message.open()),this.closePopup()}))},applyUnion(){""==this.guild_id?a({url:"/pages/union/list"}):a({url:`/pages/union/list?guild_id=${this.guild_id}`})},reportUnion(){a({url:`/pages/feedback/report?id=${t("token")}&fromType=4&fromId=${this.isMerber.guild_id}&fromView=1&h=${this.statusBarHeight}`})},viewAgreement(){a({url:`/pages/union/agreement?h=${this.statusBarHeight}`})},groupChat(){const s=l().platform,e={group_id:this.isMerber.guild_id,cover:this.isMerber.user_avatar,guild_name:this.isMerber.guild_name};"ios"===s?window.webkit.messageHandlers.nativeHandler.postMessage({action:"enterGroupChat",data:e}):"android"===s&&window.Android.enterGroupChat(this.isMerber.guild_id,this.isMerber.user_avatar,this.isMerber.guild_name)}}},[["render",function(s,e,i,a,o,n){const r=h,T=u("navBar"),$=M(d("uni-popup-message"),C),B=M(d("uni-popup"),U);return _(),c(r,{class:"view-page",style:g({backgroundImage:`url('${o.ThemeData?o.ThemeData.app_bg:o.baseBgUrl}')`})},{default:p((()=>[m(T,{style:g({marginTop:`${o.statusBarHeight}${"ios"===l().platform?"px":"dp"}`}),navTitle:"我的公会",emitBack:!0,onBackEvent:n.back},{rightView:p((()=>[o.isHasUnicon&&!o.isLeader?(_(),c(r,{key:0,class:"icon-right flex-line",onClick:n.exit},{default:p((()=>[f("img",{src:o.logout,alt:""},null,8,["src"])])),_:1},8,["onClick"])):b("",!0)])),_:1},8,["style","onBackEvent"]),m(r,{class:"content"},{default:p((()=>[o.isHasUnicon?(_(),c(r,{key:0,class:""},{default:p((()=>[m(r,{class:"w-fill unionBgView",style:g({backgroundImage:`url('${o.unionBgUrl}')`})},{default:p((()=>[m(r,{class:"avatar"},{default:p((()=>[f("img",{src:o.isMerber.user_avatar,alt:""},null,8,["src"])])),_:1}),m(r,{class:"basic_info_view"},{default:p((()=>[m(r,{class:"unionName color-0 font-32"},{default:p((()=>[k(y(o.isMerber.user_nickname),1)])),_:1}),m(r,{class:"unionId mt-6"},{default:p((()=>[k(" ID:"+y(o.isMerber.guild_code),1)])),_:1}),m(r,{class:"unicon mt-12"},{default:p((()=>[k(" 已加入"+y(o.isMerber.guild_name),1)])),_:1})])),_:1}),m(r,{class:"card-view"},{default:p((()=>[(_(!0),w(v,null,x(o.cardList,((s,e)=>(_(),c(r,{class:"card-box",key:e},{default:p((()=>[m(r,{class:"card-title"},{default:p((()=>[f("img",{src:s.icon,class:"icon-box",alt:""},null,8,["src"]),k(y(s.title),1)])),_:2},1024),m(r,{class:"card-value"},{default:p((()=>[k(y(o.isMerber[s.prop])+" ",1),e?(_(),w("span",{key:0},"%")):b("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["style"]),m(r,{class:"lineWrap"},{default:p((()=>[m(r,{class:"line-box"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(y(o.isMerber.guild_name)+"的公会协议 ",1)])),_:1}),m(r,{class:"right-text",onClick:n.viewAgreement},{default:p((()=>[k(" 查看协议 ")])),_:1},8,["onClick"])])),_:1}),m(r,{class:"line-box"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(y(o.isMerber.guild_name)+"的公会群聊 ",1)])),_:1}),m(r,{class:"right-text",onClick:n.groupChat},{default:p((()=>[k(" 进入群聊 ")])),_:1},8,["onClick"])])),_:1}),m(r,{class:"line-box"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(" 举报公会 ")])),_:1}),m(r,{class:"right-text",style:{color:"#999"},onClick:n.reportUnion},{default:p((()=>[k(" 举报 ")])),_:1},8,["onClick"])])),_:1})])),_:1}),o.isLeader?(_(),c(r,{key:0,class:"button-view"},{default:p((()=>[m(r,{class:"button-box",onClick:n.dissolveUnion},{default:p((()=>[k(" 解散公会 ")])),_:1},8,["onClick"])])),_:1})):b("",!0)])),_:1})):(_(),c(r,{key:1,class:"no-status"},{default:p((()=>[m(r,{class:"noView"},{default:p((()=>[f("img",{src:o.noUnionImage,alt:""},null,8,["src"])])),_:1}),m(r,{class:"mt-24"},{default:p((()=>[m(r,{class:""},{default:p((()=>[k(y(o.statusData.status_str),1)])),_:1}),m(r,{class:"font-24 color-9 mt-24"},{default:p((()=>[k(y(o.statusData.msg),1)])),_:1})])),_:1}),t("token")&&2!==o.statusData.status?(_(),c(r,{key:0,class:"button-view"},{default:p((()=>[m(r,{class:"button-box",onClick:n.applyUnion},{default:p((()=>[k(" 申请加入公会 ")])),_:1},8,["onClick"])])),_:1})):b("",!0)])),_:1}))])),_:1}),m(B,{ref:"message",type:"message"},{default:p((()=>[m($,{type:o.msgType,message:o.messageText,duration:2e3},null,8,["type","message"])])),_:1},512),m(B,{ref:"popup",type:"center"},{default:p((()=>[m(r,{class:"popup_view"},{default:p((()=>[m(r,{class:"color-3 font-32 popup_title"},{default:p((()=>[k(" 温馨提示 ")])),_:1}),m(r,{class:"color-3 font-24 messageContent"},{default:p((()=>[k(y(o.messageContent),1)])),_:1}),m(r,{class:"popup_button flex-line"},{default:p((()=>[m(r,{class:"close_button flex-line",onClick:n.closePopup},{default:p((()=>[k(" 取消 ")])),_:1},8,["onClick"]),m(r,{class:"confirm-button flex-line",onClick:n.confirmPopup},{default:p((()=>[k(" 确认 ")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-06b7eba3"]]);export{D as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-list.D3bNu27r.js b/unpackage/dist/build/web/assets/pages-union-list.D3bNu27r.js deleted file mode 100644 index c5f32929..00000000 --- a/unpackage/dist/build/web/assets/pages-union-list.D3bNu27r.js +++ /dev/null @@ -1 +0,0 @@ -import{c as s,g as e,v as t,h as a,b as i,x as l,r as n,e as o,f as u,w as r,i as p,j as c,o as d,k as h,l as g,m,p as f,q as _,u as A,F as k,t as y,y as C,z as U,A as x}from"./index-BifMHC6c.js";import{_ as b}from"./uni-easyinput.CmmQ9HCd.js";import{r as T}from"./uni-app.es.BM6_Rfsu.js";import{_ as v,a as B}from"./uni-popup.D8sN-IRM.js";import{n as D}from"./nav.CvI0lGd-.js";import{l as S}from"./logo.DDDG-929.js";import{l as w}from"./logout.q3EjtEfG.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.CP-9I_4O.js";const I=V({components:{navBar:D},data:()=>({searchValue:"",noUnionImage:s.not_unionUrl,baseBgUrl:s.new_unionUrl,unionBgUrl:s.unicon_url,logo:S,logout:w,loading:!1,noMore:!1,isMerber:null,listData:[],UnionByUser:null,statusBarHeight:0,ThemeData:null,isAuth:!1,isLeader:!1,isHasUnicon:!1,messageContent:"",popupStstus:0,messageText:"",msgType:"success",detailData:null}),onShow(s){e("token")?(this.getUserInfo(),e("BarHeight")&&(this.statusBarHeight=e("BarHeight")),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data"))),s.guild_id&&(this.searchValue=s.guild_id,this.getUnionList(s.guild_id))):t()},methods:{async getUserInfo(){a.get("/api/User/get_user_info",{token:e("token")||""}).then((s=>{const{data:e,code:t}=s;this.isAuth=t?e.auth:0}))},async getUnionList(s){this.loading=!0,a.get("/api/Guild/guild_list",{page:1,limit:1e3,search_id:s,token:e("token")||""}).then((s=>{const{data:e,code:t}=s;t&&(this.loading=!1,this.listData=e.list||[])})).catch((s=>{this.loading=!1}))},search(){this.searchValue&&this.getUnionList(this.searchValue)},applyUnion(s){this.isAuth?(this.detailData=s,this.popupStstus=1,this.messageContent="是否选择加入当前公会",this.$refs.popup.open("center")):(this.popupStstus=3,this.messageContent="当前尚未实名认证,是否跳转到实名认证页面?",this.$refs.popup.open("center"))},closePopup(){this.popupStstus=null,this.detailData=null,this.messageContent="",this.$refs.popup.close()},confirmPopup(){null!==this.popupStstus&&(1===this.popupStstus?this.joinUnionize():3===this.popupStstus&&this.authConfirm())},authConfirm(){const s=i().platform;"ios"===s?window.webkit.messageHandlers.nativeHandler.postMessage({action:"enterAuthent"}):"android"===s&&window.Android.enterAuthent(),this.closePopup()},async joinUnionize(){a.post("/api/Guild/join_guild",{guild_id:this.detailData.id,token:e("token")||""}).then((s=>{const{data:e,code:a,msg:i}=s;a?(this.messageText="加入成功",this.$refs.message.open(),this.msgType="success",l("refreshList"),t()):(this.messageText=i,this.msgType="error",this.$refs.message.open()),this.closePopup()}))}}},[["render",function(s,e,t,a,l,D){const S=c,w=n("navBar"),V=T(o("uni-easyinput"),b),I=T(o("uni-popup-message"),v),j=T(o("uni-popup"),B);return d(),u(S,{class:"view-page",style:p({backgroundImage:`url('${l.ThemeData?l.ThemeData.app_bg:l.baseBgUrl}')`})},{default:r((()=>[h(w,{style:p({marginTop:`${l.statusBarHeight}${"ios"===i().platform?"px":"dp"}`}),navTitle:"公会中心"},{rightView:r((()=>[l.isHasUnicon&&!l.isLeader?(d(),u(S,{key:0,class:"icon-right flex-line",onClick:s.exit},{default:r((()=>[g("img",{src:l.logout,alt:""},null,8,["src"])])),_:1},8,["onClick"])):m("",!0)])),_:1},8,["style"]),h(S,{class:"content"},{default:r((()=>[h(S,{class:"flex-input"},{default:r((()=>[h(V,{prefixIcon:"search",clearSize:"18",modelValue:l.searchValue,"onUpdate:modelValue":e[0]||(e[0]=s=>l.searchValue=s),placeholder:"请输入公会ID/昵称"},null,8,["modelValue"]),h(S,{class:"search-button",onClick:D.search},{default:r((()=>[f(" 搜索 ")])),_:1},8,["onClick"])])),_:1}),h(S,{class:"hotspot-view"},{default:r((()=>[(d(!0),_(k,null,A(l.listData,(e=>(d(),u(S,{class:"hotspot-box",key:e.id},{default:r((()=>[h(S,{class:"flex-line"},{default:r((()=>[h(S,{class:"head-portrait"},{default:r((()=>[g("img",{src:e.cover||l.logo,alt:""},null,8,["src"])])),_:2},1024),h(S,{class:"info-box ml-20"},{default:r((()=>[h(S,{class:"flex-line"},{default:r((()=>[g("span",{class:"truncate"},y(e.guild_name),1),g("span",{class:"id-title"},"ID:"+y(e.guild_special_id),1),g("img",{onClick:C((t=>s.copyData(e.guild_special_id)),["stop"]),class:"icon-box",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARVJREFUSEvtljFOwzAYhd/bGBkTiaEDCxJIvQITrL1EkmP4GEkuwQoTV6gEUheGDpWSkZHttb/UVJBgN1WdrZY85f3/Zz3bzyEmHpy4P4KAuq6fJBWSrscshOQ3yTLLsrdO7wXsm79KWgOweXSQvAFwS/K5g3gBVVW9ALhvmubBOfdztPtO4Jy7SpJkRXKZ5/nCaryAsizfTVAUxeOY5p2mX/cH8NtzknMrkrT0Af7z3AuI5bkXEMtzLyCW5xfA4ED1LblYFLTIoiJN0w8An4OoOOeY2q3f3/gZSZvDsIsBCMb1OYBQKB7CzqJC0rxt27tT4rnveX+TDoAu7AB8SdqMjOiB516AfYjxRAYBI1d9kmzyv4otqa0FKOPhXFcAAAAASUVORK5CYII=",alt:""},null,8,["onClick"])])),_:2},1024),h(S,{class:"subhead-title truncate"},{default:r((()=>[f(y(e.intro),1)])),_:2},1024),h(S,{class:"chairman"},{default:r((()=>[h(S,{class:"chairman-portrait"},{default:r((()=>[g("img",{src:e.user_avatar,alt:"暂无头像"},null,8,["src"])])),_:2},1024),h(S,{class:"chairman-name"},{default:r((()=>[f(y(e.user_name),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024),h(S,{class:"right-button"},{default:r((()=>[h(S,{class:"apply-button",onClick:s=>D.applyUnion(e)},{default:r((()=>[f(" 申请 ")])),_:2},1032,["onClick"]),h(S,{class:"online-view"},{default:r((()=>[U(h(S,null,{default:r((()=>[h(S,{class:"avatars-container"},{default:r((()=>[(d(!0),_(k,null,A(e.guild_user_list.slice(0,3),(s=>(d(),u(S,{class:"avatar",key:s.id},{default:r((()=>[g("img",{src:s.avatar,alt:""},null,8,["src"])])),_:2},1024)))),128))])),_:2},1024)])),_:2},1536),[[x,e.guild_user_list.length]]),h(S,{class:"online-people"},{default:r((()=>[f(y(e.num)+"人 ",1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),h(j,{ref:"message",type:"message"},{default:r((()=>[h(I,{type:l.msgType,message:l.messageText,duration:2e3},null,8,["type","message"])])),_:1},512),h(j,{ref:"popup",type:"center"},{default:r((()=>[h(S,{class:"popup_view"},{default:r((()=>[h(S,{class:"color-3 font-32 popup_title"},{default:r((()=>[f(" 温馨提示 ")])),_:1}),h(S,{class:"color-3 font-24 messageContent"},{default:r((()=>[f(y(l.messageContent),1)])),_:1}),h(S,{class:"popup_button flex-line"},{default:r((()=>[h(S,{class:"close_button flex-line",onClick:D.closePopup},{default:r((()=>[f(" 取消 ")])),_:1},8,["onClick"]),h(S,{class:"confirm-button flex-line",onClick:D.confirmPopup},{default:r((()=>[f(" 确认 ")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-ce53933e"]]);export{I as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-list.wZyXjN1g.js b/unpackage/dist/build/web/assets/pages-union-list.wZyXjN1g.js new file mode 100644 index 00000000..1c31ec00 --- /dev/null +++ b/unpackage/dist/build/web/assets/pages-union-list.wZyXjN1g.js @@ -0,0 +1 @@ +import{c as s,g as e,v as t,h as a,s as i,x as l,y as o,z as n,b as u,A as r,r as p,e as c,f as h,w as d,i as g,j as m,o as f,k as _,l as A,m as k,p as y,q as T,u as C,F as U,t as b,B as x,C as D,D as B}from"./index-759PoYgM.js";import{_ as v}from"./uni-easyinput.C4HErVdH.js";import{r as w}from"./uni-app.es.Hulr8kk-.js";import{_ as S,a as V}from"./uni-popup.DAsKHQxH.js";import{n as I}from"./nav.BBjj-z52.js";import{l as j}from"./logo.DDDG-929.js";import{l as O}from"./logout.q3EjtEfG.js";import{_ as z}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.BNs6RC_T.js";const L=z({components:{navBar:I},data:()=>({searchValue:"",noUnionImage:s.not_unionUrl,baseBgUrl:s.new_unionUrl,unionBgUrl:s.unicon_url,logo:j,logout:O,loading:!1,noMore:!1,isMerber:null,listData:[],UnionByUser:null,statusBarHeight:0,ThemeData:null,isAuth:!1,isLeader:!1,isHasUnicon:!1,messageContent:"",popupStstus:0,messageText:"",msgType:"success",detailData:null,lastRefreshTime:0}),onShow(s){e("token")?(e("BarHeight")&&(this.statusBarHeight=e("BarHeight")),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data"))),this.refreshUserInfo(),s&&s.guild_id&&(this.searchValue=s.guild_id,this.getUnionList(s.guild_id))):t()},methods:{async refreshUserInfo(s=!1){const t=Date.now();if(!s&&t-this.lastRefreshTime<3e3)console.log("跳过频繁刷新");else try{const s=await a.get("/api/User/get_user_info",{token:e("token")||""});s.code&&(this.isAuth=s.data.auth||!1,i("user_auth_status",this.isAuth),this.lastRefreshTime=t)}catch(l){console.error("获取用户信息失败:",l),this.isAuth=e("user_auth_status")||!1}},async getUnionList(s){this.loading=!0,a.get("/api/Guild/guild_list",{page:1,limit:1e3,search_id:s,token:e("token")||""}).then((s=>{const{data:e,code:t}=s;t&&(this.loading=!1,this.listData=e.list||[])})).catch((s=>{this.loading=!1}))},search(){this.searchValue&&this.getUnionList(this.searchValue)},async applyUnion(s){l({title:"检查实名状态...",mask:!0});try{const t=await a.get("/api/User/get_user_info",{token:e("token")||""});if(o(),t.code){const e=t.data.auth||!1;this.isAuth=e,this.lastRefreshTime=Date.now(),i("user_auth_status",e),e?(this.detailData=s,this.popupStstus=1,this.messageContent="是否选择加入当前公会",this.$refs.popup.open("center")):(this.detailData=s,this.popupStstus=3,this.messageContent="当前尚未实名认证,是否跳转到实名认证页面?",this.$refs.popup.open("center"))}else n({title:t.msg||"获取用户信息失败",icon:"none",duration:2e3})}catch(t){o(),console.error("获取用户信息失败:",t),this.messageText="请求失败,请重试!",this.msgType="error",this.$refs.message.open()}},closePopup(){this.popupStstus=null,this.detailData=null,this.messageContent="",this.$refs.popup.close()},confirmPopup(){null!==this.popupStstus&&(1===this.popupStstus?this.joinUnionize():3===this.popupStstus&&this.authConfirm())},authConfirm(){const s=u().platform;"ios"===s?window.webkit.messageHandlers.nativeHandler.postMessage({action:"enterAuthent"}):"android"===s&&window.Android.enterAuthent(),this.closePopup(),n({title:"请完成实名认证后返回",icon:"none",duration:3e3})},async joinUnionize(){a.post("/api/Guild/join_guild",{guild_id:this.detailData.id,token:e("token")||""}).then((s=>{const{data:e,code:a,msg:i}=s;a?(this.messageText="加入成功",this.$refs.message.open(),this.msgType="success",r("refreshList"),t()):(this.messageText=i,this.msgType="error",this.$refs.message.open()),this.closePopup()}))}}},[["render",function(s,e,t,a,i,l){const o=m,n=p("navBar"),r=w(c("uni-easyinput"),v),I=w(c("uni-popup-message"),S),j=w(c("uni-popup"),V);return f(),h(o,{class:"view-page",style:g({backgroundImage:`url('${i.ThemeData?i.ThemeData.app_bg:i.baseBgUrl}')`})},{default:d((()=>[_(n,{style:g({marginTop:`${i.statusBarHeight}${"ios"===u().platform?"px":"dp"}`}),navTitle:"公会中心"},{rightView:d((()=>[i.isHasUnicon&&!i.isLeader?(f(),h(o,{key:0,class:"icon-right flex-line",onClick:s.exit},{default:d((()=>[A("img",{src:i.logout,alt:""},null,8,["src"])])),_:1},8,["onClick"])):k("",!0)])),_:1},8,["style"]),_(o,{class:"content"},{default:d((()=>[_(o,{class:"flex-input"},{default:d((()=>[_(r,{prefixIcon:"search",clearSize:"18",modelValue:i.searchValue,"onUpdate:modelValue":e[0]||(e[0]=s=>i.searchValue=s),placeholder:"请输入公会ID/昵称"},null,8,["modelValue"]),_(o,{class:"search-button",onClick:l.search},{default:d((()=>[y(" 搜索 ")])),_:1},8,["onClick"])])),_:1}),_(o,{class:"hotspot-view"},{default:d((()=>[(f(!0),T(U,null,C(i.listData,(e=>(f(),h(o,{class:"hotspot-box",key:e.id},{default:d((()=>[_(o,{class:"flex-line"},{default:d((()=>[_(o,{class:"head-portrait"},{default:d((()=>[A("img",{src:e.cover||i.logo,alt:""},null,8,["src"])])),_:2},1024),_(o,{class:"info-box ml-20"},{default:d((()=>[_(o,{class:"flex-line"},{default:d((()=>[A("span",{class:"truncate"},b(e.guild_name),1),A("span",{class:"id-title"},"ID:"+b(e.guild_special_id),1),A("img",{onClick:x((t=>s.copyData(e.guild_special_id)),["stop"]),class:"icon-box",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARVJREFUSEvtljFOwzAYhd/bGBkTiaEDCxJIvQITrL1EkmP4GEkuwQoTV6gEUheGDpWSkZHttb/UVJBgN1WdrZY85f3/Zz3bzyEmHpy4P4KAuq6fJBWSrscshOQ3yTLLsrdO7wXsm79KWgOweXSQvAFwS/K5g3gBVVW9ALhvmubBOfdztPtO4Jy7SpJkRXKZ5/nCaryAsizfTVAUxeOY5p2mX/cH8NtzknMrkrT0Af7z3AuI5bkXEMtzLyCW5xfA4ED1LblYFLTIoiJN0w8An4OoOOeY2q3f3/gZSZvDsIsBCMb1OYBQKB7CzqJC0rxt27tT4rnveX+TDoAu7AB8SdqMjOiB516AfYjxRAYBI1d9kmzyv4otqa0FKOPhXFcAAAAASUVORK5CYII=",alt:""},null,8,["onClick"])])),_:2},1024),_(o,{class:"subhead-title truncate"},{default:d((()=>[y(b(e.intro),1)])),_:2},1024),_(o,{class:"chairman"},{default:d((()=>[_(o,{class:"chairman-portrait"},{default:d((()=>[A("img",{src:e.user_avatar,alt:"暂无头像"},null,8,["src"])])),_:2},1024),_(o,{class:"chairman-name"},{default:d((()=>[y(b(e.user_name),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024),_(o,{class:"right-button"},{default:d((()=>[_(o,{class:"apply-button",onClick:s=>l.applyUnion(e)},{default:d((()=>[y(" 申请 ")])),_:2},1032,["onClick"]),_(o,{class:"online-view"},{default:d((()=>[D(_(o,null,{default:d((()=>[_(o,{class:"avatars-container"},{default:d((()=>[(f(!0),T(U,null,C(e.guild_user_list.slice(0,3),(s=>(f(),h(o,{class:"avatar",key:s.id},{default:d((()=>[A("img",{src:s.avatar,alt:""},null,8,["src"])])),_:2},1024)))),128))])),_:2},1024)])),_:2},1536),[[B,e.guild_user_list.length]]),_(o,{class:"online-people"},{default:d((()=>[y(b(e.num)+"人 ",1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),_(j,{ref:"message",type:"message"},{default:d((()=>[_(I,{type:i.msgType,message:i.messageText,duration:2e3},null,8,["type","message"])])),_:1},512),_(j,{ref:"popup",type:"center"},{default:d((()=>[_(o,{class:"popup_view"},{default:d((()=>[_(o,{class:"color-3 font-32 popup_title"},{default:d((()=>[y(" 温馨提示 ")])),_:1}),_(o,{class:"color-3 font-24 messageContent"},{default:d((()=>[y(b(i.messageContent),1)])),_:1}),_(o,{class:"popup_button flex-line"},{default:d((()=>[_(o,{class:"close_button flex-line",onClick:l.closePopup},{default:d((()=>[y(" 取消 ")])),_:1},8,["onClick"]),_(o,{class:"confirm-button flex-line",onClick:l.confirmPopup},{default:d((()=>[y(" 确认 ")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-1b77193b"]]);export{L as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-memberList.coAF--bB.js b/unpackage/dist/build/web/assets/pages-union-memberList.B7USA0zX.js similarity index 97% rename from unpackage/dist/build/web/assets/pages-union-memberList.coAF--bB.js rename to unpackage/dist/build/web/assets/pages-union-memberList.B7USA0zX.js index 96d034d9..7bae84b4 100644 --- a/unpackage/dist/build/web/assets/pages-union-memberList.coAF--bB.js +++ b/unpackage/dist/build/web/assets/pages-union-memberList.B7USA0zX.js @@ -1 +1 @@ -import{g as a,b as e,h as t,r as s,f as i,w as o,i as l,j as n,o as r,k as d,q as g,u as m,F as u,l as p,m as c,t as h}from"./index-BifMHC6c.js";import{h as A}from"./headerHeight.DQi3EG4R.js";import{n as f}from"./nav.CvI0lGd-.js";import{l as w}from"./logo.DDDG-929.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=B({components:{headerHeight:A,navBar:f},data:()=>({logo:w,guildId:null,statusBarHeight:0,pageConfig:{pageSize:20,currentPage:1,total:0},loading:!1,noMore:!0,dataList:[],ThemeData:null}),onLoad(e){const{guildId:t,h:s}=e;this.guildId=t,this.statusBarHeight=s||a("BarHeight"),this.guildId&&this.getList(),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},methods:{jumpHomePage(a){const t=e().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"jumpWebPage",data:{userId:a.user_id}}):"android"===t&&window.Android.jumpWebPage(a.user_id)},jumpRoomPage(a){const t=e().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"jumpRoomPage",data:{room_id:a.in_room_id}}):"android"===t&&window.Android.jumpRoomPage(a.in_room_id)},weChatUser(a){const t=e().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"chatWithUser",data:{userId:a.user_id,userName:a.nickname}}):"android"===t&&window.Android.chatWithUser(a.user_id,a.nickname)},async getList(){const{code:e,data:s}=await t.get("/api/Guild/member_list",{guild_id:this.guildId,token:a("token")||"",page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize});if(e){this.pageConfig.total=s.count,this.loading=!1;const a=s.list||[];if(0===a.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...a],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}}},[["render",function(a,t,A,f,w,B){const k=s("navBar"),Q=n;return r(),i(Q,{class:"view-page",style:l({backgroundImage:`url('${w.ThemeData?w.ThemeData.app_bg:a.baseBgUrl}')`})},{default:o((()=>[d(k,{navTitle:"查看成员",style:l({marginTop:`${w.statusBarHeight}${"ios"===e().platform?"px":"dp"}`})},null,8,["style"]),d(Q,{class:"content"},{default:o((()=>[d(Q,{class:""},{default:o((()=>[(r(!0),g(u,null,m(w.dataList,(e=>(r(),i(Q,{class:"flex-line w-fill mt-24 flex-spaceB",key:e},{default:o((()=>[d(Q,{class:"flex-line",onClick:a=>B.jumpHomePage(e)},{default:o((()=>[d(Q,{class:"image-view"},{default:o((()=>[p("img",{src:e.avatar||w.logo,alt:""},null,8,["src"])])),_:2},1024),"Owner"===e.role||"Admin"===e.role?(r(),i(Q,{key:0,style:{width:"84rpx"}},{default:o((()=>["Owner"===e.role?(r(),g("img",{key:0,src:"data:image/png;base64,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",alt:""})):c("",!0),"Admin"===e.role?(r(),g("img",{key:1,src:a.$config.PRIMARY_BLYURL,alt:""},null,8,["src"])):c("",!0)])),_:2},1024)):c("",!0),d(Q,{class:"ml-20 flex-line"},{default:o((()=>[p("span",null,h(e.nickname),1)])),_:2},1024)])),_:2},1032,["onClick"]),e.is_self?c("",!0):(r(),i(Q,{key:0,class:"icon-button"},{default:o((()=>[e.in_room_id?(r(),g("img",{key:0,onClick:a=>B.jumpRoomPage(e),src:"/h5/web/assets/follow-jqHsW7Zy.png",alt:""},null,8,["onClick"])):(r(),g("img",{key:1,onClick:a=>B.weChatUser(e),src:"/h5/web/assets/sixin-BDnmnsvk.png",alt:""},null,8,["onClick"]))])),_:2},1024))])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-fadc6271"]]);export{k as default}; +import{g as a,b as e,h as t,r as s,f as i,w as o,i as l,j as n,o as r,k as d,q as g,u as m,F as u,l as p,m as c,t as h}from"./index-759PoYgM.js";import{h as A}from"./headerHeight.UQ4SBLpb.js";import{n as f}from"./nav.BBjj-z52.js";import{l as w}from"./logo.DDDG-929.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=B({components:{headerHeight:A,navBar:f},data:()=>({logo:w,guildId:null,statusBarHeight:0,pageConfig:{pageSize:20,currentPage:1,total:0},loading:!1,noMore:!0,dataList:[],ThemeData:null}),onLoad(e){const{guildId:t,h:s}=e;this.guildId=t,this.statusBarHeight=s||a("BarHeight"),this.guildId&&this.getList(),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},methods:{jumpHomePage(a){const t=e().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"jumpWebPage",data:{userId:a.user_id}}):"android"===t&&window.Android.jumpWebPage(a.user_id)},jumpRoomPage(a){const t=e().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"jumpRoomPage",data:{room_id:a.in_room_id}}):"android"===t&&window.Android.jumpRoomPage(a.in_room_id)},weChatUser(a){const t=e().platform;"ios"===t?window.webkit.messageHandlers.nativeHandler.postMessage({action:"chatWithUser",data:{userId:a.user_id,userName:a.nickname}}):"android"===t&&window.Android.chatWithUser(a.user_id,a.nickname)},async getList(){const{code:e,data:s}=await t.get("/api/Guild/member_list",{guild_id:this.guildId,token:a("token")||"",page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize});if(e){this.pageConfig.total=s.count,this.loading=!1;const a=s.list||[];if(0===a.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...a],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}}},[["render",function(a,t,A,f,w,B){const k=s("navBar"),Q=n;return r(),i(Q,{class:"view-page",style:l({backgroundImage:`url('${w.ThemeData?w.ThemeData.app_bg:a.baseBgUrl}')`})},{default:o((()=>[d(k,{navTitle:"查看成员",style:l({marginTop:`${w.statusBarHeight}${"ios"===e().platform?"px":"dp"}`})},null,8,["style"]),d(Q,{class:"content"},{default:o((()=>[d(Q,{class:""},{default:o((()=>[(r(!0),g(u,null,m(w.dataList,(e=>(r(),i(Q,{class:"flex-line w-fill mt-24 flex-spaceB",key:e},{default:o((()=>[d(Q,{class:"flex-line",onClick:a=>B.jumpHomePage(e)},{default:o((()=>[d(Q,{class:"image-view"},{default:o((()=>[p("img",{src:e.avatar||w.logo,alt:""},null,8,["src"])])),_:2},1024),"Owner"===e.role||"Admin"===e.role?(r(),i(Q,{key:0,style:{width:"84rpx"}},{default:o((()=>["Owner"===e.role?(r(),g("img",{key:0,src:"data:image/png;base64,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",alt:""})):c("",!0),"Admin"===e.role?(r(),g("img",{key:1,src:a.$config.PRIMARY_BLYURL,alt:""},null,8,["src"])):c("",!0)])),_:2},1024)):c("",!0),d(Q,{class:"ml-20 flex-line"},{default:o((()=>[p("span",null,h(e.nickname),1)])),_:2},1024)])),_:2},1032,["onClick"]),e.is_self?c("",!0):(r(),i(Q,{key:0,class:"icon-button"},{default:o((()=>[e.in_room_id?(r(),g("img",{key:0,onClick:a=>B.jumpRoomPage(e),src:"/h5/web/assets/follow-jqHsW7Zy.png",alt:""},null,8,["onClick"])):(r(),g("img",{key:1,onClick:a=>B.weChatUser(e),src:"/h5/web/assets/sixin-BDnmnsvk.png",alt:""},null,8,["onClick"]))])),_:2},1024))])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-fadc6271"]]);export{k as default}; diff --git a/unpackage/dist/build/web/assets/pages-union-setGroup.B6GxgY7h.js b/unpackage/dist/build/web/assets/pages-union-setGroup.Cz0ccj1-.js similarity index 87% rename from unpackage/dist/build/web/assets/pages-union-setGroup.B6GxgY7h.js rename to unpackage/dist/build/web/assets/pages-union-setGroup.Cz0ccj1-.js index 77914bef..ae55644f 100644 --- a/unpackage/dist/build/web/assets/pages-union-setGroup.B6GxgY7h.js +++ b/unpackage/dist/build/web/assets/pages-union-setGroup.Cz0ccj1-.js @@ -1 +1 @@ -import{s as e,g as a,b as t,h as s,n as l,D as i,E as o,r as n,e as d,f as r,w as c,i as m,j as u,o as p,k as g,l as f,p as h,t as _,q as y,u as b,F as k,m as D}from"./index-BifMHC6c.js";import{_ as T}from"./uni-icons.CP-9I_4O.js";import{r as v}from"./uni-app.es.BM6_Rfsu.js";import{_ as x}from"./uni-easyinput.CmmQ9HCd.js";import{_ as w,a as I}from"./uni-popup.D8sN-IRM.js";import{h as j}from"./headerHeight.DQi3EG4R.js";import{n as B}from"./nav.CvI0lGd-.js";import{l as H}from"./logo.DDDG-929.js";import{_ as S}from"./_plugin-vue_export-helper.BCo6x5W8.js";const $=S({components:{headerHeight:j,navBar:B},data:()=>({logo:H,guildId:null,notice:"",value:"",guildName:"",detailData:null,styles:{color:"#333",borderColor:"none"},formType:0,statusBarHeight:0,placeholderStyle:"color:321;font-size:14px",ThemeData:null,msgType:"",messageText:""}),onLoad(t){const{id:s,guildId:l,h:i}=t;e("token",s),this.guildId=l||"",a("token")&&this.getInfo(),this.statusBarHeight=i||a("BarHeight"),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const e=t().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getInfo(){s.get("/api/Guild/get_guild_info",{token:a("token")||"",guild_id:this.guildId}).then((e=>{const{data:a,code:t}=e;this.detailData=a||null,a&&(this.detailData.user_list=a.user_list.slice(0,4)),this.guildName=a.name||null})).catch((e=>{}))},memberList(){l({url:`/pages/union/memberList?guildId=${this.guildId}`})},async confirmInfo(){if(""===this.guildName)return this.messageText="请输入群聊名称",this.msgType="error",void this.$refs.message.open();const e={token:a("token"),guild_id:this.detailData.guild_id,name:this.guildName,notice:this.detailData.notice,avatar:this.detailData.guild_cover};i({title:"提交中",mask:!0}),s.post("/api/Guild/set_guild_info",e).then((e=>{const{data:a,code:t}=e;t?setTimeout((()=>{o(),this.messageText="提交成功",this.msgType="success",this.$refs.message.open(),this.getInfo()}),1e3):(this.messageText="提交失败",this.msgType="error",this.$refs.message.open(),o())})).catch((e=>{this.messageText="提交失败",this.msgType="error",this.$refs.message.open(),o()}))}}},[["render",function(e,a,s,l,i,o){const j=n("navBar"),B=u,H=v(d("uni-icons"),T),S=v(d("uni-easyinput"),x),$=v(d("uni-popup-message"),w),C=v(d("uni-popup"),I);return p(),r(B,{class:"view-page",style:m({backgroundImage:`url('${i.ThemeData?i.ThemeData.app_bg:e.baseBgUrl}')`})},{default:c((()=>[g(j,{style:m({marginTop:`${i.statusBarHeight}${"ios"===t().platform?"px":"dp"}`}),navTitle:"群聊设置",emitBack:!0,onBackEvent:o.back},null,8,["style","onBackEvent"]),i.detailData?(p(),r(B,{key:0,class:"content"},{default:c((()=>[g(B,{class:"name-view flex-line"},{default:c((()=>[g(B,{class:"name-image"},{default:c((()=>[f("img",{src:i.detailData.guild_cover,alt:""},null,8,["src"])])),_:1}),g(B,{class:"name-title"},{default:c((()=>[h(_(i.detailData.name),1)])),_:1})])),_:1}),g(B,{class:"member-view"},{default:c((()=>[g(B,{class:"flex-line w-fill",style:{"justify-content":"space-between"}},{default:c((()=>[g(B,{class:"member-name"},{default:c((()=>[h(" 群聊成员 ")])),_:1}),g(B,{class:"flex-line member-detail",onClick:o.memberList},{default:c((()=>[f("span",{class:"color-6"},"查看成员"),h(),g(H,{class:"flex-line",type:"right",color:"#666",size:"16"})])),_:1},8,["onClick"])])),_:1}),g(B,{class:"w-fill flex-line mt-24",style:{"align-items":"flex-start","justify-content":"space-between"}},{default:c((()=>[(p(!0),y(k,null,b(i.detailData.user_list,(e=>(p(),r(B,{class:""},{default:c((()=>[g(B,{class:"image-view"},{default:c((()=>[f("img",{src:e.avatar,alt:""},null,8,["src"])])),_:2},1024),g(B,{class:"color-9 font-28 mt-24 text-container",style:{"text-align":"center"}},{default:c((()=>[h(_(e.nickname),1)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1}),g(B,{class:"edit-name"},{default:c((()=>[g(S,{modelValue:i.guildName,"onUpdate:modelValue":a[0]||(a[0]=e=>i.guildName=e),disabled:1!==i.detailData.is_deacon,primaryColor:"#999",inputBorder:!1,styles:i.styles,placeholderStyle:i.placeholderStyle,placeholder:"请输入内容"},null,8,["modelValue","disabled","styles","placeholderStyle"])])),_:1}),g(B,{class:"edit-notice"},{default:c((()=>[g(B,{class:"notice-title"},{default:c((()=>[h(" 群聊公告 ")])),_:1}),g(B,{class:"notice-view"},{default:c((()=>[g(S,{primaryColor:"#999",inputBorder:!1,disabled:1!==i.detailData.is_deacon,styles:i.styles,placeholderStyle:i.placeholderStyle,type:"textarea",autoHeight:"",modelValue:i.detailData.notification,"onUpdate:modelValue":a[1]||(a[1]=e=>i.detailData.notification=e),placeholder:"请输入群聊公告"},null,8,["disabled","styles","placeholderStyle","modelValue"])])),_:1})])),_:1}),1===i.detailData.is_deacon?(p(),r(B,{key:0,class:"footer"},{default:c((()=>[g(B,{class:"confirm-button",onClick:o.confirmInfo},{default:c((()=>[g(B,{class:"button"},{default:c((()=>[h(" 确认保存 ")])),_:1})])),_:1},8,["onClick"])])),_:1})):D("",!0)])),_:1})):D("",!0),g(C,{ref:"message",type:"message"},{default:c((()=>[g($,{type:i.msgType,message:i.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-98741512"]]);export{$ as default}; +import{s as e,g as a,b as t,h as s,n as l,x as i,y as o,r as n,e as d,f as r,w as c,i as m,j as u,o as p,k as g,l as f,p as h,t as _,q as y,u as b,F as k,m as T}from"./index-759PoYgM.js";import{_ as v}from"./uni-icons.BNs6RC_T.js";import{r as x}from"./uni-app.es.Hulr8kk-.js";import{_ as D}from"./uni-easyinput.C4HErVdH.js";import{_ as w,a as I}from"./uni-popup.DAsKHQxH.js";import{h as j}from"./headerHeight.UQ4SBLpb.js";import{n as B}from"./nav.BBjj-z52.js";import{l as H}from"./logo.DDDG-929.js";import{_ as S}from"./_plugin-vue_export-helper.BCo6x5W8.js";const $=S({components:{headerHeight:j,navBar:B},data:()=>({logo:H,guildId:null,notice:"",value:"",guildName:"",detailData:null,styles:{color:"#333",borderColor:"none"},formType:0,statusBarHeight:0,placeholderStyle:"color:321;font-size:14px",ThemeData:null,msgType:"",messageText:""}),onLoad(t){const{id:s,guildId:l,h:i}=t;e("token",s),this.guildId=l||"",a("token")&&this.getInfo(),this.statusBarHeight=i||a("BarHeight"),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const e=t().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getInfo(){s.get("/api/Guild/get_guild_info",{token:a("token")||"",guild_id:this.guildId}).then((e=>{const{data:a,code:t}=e;this.detailData=a||null,a&&(this.detailData.user_list=a.user_list.slice(0,4)),this.guildName=a.name||null})).catch((e=>{}))},memberList(){l({url:`/pages/union/memberList?guildId=${this.guildId}`})},async confirmInfo(){if(""===this.guildName)return this.messageText="请输入群聊名称",this.msgType="error",void this.$refs.message.open();const e={token:a("token"),guild_id:this.detailData.guild_id,name:this.guildName,notice:this.detailData.notice,avatar:this.detailData.guild_cover};i({title:"提交中",mask:!0}),s.post("/api/Guild/set_guild_info",e).then((e=>{const{data:a,code:t}=e;t?setTimeout((()=>{o(),this.messageText="提交成功",this.msgType="success",this.$refs.message.open(),this.getInfo()}),1e3):(this.messageText="提交失败",this.msgType="error",this.$refs.message.open(),o())})).catch((e=>{this.messageText="提交失败",this.msgType="error",this.$refs.message.open(),o()}))}}},[["render",function(e,a,s,l,i,o){const j=n("navBar"),B=u,H=x(d("uni-icons"),v),S=x(d("uni-easyinput"),D),$=x(d("uni-popup-message"),w),C=x(d("uni-popup"),I);return p(),r(B,{class:"view-page",style:m({backgroundImage:`url('${i.ThemeData?i.ThemeData.app_bg:e.baseBgUrl}')`})},{default:c((()=>[g(j,{style:m({marginTop:`${i.statusBarHeight}${"ios"===t().platform?"px":"dp"}`}),navTitle:"群聊设置",emitBack:!0,onBackEvent:o.back},null,8,["style","onBackEvent"]),i.detailData?(p(),r(B,{key:0,class:"content"},{default:c((()=>[g(B,{class:"name-view flex-line"},{default:c((()=>[g(B,{class:"name-image"},{default:c((()=>[f("img",{src:i.detailData.guild_cover,alt:""},null,8,["src"])])),_:1}),g(B,{class:"name-title"},{default:c((()=>[h(_(i.detailData.name),1)])),_:1})])),_:1}),g(B,{class:"member-view"},{default:c((()=>[g(B,{class:"flex-line w-fill",style:{"justify-content":"space-between"}},{default:c((()=>[g(B,{class:"member-name"},{default:c((()=>[h(" 群聊成员 ")])),_:1}),g(B,{class:"flex-line member-detail",onClick:o.memberList},{default:c((()=>[f("span",{class:"color-6"},"查看成员"),h(),g(H,{class:"flex-line",type:"right",color:"#666",size:"16"})])),_:1},8,["onClick"])])),_:1}),g(B,{class:"w-fill flex-line mt-24",style:{"align-items":"flex-start","justify-content":"space-between"}},{default:c((()=>[(p(!0),y(k,null,b(i.detailData.user_list,(e=>(p(),r(B,{class:""},{default:c((()=>[g(B,{class:"image-view"},{default:c((()=>[f("img",{src:e.avatar,alt:""},null,8,["src"])])),_:2},1024),g(B,{class:"color-9 font-28 mt-24 text-container",style:{"text-align":"center"}},{default:c((()=>[h(_(e.nickname),1)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1}),g(B,{class:"edit-name"},{default:c((()=>[g(S,{modelValue:i.guildName,"onUpdate:modelValue":a[0]||(a[0]=e=>i.guildName=e),disabled:1!==i.detailData.is_deacon,primaryColor:"#999",inputBorder:!1,styles:i.styles,placeholderStyle:i.placeholderStyle,placeholder:"请输入内容"},null,8,["modelValue","disabled","styles","placeholderStyle"])])),_:1}),g(B,{class:"edit-notice"},{default:c((()=>[g(B,{class:"notice-title"},{default:c((()=>[h(" 群聊公告 ")])),_:1}),g(B,{class:"notice-view"},{default:c((()=>[g(S,{primaryColor:"#999",inputBorder:!1,disabled:1!==i.detailData.is_deacon,styles:i.styles,placeholderStyle:i.placeholderStyle,type:"textarea",autoHeight:"",modelValue:i.detailData.notification,"onUpdate:modelValue":a[1]||(a[1]=e=>i.detailData.notification=e),placeholder:"请输入群聊公告"},null,8,["disabled","styles","placeholderStyle","modelValue"])])),_:1})])),_:1}),1===i.detailData.is_deacon?(p(),r(B,{key:0,class:"footer"},{default:c((()=>[g(B,{class:"confirm-button",onClick:o.confirmInfo},{default:c((()=>[g(B,{class:"button"},{default:c((()=>[h(" 确认保存 ")])),_:1})])),_:1},8,["onClick"])])),_:1})):T("",!0)])),_:1})):T("",!0),g(C,{ref:"message",type:"message"},{default:c((()=>[g($,{type:i.msgType,message:i.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-98741512"]]);export{$ as default}; diff --git a/unpackage/dist/build/web/assets/tab.DH0wT1MO.js b/unpackage/dist/build/web/assets/tab.Nc_JIfEj.js similarity index 91% rename from unpackage/dist/build/web/assets/tab.DH0wT1MO.js rename to unpackage/dist/build/web/assets/tab.Nc_JIfEj.js index 8a1a1f45..c4fe7481 100644 --- a/unpackage/dist/build/web/assets/tab.DH0wT1MO.js +++ b/unpackage/dist/build/web/assets/tab.Nc_JIfEj.js @@ -1 +1 @@ -import{o as t,q as a,l as e,F as i,u as s,B as n,t as b}from"./index-BifMHC6c.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const l=c({name:"NavigationTabs",props:{tabsData:{type:Array,default:()=>[]},defaultActive:{type:Number,default:0}},data(){return{activeTab:this.defaultActive,defaultTabs:[{key:"created",label:"我创建的",title:"我创建的内容",content:"这里显示您创建的所有内容和项目。"},{key:"hosted",label:"我主持的",title:"我主持的内容",content:"这里显示您正在主持的活动和会议。"},{key:"managed",label:"我管理的",title:"我管理的内容",content:"这里显示您管理的团队和资源。"},{key:"focused",label:"我关注的",title:"我关注的内容",content:"这里显示您关注的话题和动态。"}]}},computed:{tabs(){return this.tabsData.length>0?this.tabsData:this.defaultTabs}},watch:{defaultActive:{handler(t){this.activeTab=t},immediate:!0}},methods:{switchTab(t){t!==this.activeTab&&(this.activeTab=t,this.$emit("tab-change",{index:t,tab:this.tabs[t]}))},getCurrentTab(){return this.tabs[this.activeTab]},setActiveTab(t){t>=0&&t(t(),a("div",{key:i,class:n(["nav-tab",{active:r.activeTab===i}]),onClick:t=>o.switchTab(i)},b(e.value),11,["onClick"])))),128))])])}],["__scopeId","data-v-38ec4fb0"]]);export{l as N}; +import{o as t,q as a,l as e,F as i,u as s,E as n,t as b}from"./index-759PoYgM.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const l=c({name:"NavigationTabs",props:{tabsData:{type:Array,default:()=>[]},defaultActive:{type:Number,default:0}},data(){return{activeTab:this.defaultActive,defaultTabs:[{key:"created",label:"我创建的",title:"我创建的内容",content:"这里显示您创建的所有内容和项目。"},{key:"hosted",label:"我主持的",title:"我主持的内容",content:"这里显示您正在主持的活动和会议。"},{key:"managed",label:"我管理的",title:"我管理的内容",content:"这里显示您管理的团队和资源。"},{key:"focused",label:"我关注的",title:"我关注的内容",content:"这里显示您关注的话题和动态。"}]}},computed:{tabs(){return this.tabsData.length>0?this.tabsData:this.defaultTabs}},watch:{defaultActive:{handler(t){this.activeTab=t},immediate:!0}},methods:{switchTab(t){t!==this.activeTab&&(this.activeTab=t,this.$emit("tab-change",{index:t,tab:this.tabs[t]}))},getCurrentTab(){return this.tabs[this.activeTab]},setActiveTab(t){t>=0&&t(t(),a("div",{key:i,class:n(["nav-tab",{active:r.activeTab===i}]),onClick:t=>o.switchTab(i)},b(e.value),11,["onClick"])))),128))])])}],["__scopeId","data-v-38ec4fb0"]]);export{l as N}; diff --git a/unpackage/dist/build/web/assets/uni-app.es.BM6_Rfsu.js b/unpackage/dist/build/web/assets/uni-app.es.BM6_Rfsu.js deleted file mode 100644 index b41db7ec..00000000 --- a/unpackage/dist/build/web/assets/uni-app.es.BM6_Rfsu.js +++ /dev/null @@ -1 +0,0 @@ -import"./index-BifMHC6c.js";function r(r,t){return"string"==typeof r?t:r}export{r}; diff --git a/unpackage/dist/build/web/assets/uni-app.es.Hulr8kk-.js b/unpackage/dist/build/web/assets/uni-app.es.Hulr8kk-.js new file mode 100644 index 00000000..07b5be3a --- /dev/null +++ b/unpackage/dist/build/web/assets/uni-app.es.Hulr8kk-.js @@ -0,0 +1 @@ +import"./index-759PoYgM.js";function r(r,t){return"string"==typeof r?t:r}export{r}; diff --git a/unpackage/dist/build/web/assets/uni-cloud.es.VFO8_T8A.js b/unpackage/dist/build/web/assets/uni-cloud.es.BW6KsUMN.js similarity index 99% rename from unpackage/dist/build/web/assets/uni-cloud.es.VFO8_T8A.js rename to unpackage/dist/build/web/assets/uni-cloud.es.BW6KsUMN.js index 4f189514..7c005ef7 100644 --- a/unpackage/dist/build/web/assets/uni-cloud.es.VFO8_T8A.js +++ b/unpackage/dist/build/web/assets/uni-cloud.es.BW6KsUMN.js @@ -1 +1 @@ -import{V as e,W as t,a1 as n,a2 as s,X as r,D as o,E as i,K as a,P as c,a3 as u,a4 as l,a5 as h,a0 as d,s as p,g as f,a6 as g,a7 as m,a8 as y,b as _,n as w,a9 as v,aa as T,ab as k,ac as I,ad as S,ae as A,af as P}from"./index-BifMHC6c.js";const b={pages:[{path:"pages/union/index",style:{navigationStyle:"custom",navigationBarTitleText:"公会中心"}},{path:"pages/union/list",style:{navigationStyle:"custom",navigationBarTitleText:"公会中心"}},{path:"pages/union/agreement",style:{navigationStyle:"custom",navigationBarTitleText:"查看协议"}},{path:"pages/union/exitApplication",style:{navigationStyle:"custom",navigationBarTitleText:"退出审核","app-plus":{popGesture:"none"}}},{path:"pages/union/historyRecord",style:{navigationStyle:"custom",navigationBarTitleText:"公会补贴历史记录","app-plus":{popGesture:"none"}}},{path:"pages/union/setGroup",style:{navigationStyle:"custom",navigationBarTitleText:"群聊设置"}},{path:"pages/union/memberList",style:{navigationStyle:"custom",navigationBarTitleText:"群聊成员"}},{path:"pages/other/taskDesc",style:{navigationStyle:"custom",navigationBarTitleText:"规则说明","app-plus":{popGesture:"none"}}},{path:"pages/prop/propMall",style:{navigationStyle:"custom",navigationBarTitleText:"道具商城"}},{path:"pages/other/grade",style:{navigationStyle:"custom",navigationBarTitleText:"等级"}},{path:"pages/other/gradeRule",style:{navigationStyle:"custom",navigationBarTitleText:"等级规则","app-plus":{popGesture:"none"}}},{path:"pages/other/income",style:{navigationStyle:"custom",navigationBarTitleText:"邀请收益"}},{path:"pages/feedback/help",style:{navigationStyle:"custom",navigationBarTitleText:"帮助与反馈","app-plus":{popGesture:"none"}}},{path:"pages/feedback/customerService",style:{navigationStyle:"custom",navigationBarTitleText:"在线客服","app-plus":{popGesture:"none"}}},{path:"pages/feedback/feedback",style:{navigationStyle:"custom",navigationBarTitleText:"反馈问题","app-plus":{popGesture:"none"}}},{path:"pages/feedback/teenage",style:{navigationStyle:"custom",navigationBarTitleText:"青少年"}},{path:"pages/feedback/teenageDetail",style:{navigationStyle:"custom",navigationBarTitleText:"青少年详情","app-plus":{popGesture:"none"}}},{path:"pages/feedback/problemDetail",style:{navigationStyle:"custom",navigationBarTitleText:"问题详情","app-plus":{popGesture:"none"}}},{path:"pages/feedback/report",style:{navigationStyle:"custom",navigationBarTitleText:"举报"}},{path:"pages/other/aboutUs",style:{navigationStyle:"custom",navigationBarTitleText:"关于我们"}},{path:"pages/other/weChatPay",style:{navigationStyle:"custom",navigationBarTitleText:"微信充值"}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"transparent"}};function x(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var O=x((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},r=s.lib={},o=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,r=e.sigBytes;if(this.clamp(),s%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[s+o>>>2]|=i<<24-(s+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,s=[],r=function(t){var n=987654321,s=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&s)<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-r%4*8&255;s.push((o>>>4).toString(16)),s.push((15&o).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new i.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],r=0;r>>2]>>>24-r%4*8&255;s.push(String.fromCharCode(o))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new i.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,s=n.words,r=n.sigBytes,o=this.blockSize,a=r/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,u=e.min(4*c,r);if(c){for(var l=0;l>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,i=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],v=e[t+9],T=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],A=e[t+14],P=e[t+15],b=o[0],x=o[1],O=o[2],C=o[3];b=u(b,x,O,C,i,7,a[0]),C=u(C,b,x,O,c,12,a[1]),O=u(O,C,b,x,p,17,a[2]),x=u(x,O,C,b,f,22,a[3]),b=u(b,x,O,C,g,7,a[4]),C=u(C,b,x,O,m,12,a[5]),O=u(O,C,b,x,y,17,a[6]),x=u(x,O,C,b,_,22,a[7]),b=u(b,x,O,C,w,7,a[8]),C=u(C,b,x,O,v,12,a[9]),O=u(O,C,b,x,T,17,a[10]),x=u(x,O,C,b,k,22,a[11]),b=u(b,x,O,C,I,7,a[12]),C=u(C,b,x,O,S,12,a[13]),O=u(O,C,b,x,A,17,a[14]),b=l(b,x=u(x,O,C,b,P,22,a[15]),O,C,c,5,a[16]),C=l(C,b,x,O,y,9,a[17]),O=l(O,C,b,x,k,14,a[18]),x=l(x,O,C,b,i,20,a[19]),b=l(b,x,O,C,m,5,a[20]),C=l(C,b,x,O,T,9,a[21]),O=l(O,C,b,x,P,14,a[22]),x=l(x,O,C,b,g,20,a[23]),b=l(b,x,O,C,v,5,a[24]),C=l(C,b,x,O,A,9,a[25]),O=l(O,C,b,x,f,14,a[26]),x=l(x,O,C,b,w,20,a[27]),b=l(b,x,O,C,S,5,a[28]),C=l(C,b,x,O,p,9,a[29]),O=l(O,C,b,x,_,14,a[30]),b=h(b,x=l(x,O,C,b,I,20,a[31]),O,C,m,4,a[32]),C=h(C,b,x,O,w,11,a[33]),O=h(O,C,b,x,k,16,a[34]),x=h(x,O,C,b,A,23,a[35]),b=h(b,x,O,C,c,4,a[36]),C=h(C,b,x,O,g,11,a[37]),O=h(O,C,b,x,_,16,a[38]),x=h(x,O,C,b,T,23,a[39]),b=h(b,x,O,C,S,4,a[40]),C=h(C,b,x,O,i,11,a[41]),O=h(O,C,b,x,f,16,a[42]),x=h(x,O,C,b,y,23,a[43]),b=h(b,x,O,C,v,4,a[44]),C=h(C,b,x,O,I,11,a[45]),O=h(O,C,b,x,P,16,a[46]),b=d(b,x=h(x,O,C,b,p,23,a[47]),O,C,i,6,a[48]),C=d(C,b,x,O,_,10,a[49]),O=d(O,C,b,x,A,15,a[50]),x=d(x,O,C,b,m,21,a[51]),b=d(b,x,O,C,I,6,a[52]),C=d(C,b,x,O,f,10,a[53]),O=d(O,C,b,x,T,15,a[54]),x=d(x,O,C,b,c,21,a[55]),b=d(b,x,O,C,w,6,a[56]),C=d(C,b,x,O,P,10,a[57]),O=d(O,C,b,x,y,15,a[58]),x=d(x,O,C,b,S,21,a[59]),b=d(b,x,O,C,g,6,a[60]),C=d(C,b,x,O,k,10,a[61]),O=d(O,C,b,x,p,15,a[62]),x=d(x,O,C,b,v,21,a[63]),o[0]=o[0]+b|0,o[1]=o[1]+x|0,o[2]=o[2]+O|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(s/4294967296),i=s;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,s,r,o,i){var a=e+(t&n|~t&s)+r+i;return(a<>>32-o)+t}function l(e,t,n,s,r,o,i){var a=e+(t&s|n&~s)+r+i;return(a<>>32-o)+t}function h(e,t,n,s,r,o,i){var a=e+(t^n^s)+r+i;return(a<>>32-o)+t}function d(e,t,n,s,r,o,i){var a=e+(n^(t|~s))+r+i;return(a<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)})),x((function(e,t){var n,s,r;e.exports=(s=(n=C).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=s.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var c=s.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var o=0;o>>6-i%4*2;s[o>>>2]|=(a|c)<<24-o%4*8,o++}return r.create(s,o)}(e,t,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const U="uni_id_token",N="uni_id_token_expired",D="FUNCTION",M="OBJECT",q="CLIENT_DB",F="pending",j="rejected";function $(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function B(e){return"object"===$(e)}function K(e){return"function"==typeof e}function H(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const J="REJECTED",W="NOT_PENDING";class V{constructor({createPromise:e,retryRule:t=J}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case J:return this.status===j;case W:return this.status!==F}}exec(){return this.needRetry?(this.status=F,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=j,Promise.reject(e)))),this.promise):this.promise}}function z(e){return e&&"string"==typeof e?JSON.parse(e):e}const G=z([]);z("");const Q=z("[]")||[];let Y="";try{Y="__UNI__A4B5AED"}catch(je){}let X,Z={};function ee(e,t={}){var n,s;return n=Z,s=e,Object.prototype.hasOwnProperty.call(n,s)||(Z[e]=t),Z[e]}const te=["invoke","success","fail","complete"],ne=ee("_globalUniCloudInterceptor");function se(e,t){ne[e]||(ne[e]={}),B(t)&&Object.keys(t).forEach((n=>{te.indexOf(n)>-1&&function(e,t,n){let s=ne[e][t];s||(s=ne[e][t]=[]),-1===s.indexOf(n)&&K(n)&&s.push(n)}(e,n,t[n])}))}function re(e,t){ne[e]||(ne[e]={}),B(t)?Object.keys(t).forEach((n=>{te.indexOf(n)>-1&&function(e,t,n){const s=ne[e][t];if(!s)return;const r=s.indexOf(n);r>-1&&s.splice(r,1)}(e,n,t[n])})):delete ne[e]}function oe(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function ie(e,t){return ne[e]&&ne[e][t]||[]}function ae(e){se("callObject",e)}const ce=ee("_globalUniCloudListener"),ue="response",le="needLogin",he="refreshToken",de="clientdb",pe="cloudfunction",fe="cloudobject";function ge(e){return ce[e]||(ce[e]=[]),ce[e]}function me(e,t){const n=ge(e);n.includes(t)||n.push(t)}function ye(e,t){const n=ge(e),s=n.indexOf(t);-1!==s&&n.splice(s,1)}function _e(e,t){const n=ge(e);for(let s=0;s{ve&&e(),function t(){if("function"==typeof n){const t=n();t&&t[0]&&(ve=!0,e())}ve||setTimeout((()=>{t()}),30)}()})),we)}function ke(e){const t={};for(const n in e){const s=e[n];K(s)&&(t[n]=H(s))}return t}class Ie extends Error{constructor(e){const t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Se={request:e=>h(e),uploadFile:e=>d(e),setStorageSync:(e,t)=>p(e,t),getStorageSync:e=>f(e),removeStorageSync:e=>g(e),clearStorageSync:()=>m(),connectSocket:e=>y(e)};function Ae(e){return e&&Ae(e.__v_raw)||e}function Pe(){return{token:Se.getStorageSync(U)||Se.getStorageSync("uniIdToken"),tokenExpired:Se.getStorageSync(N)}}function be({token:e,tokenExpired:t}={}){e&&Se.setStorageSync(U,e),t&&Se.setStorageSync(N,t)}let xe,Oe;function Ce(){return xe||(xe=_()),xe}function Ee(){let e,t;try{if(P){if(P.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:s}=P();e=s,t=n}}catch(n){}return{channel:e,scene:t}}let Le={};function Re(){const e=A&&A()||"en";if(Oe)return{...Le,...Oe,locale:e,LOCALE:e};const t=Ce(),{deviceId:n,osName:s,uniPlatform:r,appId:o}=t,i=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const a in t)Object.hasOwnProperty.call(t,a)&&-1===i.indexOf(a)&&delete t[a];return Oe={PLATFORM:r,OS:s,APPID:o,DEVICEID:n,...Ee(),...t},{...Le,...Oe,locale:e,LOCALE:e}}var Ue=function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),E(n,t).toString()},Ne=function(e,t){return new Promise(((n,s)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",r=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return s(new Ie({code:n,message:r,requestId:t}))}const r=e.data;if(r.error)return s(new Ie({code:r.error.code,message:r.error.message,requestId:t}));r.result=r.data,r.requestId=t,delete r.data,n(r)}}))}))},De=function(e){return R.stringify(L.parse(e))},Me={init(e){const t=new class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Se,this._getAccessTokenPromiseHub=new V({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Ie({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:W})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return Ne(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ue(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=Ue(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:s}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:r,onUploadProgress:o}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:r,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:s=!1,onUploadProgress:r,config:o}){if("string"!==$(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=o&&o.envType||this.config.envType;if(s&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Ie({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:i,filename:s?t.split("/").pop():t,fileId:s?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:u,accessKeyId:l,signature:h,host:d,ossPath:p,id:f,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:l,Signature:h,host:d,id:f,key:p,policy:g,success_action_status:200};if(u&&(y["x-oss-security-token"]=u),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=De(e)}const _={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:r})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:c};throw new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),this.getFileInfo({fileList:e}).then((n=>{t({fileList:e.map(((e,t)=>{const s=n.fileList[t];return{fileID:e,tempFileURL:s&&s.url||e}}))})}))}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}}(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const qe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Fe,je;(je=Fe||(Fe={})).local="local",je.none="none",je.session="session";var $e=function(){},Be=x((function(e,t){var n;e.exports=(n=C,function(e){var t=n,s=t.lib,r=s.WordArray,o=s.Hasher,i=t.algo,a=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),s=2;s<=n;s++)if(!(t%s))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var s=2,r=0;r<64;)t(s)&&(r<8&&(a[r]=n(e.pow(s,.5))),c[r]=n(e.pow(s,1/3)),r++),s++}();var u=[],l=i.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,s=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],h=n[6],d=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+y+u[p-16]}var _=s&r^s&o^r&o,w=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),v=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&h)+c[p]+u[p];d=h,h=l,l=a,a=i+v|0,i=o,o=r,r=s,s=v+(w+_)|0}n[0]=n[0]+s|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(s/4294967296),n[15+(r+64>>>9<<4)]=s,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)})),Ke=Be,He=x((function(e,t){e.exports=C.HmacSHA256}));const Je=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Ie({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,s)=>e?n(e):t(s)}));return e.promise=t,e};function We(e){return void 0===e}function Ve(e){return"[object Null]"===Object.prototype.toString.call(e)}function ze(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ge(e=32){let t="";for(let n=0;n=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const nt={},st={};function rt(e){return nt[e]}class ot{constructor(e,t){this.data=t||null,this.name=e}}class it extends ot{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const at=new class{constructor(){this._listeners={}}on(e,t){return n=e,s=t,(r=this._listeners)[n]=r[n]||[],r[n].push(s),this;var n,s,r}off(e,t){return function(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof it)return console.error(e.error),this;const n="string"==typeof e?new ot(e,t||{}):e,s=n.name;if(this._listens(s)){n.target=this;const e=this._listeners[s]?[...this._listeners[s]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function ct(e,t){at.on(e,t)}function ut(e,t={}){at.fire(e,t)}function lt(e,t){at.off(e,t)}const ht="loginStateChanged",dt="loginStateExpire",pt="loginTypeChanged",ft="anonymousConverted",gt="refreshAccessToken";var mt;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(mt||(mt={}));class yt{constructor(){this._fnPromiseMap=new Map}async run(e,t){let n=this._fnPromiseMap.get(e);return n||(n=new Promise((async(n,s)=>{try{await this._runIdlePromise();const s=t();n(await s)}catch(r){s(r)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,n)),n}_runIdlePromise(){return Promise.resolve()}}class _t{constructor(e){this._singlePromise=new yt,this._cache=rt(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Ye.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请求在${e.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ge(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,n={}){const s={"x-request-id":Ge(),"x-device-id":this._getDeviceId()};if(n.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),n=this._cache.getStore(e);s.authorization=`${n} ${t}`}return this._reqClass["get"===n.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:s})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:n,tokenTypeKey:s}=this._cache.keys,r=this._cache.getStore(e);if(r&&r!==mt.ANONYMOUS)throw new Ie({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});const o=await this._singlePromise.run("fetchAccessToken",(async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data)),{access_token:i,expires_in:a,token_type:c}=o;return this._cache.setStore(s,c),this._cache.setStore(t,i),this._cache.setStore(n,Date.now()+1e3*a),i}isAccessTokenExpired(e,t){let n=!0;return e&&t&&(n=t(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data))}}const wt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],vt={"X-SDK-Version":"1.3.5"};function Tt(e,t,n){const s=e[t];e[t]=function(t){const r={},o={};n.forEach((n=>{const{data:s,headers:i}=n.call(e,t);Object.assign(r,s),Object.assign(o,i)}));const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...r};else for(const t in r)i.append(t,r[t])})(),t.headers={...t.headers||{},...o},s.call(e,t)}}function kt(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...vt,"x-seqid":e}}}class It{constructor(e={}){var t;this.config=e,this._reqClass=new Ye.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=rt(this.config.env),this._localCache=(t=this.config.env,st[t]),this.oauth=new _t(this.config),Tt(this._reqClass,"post",[kt]),Tt(this._reqClass,"upload",[kt]),Tt(this._reqClass,"download",[kt])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:s,anonymousUuidKey:r}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(n);if(!o)throw new Ie({message:"未登录CloudBase"});const i={refresh_token:o},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(s)===mt.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(r),t=this._cache.getStore(n),s=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(s.refresh_token),this._refreshAccessToken()}ut(dt),this._cache.removeStore(n)}throw new Ie({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return ut(gt),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Ie({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(e),r=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(s,r))&&(o=!1),(!s||!r||r{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:s,province:r,country:o,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:s,province:r,country:o,city:i});this.setLocalUserInfo(a)}async refresh(){const e=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class xt{constructor(e){if(!e)throw new Ie({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=rt(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys,r=this._cache.getStore(t),o=this._cache.getStore(n),i=this._cache.getStore(s);this.credential={refreshToken:r,accessToken:o,accessTokenExpire:i},this.user=new bt(e)}get isAnonymousAuth(){return this.loginType===mt.ANONYMOUS}get isCustomAuth(){return this.loginType===mt.CUSTOM}get isWeixinAuth(){return this.loginType===mt.WECHAT||this.loginType===mt.WECHAT_OPEN||this.loginType===mt.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Ot extends Pt{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.ANONYMOUS,persistence:"local"});const e=new xt(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,s=this._cache.getStore(t),r=this._cache.getStore(n),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:r,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),ut(ft,{env:this.config.env}),ut(pt,{loginType:mt.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new Ie({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,mt.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Ct extends Pt{async signIn(e){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new xt(this.config.env);throw new Ie({message:"自定义登录失败"})}}class Et extends Pt{async signIn(e,t){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token:o,access_token_expire:i}=s;if(r)return this.setRefreshToken(r),o&&i?this.setAccessToken(o,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.EMAIL,persistence:this.config.persistence}),new xt(this.config.env);throw s.code?new Ie({code:s.code,message:`邮箱登录失败: ${s.message}`}):new Ie({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Lt extends Pt{async signIn(e,t){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:mt.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token_expire:o,access_token:i}=s;if(r)return this.setRefreshToken(r),i&&o?this.setAccessToken(i,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.USERNAME,persistence:this.config.persistence}),new xt(this.config.env);throw s.code?new Ie({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new Ie({message:"用户名密码登录失败"})}}class Rt{constructor(e){this.config=e,this._cache=rt(e.env),this._request=At(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ct(pt,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Ot(this.config)}customAuthProvider(){return new Ct(this.config)}emailAuthProvider(){return new Et(this.config)}usernameAuthProvider(){return new Lt(this.config)}async signInAnonymously(){return new Ot(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Et(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Lt(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Ot(this.config)),ct(ft,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===mt.ANONYMOUS)throw new Ie({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;const r=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),ut(ht),ut(pt,{env:this.config.env,loginType:mt.NULL,persistence:this.config.persistence}),r}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){ct(ht,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){ct(dt,e.bind(this))}onAccessTokenRefreshed(e){ct(gt,e.bind(this))}onAnonymousConverted(e){ct(ft,e.bind(this))}onLoginTypeChanged(e){ct(pt,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,n=this._cache.getStore(e),s=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(n,s)?null:new xt(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Ct(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Ut=function(e,t){t=t||Je();const n=At(this.config.env),{cloudPath:s,filePath:r,onUploadProgress:o,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{const{data:{url:a,authorization:c,token:u,fileId:l,cosFileId:h},requestId:d}=e,p={key:s,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:a,data:p,file:r,name:s,fileType:i,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:l,requestId:d}):t(new Ie({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Nt=function(e,t){t=t||Je();const n=At(this.config.env),{cloudPath:s}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Dt=function({fileList:e},t){if(t=t||Je(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let s of e)if(!s||"string"!=typeof s)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return At(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Mt=function({fileList:e},t){t=t||Je(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let r of e)"object"==typeof r?(r.hasOwnProperty("fileID")&&r.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:r.fileID,max_age:r.maxAge})):"string"==typeof r?n.push({fileid:r}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const s={file_list:n};return At(this.config.env).send("storage.batchGetDownloadUrl",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},qt=async function({fileID:e},t){const n=(await Mt.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const s=At(this.config.env);let r=n.download_url;if(r=encodeURI(r),!t)return s.download({url:r});t(await s.download({url:r}))},Ft=function({name:e,data:t,query:n,parse:s,search:r,timeout:o},i){const a=i||Je();let c;try{c=t?JSON.stringify(t):""}catch(l){return Promise.reject(l)}if(!e)return Promise.reject(new Ie({code:"PARAM_ERROR",message:"函数名不能为空"}));const u={inQuery:n,parse:s,search:r,function_name:e,request_data:c};return At(this.config.env).send("functions.invokeFunction",u,{timeout:o}).then((e=>{if(e.code)a(null,e);else{let n=e.data.response_data;if(s)a(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),a(null,{result:n,requestId:e.requestId})}catch(t){a(new Ie({message:"response data must be json"}))}}return a.promise})).catch((e=>{a(e)})),a.promise},jt={timeout:15e3,persistence:"session"},$t={};class Bt{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ye.adapter||(this.requestClient=new Ye.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...jt,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Bt(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ye.adapter.primaryStorage||jt.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;nt[t]=new tt(e),st[t]=new tt({...e,persistence:"local"})}(this.config),n=this.config,St[n.env]=new It(n),this.authObj=new Rt(this.config),this.authObj}on(e,t){return ct.apply(this,[e,t])}off(e,t){return lt.apply(this,[e,t])}callFunction(e,t){return Ft.apply(this,[e,t])}deleteFile(e,t){return Dt.apply(this,[e,t])}getTempFileURL(e,t){return Mt.apply(this,[e,t])}downloadFile(e,t){return qt.apply(this,[e,t])}uploadFile(e,t){return Ut.apply(this,[e,t])}getUploadMetadata(e,t){return Nt.apply(this,[e,t])}registerExtension(e){$t[e.name]=e}async invokeExtension(e,t){const n=$t[e];if(!n)throw new Ie({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const s of t){const{isMatch:e,genAdapter:t,runtime:n}=s;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(Ye.adapter=t),n&&(Ye.runtime=n)}}var Kt=new Bt;function Ht(e,t,n){void 0===n&&(n={});var s=/\?/.test(t),r="";for(var o in n)""===r?!s&&(t+="?"):r+="&",r+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}class Jt{get(e){const{url:t,data:n,headers:s,timeout:r}=e;return new Promise(((e,o)=>{Se.request({url:Ht("https:",t),data:n,method:"GET",header:s,timeout:r,success(t){e(t)},fail(e){o(e)}})}))}post(e){const{url:t,data:n,headers:s,timeout:r}=e;return new Promise(((e,o)=>{Se.request({url:Ht("https:",t),data:n,method:"POST",header:s,timeout:r,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:s,file:r,data:o,headers:i,fileType:a}=e,c=Se.uploadFile({url:Ht("https:",s),name:"file",formData:Object.assign({},o),filePath:r,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Wt={setItem(e,t){Se.setStorageSync(e,t)},getItem:e=>Se.getStorageSync(e),removeItem(e){Se.removeStorageSync(e)},clear(){Se.clearStorageSync()}};var Vt={genAdapter:function(){return{root:{},reqClass:Jt,localStorage:Wt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Kt.useAdapters(Vt);const zt=Kt,Gt=zt.init;zt.init=function(e){e.env=e.spaceId;const t=Gt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:s,complete:r}=ke(e);if(!(t||s||r))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),r&&r(e)}),(e=>{s&&s(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Qt=zt;async function Yt(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(s={url:n,timeout:500},new Promise(((e,t)=>{Se.request({...s,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(r){return!1}var s}const Xt={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var Zt={init(e){const t=new class{constructor(e){if(["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=Se}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then((()=>Ne(e,this.adapter.request)))}requestLocal(e){return new Promise(((t,n)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",s=e.data&&e.data.message||"request:fail";return n(new Ie({code:t,message:s}))}t({success:!0,result:e.data})}}))}))}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Ue(t,this.config.clientSecret);const s=Re();n["x-client-info"]=encodeURIComponent(JSON.stringify(s));const{token:r}=Pe();return n["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}async setupLocalRequest(e){const t=Re(),{token:n}=Pe(),s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:n}),{address:r,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:i}=await async function(e,t){let n;for(let s=0;s{const{url:o,formData:i,name:a}=t.result;return r=t.result.fileUrl,new Promise(((t,r)=>{const c=this.adapter.uploadFile({url:o,formData:i,name:a,filePath:e,fileType:n,success(e){e&&e.statusCode<400?t(e):r(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((()=>this.reportUploadFile({cloudPath:t}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:r}):s(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then((e=>{if(e.success)return e.result;throw new Ie({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(n).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Ie({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},en=x((function(e,t){e.exports=C.enc.Hex}));function tn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function nn(e="",t={}){const{data:n,functionName:s,method:r,headers:o,signHeaderKeys:i=[],config:a}=t,c=String(Date.now()),u=tn(),l=Object.assign({},o,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":s,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":u,"x-alipay-callid":u,"x-trace-id":u}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(i),[d="",p=""]=e.split("?")||[],f=function(e){const t="HMAC-SHA256",n=e.signedHeaders.join(";"),s=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),r=Ke(e.body).toString(en),o=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${s}\n${n}\n${r}\n`,i=Ke(o).toString(en),a=`${t}\n${e.timestamp}\n${i}\n`,c=He(a,e.secretKey).toString(en);return`${t} Credential=${e.secretId}, SignedHeaders=${n}, Signature=${c}`}({path:d,query:p,method:r,headers:l,timestamp:c,body:JSON.stringify(n),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:h.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},l,{Authorization:f})}}function sn({url:e,data:t,method:n="POST",headers:s={},timeout:r}){return new Promise(((o,i)=>{Se.request({url:e,method:n,data:"object"==typeof t?JSON.stringify(t):t,header:s,dataType:"json",timeout:r,complete:(e={})=>{const t=s["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:s,trace_id:r}=e.data||{};return i(new Ie({code:"SYS_ERR",message:n||s||"request:fail",requestId:r||t}))}o({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function rn(e,t){const{path:n,data:s,method:r="GET"}=e,{url:o,headers:i}=nn(n,{functionName:"",data:s,method:r,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return sn({url:o,data:s,method:r,headers:i}).then((e=>{const t=e.data||{};if(!t.success)throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function on(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Ie({code:"INVALID_PARAM",message:"fileID不合法"});const s=t.substring(0,n),r=t.substring(n+1);return s!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),r}function an(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class cn{constructor(e){this.config=e}signedURL(e,t={}){const n=`/ws/function/${e}`,s=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),r=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:tn(),timestamp:""+Date.now()}),o=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return r[e]?"".concat(e,"=").concat(r[e]):null})).filter(Boolean).join("&"),`host:${s}`].join("\n"),i=["HMAC-SHA256",Ke(o).toString(en)].join("\n"),a=He(i,this.config.secretKey).toString(en),c=Object.keys(r).map((e=>`${e}=${encodeURIComponent(r[e])}`)).join("&");return`${this.config.wsEndpoint}${n}?${c}&signature=${a}`}}var un={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new cn(this.config)}callFunction(e){return function(e,t){const{name:n,data:s,async:r=!1,timeout:o}=e,i="POST",a={"x-to-function-name":n};r&&(a["x-function-invoke-type"]="async");const{url:c,headers:u}=nn("/functions/invokeFunction",{functionName:n,data:s,method:i,headers:a,signHeaderKeys:["x-to-function-name"],config:t});return sn({url:c,data:s,method:i,headers:u,timeout:o}).then((e=>{let t=0;if(r){const n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new Ie({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((e=>{throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:s,onUploadProgress:r}){return new Promise(((o,i)=>{const a=Se.uploadFile({url:e,filePath:t,fileType:n,formData:s,name:"file",success(e){e&&e.statusCode<400?o(e):i(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){i(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:s}){if("string"!==$(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=await rn({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:i,form_data:a}=r,c=a&&a.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:i,filePath:e,fileType:n,formData:c,onUploadProgress:s}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const s=[];for(const o of e){let e;"string"!==$(o)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{e=on.call(this,o)}catch(r){console.warn(r.errCode,r.errMsg),e=o}s.push({file_id:e,expire:600})}rn({path:"/?download_url",data:{file_list:s},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:an.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}async connectWebSocket(e){const{name:t,query:n}=e;return Se.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function ln({data:e}){let t;t=Re();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=Pe();e&&(n.uniIdToken=e)}return n}const hn=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var dn=/[\\^$.*+?()[\]{}|]/g,pn=RegExp(dn.source);function fn(e,t,n){return e.replace(new RegExp((s=t)&&pn.test(s)?s.replace(dn,"\\$&"):s,"g"),n);var s}const gn="request",mn="response",yn="both",_n="_globalUniCloudStatus",wn={code:2e4,message:"System error"},vn={code:20101,message:"Invalid client"};function Tn(e){const{errSubject:t,subject:n,errCode:s,errMsg:r,code:o,message:i,cause:a}=e||{};return new Ie({subject:t||n||"uni-secure-network",code:s||o||wn.code,message:r||i,cause:a})}let kn;function In({secretType:e}={}){return e===gn||e===mn||e===yn}function Sn({functionName:e,result:t,logPvd:n}){}function An(e){const t=e.callFunction,n=function(n){const s=n.name;n.data=ln.call(e,{data:n.data});const r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=In(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!o&&Sn.call(this,{functionName:s,result:e,logPvd:r}),Promise.resolve(e))),(e=>(!o&&Sn.call(this,{functionName:s,result:e,logPvd:r}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let s=0;sn.provider===e&&n.spaceId===t));return s&&s.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},u=Object.keys(c);if(0===u.length)return!0;const l=function(e,t){let n,s,r;for(let o=0;oe.trim())).indexOf(t)>-1&&(s=i):r=i:n=i}return n||s||r}(u,n);if(!l)return!1;if((c[l]||[]).find(((e={})=>e.appId===s&&(e.platform||"").toLowerCase()===i.toLowerCase())))return!0;throw console.error(`此应用[appId: ${s}, platform: ${i}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Tn(vn)}({provider:s,spaceId:r,functionName:o})?new kn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):i(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then((e=>e))}}kn=class{constructor(){throw Tn({message:"Platform web is not supported by secure network"})}};const Pn=Symbol("CLIENT_DB_INTERNAL");function bn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Pn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,s){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,s)}})}function xn(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const s=e[t].indexOf(n);-1!==s&&e[t].splice(s,1)}}}const On=["db.Geo","db.command","command.aggregate"];function Cn(e,t){return On.indexOf(`${e}.${t}`)>-1}function En(e){switch($(e=Ae(e))){case"array":return e.map((e=>En(e)));case"object":return e._internalType===Pn||Object.keys(e).forEach((t=>{e[t]=En(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Ln(e){return e&&e.content&&e.content.$method}class Rn{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:En(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Ln(e),n=Ln(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Ln(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Ln(e),n=Ln(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Un({$method:e,$param:En(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),s=this.getCommand();return s.$db.push({$method:e,$param:En(t)}),this._database._callCloudFunction({action:n,command:s})}}function Un(e,t,n){return bn(new Rn(e,t,n),{get(e,t){let s="db";return e&&e.content&&(s=e.content.$method),Cn(s,t)?Un({$method:t},e,n):function(){return Un({$method:t,$param:En(Array.from(arguments))},e,n)}}})}function Nn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Dn(e,t={}){return bn(new e(t),{get:(e,t)=>Cn("db",t)?Un({$method:t},null,e):function(){return Un({$method:t,$param:En(Array.from(arguments))},null,e)}})}class Mn extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=ee("_globalUniCloudDatabaseCallback")),t||(this.auth=xn(this._authCallBacks)),this._isJQL=t,Object.assign(this,xn(this._dbCallBacks)),this.env=bn({},{get:(e,t)=>({$env:t})}),this.Geo=bn({},{get:(e,t)=>Nn({path:["Geo"],method:t})}),this.serverDate=Nn({path:[],method:"serverDate"}),this.RegExp=Nn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:s}){function r(e,t){if(n&&s)for(let n=0;noe(ie(i,"complete"),e))).then((()=>(r(null,e),_e(ue,{type:de,content:e}),Promise.reject(e))))}const c=oe(ie(i,"invoke")),u=this._uniClient;return c.then((()=>u.callFunction({name:"DCloud-clientDB",type:q,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:s,tokenExpired:c,systemInfo:u=[]}=e.result;if(u)for(let r=0;r(console.warn(n),s)})}}return h=e,oe(ie(i,"success"),h).then((()=>oe(ie(i,"complete"),h))).then((()=>{r(h,null);const e=o._parseResult(h);return _e(ue,{type:de,content:e}),Promise.resolve(e)}));var h}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new Ie({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const qn="token无效,跳转登录页面",Fn="token过期,跳转登录页面",jn={TOKEN_INVALID_TOKEN_EXPIRED:Fn,TOKEN_INVALID_INVALID_CLIENTID:qn,TOKEN_INVALID:qn,TOKEN_INVALID_WRONG_TOKEN:qn,TOKEN_INVALID_ANONYMOUS_USER:qn},$n={"uni-id-token-expired":Fn,"uni-id-check-token-failed":qn,"uni-id-token-not-exist":qn,"uni-id-check-device-feature-failed":qn},Bn={...jn,...$n,default:"用户未登录或登录状态过期,自动跳转登录页面"};function Kn(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Hn(e=[],t=""){const n=[],s=[];return e.forEach((e=>{!0===e.needLogin?n.push(Kn(t,e.path)):!1===e.needLogin&&s.push(Kn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:s}}function Jn(e){return e.split("?")[0].replace(/^\//,"")}function Wn(){return function(e){let t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){const e=n();return e[e.length-1]}())}function Vn(){return Jn(Wn())}function zn(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,s=Jn(e);return n.some((e=>e.pagePath===s))}const Gn=!!b.uniIdRouter,{loginPage:Qn,routerNeedLogin:Yn,resToLogin:Xn,needLoginPage:Zn,notNeedLoginPage:es,loginPageInTabBar:ts}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:s={}}=b){const{loginPage:r,needLogin:o=[],resToLogin:i=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=Hn(e),{needLoginPage:u,notNeedLoginPage:l}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:s,pages:r=[]}=e,{needLoginPage:o,notNeedLoginPage:i}=Hn(r,s);t.push(...o),n.push(...i)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:r,routerNeedLogin:o,resToLogin:i,needLoginPage:[...a,...u],notNeedLoginPage:[...c,...l],loginPageInTabBar:zn(r,s)}}();if(Zn.indexOf(Qn)>-1)throw new Error(`Login page [${Qn}] should not be "needLogin", please check your pages.json`);function ns(e){const t=Vn();if("/"===e.charAt(0))return e;const[n,s]=e.split("?"),r=n.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let i=0;i-1?s+`&uniIdRedirectUrl=${encodeURIComponent(r)}`:s+`?uniIdRedirectUrl=${encodeURIComponent(r)}`:s);var s,r;ts?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:w,redirectTo:v,switchTab:T,reLaunch:k};setTimeout((()=>{o[e]({url:n})}),0)}function os({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=Pe();let n;if(e){if(t-1)&&(Zn.indexOf(t)>-1||Yn.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,ge(le).length>0)return setTimeout((()=>{_e(le,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function is(){!function(){const e=Wn(),{abortLoginPageJump:t,autoToLoginPage:n}=os({url:e});t||n&&rs({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let s=!1;switch(t){case"cloudobject":s=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Bn}(n);break;case"clientdb":s=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in jn}(n)}s&&function(e={}){const t=ge(le);Te().then((()=>{const n=Wn();if(n&&ss({redirect:n}))return t.length>0?_e(le,Object.assign({uniIdRedirectUrl:n},e)):void(Qn&&rs({api:"navigateTo",redirect:n}))}))}(n)}))}function cs(e){var t;(t=e).onResponse=function(e){me(ue,e)},t.offResponse=function(e){ye(ue,e)},function(e){e.onNeedLogin=function(e){me(le,e)},e.offNeedLogin=function(e){ye(le,e)},Gn&&(ee(_n).needLoginInit||(ee(_n).needLoginInit=!0,Te().then((()=>{is.call(e)})),Xn&&as.call(e)))}(e),function(e){e.onRefreshToken=function(e){me(he,e)},e.offRefreshToken=function(e){ye(he,e)}}(e)}let us;const ls="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hs=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function ds(){const e=Pe().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((s=t[1],decodeURIComponent(us(s).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var s;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}us="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!hs.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,s,r="",o=0;o>16&255):64===s?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var ps=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(x((function(n,s){Object.defineProperty(s,"__esModule",{value:!0});const o="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function c(e,t,{onChooseFile:n,onUploadProgress:s}){return t.then((e=>{if(n){const t=n(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:o,tempFilePaths:[],tempFiles:[]}:function(e,t,n=5,s){(t=Object.assign({},t)).errMsg=o;const r=t.tempFiles,i=r.length;let a=0;return new Promise((o=>{for(;a=i)return void(!r.find((e=>!e.url&&!e.errMsg))&&o(t));const u=r[n];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress(e){e.index=n,e.tempFile=u,e.tempFilePath=u.path,s&&s(e)}}).then((e=>{u.url=e.fileID,n{u.errMsg=e.errMsg||e.message,n{e({count:n,sizeType:s,sourceType:r,extension:o,success(e){t(a(e,"image"))},fail(e){c({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(s),s):"video"===s.type?c(n,function(e){const{camera:n,compressed:s,maxDuration:r,sourceType:o=["album","camera"],extension:c}=e;return new Promise(((e,u)=>{t({camera:n,compressed:s,maxDuration:r,sourceType:o,extension:c,success(t){const{tempFilePath:n,duration:s,size:r,height:o,width:i}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:i,height:o,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){u({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(s),s):c(n,function(e){const{count:t,extension:n}=e;return new Promise(((e,s)=>{let o=r;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success(t){e(a(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(s),s)}}})));const fs="manual";function gs(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===fs)return;let n=!1;const s=[];for(let r=2;r{this.mixinDatacomLoading=!1;const{data:s,count:r}=n.result;this.getcount&&(this.mixinDatacomPage.count=r),this.mixinDatacomHasMore=s.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const s=t.action||this.action;s&&(n=n.action(s));const r=t.collection||this.collection;n=Array.isArray(r)?n.collection(...r):n.collection(r);const o=t.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const u=t.groupField||this.groupField;u&&(n=n.groupField(u)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const l=t.orderby||this.orderby;l&&(n=n.orderBy(l));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(m.getTree=y),g&&(m.getTreePath=y),n=n.skip(d*(h-1)).limit(d).get(m),n}}}}function ms(e){return ee("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function ys({openid:e,callLoginByWeixin:t=!1}={}){throw ms(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function _s(e){const t=ms(this);return t.initPromise||(t.initPromise=ys.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function ws(e){Le=e}function vs(e){const t={getAppBaseInfo:I,getPushClientId:S};return function(n){return new Promise(((s,r)=>{t[e]({...n,success(e){s(e)},fail(e){r(e)}})}))}}class Ts extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const s=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(s,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let s=0;s{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:s,message:r}=t;this._payloadQueue.push({action:n,messageId:s,message:r}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:s}=e;"end"===t?this._end({messageId:n,message:s}):"message"===t&&this._appendMessage({messageId:n,message:s})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){u(this._uniPushMessageCallback)}_destroy(){l(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const ks={tcb:Qt,tencent:Qt,aliyun:Me,private:Zt,dcloud:Zt,alipay:un};let Is=new class{init(e){let t={};const n=ks[e.provider];if(!n)throw new Error("未提供正确的provider参数");var s;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new V({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),An(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(s=t).database=function(e){if(e&&Object.keys(e).length>0)return s.init(e).database();if(this._database)return this._database;const t=Dn(Mn,{uniClient:s});return this._database=t,t},s.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return s.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Dn(Mn,{uniClient:s,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=ds,e.chooseAndUploadFile=ps.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return gs(e)}}),e.SSEChannel=Ts,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return _s.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.setCustomClientInfo=ws,e.importObject=function(t){return function(n,s={}){s=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},s);const{customUI:r,loadingOptions:u,errorOptions:l,parseSystemError:h}=s,d=!r;return new Proxy({},{get(r,p){switch(p){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...s){const r=n?n({params:s}):{};let o,i;try{return await oe(ie(t,"invoke"),{...r}),o=await e(...s),await oe(ie(t,"success"),{...r,result:o}),o}catch(a){throw i=a,await oe(ie(t,"fail"),{...r,error:i}),i}finally{await oe(ie(t,"complete"),i?{...r,error:i}:{...r,result:o})}}}({fn:async function r(...f){let g;d&&o({title:u.title,mask:u.mask});const m={name:n,type:M,data:{method:p,params:f}};"object"==typeof s.secretMethods&&function(e,t){const n=t.data.method,s=e.secretMethods||{},r=s[n]||s["*"];r&&(t.secretType=r)}(s,m);let y=!1;try{g=await t.callFunction(m)}catch(e){y=!0,g={result:new Ie(e)}}const{errSubject:_,errCode:w,errMsg:v,newToken:T}=g.result||{};if(d&&i(),T&&T.token&&T.tokenExpired&&(be(T),_e(he,{...T})),w){let e=v;if(y&&h&&(e=(await h({objectName:n,methodName:p,params:f,errSubject:_,errCode:w,errMsg:v})).errMsg||v),d)if("toast"===l.type)a({title:e,icon:"none"});else{if("modal"!==l.type)throw new Error(`Invalid errorOptions.type: ${l.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:s,confirmText:r}={}){return new Promise(((o,i)=>{c({title:e,content:t,showCancel:n,cancelText:s,confirmText:r,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:l.retry,cancelText:"取消",confirmText:l.retry?"重试":"确定"});if(l.retry&&t)return r(...f)}}const t=new Ie({subject:_,code:w,message:v,requestId:g.requestId});throw t.detail=g.result,_e(ue,{type:fe,content:t}),t}return _e(ue,{type:fe,content:g.result}),g.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:p,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let s=!1;if("callFunction"===t){const e=n&&n.type||D;s=e!==D}const r="callFunction"===t&&!s,o=this._initPromiseHub.exec();n=n||{};const{success:i,fail:a,complete:c}=ke(n),u=o.then((()=>s?Promise.resolve():oe(ie(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>s?Promise.resolve(e):oe(ie(t,"success"),e).then((()=>oe(ie(t,"complete"),e))).then((()=>(r&&_e(ue,{type:pe,content:e}),Promise.resolve(e))))),(e=>s?Promise.reject(e):oe(ie(t,"fail"),e).then((()=>oe(ie(t,"complete"),e))).then((()=>(_e(ue,{type:pe,content:e}),Promise.reject(e))))));if(!(i||a||c))return u;u.then((e=>{i&&i(e),c&&c(e),r&&_e(ue,{type:pe,content:e})}),(e=>{a&&a(e),c&&c(e),r&&_e(ue,{type:pe,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Q;let t={};if(e&&1===e.length)t=e[0],Is=Is.init(t),Is._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],n=["database","getCurrentUserInfo","importObject"];let s;s=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",[...t,...n].forEach((e=>{Is[e]=function(){if(console.error(s),-1===n.indexOf(e))return Promise.reject(new Ie({code:"SYS_ERR",message:s}));console.error(s)}}))}Object.assign(Is,{get mixinDatacom(){return gs(Is)}}),cs(Is),Is.addInterceptor=se,Is.removeInterceptor=re,Is.interceptObject=ae;{const e=X||(X=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),X);e.uniCloud=Is,e.UniCloudError=Ie}})();var Ss=Is;export{Ss as t}; +import{V as e,W as t,a1 as n,a2 as s,X as r,x as o,y as i,z as a,P as c,a3 as u,a4 as l,a5 as h,a0 as d,s as p,g as f,a6 as g,a7 as m,a8 as y,b as _,n as w,a9 as v,aa as T,ab as k,ac as I,ad as S,ae as A,af as P}from"./index-759PoYgM.js";const b={pages:[{path:"pages/union/index",style:{navigationStyle:"custom",navigationBarTitleText:"公会中心"}},{path:"pages/union/list",style:{navigationStyle:"custom",navigationBarTitleText:"公会中心"}},{path:"pages/union/agreement",style:{navigationStyle:"custom",navigationBarTitleText:"查看协议"}},{path:"pages/union/exitApplication",style:{navigationStyle:"custom",navigationBarTitleText:"退出审核","app-plus":{popGesture:"none"}}},{path:"pages/union/historyRecord",style:{navigationStyle:"custom",navigationBarTitleText:"公会补贴历史记录","app-plus":{popGesture:"none"}}},{path:"pages/union/setGroup",style:{navigationStyle:"custom",navigationBarTitleText:"群聊设置"}},{path:"pages/union/memberList",style:{navigationStyle:"custom",navigationBarTitleText:"群聊成员"}},{path:"pages/other/taskDesc",style:{navigationStyle:"custom",navigationBarTitleText:"规则说明","app-plus":{popGesture:"none"}}},{path:"pages/prop/propMall",style:{navigationStyle:"custom",navigationBarTitleText:"道具商城"}},{path:"pages/other/grade",style:{navigationStyle:"custom",navigationBarTitleText:"等级"}},{path:"pages/other/gradeRule",style:{navigationStyle:"custom",navigationBarTitleText:"等级规则","app-plus":{popGesture:"none"}}},{path:"pages/other/income",style:{navigationStyle:"custom",navigationBarTitleText:"邀请收益"}},{path:"pages/feedback/help",style:{navigationStyle:"custom",navigationBarTitleText:"帮助与反馈","app-plus":{popGesture:"none"}}},{path:"pages/feedback/customerService",style:{navigationStyle:"custom",navigationBarTitleText:"在线客服","app-plus":{popGesture:"none"}}},{path:"pages/feedback/feedback",style:{navigationStyle:"custom",navigationBarTitleText:"反馈问题","app-plus":{popGesture:"none"}}},{path:"pages/feedback/teenage",style:{navigationStyle:"custom",navigationBarTitleText:"青少年"}},{path:"pages/feedback/teenageDetail",style:{navigationStyle:"custom",navigationBarTitleText:"青少年详情","app-plus":{popGesture:"none"}}},{path:"pages/feedback/problemDetail",style:{navigationStyle:"custom",navigationBarTitleText:"问题详情","app-plus":{popGesture:"none"}}},{path:"pages/feedback/report",style:{navigationStyle:"custom",navigationBarTitleText:"举报"}},{path:"pages/other/aboutUs",style:{navigationStyle:"custom",navigationBarTitleText:"关于我们"}},{path:"pages/other/weChatPay",style:{navigationStyle:"custom",navigationBarTitleText:"微信充值"}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"transparent"}};function x(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var O=x((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},r=s.lib={},o=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,s=this.sigBytes,r=e.sigBytes;if(this.clamp(),s%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[s+o>>>2]|=i<<24-(s+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,s=[],r=function(t){var n=987654321,s=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&s)<<16)+(t=18e3*(65535&t)+(t>>16)&s)&s;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-r%4*8&255;s.push((o>>>4).toString(16)),s.push((15&o).toString(16))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s>>3]|=parseInt(e.substr(s,2),16)<<24-s%8*4;return new i.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,s=[],r=0;r>>2]>>>24-r%4*8&255;s.push(String.fromCharCode(o))}return s.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s>>2]|=(255&e.charCodeAt(s))<<24-s%4*8;return new i.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,s=n.words,r=n.sigBytes,o=this.blockSize,a=r/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,u=e.min(4*c,r);if(c){for(var l=0;l>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,i=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],v=e[t+9],T=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],A=e[t+14],P=e[t+15],b=o[0],x=o[1],O=o[2],C=o[3];b=u(b,x,O,C,i,7,a[0]),C=u(C,b,x,O,c,12,a[1]),O=u(O,C,b,x,p,17,a[2]),x=u(x,O,C,b,f,22,a[3]),b=u(b,x,O,C,g,7,a[4]),C=u(C,b,x,O,m,12,a[5]),O=u(O,C,b,x,y,17,a[6]),x=u(x,O,C,b,_,22,a[7]),b=u(b,x,O,C,w,7,a[8]),C=u(C,b,x,O,v,12,a[9]),O=u(O,C,b,x,T,17,a[10]),x=u(x,O,C,b,k,22,a[11]),b=u(b,x,O,C,I,7,a[12]),C=u(C,b,x,O,S,12,a[13]),O=u(O,C,b,x,A,17,a[14]),b=l(b,x=u(x,O,C,b,P,22,a[15]),O,C,c,5,a[16]),C=l(C,b,x,O,y,9,a[17]),O=l(O,C,b,x,k,14,a[18]),x=l(x,O,C,b,i,20,a[19]),b=l(b,x,O,C,m,5,a[20]),C=l(C,b,x,O,T,9,a[21]),O=l(O,C,b,x,P,14,a[22]),x=l(x,O,C,b,g,20,a[23]),b=l(b,x,O,C,v,5,a[24]),C=l(C,b,x,O,A,9,a[25]),O=l(O,C,b,x,f,14,a[26]),x=l(x,O,C,b,w,20,a[27]),b=l(b,x,O,C,S,5,a[28]),C=l(C,b,x,O,p,9,a[29]),O=l(O,C,b,x,_,14,a[30]),b=h(b,x=l(x,O,C,b,I,20,a[31]),O,C,m,4,a[32]),C=h(C,b,x,O,w,11,a[33]),O=h(O,C,b,x,k,16,a[34]),x=h(x,O,C,b,A,23,a[35]),b=h(b,x,O,C,c,4,a[36]),C=h(C,b,x,O,g,11,a[37]),O=h(O,C,b,x,_,16,a[38]),x=h(x,O,C,b,T,23,a[39]),b=h(b,x,O,C,S,4,a[40]),C=h(C,b,x,O,i,11,a[41]),O=h(O,C,b,x,f,16,a[42]),x=h(x,O,C,b,y,23,a[43]),b=h(b,x,O,C,v,4,a[44]),C=h(C,b,x,O,I,11,a[45]),O=h(O,C,b,x,P,16,a[46]),b=d(b,x=h(x,O,C,b,p,23,a[47]),O,C,i,6,a[48]),C=d(C,b,x,O,_,10,a[49]),O=d(O,C,b,x,A,15,a[50]),x=d(x,O,C,b,m,21,a[51]),b=d(b,x,O,C,I,6,a[52]),C=d(C,b,x,O,f,10,a[53]),O=d(O,C,b,x,T,15,a[54]),x=d(x,O,C,b,c,21,a[55]),b=d(b,x,O,C,w,6,a[56]),C=d(C,b,x,O,P,10,a[57]),O=d(O,C,b,x,y,15,a[58]),x=d(x,O,C,b,S,21,a[59]),b=d(b,x,O,C,g,6,a[60]),C=d(C,b,x,O,k,10,a[61]),O=d(O,C,b,x,p,15,a[62]),x=d(x,O,C,b,v,21,a[63]),o[0]=o[0]+b|0,o[1]=o[1]+x|0,o[2]=o[2]+O|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(s/4294967296),i=s;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,s,r,o,i){var a=e+(t&n|~t&s)+r+i;return(a<>>32-o)+t}function l(e,t,n,s,r,o,i){var a=e+(t&s|n&~s)+r+i;return(a<>>32-o)+t}function h(e,t,n,s,r,o,i){var a=e+(t^n^s)+r+i;return(a<>>32-o)+t}function d(e,t,n,s,r,o,i){var a=e+(n^(t|~s))+r+i;return(a<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)})),x((function(e,t){var n,s,r;e.exports=(s=(n=C).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=s.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var c=s.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var o=0;o>>6-i%4*2;s[o>>>2]|=(a|c)<<24-o%4*8,o++}return r.create(s,o)}(e,t,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const U="uni_id_token",N="uni_id_token_expired",D="FUNCTION",M="OBJECT",q="CLIENT_DB",F="pending",j="rejected";function $(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function B(e){return"object"===$(e)}function K(e){return"function"==typeof e}function H(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const J="REJECTED",W="NOT_PENDING";class V{constructor({createPromise:e,retryRule:t=J}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case J:return this.status===j;case W:return this.status!==F}}exec(){return this.needRetry?(this.status=F,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=j,Promise.reject(e)))),this.promise):this.promise}}function z(e){return e&&"string"==typeof e?JSON.parse(e):e}const G=z([]);z("");const Q=z("[]")||[];let Y="";try{Y="__UNI__A4B5AED"}catch(je){}let X,Z={};function ee(e,t={}){var n,s;return n=Z,s=e,Object.prototype.hasOwnProperty.call(n,s)||(Z[e]=t),Z[e]}const te=["invoke","success","fail","complete"],ne=ee("_globalUniCloudInterceptor");function se(e,t){ne[e]||(ne[e]={}),B(t)&&Object.keys(t).forEach((n=>{te.indexOf(n)>-1&&function(e,t,n){let s=ne[e][t];s||(s=ne[e][t]=[]),-1===s.indexOf(n)&&K(n)&&s.push(n)}(e,n,t[n])}))}function re(e,t){ne[e]||(ne[e]={}),B(t)?Object.keys(t).forEach((n=>{te.indexOf(n)>-1&&function(e,t,n){const s=ne[e][t];if(!s)return;const r=s.indexOf(n);r>-1&&s.splice(r,1)}(e,n,t[n])})):delete ne[e]}function oe(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function ie(e,t){return ne[e]&&ne[e][t]||[]}function ae(e){se("callObject",e)}const ce=ee("_globalUniCloudListener"),ue="response",le="needLogin",he="refreshToken",de="clientdb",pe="cloudfunction",fe="cloudobject";function ge(e){return ce[e]||(ce[e]=[]),ce[e]}function me(e,t){const n=ge(e);n.includes(t)||n.push(t)}function ye(e,t){const n=ge(e),s=n.indexOf(t);-1!==s&&n.splice(s,1)}function _e(e,t){const n=ge(e);for(let s=0;s{ve&&e(),function t(){if("function"==typeof n){const t=n();t&&t[0]&&(ve=!0,e())}ve||setTimeout((()=>{t()}),30)}()})),we)}function ke(e){const t={};for(const n in e){const s=e[n];K(s)&&(t[n]=H(s))}return t}class Ie extends Error{constructor(e){const t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Se={request:e=>h(e),uploadFile:e=>d(e),setStorageSync:(e,t)=>p(e,t),getStorageSync:e=>f(e),removeStorageSync:e=>g(e),clearStorageSync:()=>m(),connectSocket:e=>y(e)};function Ae(e){return e&&Ae(e.__v_raw)||e}function Pe(){return{token:Se.getStorageSync(U)||Se.getStorageSync("uniIdToken"),tokenExpired:Se.getStorageSync(N)}}function be({token:e,tokenExpired:t}={}){e&&Se.setStorageSync(U,e),t&&Se.setStorageSync(N,t)}let xe,Oe;function Ce(){return xe||(xe=_()),xe}function Ee(){let e,t;try{if(P){if(P.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:s}=P();e=s,t=n}}catch(n){}return{channel:e,scene:t}}let Le={};function Re(){const e=A&&A()||"en";if(Oe)return{...Le,...Oe,locale:e,LOCALE:e};const t=Ce(),{deviceId:n,osName:s,uniPlatform:r,appId:o}=t,i=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const a in t)Object.hasOwnProperty.call(t,a)&&-1===i.indexOf(a)&&delete t[a];return Oe={PLATFORM:r,OS:s,APPID:o,DEVICEID:n,...Ee(),...t},{...Le,...Oe,locale:e,LOCALE:e}}var Ue=function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),E(n,t).toString()},Ne=function(e,t){return new Promise(((n,s)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",r=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return s(new Ie({code:n,message:r,requestId:t}))}const r=e.data;if(r.error)return s(new Ie({code:r.error.code,message:r.error.message,requestId:t}));r.result=r.data,r.requestId=t,delete r.data,n(r)}}))}))},De=function(e){return R.stringify(L.parse(e))},Me={init(e){const t=new class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Se,this._getAccessTokenPromiseHub=new V({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Ie({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:W})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return Ne(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ue(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,s["x-basement-token"]=this.accessToken),s["x-serverless-sign"]=Ue(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:s}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:s,fileType:r,onUploadProgress:o}){return new Promise(((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:s,fileType:r,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:s=!1,onUploadProgress:r,config:o}){if("string"!==$(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=o&&o.envType||this.config.envType;if(s&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Ie({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:i,filename:s?t.split("/").pop():t,fileId:s?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:u,accessKeyId:l,signature:h,host:d,ossPath:p,id:f,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:l,Signature:h,host:d,id:f,key:p,policy:g,success_action_status:200};if(u&&(y["x-oss-security-token"]=u),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=De(e)}const _={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:r})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:c};throw new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),this.getFileInfo({fileList:e}).then((n=>{t({fileList:e.map(((e,t)=>{const s=n.fileList[t];return{fileID:e,tempFileURL:s&&s.url||e}}))})}))}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}}(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const qe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Fe,je;(je=Fe||(Fe={})).local="local",je.none="none",je.session="session";var $e=function(){},Be=x((function(e,t){var n;e.exports=(n=C,function(e){var t=n,s=t.lib,r=s.WordArray,o=s.Hasher,i=t.algo,a=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),s=2;s<=n;s++)if(!(t%s))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var s=2,r=0;r<64;)t(s)&&(r<8&&(a[r]=n(e.pow(s,.5))),c[r]=n(e.pow(s,1/3)),r++),s++}();var u=[],l=i.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,s=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],h=n[6],d=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+y+u[p-16]}var _=s&r^s&o^r&o,w=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),v=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&h)+c[p]+u[p];d=h,h=l,l=a,a=i+v|0,i=o,o=r,r=s,s=v+(w+_)|0}n[0]=n[0]+s|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,s=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(s/4294967296),n[15+(r+64>>>9<<4)]=s,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)})),Ke=Be,He=x((function(e,t){e.exports=C.HmacSHA256}));const Je=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Ie({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,s)=>e?n(e):t(s)}));return e.promise=t,e};function We(e){return void 0===e}function Ve(e){return"[object Null]"===Object.prototype.toString.call(e)}function ze(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ge(e=32){let t="";for(let n=0;n=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const nt={},st={};function rt(e){return nt[e]}class ot{constructor(e,t){this.data=t||null,this.name=e}}class it extends ot{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const at=new class{constructor(){this._listeners={}}on(e,t){return n=e,s=t,(r=this._listeners)[n]=r[n]||[],r[n].push(s),this;var n,s,r}off(e,t){return function(e,t,n){if(n&&n[e]){const s=n[e].indexOf(t);-1!==s&&n[e].splice(s,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof it)return console.error(e.error),this;const n="string"==typeof e?new ot(e,t||{}):e,s=n.name;if(this._listens(s)){n.target=this;const e=this._listeners[s]?[...this._listeners[s]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function ct(e,t){at.on(e,t)}function ut(e,t={}){at.fire(e,t)}function lt(e,t){at.off(e,t)}const ht="loginStateChanged",dt="loginStateExpire",pt="loginTypeChanged",ft="anonymousConverted",gt="refreshAccessToken";var mt;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(mt||(mt={}));class yt{constructor(){this._fnPromiseMap=new Map}async run(e,t){let n=this._fnPromiseMap.get(e);return n||(n=new Promise((async(n,s)=>{try{await this._runIdlePromise();const s=t();n(await s)}catch(r){s(r)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,n)),n}_runIdlePromise(){return Promise.resolve()}}class _t{constructor(e){this._singlePromise=new yt,this._cache=rt(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Ye.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请求在${e.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ge(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,n={}){const s={"x-request-id":Ge(),"x-device-id":this._getDeviceId()};if(n.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),n=this._cache.getStore(e);s.authorization=`${n} ${t}`}return this._reqClass["get"===n.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:s})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:n,tokenTypeKey:s}=this._cache.keys,r=this._cache.getStore(e);if(r&&r!==mt.ANONYMOUS)throw new Ie({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});const o=await this._singlePromise.run("fetchAccessToken",(async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data)),{access_token:i,expires_in:a,token_type:c}=o;return this._cache.setStore(s,c),this._cache.setStore(t,i),this._cache.setStore(n,Date.now()+1e3*a),i}isAccessTokenExpired(e,t){let n=!0;return e&&t&&(n=t(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data))}}const wt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],vt={"X-SDK-Version":"1.3.5"};function Tt(e,t,n){const s=e[t];e[t]=function(t){const r={},o={};n.forEach((n=>{const{data:s,headers:i}=n.call(e,t);Object.assign(r,s),Object.assign(o,i)}));const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...r};else for(const t in r)i.append(t,r[t])})(),t.headers={...t.headers||{},...o},s.call(e,t)}}function kt(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...vt,"x-seqid":e}}}class It{constructor(e={}){var t;this.config=e,this._reqClass=new Ye.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=rt(this.config.env),this._localCache=(t=this.config.env,st[t]),this.oauth=new _t(this.config),Tt(this._reqClass,"post",[kt]),Tt(this._reqClass,"upload",[kt]),Tt(this._reqClass,"download",[kt])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:s,anonymousUuidKey:r}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(n);if(!o)throw new Ie({message:"未登录CloudBase"});const i={refresh_token:o},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(s)===mt.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(r),t=this._cache.getStore(n),s=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(s.refresh_token),this._refreshAccessToken()}ut(dt),this._cache.removeStore(n)}throw new Ie({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return ut(gt),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Ie({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(e),r=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(s,r))&&(o=!1),(!s||!r||r{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:s,province:r,country:o,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:s,province:r,country:o,city:i});this.setLocalUserInfo(a)}async refresh(){const e=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class xt{constructor(e){if(!e)throw new Ie({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=rt(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:s}=this._cache.keys,r=this._cache.getStore(t),o=this._cache.getStore(n),i=this._cache.getStore(s);this.credential={refreshToken:r,accessToken:o,accessTokenExpire:i},this.user=new bt(e)}get isAnonymousAuth(){return this.loginType===mt.ANONYMOUS}get isCustomAuth(){return this.loginType===mt.CUSTOM}get isWeixinAuth(){return this.loginType===mt.WECHAT||this.loginType===mt.WECHAT_OPEN||this.loginType===mt.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Ot extends Pt{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.ANONYMOUS,persistence:"local"});const e=new xt(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,s=this._cache.getStore(t),r=this._cache.getStore(n),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:r,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),ut(ft,{env:this.config.env}),ut(pt,{loginType:mt.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new Ie({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,mt.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Ct extends Pt{async signIn(e){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new xt(this.config.env);throw new Ie({message:"自定义登录失败"})}}class Et extends Pt{async signIn(e,t){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token:o,access_token_expire:i}=s;if(r)return this.setRefreshToken(r),o&&i?this.setAccessToken(o,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.EMAIL,persistence:this.config.persistence}),new xt(this.config.env);throw s.code?new Ie({code:s.code,message:`邮箱登录失败: ${s.message}`}):new Ie({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Lt extends Pt{async signIn(e,t){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:mt.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token_expire:o,access_token:i}=s;if(r)return this.setRefreshToken(r),i&&o?this.setAccessToken(i,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ut(ht),ut(pt,{env:this.config.env,loginType:mt.USERNAME,persistence:this.config.persistence}),new xt(this.config.env);throw s.code?new Ie({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new Ie({message:"用户名密码登录失败"})}}class Rt{constructor(e){this.config=e,this._cache=rt(e.env),this._request=At(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ct(pt,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Ot(this.config)}customAuthProvider(){return new Ct(this.config)}emailAuthProvider(){return new Et(this.config)}usernameAuthProvider(){return new Lt(this.config)}async signInAnonymously(){return new Ot(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Et(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Lt(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Ot(this.config)),ct(ft,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===mt.ANONYMOUS)throw new Ie({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;const r=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),ut(ht),ut(pt,{env:this.config.env,loginType:mt.NULL,persistence:this.config.persistence}),r}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){ct(ht,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){ct(dt,e.bind(this))}onAccessTokenRefreshed(e){ct(gt,e.bind(this))}onAnonymousConverted(e){ct(ft,e.bind(this))}onLoginTypeChanged(e){ct(pt,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,n=this._cache.getStore(e),s=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(n,s)?null:new xt(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Ct(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Ut=function(e,t){t=t||Je();const n=At(this.config.env),{cloudPath:s,filePath:r,onUploadProgress:o,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{const{data:{url:a,authorization:c,token:u,fileId:l,cosFileId:h},requestId:d}=e,p={key:s,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};n.upload({url:a,data:p,file:r,name:s,fileType:i,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:l,requestId:d}):t(new Ie({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Nt=function(e,t){t=t||Je();const n=At(this.config.env),{cloudPath:s}=e;return n.send("storage.getUploadMetadata",{path:s}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Dt=function({fileList:e},t){if(t=t||Je(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let s of e)if(!s||"string"!=typeof s)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return At(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Mt=function({fileList:e},t){t=t||Je(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let r of e)"object"==typeof r?(r.hasOwnProperty("fileID")&&r.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:r.fileID,max_age:r.maxAge})):"string"==typeof r?n.push({fileid:r}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const s={file_list:n};return At(this.config.env).send("storage.batchGetDownloadUrl",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},qt=async function({fileID:e},t){const n=(await Mt.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const s=At(this.config.env);let r=n.download_url;if(r=encodeURI(r),!t)return s.download({url:r});t(await s.download({url:r}))},Ft=function({name:e,data:t,query:n,parse:s,search:r,timeout:o},i){const a=i||Je();let c;try{c=t?JSON.stringify(t):""}catch(l){return Promise.reject(l)}if(!e)return Promise.reject(new Ie({code:"PARAM_ERROR",message:"函数名不能为空"}));const u={inQuery:n,parse:s,search:r,function_name:e,request_data:c};return At(this.config.env).send("functions.invokeFunction",u,{timeout:o}).then((e=>{if(e.code)a(null,e);else{let n=e.data.response_data;if(s)a(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),a(null,{result:n,requestId:e.requestId})}catch(t){a(new Ie({message:"response data must be json"}))}}return a.promise})).catch((e=>{a(e)})),a.promise},jt={timeout:15e3,persistence:"session"},$t={};class Bt{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ye.adapter||(this.requestClient=new Ye.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...jt,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Bt(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ye.adapter.primaryStorage||jt.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;nt[t]=new tt(e),st[t]=new tt({...e,persistence:"local"})}(this.config),n=this.config,St[n.env]=new It(n),this.authObj=new Rt(this.config),this.authObj}on(e,t){return ct.apply(this,[e,t])}off(e,t){return lt.apply(this,[e,t])}callFunction(e,t){return Ft.apply(this,[e,t])}deleteFile(e,t){return Dt.apply(this,[e,t])}getTempFileURL(e,t){return Mt.apply(this,[e,t])}downloadFile(e,t){return qt.apply(this,[e,t])}uploadFile(e,t){return Ut.apply(this,[e,t])}getUploadMetadata(e,t){return Nt.apply(this,[e,t])}registerExtension(e){$t[e.name]=e}async invokeExtension(e,t){const n=$t[e];if(!n)throw new Ie({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const s of t){const{isMatch:e,genAdapter:t,runtime:n}=s;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(Ye.adapter=t),n&&(Ye.runtime=n)}}var Kt=new Bt;function Ht(e,t,n){void 0===n&&(n={});var s=/\?/.test(t),r="";for(var o in n)""===r?!s&&(t+="?"):r+="&",r+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}class Jt{get(e){const{url:t,data:n,headers:s,timeout:r}=e;return new Promise(((e,o)=>{Se.request({url:Ht("https:",t),data:n,method:"GET",header:s,timeout:r,success(t){e(t)},fail(e){o(e)}})}))}post(e){const{url:t,data:n,headers:s,timeout:r}=e;return new Promise(((e,o)=>{Se.request({url:Ht("https:",t),data:n,method:"POST",header:s,timeout:r,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:s,file:r,data:o,headers:i,fileType:a}=e,c=Se.uploadFile({url:Ht("https:",s),name:"file",formData:Object.assign({},o),filePath:r,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Wt={setItem(e,t){Se.setStorageSync(e,t)},getItem:e=>Se.getStorageSync(e),removeItem(e){Se.removeStorageSync(e)},clear(){Se.clearStorageSync()}};var Vt={genAdapter:function(){return{root:{},reqClass:Jt,localStorage:Wt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Kt.useAdapters(Vt);const zt=Kt,Gt=zt.init;zt.init=function(e){e.env=e.spaceId;const t=Gt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:s,complete:r}=ke(e);if(!(t||s||r))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),r&&r(e)}),(e=>{s&&s(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Qt=zt;async function Yt(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(s={url:n,timeout:500},new Promise(((e,t)=>{Se.request({...s,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(r){return!1}var s}const Xt={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var Zt={init(e){const t=new class{constructor(e){if(["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=Se}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then((()=>Ne(e,this.adapter.request)))}requestLocal(e){return new Promise(((t,n)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",s=e.data&&e.data.message||"request:fail";return n(new Ie({code:t,message:s}))}t({success:!0,result:e.data})}}))}))}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Ue(t,this.config.clientSecret);const s=Re();n["x-client-info"]=encodeURIComponent(JSON.stringify(s));const{token:r}=Pe();return n["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}async setupLocalRequest(e){const t=Re(),{token:n}=Pe(),s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:n}),{address:r,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:i}=await async function(e,t){let n;for(let s=0;s{const{url:o,formData:i,name:a}=t.result;return r=t.result.fileUrl,new Promise(((t,r)=>{const c=this.adapter.uploadFile({url:o,formData:i,name:a,filePath:e,fileType:n,success(e){e&&e.statusCode<400?t(e):r(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((()=>this.reportUploadFile({cloudPath:t}))).then((t=>new Promise(((n,s)=>{t.success?n({success:!0,filePath:e,fileID:r}):s(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then((e=>{if(e.success)return e.result;throw new Ie({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(n).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Ie({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},en=x((function(e,t){e.exports=C.enc.Hex}));function tn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function nn(e="",t={}){const{data:n,functionName:s,method:r,headers:o,signHeaderKeys:i=[],config:a}=t,c=String(Date.now()),u=tn(),l=Object.assign({},o,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":s,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":u,"x-alipay-callid":u,"x-trace-id":u}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(i),[d="",p=""]=e.split("?")||[],f=function(e){const t="HMAC-SHA256",n=e.signedHeaders.join(";"),s=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),r=Ke(e.body).toString(en),o=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${s}\n${n}\n${r}\n`,i=Ke(o).toString(en),a=`${t}\n${e.timestamp}\n${i}\n`,c=He(a,e.secretKey).toString(en);return`${t} Credential=${e.secretId}, SignedHeaders=${n}, Signature=${c}`}({path:d,query:p,method:r,headers:l,timestamp:c,body:JSON.stringify(n),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:h.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},l,{Authorization:f})}}function sn({url:e,data:t,method:n="POST",headers:s={},timeout:r}){return new Promise(((o,i)=>{Se.request({url:e,method:n,data:"object"==typeof t?JSON.stringify(t):t,header:s,dataType:"json",timeout:r,complete:(e={})=>{const t=s["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:s,trace_id:r}=e.data||{};return i(new Ie({code:"SYS_ERR",message:n||s||"request:fail",requestId:r||t}))}o({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function rn(e,t){const{path:n,data:s,method:r="GET"}=e,{url:o,headers:i}=nn(n,{functionName:"",data:s,method:r,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return sn({url:o,data:s,method:r,headers:i}).then((e=>{const t=e.data||{};if(!t.success)throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function on(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Ie({code:"INVALID_PARAM",message:"fileID不合法"});const s=t.substring(0,n),r=t.substring(n+1);return s!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),r}function an(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class cn{constructor(e){this.config=e}signedURL(e,t={}){const n=`/ws/function/${e}`,s=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),r=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:tn(),timestamp:""+Date.now()}),o=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return r[e]?"".concat(e,"=").concat(r[e]):null})).filter(Boolean).join("&"),`host:${s}`].join("\n"),i=["HMAC-SHA256",Ke(o).toString(en)].join("\n"),a=He(i,this.config.secretKey).toString(en),c=Object.keys(r).map((e=>`${e}=${encodeURIComponent(r[e])}`)).join("&");return`${this.config.wsEndpoint}${n}?${c}&signature=${a}`}}var un={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new cn(this.config)}callFunction(e){return function(e,t){const{name:n,data:s,async:r=!1,timeout:o}=e,i="POST",a={"x-to-function-name":n};r&&(a["x-function-invoke-type"]="async");const{url:c,headers:u}=nn("/functions/invokeFunction",{functionName:n,data:s,method:i,headers:a,signHeaderKeys:["x-to-function-name"],config:t});return sn({url:c,data:s,method:i,headers:u,timeout:o}).then((e=>{let t=0;if(r){const n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new Ie({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((e=>{throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:s,onUploadProgress:r}){return new Promise(((o,i)=>{const a=Se.uploadFile({url:e,filePath:t,fileType:n,formData:s,name:"file",success(e){e&&e.statusCode<400?o(e):i(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){i(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate((e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:s}){if("string"!==$(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Ie({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=await rn({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:i,form_data:a}=r,c=a&&a.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:i,filePath:e,fileType:n,formData:c,onUploadProgress:s}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const s=[];for(const o of e){let e;"string"!==$(o)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{e=on.call(this,o)}catch(r){console.warn(r.errCode,r.errMsg),e=o}s.push({file_id:e,expire:600})}rn({path:"/?download_url",data:{file_list:s},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:an.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}async connectWebSocket(e){const{name:t,query:n}=e;return Se.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function ln({data:e}){let t;t=Re();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=Pe();e&&(n.uniIdToken=e)}return n}const hn=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var dn=/[\\^$.*+?()[\]{}|]/g,pn=RegExp(dn.source);function fn(e,t,n){return e.replace(new RegExp((s=t)&&pn.test(s)?s.replace(dn,"\\$&"):s,"g"),n);var s}const gn="request",mn="response",yn="both",_n="_globalUniCloudStatus",wn={code:2e4,message:"System error"},vn={code:20101,message:"Invalid client"};function Tn(e){const{errSubject:t,subject:n,errCode:s,errMsg:r,code:o,message:i,cause:a}=e||{};return new Ie({subject:t||n||"uni-secure-network",code:s||o||wn.code,message:r||i,cause:a})}let kn;function In({secretType:e}={}){return e===gn||e===mn||e===yn}function Sn({functionName:e,result:t,logPvd:n}){}function An(e){const t=e.callFunction,n=function(n){const s=n.name;n.data=ln.call(e,{data:n.data});const r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=In(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!o&&Sn.call(this,{functionName:s,result:e,logPvd:r}),Promise.resolve(e))),(e=>(!o&&Sn.call(this,{functionName:s,result:e,logPvd:r}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let s=0;sn.provider===e&&n.spaceId===t));return s&&s.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},u=Object.keys(c);if(0===u.length)return!0;const l=function(e,t){let n,s,r;for(let o=0;oe.trim())).indexOf(t)>-1&&(s=i):r=i:n=i}return n||s||r}(u,n);if(!l)return!1;if((c[l]||[]).find(((e={})=>e.appId===s&&(e.platform||"").toLowerCase()===i.toLowerCase())))return!0;throw console.error(`此应用[appId: ${s}, platform: ${i}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Tn(vn)}({provider:s,spaceId:r,functionName:o})?new kn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):i(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then((e=>e))}}kn=class{constructor(){throw Tn({message:"Platform web is not supported by secure network"})}};const Pn=Symbol("CLIENT_DB_INTERNAL");function bn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Pn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,s){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,s)}})}function xn(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const s=e[t].indexOf(n);-1!==s&&e[t].splice(s,1)}}}const On=["db.Geo","db.command","command.aggregate"];function Cn(e,t){return On.indexOf(`${e}.${t}`)>-1}function En(e){switch($(e=Ae(e))){case"array":return e.map((e=>En(e)));case"object":return e._internalType===Pn||Object.keys(e).forEach((t=>{e[t]=En(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Ln(e){return e&&e.content&&e.content.$method}class Rn{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:En(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Ln(e),n=Ln(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Ln(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Ln(e),n=Ln(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Un({$method:e,$param:En(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),s=this.getCommand();return s.$db.push({$method:e,$param:En(t)}),this._database._callCloudFunction({action:n,command:s})}}function Un(e,t,n){return bn(new Rn(e,t,n),{get(e,t){let s="db";return e&&e.content&&(s=e.content.$method),Cn(s,t)?Un({$method:t},e,n):function(){return Un({$method:t,$param:En(Array.from(arguments))},e,n)}}})}function Nn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Dn(e,t={}){return bn(new e(t),{get:(e,t)=>Cn("db",t)?Un({$method:t},null,e):function(){return Un({$method:t,$param:En(Array.from(arguments))},null,e)}})}class Mn extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=ee("_globalUniCloudDatabaseCallback")),t||(this.auth=xn(this._authCallBacks)),this._isJQL=t,Object.assign(this,xn(this._dbCallBacks)),this.env=bn({},{get:(e,t)=>({$env:t})}),this.Geo=bn({},{get:(e,t)=>Nn({path:["Geo"],method:t})}),this.serverDate=Nn({path:[],method:"serverDate"}),this.RegExp=Nn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:s}){function r(e,t){if(n&&s)for(let n=0;noe(ie(i,"complete"),e))).then((()=>(r(null,e),_e(ue,{type:de,content:e}),Promise.reject(e))))}const c=oe(ie(i,"invoke")),u=this._uniClient;return c.then((()=>u.callFunction({name:"DCloud-clientDB",type:q,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:s,tokenExpired:c,systemInfo:u=[]}=e.result;if(u)for(let r=0;r(console.warn(n),s)})}}return h=e,oe(ie(i,"success"),h).then((()=>oe(ie(i,"complete"),h))).then((()=>{r(h,null);const e=o._parseResult(h);return _e(ue,{type:de,content:e}),Promise.resolve(e)}));var h}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new Ie({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const qn="token无效,跳转登录页面",Fn="token过期,跳转登录页面",jn={TOKEN_INVALID_TOKEN_EXPIRED:Fn,TOKEN_INVALID_INVALID_CLIENTID:qn,TOKEN_INVALID:qn,TOKEN_INVALID_WRONG_TOKEN:qn,TOKEN_INVALID_ANONYMOUS_USER:qn},$n={"uni-id-token-expired":Fn,"uni-id-check-token-failed":qn,"uni-id-token-not-exist":qn,"uni-id-check-device-feature-failed":qn},Bn={...jn,...$n,default:"用户未登录或登录状态过期,自动跳转登录页面"};function Kn(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Hn(e=[],t=""){const n=[],s=[];return e.forEach((e=>{!0===e.needLogin?n.push(Kn(t,e.path)):!1===e.needLogin&&s.push(Kn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:s}}function Jn(e){return e.split("?")[0].replace(/^\//,"")}function Wn(){return function(e){let t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){const e=n();return e[e.length-1]}())}function Vn(){return Jn(Wn())}function zn(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,s=Jn(e);return n.some((e=>e.pagePath===s))}const Gn=!!b.uniIdRouter,{loginPage:Qn,routerNeedLogin:Yn,resToLogin:Xn,needLoginPage:Zn,notNeedLoginPage:es,loginPageInTabBar:ts}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:s={}}=b){const{loginPage:r,needLogin:o=[],resToLogin:i=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=Hn(e),{needLoginPage:u,notNeedLoginPage:l}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:s,pages:r=[]}=e,{needLoginPage:o,notNeedLoginPage:i}=Hn(r,s);t.push(...o),n.push(...i)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:r,routerNeedLogin:o,resToLogin:i,needLoginPage:[...a,...u],notNeedLoginPage:[...c,...l],loginPageInTabBar:zn(r,s)}}();if(Zn.indexOf(Qn)>-1)throw new Error(`Login page [${Qn}] should not be "needLogin", please check your pages.json`);function ns(e){const t=Vn();if("/"===e.charAt(0))return e;const[n,s]=e.split("?"),r=n.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let i=0;i-1?s+`&uniIdRedirectUrl=${encodeURIComponent(r)}`:s+`?uniIdRedirectUrl=${encodeURIComponent(r)}`:s);var s,r;ts?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:w,redirectTo:v,switchTab:T,reLaunch:k};setTimeout((()=>{o[e]({url:n})}),0)}function os({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=Pe();let n;if(e){if(t-1)&&(Zn.indexOf(t)>-1||Yn.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,ge(le).length>0)return setTimeout((()=>{_e(le,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function is(){!function(){const e=Wn(),{abortLoginPageJump:t,autoToLoginPage:n}=os({url:e});t||n&&rs({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let s=!1;switch(t){case"cloudobject":s=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Bn}(n);break;case"clientdb":s=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in jn}(n)}s&&function(e={}){const t=ge(le);Te().then((()=>{const n=Wn();if(n&&ss({redirect:n}))return t.length>0?_e(le,Object.assign({uniIdRedirectUrl:n},e)):void(Qn&&rs({api:"navigateTo",redirect:n}))}))}(n)}))}function cs(e){var t;(t=e).onResponse=function(e){me(ue,e)},t.offResponse=function(e){ye(ue,e)},function(e){e.onNeedLogin=function(e){me(le,e)},e.offNeedLogin=function(e){ye(le,e)},Gn&&(ee(_n).needLoginInit||(ee(_n).needLoginInit=!0,Te().then((()=>{is.call(e)})),Xn&&as.call(e)))}(e),function(e){e.onRefreshToken=function(e){me(he,e)},e.offRefreshToken=function(e){ye(he,e)}}(e)}let us;const ls="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hs=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function ds(){const e=Pe().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((s=t[1],decodeURIComponent(us(s).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var s;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}us="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!hs.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,s,r="",o=0;o>16&255):64===s?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var ps=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(x((function(n,s){Object.defineProperty(s,"__esModule",{value:!0});const o="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function c(e,t,{onChooseFile:n,onUploadProgress:s}){return t.then((e=>{if(n){const t=n(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:o,tempFilePaths:[],tempFiles:[]}:function(e,t,n=5,s){(t=Object.assign({},t)).errMsg=o;const r=t.tempFiles,i=r.length;let a=0;return new Promise((o=>{for(;a=i)return void(!r.find((e=>!e.url&&!e.errMsg))&&o(t));const u=r[n];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress(e){e.index=n,e.tempFile=u,e.tempFilePath=u.path,s&&s(e)}}).then((e=>{u.url=e.fileID,n{u.errMsg=e.errMsg||e.message,n{e({count:n,sizeType:s,sourceType:r,extension:o,success(e){t(a(e,"image"))},fail(e){c({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(s),s):"video"===s.type?c(n,function(e){const{camera:n,compressed:s,maxDuration:r,sourceType:o=["album","camera"],extension:c}=e;return new Promise(((e,u)=>{t({camera:n,compressed:s,maxDuration:r,sourceType:o,extension:c,success(t){const{tempFilePath:n,duration:s,size:r,height:o,width:i}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:i,height:o,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){u({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(s),s):c(n,function(e){const{count:t,extension:n}=e;return new Promise(((e,s)=>{let o=r;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success(t){e(a(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(s),s)}}})));const fs="manual";function gs(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===fs)return;let n=!1;const s=[];for(let r=2;r{this.mixinDatacomLoading=!1;const{data:s,count:r}=n.result;this.getcount&&(this.mixinDatacomPage.count=r),this.mixinDatacomHasMore=s.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const s=t.action||this.action;s&&(n=n.action(s));const r=t.collection||this.collection;n=Array.isArray(r)?n.collection(...r):n.collection(r);const o=t.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const u=t.groupField||this.groupField;u&&(n=n.groupField(u)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const l=t.orderby||this.orderby;l&&(n=n.orderBy(l));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(m.getTree=y),g&&(m.getTreePath=y),n=n.skip(d*(h-1)).limit(d).get(m),n}}}}function ms(e){return ee("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function ys({openid:e,callLoginByWeixin:t=!1}={}){throw ms(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function _s(e){const t=ms(this);return t.initPromise||(t.initPromise=ys.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function ws(e){Le=e}function vs(e){const t={getAppBaseInfo:I,getPushClientId:S};return function(n){return new Promise(((s,r)=>{t[e]({...n,success(e){s(e)},fail(e){r(e)}})}))}}class Ts extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const s=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(s,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let s=0;s{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:s,message:r}=t;this._payloadQueue.push({action:n,messageId:s,message:r}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:s}=e;"end"===t?this._end({messageId:n,message:s}):"message"===t&&this._appendMessage({messageId:n,message:s})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){u(this._uniPushMessageCallback)}_destroy(){l(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const ks={tcb:Qt,tencent:Qt,aliyun:Me,private:Zt,dcloud:Zt,alipay:un};let Is=new class{init(e){let t={};const n=ks[e.provider];if(!n)throw new Error("未提供正确的provider参数");var s;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new V({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),An(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(s=t).database=function(e){if(e&&Object.keys(e).length>0)return s.init(e).database();if(this._database)return this._database;const t=Dn(Mn,{uniClient:s});return this._database=t,t},s.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return s.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Dn(Mn,{uniClient:s,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=ds,e.chooseAndUploadFile=ps.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return gs(e)}}),e.SSEChannel=Ts,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return _s.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.setCustomClientInfo=ws,e.importObject=function(t){return function(n,s={}){s=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},s);const{customUI:r,loadingOptions:u,errorOptions:l,parseSystemError:h}=s,d=!r;return new Proxy({},{get(r,p){switch(p){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...s){const r=n?n({params:s}):{};let o,i;try{return await oe(ie(t,"invoke"),{...r}),o=await e(...s),await oe(ie(t,"success"),{...r,result:o}),o}catch(a){throw i=a,await oe(ie(t,"fail"),{...r,error:i}),i}finally{await oe(ie(t,"complete"),i?{...r,error:i}:{...r,result:o})}}}({fn:async function r(...f){let g;d&&o({title:u.title,mask:u.mask});const m={name:n,type:M,data:{method:p,params:f}};"object"==typeof s.secretMethods&&function(e,t){const n=t.data.method,s=e.secretMethods||{},r=s[n]||s["*"];r&&(t.secretType=r)}(s,m);let y=!1;try{g=await t.callFunction(m)}catch(e){y=!0,g={result:new Ie(e)}}const{errSubject:_,errCode:w,errMsg:v,newToken:T}=g.result||{};if(d&&i(),T&&T.token&&T.tokenExpired&&(be(T),_e(he,{...T})),w){let e=v;if(y&&h&&(e=(await h({objectName:n,methodName:p,params:f,errSubject:_,errCode:w,errMsg:v})).errMsg||v),d)if("toast"===l.type)a({title:e,icon:"none"});else{if("modal"!==l.type)throw new Error(`Invalid errorOptions.type: ${l.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:s,confirmText:r}={}){return new Promise(((o,i)=>{c({title:e,content:t,showCancel:n,cancelText:s,confirmText:r,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:l.retry,cancelText:"取消",confirmText:l.retry?"重试":"确定"});if(l.retry&&t)return r(...f)}}const t=new Ie({subject:_,code:w,message:v,requestId:g.requestId});throw t.detail=g.result,_e(ue,{type:fe,content:t}),t}return _e(ue,{type:fe,content:g.result}),g.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:p,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let s=!1;if("callFunction"===t){const e=n&&n.type||D;s=e!==D}const r="callFunction"===t&&!s,o=this._initPromiseHub.exec();n=n||{};const{success:i,fail:a,complete:c}=ke(n),u=o.then((()=>s?Promise.resolve():oe(ie(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>s?Promise.resolve(e):oe(ie(t,"success"),e).then((()=>oe(ie(t,"complete"),e))).then((()=>(r&&_e(ue,{type:pe,content:e}),Promise.resolve(e))))),(e=>s?Promise.reject(e):oe(ie(t,"fail"),e).then((()=>oe(ie(t,"complete"),e))).then((()=>(_e(ue,{type:pe,content:e}),Promise.reject(e))))));if(!(i||a||c))return u;u.then((e=>{i&&i(e),c&&c(e),r&&_e(ue,{type:pe,content:e})}),(e=>{a&&a(e),c&&c(e),r&&_e(ue,{type:pe,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Q;let t={};if(e&&1===e.length)t=e[0],Is=Is.init(t),Is._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],n=["database","getCurrentUserInfo","importObject"];let s;s=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",[...t,...n].forEach((e=>{Is[e]=function(){if(console.error(s),-1===n.indexOf(e))return Promise.reject(new Ie({code:"SYS_ERR",message:s}));console.error(s)}}))}Object.assign(Is,{get mixinDatacom(){return gs(Is)}}),cs(Is),Is.addInterceptor=se,Is.removeInterceptor=re,Is.interceptObject=ae;{const e=X||(X=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),X);e.uniCloud=Is,e.UniCloudError=Ie}})();var Ss=Is;export{Ss as t}; diff --git a/unpackage/dist/build/web/assets/uni-easyinput.CmmQ9HCd.js b/unpackage/dist/build/web/assets/uni-easyinput.C4HErVdH.js similarity index 96% rename from unpackage/dist/build/web/assets/uni-easyinput.CmmQ9HCd.js rename to unpackage/dist/build/web/assets/uni-easyinput.C4HErVdH.js index f7941b5f..fe4be116 100644 --- a/unpackage/dist/build/web/assets/uni-easyinput.CmmQ9HCd.js +++ b/unpackage/dist/build/web/assets/uni-easyinput.C4HErVdH.js @@ -1 +1 @@ -import{_ as e}from"./uni-icons.CP-9I_4O.js";import{e as t,o,f as s,w as i,k as l,B as a,i as r,m as n,J as c,q as u,F as h,M as d,I as p,j as f}from"./index-BifMHC6c.js";import{r as m}from"./uni-app.es.BM6_Rfsu.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";function g(e){let t="";for(let o in e){t+=`${o}:${e[o]};`}return t}const b=y({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let o in e)e[o]&&(t+=`${o} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return g({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return g({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(y,g,b,S,x,C){const k=m(t("uni-icons"),e),w=d,v=p,I=f;return o(),s(I,{class:a(["uni-easyinput",{"uni-easyinput-error":C.msg}]),style:r(C.boxStyle)},{default:i((()=>[l(I,{class:a(["uni-easyinput__content",C.inputContentClass]),style:r(C.inputContentStyle)},{default:i((()=>[b.prefixIcon?(o(),s(k,{key:0,class:"content-clear-icon",type:b.prefixIcon,color:"#c0c4cc",onClick:g[0]||(g[0]=e=>C.onClickIcon("prefix")),size:"22"},null,8,["type"])):n("",!0),c(y.$slots,"left",{},void 0,!0),"textarea"===b.type?(o(),s(w,{key:1,class:a(["uni-easyinput__content-textarea",{"input-padding":b.inputBorder}]),name:b.name,value:x.val,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,disabled:b.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:C.inputMaxlength,focus:x.focused,autoHeight:b.autoHeight,"cursor-spacing":b.cursorSpacing,"adjust-position":b.adjustPosition,onInput:C.onInput,onBlur:C._Blur,onFocus:C._Focus,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])):(o(),s(v,{key:2,type:"password"===b.type?"text":b.type,class:"uni-easyinput__content-input",style:r(C.inputStyle),name:b.name,value:x.val,password:!x.showPassword&&"password"===b.type,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:b.disabled,maxlength:C.inputMaxlength,focus:x.focused,confirmType:b.confirmType,"cursor-spacing":b.cursorSpacing,"adjust-position":b.adjustPosition,onFocus:C._Focus,onBlur:C._Blur,onInput:C.onInput,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position","onFocus","onBlur","onInput","onConfirm","onKeyboardheightchange"])),"password"===b.type&&b.passwordIcon?(o(),u(h,{key:3},[C.isVal?(o(),s(k,{key:0,class:a(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:x.showPassword?"eye-slash-filled":"eye-filled",size:22,color:x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onEyes},null,8,["class","type","color","onClick"])):n("",!0)],64)):n("",!0),b.suffixIcon?(o(),u(h,{key:4},[b.suffixIcon?(o(),s(k,{key:0,class:"content-clear-icon",type:b.suffixIcon,color:"#c0c4cc",onClick:g[1]||(g[1]=e=>C.onClickIcon("suffix")),size:"22"},null,8,["type"])):n("",!0)],64)):(o(),u(h,{key:5},[b.clearable&&C.isVal&&!b.disabled&&"textarea"!==b.type?(o(),s(k,{key:0,class:a(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:"clear",size:b.clearSize,color:C.msg?"#dd524d":x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onClear},null,8,["class","size","color","onClick"])):n("",!0)],64)),c(y.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}],["__scopeId","data-v-5763a810"]]);export{b as _}; +import{_ as e}from"./uni-icons.BNs6RC_T.js";import{e as t,o,f as s,w as i,k as l,E as a,i as r,m as n,K as c,q as u,F as h,M as d,I as p,j as f}from"./index-759PoYgM.js";import{r as m}from"./uni-app.es.Hulr8kk-.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";function g(e){let t="";for(let o in e){t+=`${o}:${e[o]};`}return t}const b=y({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let o in e)e[o]&&(t+=`${o} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return g({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return g({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(y,g,b,S,x,C){const k=m(t("uni-icons"),e),w=d,v=p,I=f;return o(),s(I,{class:a(["uni-easyinput",{"uni-easyinput-error":C.msg}]),style:r(C.boxStyle)},{default:i((()=>[l(I,{class:a(["uni-easyinput__content",C.inputContentClass]),style:r(C.inputContentStyle)},{default:i((()=>[b.prefixIcon?(o(),s(k,{key:0,class:"content-clear-icon",type:b.prefixIcon,color:"#c0c4cc",onClick:g[0]||(g[0]=e=>C.onClickIcon("prefix")),size:"22"},null,8,["type"])):n("",!0),c(y.$slots,"left",{},void 0,!0),"textarea"===b.type?(o(),s(w,{key:1,class:a(["uni-easyinput__content-textarea",{"input-padding":b.inputBorder}]),name:b.name,value:x.val,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,disabled:b.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:C.inputMaxlength,focus:x.focused,autoHeight:b.autoHeight,"cursor-spacing":b.cursorSpacing,"adjust-position":b.adjustPosition,onInput:C.onInput,onBlur:C._Blur,onFocus:C._Focus,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])):(o(),s(v,{key:2,type:"password"===b.type?"text":b.type,class:"uni-easyinput__content-input",style:r(C.inputStyle),name:b.name,value:x.val,password:!x.showPassword&&"password"===b.type,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:b.disabled,maxlength:C.inputMaxlength,focus:x.focused,confirmType:b.confirmType,"cursor-spacing":b.cursorSpacing,"adjust-position":b.adjustPosition,onFocus:C._Focus,onBlur:C._Blur,onInput:C.onInput,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position","onFocus","onBlur","onInput","onConfirm","onKeyboardheightchange"])),"password"===b.type&&b.passwordIcon?(o(),u(h,{key:3},[C.isVal?(o(),s(k,{key:0,class:a(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:x.showPassword?"eye-slash-filled":"eye-filled",size:22,color:x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onEyes},null,8,["class","type","color","onClick"])):n("",!0)],64)):n("",!0),b.suffixIcon?(o(),u(h,{key:4},[b.suffixIcon?(o(),s(k,{key:0,class:"content-clear-icon",type:b.suffixIcon,color:"#c0c4cc",onClick:g[1]||(g[1]=e=>C.onClickIcon("suffix")),size:"22"},null,8,["type"])):n("",!0)],64)):(o(),u(h,{key:5},[b.clearable&&C.isVal&&!b.disabled&&"textarea"!==b.type?(o(),s(k,{key:0,class:a(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:"clear",size:b.clearSize,color:C.msg?"#dd524d":x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onClear},null,8,["class","size","color","onClick"])):n("",!0)],64)),c(y.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}],["__scopeId","data-v-5763a810"]]);export{b as _}; diff --git a/unpackage/dist/build/web/assets/uni-icons.CP-9I_4O.js b/unpackage/dist/build/web/assets/uni-icons.BNs6RC_T.js similarity index 98% rename from unpackage/dist/build/web/assets/uni-icons.CP-9I_4O.js rename to unpackage/dist/build/web/assets/uni-icons.BNs6RC_T.js index 7fa7b75a..13205bf9 100644 --- a/unpackage/dist/build/web/assets/uni-icons.CP-9I_4O.js +++ b/unpackage/dist/build/web/assets/uni-icons.BNs6RC_T.js @@ -1 +1 @@ -import{o,f as s,w as n,J as c,i as l,B as e,C as i}from"./index-BifMHC6c.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const a=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const t=d({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:a}),computed:{unicode(){let o=this.icons.find((o=>o.font_class===this.type));return o?o.unicode:""},iconSize(){return"number"==typeof(o=this.size)||/^[0-9]*$/g.test(o)?o+"px":o;var o},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(d,a,t,f,u,_){const r=i;return o(),s(r,{style:l(_.styleObj),class:e(["uni-icons",["uniui-"+t.type,t.customPrefix,t.customPrefix?t.type:""]]),onClick:_._onClick},{default:n((()=>[c(d.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])}],["__scopeId","data-v-5610c8db"]]);export{t as _}; +import{o,f as s,w as n,K as c,i as l,E as e,G as i}from"./index-759PoYgM.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const a=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const t=d({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:a}),computed:{unicode(){let o=this.icons.find((o=>o.font_class===this.type));return o?o.unicode:""},iconSize(){return"number"==typeof(o=this.size)||/^[0-9]*$/g.test(o)?o+"px":o;var o},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(d,a,t,f,u,_){const r=i;return o(),s(r,{style:l(_.styleObj),class:e(["uni-icons",["uniui-"+t.type,t.customPrefix,t.customPrefix?t.type:""]]),onClick:_._onClick},{default:n((()=>[c(d.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])}],["__scopeId","data-v-5610c8db"]]);export{t as _}; diff --git a/unpackage/dist/build/web/assets/uni-load-more.B-hqwG84.js b/unpackage/dist/build/web/assets/uni-load-more.BV7jV9SQ.js similarity index 97% rename from unpackage/dist/build/web/assets/uni-load-more.B-hqwG84.js rename to unpackage/dist/build/web/assets/uni-load-more.BV7jV9SQ.js index ec90b70e..1fb6fd9e 100644 --- a/unpackage/dist/build/web/assets/uni-load-more.B-hqwG84.js +++ b/unpackage/dist/build/web/assets/uni-load-more.BV7jV9SQ.js @@ -1 +1 @@ -import{b as e,N as o,o as n,f as t,w as i,q as c,i as a,l as s,k as d,m as l,p as A,t as h,O as m,j as r,C as w}from"./index-BifMHC6c.js";import{_ as u}from"./_plugin-vue_export-helper.BCo6x5W8.js";const E={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let I;setTimeout((()=>{I=e().platform}),16);const{t:R}=o(E);const D=u({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:I,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZV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"}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||R("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||R("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||R("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(e,o,u,E,I,R){const D=m,x=r,J=w;return n(),t(x,{class:"uni-load-more",onClick:R.onClick},{default:i((()=>[!I.webviewHide&&("circle"===u.iconType||"auto"===u.iconType&&"android"===I.platform)&&"loading"===u.status&&u.showIcon?(n(),c("svg",{key:0,width:"24",height:"24",viewBox:"25 25 50 50",style:a({width:u.iconSize+"px",height:u.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-H5"},[s("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:a({color:u.color}),"stroke-width":3},null,4)],4)):!I.webviewHide&&"loading"===u.status&&u.showIcon?(n(),t(x,{key:1,style:a({width:u.iconSize+"px",height:u.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},{default:i((()=>[d(D,{src:I.imgBase64,mode:"widthFix"},null,8,["src"])])),_:1},8,["style"])):l("",!0),u.showText?(n(),t(J,{key:2,class:"uni-load-more__text",style:a({color:u.color})},{default:i((()=>[A(h("more"===u.status?R.contentdownText:"loading"===u.status?R.contentrefreshText:R.contentnomoreText),1)])),_:1},8,["style"])):l("",!0)])),_:1},8,["onClick"])}],["__scopeId","data-v-d82f3750"]]);export{D as _}; +import{b as e,N as o,o as n,f as t,w as i,q as c,i as a,l as s,k as d,m as l,p as A,t as h,O as m,j as r,G as w}from"./index-759PoYgM.js";import{_ as u}from"./_plugin-vue_export-helper.BCo6x5W8.js";const E={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let I;setTimeout((()=>{I=e().platform}),16);const{t:R}=o(E);const D=u({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:I,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZV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"}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||R("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||R("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||R("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(e,o,u,E,I,R){const D=m,x=r,G=w;return n(),t(x,{class:"uni-load-more",onClick:R.onClick},{default:i((()=>[!I.webviewHide&&("circle"===u.iconType||"auto"===u.iconType&&"android"===I.platform)&&"loading"===u.status&&u.showIcon?(n(),c("svg",{key:0,width:"24",height:"24",viewBox:"25 25 50 50",style:a({width:u.iconSize+"px",height:u.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-H5"},[s("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:a({color:u.color}),"stroke-width":3},null,4)],4)):!I.webviewHide&&"loading"===u.status&&u.showIcon?(n(),t(x,{key:1,style:a({width:u.iconSize+"px",height:u.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},{default:i((()=>[d(D,{src:I.imgBase64,mode:"widthFix"},null,8,["src"])])),_:1},8,["style"])):l("",!0),u.showText?(n(),t(G,{key:2,class:"uni-load-more__text",style:a({color:u.color})},{default:i((()=>[A(h("more"===u.status?R.contentdownText:"loading"===u.status?R.contentrefreshText:R.contentnomoreText),1)])),_:1},8,["style"])):l("",!0)])),_:1},8,["onClick"])}],["__scopeId","data-v-d82f3750"]]);export{D as _}; diff --git a/unpackage/dist/build/web/assets/uni-popup.D8sN-IRM.js b/unpackage/dist/build/web/assets/uni-popup.DAsKHQxH.js similarity index 97% rename from unpackage/dist/build/web/assets/uni-popup.D8sN-IRM.js rename to unpackage/dist/build/web/assets/uni-popup.DAsKHQxH.js index 577bbf2f..86f8222e 100644 --- a/unpackage/dist/build/web/assets/uni-popup.D8sN-IRM.js +++ b/unpackage/dist/build/web/assets/uni-popup.DAsKHQxH.js @@ -1 +1 @@ -import{o as t,f as s,w as i,k as e,B as o,J as a,p as n,t as r,C as l,j as h,U as p,z as u,A as d,i as c,e as m,r as f,m as g,b as y}from"./index-BifMHC6c.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as b}from"./uni-app.es.BM6_Rfsu.js";const w=k({name:"uniPopupMessage",mixins:[{data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(t="uniPopup"){let s=this.$parent,i=s.$options.name;for(;i!==t;){if(s=s.$parent,!s)return!1;i=s.$options.name}return s}}}],props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3},maskShow:{type:Boolean,default:!1}},data:()=>({}),created(){this.popup.maskShow=this.maskShow,this.popup.messageChild=this},methods:{timerClose(){0!==this.duration&&(clearTimeout(this.timer),this.timer=setTimeout((()=>{this.popup.close()}),this.duration))}}},[["render",function(p,u,d,c,m,f){const g=l,y=h;return t(),s(y,{class:"uni-popup-message"},{default:i((()=>[e(y,{class:o(["uni-popup-message__box fixforpc-width","uni-popup__"+d.type])},{default:i((()=>[a(p.$slots,"default",{},(()=>[e(g,{class:o(["uni-popup-message-text","uni-popup__"+d.type+"-text"])},{default:i((()=>[n(r(d.message),1)])),_:1},8,["class"])]),!0)])),_:3},8,["class"])])),_:3})}],["__scopeId","data-v-d81cfb56"]]);class C{constructor(t,s){this.options=t,this.animation=p({...t}),this.currentStepAnimates={},this.next=0,this.$=s}_nvuePushAnimates(t,s){let i=this.currentStepAnimates[this.next],e={};if(e=i||{styles:{},config:{}},T.includes(t)){e.styles.transform||(e.styles.transform="");let i="";"rotate"===t&&(i="deg"),e.styles.transform+=`${t}(${s+i}) `}else e.styles[t]=`${s}`;this.currentStepAnimates[this.next]=e}_animateRun(t={},s={}){let i=this.$.$refs.ani.ref;if(i)return new Promise(((e,o)=>{nvueAnimation.transition(i,{styles:t,...s},(t=>{e()}))}))}_nvueNextAnimate(t,s=0,i){let e=t[s];if(e){let{styles:o,config:a}=e;this._animateRun(o,a).then((()=>{s+=1,this._nvueNextAnimate(t,s,i)}))}else this.currentStepAnimates={},"function"==typeof i&&i(),this.isEnd=!0}step(t={}){return this.animation.step(t),this}run(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof t&&t()}),this.$.durationTime)}}const T=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function x(t,s){if(s)return clearTimeout(s.timer),new C(t,s)}T.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((t=>{C.prototype[t]=function(...s){return this.animation[t](...s),this}}));const $=k({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let t={...this.styles,"transition-duration":this.duration/1e3+"s"},s="";for(let i in t){s+=this.toLine(i)+":"+t[i]+";"}return s},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(t={}){t.duration&&(this.durationTime=t.duration),this.animation=x(Object.assign(this.config,t),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(t,s={}){if(this.animation){for(let s in t)try{"object"==typeof t[s]?this.animation[s](...t[s]):this.animation[s](t[s])}catch(i){console.error(`方法 ${s} 不存在`)}return this.animation.step(s),this}},run(t){this.animation&&this.animation.run(t)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:t,transform:s}=this.styleInit(!1);void 0!==t&&(this.opacity=t),this.transform=s,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=x(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(t){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:t,transform:s}=this.styleInit(!1);this.opacity=t||1,this.transform=s,this.$emit("change",{detail:this.isShow})}))},styleInit(t){let s={transform:""},i=(t,i)=>{"fade"===i?s.opacity=this.animationType(t)[i]:s.transform+=this.animationType(t)[i]+" "};return"string"==typeof this.modeClass?i(t,this.modeClass):this.modeClass.forEach((s=>{i(t,s)})),s},tranfromInit(t){let s=(t,s)=>{let i=null;"fade"===s?i=t?0:1:(i=t?"-100%":"0","zoom-in"===s&&(i=t?.8:1),"zoom-out"===s&&(i=t?1.2:1),"slide-right"===s&&(i=t?"100%":"0"),"slide-bottom"===s&&(i=t?"100%":"0")),this.animation[this.animationMode()[s]](i)};return"string"==typeof this.modeClass?s(t,this.modeClass):this.modeClass.forEach((i=>{s(t,i)})),this.animation},animationType:t=>({fade:t?0:1,"slide-top":`translateY(${t?"0":"-100%"})`,"slide-right":`translateX(${t?"0":"100%"})`,"slide-bottom":`translateY(${t?"0":"100%"})`,"slide-left":`translateX(${t?"0":"-100%"})`,"zoom-in":`scaleX(${t?1:.8}) scaleY(${t?1:.8})`,"zoom-out":`scaleX(${t?1:1.2}) scaleY(${t?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(e,n,r,l,p,m){const f=h;return u((t(),s(f,{ref:"ani",animation:p.animationData,class:o(r.customClass),style:c(m.transformStyles),onClick:m.onClick},{default:i((()=>[a(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])),[[d,p.isShow]])}]]);const S=k({name:"uniPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(s=>{if(this.disable)return;const i=Object.keys(t).find((i=>{const e=s.key,o=t[i];return o===e||Array.isArray(o)&&o.includes(e)}));i&&setTimeout((()=>{this.$emit(i,{})}),0)}))},render:()=>{}}},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup(t){document.getElementsByTagName("body")[0].style.overflow=t?"hidden":"visible"}},data(){return{duration:100,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let t={backgroundColor:this.bg};return this.borderRadius,t=Object.assign(t,{borderRadius:this.borderRadius}),t},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:t,windowHeight:s,windowTop:i,safeArea:e,screenHeight:o,safeAreaInsets:a}=y();this.popupWidth=t,this.popupHeight=s+(i||0),e&&this.safeArea?this.safeAreaInsets=a.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=100:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(t=!0){document.getElementsByTagName("body")[0].style.overflow=t?"visible":"hidden"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(t){t.stopPropagation(),this.clearPropagation=!0},open(t){if(this.showPopup)return;t&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(t)||(t=this.type),this.config[t]?(this[this.config[t]](),this.$emit("change",{show:!0,type:t})):console.error("缺少类型:",t)},close(t){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),100)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(t){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},center(t){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},left(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}},[["render",function(n,r,l,p,u,d){const y=b(m("uni-transition"),$),k=h,w=f("keypress");return u.showPopup?(t(),s(k,{key:0,class:o(["uni-popup",[u.popupstyle,d.isDesktop?"fixforpc-z-index":""]])},{default:i((()=>[e(k,{onTouchstart:d.touchstart},{default:i((()=>[u.maskShow?(t(),s(y,{key:"1",name:"mask","mode-class":"fade",styles:u.maskClass,duration:u.duration,show:u.showTrans,onClick:d.onTap},null,8,["styles","duration","show","onClick"])):g("",!0),e(y,{key:"2","mode-class":u.ani,name:"content",styles:u.transClass,duration:u.duration,show:u.showTrans,onClick:d.onTap},{default:i((()=>[e(k,{class:o(["uni-popup__wrapper",[u.popupstyle]]),style:c(d.getStyles),onClick:d.clear},{default:i((()=>[a(n.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),u.maskShow?(t(),s(w,{key:0,onEsc:d.onTap},null,8,["onEsc"])):g("",!0)])),_:3},8,["class"])):g("",!0)}],["__scopeId","data-v-b1a832d5"]]);export{w as _,S as a}; +import{o as t,f as s,w as i,k as e,E as o,K as a,p as n,t as r,G as l,j as h,U as p,C as u,D as d,i as c,e as m,r as f,m as g,b as y}from"./index-759PoYgM.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as b}from"./uni-app.es.Hulr8kk-.js";const w=k({name:"uniPopupMessage",mixins:[{data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(t="uniPopup"){let s=this.$parent,i=s.$options.name;for(;i!==t;){if(s=s.$parent,!s)return!1;i=s.$options.name}return s}}}],props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3},maskShow:{type:Boolean,default:!1}},data:()=>({}),created(){this.popup.maskShow=this.maskShow,this.popup.messageChild=this},methods:{timerClose(){0!==this.duration&&(clearTimeout(this.timer),this.timer=setTimeout((()=>{this.popup.close()}),this.duration))}}},[["render",function(p,u,d,c,m,f){const g=l,y=h;return t(),s(y,{class:"uni-popup-message"},{default:i((()=>[e(y,{class:o(["uni-popup-message__box fixforpc-width","uni-popup__"+d.type])},{default:i((()=>[a(p.$slots,"default",{},(()=>[e(g,{class:o(["uni-popup-message-text","uni-popup__"+d.type+"-text"])},{default:i((()=>[n(r(d.message),1)])),_:1},8,["class"])]),!0)])),_:3},8,["class"])])),_:3})}],["__scopeId","data-v-d81cfb56"]]);class C{constructor(t,s){this.options=t,this.animation=p({...t}),this.currentStepAnimates={},this.next=0,this.$=s}_nvuePushAnimates(t,s){let i=this.currentStepAnimates[this.next],e={};if(e=i||{styles:{},config:{}},T.includes(t)){e.styles.transform||(e.styles.transform="");let i="";"rotate"===t&&(i="deg"),e.styles.transform+=`${t}(${s+i}) `}else e.styles[t]=`${s}`;this.currentStepAnimates[this.next]=e}_animateRun(t={},s={}){let i=this.$.$refs.ani.ref;if(i)return new Promise(((e,o)=>{nvueAnimation.transition(i,{styles:t,...s},(t=>{e()}))}))}_nvueNextAnimate(t,s=0,i){let e=t[s];if(e){let{styles:o,config:a}=e;this._animateRun(o,a).then((()=>{s+=1,this._nvueNextAnimate(t,s,i)}))}else this.currentStepAnimates={},"function"==typeof i&&i(),this.isEnd=!0}step(t={}){return this.animation.step(t),this}run(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof t&&t()}),this.$.durationTime)}}const T=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function x(t,s){if(s)return clearTimeout(s.timer),new C(t,s)}T.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((t=>{C.prototype[t]=function(...s){return this.animation[t](...s),this}}));const $=k({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let t={...this.styles,"transition-duration":this.duration/1e3+"s"},s="";for(let i in t){s+=this.toLine(i)+":"+t[i]+";"}return s},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(t={}){t.duration&&(this.durationTime=t.duration),this.animation=x(Object.assign(this.config,t),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(t,s={}){if(this.animation){for(let s in t)try{"object"==typeof t[s]?this.animation[s](...t[s]):this.animation[s](t[s])}catch(i){console.error(`方法 ${s} 不存在`)}return this.animation.step(s),this}},run(t){this.animation&&this.animation.run(t)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:t,transform:s}=this.styleInit(!1);void 0!==t&&(this.opacity=t),this.transform=s,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=x(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(t){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:t,transform:s}=this.styleInit(!1);this.opacity=t||1,this.transform=s,this.$emit("change",{detail:this.isShow})}))},styleInit(t){let s={transform:""},i=(t,i)=>{"fade"===i?s.opacity=this.animationType(t)[i]:s.transform+=this.animationType(t)[i]+" "};return"string"==typeof this.modeClass?i(t,this.modeClass):this.modeClass.forEach((s=>{i(t,s)})),s},tranfromInit(t){let s=(t,s)=>{let i=null;"fade"===s?i=t?0:1:(i=t?"-100%":"0","zoom-in"===s&&(i=t?.8:1),"zoom-out"===s&&(i=t?1.2:1),"slide-right"===s&&(i=t?"100%":"0"),"slide-bottom"===s&&(i=t?"100%":"0")),this.animation[this.animationMode()[s]](i)};return"string"==typeof this.modeClass?s(t,this.modeClass):this.modeClass.forEach((i=>{s(t,i)})),this.animation},animationType:t=>({fade:t?0:1,"slide-top":`translateY(${t?"0":"-100%"})`,"slide-right":`translateX(${t?"0":"100%"})`,"slide-bottom":`translateY(${t?"0":"100%"})`,"slide-left":`translateX(${t?"0":"-100%"})`,"zoom-in":`scaleX(${t?1:.8}) scaleY(${t?1:.8})`,"zoom-out":`scaleX(${t?1:1.2}) scaleY(${t?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(e,n,r,l,p,m){const f=h;return u((t(),s(f,{ref:"ani",animation:p.animationData,class:o(r.customClass),style:c(m.transformStyles),onClick:m.onClick},{default:i((()=>[a(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])),[[d,p.isShow]])}]]);const S=k({name:"uniPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(s=>{if(this.disable)return;const i=Object.keys(t).find((i=>{const e=s.key,o=t[i];return o===e||Array.isArray(o)&&o.includes(e)}));i&&setTimeout((()=>{this.$emit(i,{})}),0)}))},render:()=>{}}},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup(t){document.getElementsByTagName("body")[0].style.overflow=t?"hidden":"visible"}},data(){return{duration:100,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let t={backgroundColor:this.bg};return this.borderRadius,t=Object.assign(t,{borderRadius:this.borderRadius}),t},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:t,windowHeight:s,windowTop:i,safeArea:e,screenHeight:o,safeAreaInsets:a}=y();this.popupWidth=t,this.popupHeight=s+(i||0),e&&this.safeArea?this.safeAreaInsets=a.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=100:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(t=!0){document.getElementsByTagName("body")[0].style.overflow=t?"visible":"hidden"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(t){t.stopPropagation(),this.clearPropagation=!0},open(t){if(this.showPopup)return;t&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(t)||(t=this.type),this.config[t]?(this[this.config[t]](),this.$emit("change",{show:!0,type:t})):console.error("缺少类型:",t)},close(t){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),100)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(t){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},center(t){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0)},left(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}},[["render",function(n,r,l,p,u,d){const y=b(m("uni-transition"),$),k=h,w=f("keypress");return u.showPopup?(t(),s(k,{key:0,class:o(["uni-popup",[u.popupstyle,d.isDesktop?"fixforpc-z-index":""]])},{default:i((()=>[e(k,{onTouchstart:d.touchstart},{default:i((()=>[u.maskShow?(t(),s(y,{key:"1",name:"mask","mode-class":"fade",styles:u.maskClass,duration:u.duration,show:u.showTrans,onClick:d.onTap},null,8,["styles","duration","show","onClick"])):g("",!0),e(y,{key:"2","mode-class":u.ani,name:"content",styles:u.transClass,duration:u.duration,show:u.showTrans,onClick:d.onTap},{default:i((()=>[e(k,{class:o(["uni-popup__wrapper",[u.popupstyle]]),style:c(d.getStyles),onClick:d.clear},{default:i((()=>[a(n.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),u.maskShow?(t(),s(w,{key:0,onEsc:d.onTap},null,8,["onEsc"])):g("",!0)])),_:3},8,["class"])):g("",!0)}],["__scopeId","data-v-b1a832d5"]]);export{w as _,S as a}; diff --git a/unpackage/dist/build/web/assets/uploadImage.m53ARKO3.js b/unpackage/dist/build/web/assets/uploadImage.BpNxfxIh.js similarity index 95% rename from unpackage/dist/build/web/assets/uploadImage.m53ARKO3.js rename to unpackage/dist/build/web/assets/uploadImage.BpNxfxIh.js index 436ea2e9..b1814746 100644 --- a/unpackage/dist/build/web/assets/uploadImage.m53ARKO3.js +++ b/unpackage/dist/build/web/assets/uploadImage.BpNxfxIh.js @@ -1 +1 @@ -import{V as e,W as t,X as s,K as i,Y as l,Z as o,o as a,f as r,w as n,q as d,F as u,u as h,i as p,k as c,y as f,m,p as y,J as g,O as b,j as F,H as x,B as _,t as k,r as w,C as P,_ as v,a0 as S,e as I}from"./index-BifMHC6c.js";import{t as T}from"./uni-cloud.es.VFO8_T8A.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as $}from"./uni-app.es.BM6_Rfsu.js";const C="chooseAndUploadFile:fail";function M(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function O(e,t=5,s){const i=(e=JSON.parse(JSON.stringify(e))).length;let l=0,o=this;return new Promise((a=>{for(;l=i)return void(!e.find((e=>!e.url&&!e.errMsg))&&a(e));const n=e[t],d=o.files.findIndex((e=>e.uuid===n.uuid));n.url="",delete n.errMsg,T.uploadFile({filePath:n.path,cloudPath:n.cloudPath,fileType:n.fileType,onUploadProgress:e=>{e.index=d,s&&s(e)}}).then((e=>{n.url=e.fileID,n.index=d,t{n.errMsg=e.errMsg||e.message,n.index=d,t{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function j(i={type:"all"}){return"image"===i.type?E(function(t){const{count:s,sizeType:i=["original","compressed"],sourceType:l,extension:o}=t;return new Promise(((t,a)=>{e({count:s,sizeType:i,sourceType:l,extension:o,success(e){t(M(e,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",C)})}})}))}(i),i):"video"===i.type?E(function(e){const{count:s,camera:i,compressed:l,maxDuration:o,sourceType:a,extension:r}=e;return new Promise(((e,s)=>{t({camera:i,compressed:l,maxDuration:o,sourceType:a,extension:r,success(t){const{tempFilePath:s,duration:i,size:l,height:o,width:a}=t;e(M({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:l,type:t.tempFile&&t.tempFile.type||"",width:a,height:o,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",C)})}})}))}(i),i):E(function(e){const{count:t,extension:i}=e;return new Promise(((e,l)=>{let o=s;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return l({errMsg:C+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:i,success(t){e(M(t))},fail(e){l({errMsg:e.errMsg.replace("chooseFile:fail",C)})}})}))}(i),i)}const U=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},V=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},B=async(e,t="image")=>{const s=U(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(o=e.path,new Promise(((e,t)=>{l({src:o,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var o;return i};const D=L({name:"uniFilePicker",components:{uploadImage:L({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let l in s)i+=`${l}:${s[l]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let s="";for(let i in t)s+=`${i}:${t[i]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{s.push(e.url)})),o({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,i,l,o){const _=b,k=F,w=x;return a(),r(k,{class:"uni-file-picker__container"},{default:n((()=>[(a(!0),d(u,null,h(s.filesList,((e,t)=>(a(),r(k,{class:"file-picker__box",key:t,style:p(o.boxStyle)},{default:n((()=>[c(k,{class:"file-picker__box-content",style:p(o.borderStyle)},{default:n((()=>[c(_,{class:"file-image",src:e.url,mode:"aspectFill",onClick:f((s=>o.prviewImage(e,t)),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(a(),r(k,{key:0,class:"icon-del-box",onClick:f((e=>o.delFile(t)),["stop"])},{default:n((()=>[c(k,{class:"icon-del"}),c(k,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):m("",!0),e.progress&&100!==e.progress||0===e.progress?(a(),r(k,{key:1,class:"file-picker__progress"},{default:n((()=>[c(w,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):m("",!0),e.errMsg?(a(),r(k,{key:2,class:"file-picker__mask",onClick:f((s=>o.uploadFiles(e,t)),["stop"])},{default:n((()=>[y(" 点击重试 ")])),_:2},1032,["onClick"])):m("",!0)])),_:2},1032,["style"])])),_:2},1032,["style"])))),128)),s.filesList.length[c(k,{class:"file-picker__box-content is-add",style:p(o.borderStyle),onClick:o.choose},{default:n((()=>[g(e.$slots,"default",{},(()=>[c(k,{class:"icon-add"}),c(k,{class:"icon-add rotate"})]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])):m("",!0)])),_:3})}],["__scopeId","data-v-86b162f5"]]),uploadFile:L({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else s.border="none";let i="";for(let l in s)i+=`${l}:${s[l]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,i=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let s="";for(let i in e)s+=`${i}:${e[i]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,i,l,o){const b=F,w=x;return a(),r(b,{class:"uni-file-picker__files"},{default:n((()=>[s.readonly?m("",!0):(a(),r(b,{key:0,class:"files-button",onClick:o.choose},{default:n((()=>[g(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])),o.list.length>0?(a(),r(b,{key:1,class:"uni-file-picker__lists is-text-box",style:p(o.borderStyle)},{default:n((()=>[(a(!0),d(u,null,h(o.list,((e,t)=>(a(),r(b,{class:_(["uni-file-picker__lists-box",{"files-border":0!==t&&o.styles.dividline}]),key:t,style:p(0!==t&&o.styles.dividline&&o.borderLineStyle)},{default:n((()=>[c(b,{class:"uni-file-picker__item"},{default:n((()=>[c(b,{class:"files__name"},{default:n((()=>[y(k(e.name),1)])),_:2},1024),s.delIcon&&!s.readonly?(a(),r(b,{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(t)},{default:n((()=>[c(b,{class:"icon-del icon-files"}),c(b,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):m("",!0)])),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(a(),r(b,{key:0,class:"file-picker__progress"},{default:n((()=>[c(w,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):m("",!0),"error"===e.status?(a(),r(b,{key:1,class:"file-picker__mask",onClick:f((s=>o.uploadFiles(e,t)),["stop"])},{default:n((()=>[y(" 点击重试 ")])),_:2},1032,["onClick"])):m("",!0)])),_:2},1032,["class","style"])))),128))])),_:1},8,["style"])):m("",!0)])),_:3})}],["__scopeId","data-v-5d376bd5"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){T.config&&T.config.provider||(this.noSpace=!0,T.chooseAndUploadFile=j),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?i({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=V(this.fileExtname);T.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{console.log("选择失败",e)}))},async chooseFileCallback(e){const t=V(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:l}=((e,t)=>{let s=[],l=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const i=U(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(l.push(e),s.push(e.path))})),l.length!==e.tempFiles.length&&i({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-l.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:s,files:l}):{filePaths:s,files:l}})(e,t);t&&t.length>0||(s=e.tempFilePaths,l=e.tempFiles);let o=[];for(let i=0;i{this.provider&&(e.provider=this.provider);const s=e.name.split("."),i=s.pop(),l=s.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=l+"_"+Date.now()+"_"+t+"."+i}))},uploadFiles(e){return e=[].concat(e),O.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{console.log(e)}))},async setSuccessAndError(e,t){let s=[],i=[],l=[],o=[];for(let a=0;ae.uuid===t.uuid)):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,i.push(this.files[r]),o.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,s.push(this.files[r]),l.push(this.files[r].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:l})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:o})},setProgress(e,t,s){this.files.length;const i=Math.round(100*e.loaded/e.total);let l=t;s||(l=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==l&&this.files[l]&&(this.files[l].progress=i-1,this.$emit("progress",{index:l,progress:parseInt(i),tempFile:this.files[l]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await T.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,i,l,o){const d=P,u=F,h=w("upload-image"),p=v,f=w("upload-file");return a(),r(u,{class:"uni-file-picker"},{default:n((()=>[s.title?(a(),r(u,{key:0,class:"uni-file-picker__header"},{default:n((()=>[c(d,{class:"file-title"},{default:n((()=>[y(k(s.title),1)])),_:1}),c(d,{class:"file-count"},{default:n((()=>[y(k(o.filesList.length)+"/"+k(o.limitLength),1)])),_:1})])),_:1})):m("",!0),"image"===s.fileMediatype&&"grid"===o.showType?(a(),r(h,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:n((()=>[g(e.$slots,"default",{},(()=>[c(u,{class:"is-add"},{default:n((()=>[c(u,{class:"icon-add"}),c(u,{class:"icon-add rotate"})])),_:1})]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):m("",!0),"image"!==s.fileMediatype||"grid"!==o.showType?(a(),r(f,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:n((()=>[g(e.$slots,"default",{},(()=>[c(p,{type:"primary",size:"mini"},{default:n((()=>[y("选择文件")])),_:1})]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):m("",!0)])),_:3})}],["__scopeId","data-v-c3437fa4"]]);const A=L({data:()=>({httpUrl:"https://vespa.qxyushen.top",fileList:[]}),watch:{fileList(e){this.$emit("changeImageList",this.fileList)}},methods:{select(e){this.tempFiles=e.tempFiles,this.tempFiles&&0!==this.tempFiles.length?this.tempFiles.forEach((e=>{this.uploadFile(e)})):i({title:"请先选择文件",icon:"none"})},uploadFile(e){S({url:`${this.httpUrl}/adminapi/UploadFile/file_upload`,filePath:e.path,name:"files",success:e=>{const{code:t,data:s}=JSON.parse(e.data);t&&(this.fileList.push({tempFile:s,tempFilePath:s.url,res:JSON.parse(e.data)}),this.$emit("changeImageList",this.fileList))}})},success(e){console.log("上传成功",e)},fail(e){console.log("上传失败",e)},progress(e){console.log("上传进度",e)},clearImage(){this.fileList=[]}}},[["render",function(e,t,s,i,l,o){const n=$(I("uni-file-picker"),D);return a(),r(n,{ref:"filePicker","return-type":"array",limit:1,modelValue:l.fileList,"onUpdate:modelValue":t[0]||(t[0]=e=>l.fileList=e),fileMediatype:"image",mode:"grid","auto-upload":!1,onSelect:o.select,onProgress:o.progress,onSuccess:o.success,onFail:o.fail},null,8,["modelValue","onSelect","onProgress","onSuccess","onFail"])}]]);export{A as u}; +import{V as e,W as t,X as s,z as i,Y as l,Z as o,o as a,f as r,w as n,q as d,F as u,u as h,i as p,k as c,B as f,m,p as y,K as g,O as b,j as F,J as x,E as _,t as k,r as w,G as P,_ as v,a0 as S,e as I}from"./index-759PoYgM.js";import{t as T}from"./uni-cloud.es.BW6KsUMN.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as $}from"./uni-app.es.Hulr8kk-.js";const M="chooseAndUploadFile:fail";function C(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function O(e,t=5,s){const i=(e=JSON.parse(JSON.stringify(e))).length;let l=0,o=this;return new Promise((a=>{for(;l=i)return void(!e.find((e=>!e.url&&!e.errMsg))&&a(e));const n=e[t],d=o.files.findIndex((e=>e.uuid===n.uuid));n.url="",delete n.errMsg,T.uploadFile({filePath:n.path,cloudPath:n.cloudPath,fileType:n.fileType,onUploadProgress:e=>{e.index=d,s&&s(e)}}).then((e=>{n.url=e.fileID,n.index=d,t{n.errMsg=e.errMsg||e.message,n.index=d,t{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function j(i={type:"all"}){return"image"===i.type?E(function(t){const{count:s,sizeType:i=["original","compressed"],sourceType:l,extension:o}=t;return new Promise(((t,a)=>{e({count:s,sizeType:i,sourceType:l,extension:o,success(e){t(C(e,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",M)})}})}))}(i),i):"video"===i.type?E(function(e){const{count:s,camera:i,compressed:l,maxDuration:o,sourceType:a,extension:r}=e;return new Promise(((e,s)=>{t({camera:i,compressed:l,maxDuration:o,sourceType:a,extension:r,success(t){const{tempFilePath:s,duration:i,size:l,height:o,width:a}=t;e(C({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:l,type:t.tempFile&&t.tempFile.type||"",width:a,height:o,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",M)})}})}))}(i),i):E(function(e){const{count:t,extension:i}=e;return new Promise(((e,l)=>{let o=s;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return l({errMsg:M+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:i,success(t){e(C(t))},fail(e){l({errMsg:e.errMsg.replace("chooseFile:fail",M)})}})}))}(i),i)}const U=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},V=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},B=async(e,t="image")=>{const s=U(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(o=e.path,new Promise(((e,t)=>{l({src:o,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var o;return i};const D=L({name:"uniFilePicker",components:{uploadImage:L({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let l in s)i+=`${l}:${s[l]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let s="";for(let i in t)s+=`${i}:${t[i]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{s.push(e.url)})),o({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,i,l,o){const _=b,k=F,w=x;return a(),r(k,{class:"uni-file-picker__container"},{default:n((()=>[(a(!0),d(u,null,h(s.filesList,((e,t)=>(a(),r(k,{class:"file-picker__box",key:t,style:p(o.boxStyle)},{default:n((()=>[c(k,{class:"file-picker__box-content",style:p(o.borderStyle)},{default:n((()=>[c(_,{class:"file-image",src:e.url,mode:"aspectFill",onClick:f((s=>o.prviewImage(e,t)),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(a(),r(k,{key:0,class:"icon-del-box",onClick:f((e=>o.delFile(t)),["stop"])},{default:n((()=>[c(k,{class:"icon-del"}),c(k,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):m("",!0),e.progress&&100!==e.progress||0===e.progress?(a(),r(k,{key:1,class:"file-picker__progress"},{default:n((()=>[c(w,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):m("",!0),e.errMsg?(a(),r(k,{key:2,class:"file-picker__mask",onClick:f((s=>o.uploadFiles(e,t)),["stop"])},{default:n((()=>[y(" 点击重试 ")])),_:2},1032,["onClick"])):m("",!0)])),_:2},1032,["style"])])),_:2},1032,["style"])))),128)),s.filesList.length[c(k,{class:"file-picker__box-content is-add",style:p(o.borderStyle),onClick:o.choose},{default:n((()=>[g(e.$slots,"default",{},(()=>[c(k,{class:"icon-add"}),c(k,{class:"icon-add rotate"})]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])):m("",!0)])),_:3})}],["__scopeId","data-v-86b162f5"]]),uploadFile:L({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else s.border="none";let i="";for(let l in s)i+=`${l}:${s[l]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,i=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let s="";for(let i in e)s+=`${i}:${e[i]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,i,l,o){const b=F,w=x;return a(),r(b,{class:"uni-file-picker__files"},{default:n((()=>[s.readonly?m("",!0):(a(),r(b,{key:0,class:"files-button",onClick:o.choose},{default:n((()=>[g(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])),o.list.length>0?(a(),r(b,{key:1,class:"uni-file-picker__lists is-text-box",style:p(o.borderStyle)},{default:n((()=>[(a(!0),d(u,null,h(o.list,((e,t)=>(a(),r(b,{class:_(["uni-file-picker__lists-box",{"files-border":0!==t&&o.styles.dividline}]),key:t,style:p(0!==t&&o.styles.dividline&&o.borderLineStyle)},{default:n((()=>[c(b,{class:"uni-file-picker__item"},{default:n((()=>[c(b,{class:"files__name"},{default:n((()=>[y(k(e.name),1)])),_:2},1024),s.delIcon&&!s.readonly?(a(),r(b,{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(t)},{default:n((()=>[c(b,{class:"icon-del icon-files"}),c(b,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):m("",!0)])),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(a(),r(b,{key:0,class:"file-picker__progress"},{default:n((()=>[c(w,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):m("",!0),"error"===e.status?(a(),r(b,{key:1,class:"file-picker__mask",onClick:f((s=>o.uploadFiles(e,t)),["stop"])},{default:n((()=>[y(" 点击重试 ")])),_:2},1032,["onClick"])):m("",!0)])),_:2},1032,["class","style"])))),128))])),_:1},8,["style"])):m("",!0)])),_:3})}],["__scopeId","data-v-5d376bd5"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){T.config&&T.config.provider||(this.noSpace=!0,T.chooseAndUploadFile=j),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?i({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=V(this.fileExtname);T.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{console.log("选择失败",e)}))},async chooseFileCallback(e){const t=V(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:l}=((e,t)=>{let s=[],l=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const i=U(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(l.push(e),s.push(e.path))})),l.length!==e.tempFiles.length&&i({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-l.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:s,files:l}):{filePaths:s,files:l}})(e,t);t&&t.length>0||(s=e.tempFilePaths,l=e.tempFiles);let o=[];for(let i=0;i{this.provider&&(e.provider=this.provider);const s=e.name.split("."),i=s.pop(),l=s.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=l+"_"+Date.now()+"_"+t+"."+i}))},uploadFiles(e){return e=[].concat(e),O.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{console.log(e)}))},async setSuccessAndError(e,t){let s=[],i=[],l=[],o=[];for(let a=0;ae.uuid===t.uuid)):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,i.push(this.files[r]),o.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,s.push(this.files[r]),l.push(this.files[r].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:l})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:o})},setProgress(e,t,s){this.files.length;const i=Math.round(100*e.loaded/e.total);let l=t;s||(l=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==l&&this.files[l]&&(this.files[l].progress=i-1,this.$emit("progress",{index:l,progress:parseInt(i),tempFile:this.files[l]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await T.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,i,l,o){const d=P,u=F,h=w("upload-image"),p=v,f=w("upload-file");return a(),r(u,{class:"uni-file-picker"},{default:n((()=>[s.title?(a(),r(u,{key:0,class:"uni-file-picker__header"},{default:n((()=>[c(d,{class:"file-title"},{default:n((()=>[y(k(s.title),1)])),_:1}),c(d,{class:"file-count"},{default:n((()=>[y(k(o.filesList.length)+"/"+k(o.limitLength),1)])),_:1})])),_:1})):m("",!0),"image"===s.fileMediatype&&"grid"===o.showType?(a(),r(h,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:n((()=>[g(e.$slots,"default",{},(()=>[c(u,{class:"is-add"},{default:n((()=>[c(u,{class:"icon-add"}),c(u,{class:"icon-add rotate"})])),_:1})]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):m("",!0),"image"!==s.fileMediatype||"grid"!==o.showType?(a(),r(f,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:n((()=>[g(e.$slots,"default",{},(()=>[c(p,{type:"primary",size:"mini"},{default:n((()=>[y("选择文件")])),_:1})]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):m("",!0)])),_:3})}],["__scopeId","data-v-c3437fa4"]]);const A=L({data:()=>({httpUrl:"https://vespa.qxyushen.top",fileList:[]}),watch:{fileList(e){this.$emit("changeImageList",this.fileList)}},methods:{select(e){this.tempFiles=e.tempFiles,this.tempFiles&&0!==this.tempFiles.length?this.tempFiles.forEach((e=>{this.uploadFile(e)})):i({title:"请先选择文件",icon:"none"})},uploadFile(e){S({url:`${this.httpUrl}/adminapi/UploadFile/file_upload`,filePath:e.path,name:"files",success:e=>{const{code:t,data:s}=JSON.parse(e.data);t&&(this.fileList.push({tempFile:s,tempFilePath:s.url,res:JSON.parse(e.data)}),this.$emit("changeImageList",this.fileList))}})},success(e){console.log("上传成功",e)},fail(e){console.log("上传失败",e)},progress(e){console.log("上传进度",e)},clearImage(){this.fileList=[]}}},[["render",function(e,t,s,i,l,o){const n=$(I("uni-file-picker"),D);return a(),r(n,{ref:"filePicker","return-type":"array",limit:1,modelValue:l.fileList,"onUpdate:modelValue":t[0]||(t[0]=e=>l.fileList=e),fileMediatype:"image",mode:"grid","auto-upload":!1,onSelect:o.select,onProgress:o.progress,onSuccess:o.success,onFail:o.fail},null,8,["modelValue","onSelect","onProgress","onSuccess","onFail"])}]]);export{A as u}; diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 6f21c289..f4717ff2 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -15,7 +15,7 @@ Vespa - +