diff --git a/pages/Chat/Chat.vue b/pages/Chat/Chat.vue index 11f1e02..b4d21fd 100644 --- a/pages/Chat/Chat.vue +++ b/pages/Chat/Chat.vue @@ -343,12 +343,14 @@ for (let i = 0; i < lines.length; i++) { const line = lines[i].trim() - // 检测表格行:以 | 开头和结尾 - const isTableLine = /^\|.+|$/.test(line) && line.includes('|') + // 检测表格行:以 | 开头并以 | 结尾 + // 修复:原正则 /^\|.+|&/ 中 | 未转义,导致匹配所有行 + const isTableLine = /^\|.+\|$/.test(line) if (isTableLine) { - // 分隔行(如 |---|---|) - if (/^\|[\s\-:]+\|[\s\-:|]+\|$/.test(line)) { + // 分隔行(如 |---|---| 或 |:---:|) + // 修复:原正则在字符类中包含了 | 导致分隔行误判 + if (/^\|[\s\-:]+\|[\s\-:]+\|$/.test(line)) { alignments = line.split('|').filter(c => c.trim()).map(c => { if (c.trim().startsWith(':') && c.trim().endsWith(':')) return 'center' if (c.trim().endsWith(':')) return 'right' @@ -385,8 +387,12 @@ html += '' cells.forEach((cell, ci) => { const align = alignments[ci] ? ` style="text-align:${alignments[ci]}"` : '' + // 修复:转义表格单元格中的 _ 和 *,防止 snarkdown 将其解析为斜体/加粗 + let cellContent = cell.trim() + .replace(/_/g, '_') + .replace(/\*/g, '*') html += - `<${tag}${align} style="padding:6px 10px;border:1px solid #ddd">${cell.trim()}` + `<${tag}${align} style="padding:6px 10px;border:1px solid #ddd">${cellContent}` }) html += '' }) @@ -394,6 +400,19 @@ return html } + // 转义所有单独的 _,但保护 __(双下划线粗体) + // snarkdown 的 [_*] 没有任何单词边界限制,会把单词中的 _ 误解析为斜体标记 + // 如 watermark_mcp、char_spacing 中的 _ 会打开永不闭合的 ,导致后面全部斜体 + const escapeLoneUnderscores = (text) => { + // 1. 先用占位符保护 __ 双下划线(snarkdown 的粗体语法) + text = text.replace(/__/g, '\x00\x00') + // 2. 将剩余的单个 _ 转为 HTML 实体,snarkdown 不会处理实体 + text = text.replace(/_/g, '_') + // 3. 还原 __ 占位符 + text = text.replace(/\x00\x00/g, '__') + return text + } + // Markdown转HTML节点 const pareseMarkdown = (content) => { if (!content) return '' @@ -401,14 +420,12 @@ content = sanitizeContent(content) try { + // 转义单词中的单下划线,防止 snarkdown 误解析为斜体 + content = escapeLoneUnderscores(content) // 先转换表格,再用 snarkdown 处理其他 Markdown content = convertMarkdownTable(content) const html = snarkdown(content) return html - // // 过滤掉可能导致问题的 Unicode 属性 - // const safeHtml = html.replace(/\\p\{[LN]\}/g, '') - - // return safeHtml } catch (e) { console.error('解析失败', e) return content @@ -1164,7 +1181,7 @@ const takeConversationMessages = async () => { try { allmessages.value = await getConversationMessages(userToken.value, currentSessionId.value) || []; - // console.log("获取到的所有消息:", JSON.stringify(allmessages.value) ); + console.log("获取到的所有消息:", JSON.stringify(allmessages.value) ); // currentMessages.value = allmessages.value.slice(-pageInfoNumber); // 数据获取后执行滚动 scrollToBottom(); @@ -1178,7 +1195,7 @@ const takeFriendMessages = async () => { try { allmessages.value = await getFriendMessages(currentSessionId.value) || []; - console.log("好友消息:", JSON.stringify(allmessages.value)); + // console.log("好友消息:", JSON.stringify(allmessages.value)); // 数据获取后执行滚动 scrollToBottom(); } catch (error) { diff --git a/unpackage/dist/build/app-plus/app-service.js b/unpackage/dist/build/app-plus/app-service.js index e4f3a76..58820c1 100644 --- a/unpackage/dist/build/app-plus/app-service.js +++ b/unpackage/dist/build/app-plus/app-service.js @@ -1,7 +1,7 @@ -if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n=((t,a=0)=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)})("onShow",3),o="https://cloud.yuxindazhineng.com",l=async(e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/delete_conversation`,method:"POST",data:{access_token:e,conversation_ids:t},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)a(t.message);else{const e=t.failed_ids.error||"删除对话出错啦";n(e)}}else n(`删除对话失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),s=async e=>new Promise(((t,a)=>{uni.request({url:`${o}/get_user_info`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e},success:e=>{var n,o;if(200===e.statusCode){const l=e.data;if(null==l?void 0:l._id)uni.setStorageSync("userId",l._id),t(l);else{const e=(null==(o=null==(n=null==l?void 0:l.detail)?void 0:n[0])?void 0:o.msg)||"获取用户信息出错啦";a(e)}}else a(`获取用户信息失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})),c=(e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/cloud_api/get_user_avatar`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,user_ids:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.users);else{const e=(null==t?void 0:t.error)||"获取用户头像出错啦";n(e)}}else n(`获取用户头像失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),i=(e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/cloud_api/search_users`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,keyword:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.users);else{const e=(null==t?void 0:t.error)||"通过用户名或邮箱来去查询用户出错啦";n(e)}}else n(`通过用户名或邮箱来去查询用户失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),r=(e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/phone/workspace/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:t,file_path:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"删除工作区文件出错啦";l(e)}}else l(`删除工作区文件失败:${e.statusCode}`)}})})),u=(e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/phone/workspace/create`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:t,dir_path:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"创建工作区文件夹出错啦";l(e)}}else l(`创建工作区文件夹失败:${e.statusCode}`)}})})),d=(e,t,a="/",n="")=>new Promise(((l,s)=>{uni.request({url:`${o}/cloud_api/file/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,path:a,type:t,team_id:n},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)l(t.data);else{const e=(null==t?void 0:t.error)||"获取工作区文件目录出错啦";s(e)}}else s(`获取工作区文件目录失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";s(t)}})})),m=async e=>new Promise(((t,a)=>{uni.request({url:`${o}/cloud_api/team/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_name:""},success:e=>{if(200===e.statusCode){const n=e.data;if(n.success){const e=n.teams.slice(1);t(e)}else{const t=e.data.error||"获取用户可访问的团队列表出错啦";a(t)}}else a(`获取用户可访问的团队列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})),v=(e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/cloud_api/team/get_all_member`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t},success:e=>{var t;if(200===e.statusCode){const o=e.data;if(o.success){const e=(null==(t=o.team)?void 0:t.result)||[];a(e)}else{const e=(null==o?void 0:o.error)||"获取团队全部成员出错啦";n(e)}}else n(`获取团队全部成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),p=(e,t,a,n)=>new Promise(((l,s)=>{const c={access_token:e,database_id:t};"user_id"===a?c.user_id=n:"team_id"===a&&(c.team_id=n),uni.request({url:`${o}/cloud_api/database/permission/info`,method:"POST",data:c,header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)l(t.data);else if(Array.isArray(t))l(t);else{const e=(null==t?void 0:t.error)||"查看 个人/团队 数据库权限信息出错啦";s(e)}}else s(`查看 个人/团队 数据库权限信息失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";s(t)}})})),f=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a},h=f({__name:"Login",setup(a){const n=e.ref(""),l=e.ref(!1),s=e.ref(!1),c=()=>{l.value=!0,g.value=!1},i=()=>{l.value=!1},r=()=>{},u=e.ref(""),d=e.ref(!1),m=e.ref(!1),v=()=>{d.value=!0,g.value=!1},p=()=>{d.value=!1},f=e.reactive({username:e.computed((()=>n.value)),password:e.computed((()=>u.value)),remember:!0}),h=e.ref(!1),g=e.ref(!1),w=async()=>{if(k(),!g.value){h.value=!0;try{t("log","at pages/Login/Login.vue:119","有返回token:",await(async(e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/login`,method:"POST",data:{username:e,password:t,login_type:"phone"},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data.access_token;if(t)uni.setStorageSync("token",t),a(t);else{const t=e.data.error||"检查用户名和密码";n(t)}}else n(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(n.value,u.value)),y(),uni.reLaunch({url:"/pages/Chat/Chat"})}catch(e){t("log","at pages/Login/Login.vue:125","登录失败",e),uni.showToast({title:e||"失败",icon:"error"})}finally{h.value=!1}}},k=()=>{n.value&&u.value||(g.value=!0)},y=()=>{if(f.remember){const e={username:f.username,password:f.password,remember:!0};uni.setStorageSync("login_info",e),uni.setStorageSync("chatType",0)}else uni.removeStorageSync("login_info")};return e.onMounted((()=>{(()=>{try{const e=uni.getStorageSync("login_info");e&&(n.value=e.username||"",u.value=e.password||"",f.remember=e.remember??!0)}catch(e){t("error","at pages/Login/Login.vue:169","读取登录信息失败",e)}})()})),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"login-container page-container"},[e.createElementVNode("view",{class:"login-card"},[e.createElementVNode("view",{class:"login-header"},[e.createElementVNode("view",{class:"login-header-logo"},[e.createElementVNode("view",{class:"icon-wrapper"},[e.createElementVNode("view",{class:"iconfont icon-brain-2-fill danao-style"})]),e.createElementVNode("text",null,"YXD")]),e.createElementVNode("view",{class:"sub-title"},"File Handling Chat")]),e.createElementVNode("view",{class:"form-wrapper"},[e.createElementVNode("view",{class:"form-item"},[e.createElementVNode("view",{class:"form-label"},[e.createElementVNode("text",null,"用户名")]),e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(["form-input",{focused:l.value,error:s.value}]),"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),onFocus:c,onBlur:i,onInput:r,placeholder:"请输入用户名"},null,34),[[e.vModelText,n.value]])]),e.createElementVNode("view",{class:"form-item"},[e.createElementVNode("view",{class:"form-label"},[e.createElementVNode("text",null,"密码")]),e.withDirectives(e.createElementVNode("input",{type:"password",class:e.normalizeClass(["form-input",{focused:d.value,error:m.value}]),"onUpdate:modelValue":a[1]||(a[1]=e=>u.value=e),onFocus:v,onBlur:p,placeholder:"请输入密码"},null,34),[[e.vModelText,u.value]])]),g.value?(e.openBlock(),e.createElementBlock("text",{key:0,class:"error-info"},"用户名或密码不能为空")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"form-option"},[e.createElementVNode("view",{class:"checkbox-wrapper",onClick:a[2]||(a[2]=e=>f.remember=!f.remember)},[e.createElementVNode("view",{class:e.normalizeClass(["checkbox",{checked:f.remember}])},[f.remember?(e.openBlock(),e.createElementBlock("text",{key:0},"✓")):e.createCommentVNode("",!0)],2),e.createElementVNode("text",{class:"checkbox-text"},"记住密码")]),e.createElementVNode("text",{class:"forget-pwd"},"忘记密码?")]),e.createElementVNode("button",{class:"login-btn",disabled:h.value,loading:h.value,onClick:w},e.toDisplayString(h.value?"Loading...":"登录"),9,["disabled","loading"])])])])],64))}},[["__scopeId","data-v-a8bd24d4"]]),g=[{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 w=f({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:g}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(e){this.$emit("click",e)}}},[["render",function(t,a,n,o,l,s){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(s.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:a[0]||(a[0]=(...e)=>s._onClick&&s._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-b25a9929"]]),k=()=>uni.getStorageSync("token"),y=()=>{const e=uni.getStorageSync("currentSessionId");return isNaN(Number(e))?e.replace(/-/g,""):e},E=()=>uni.getStorageSync("taskCallId"),N=()=>(t("log","at utils/user-info.js:50","用户Id(UserId)",uni.getStorageSync("userId")),uni.getStorageSync("userId")),C=f(Object.assign({name:"ChatSidebar"},{__name:"ChatSidebar",props:{chatList:{type:Array,required:!0},showNewChatModal:{type:Boolean,default:!1},currentSessionId:{type:[String,Number],required:!0},chatType:{type:Number,required:!0}},emits:["update:showNewChatModal","update:currentSessionId","refresh-conversations","update:chatType"],setup(n,{emit:o}){const c=n,i=o,r=e.toRef(c,"chatList");e.toRef(c,"showNewChatModal");const u=e.toRef(c,"chatType"),d=()=>{uni.navigateTo({url:"/pages/UserProfileModal/UserProfileModal"})},m=e.ref(!1),v=e.ref([]),p=()=>{0!==v.value.length&&uni.showModal({title:"确认删除",content:`确定要删除全部 ${v.value.length} 个对话吗?此操作不可恢复。`,confirmText:"确认删除",confirmColor:"#ff0000",success:async e=>{if(e.confirm)try{const e=k();await l(e,v.value),uni.showToast({title:"删除成功",icon:"success"}),v.value=[],m.value=!1,i("refresh-conversations")}catch(a){t("error","at components/ChatSidebar.vue:209","删除会话失败:",a),uni.showToast({title:"删除失败,请重试",icon:"none"})}}})},f=()=>{r.value.length?uni.showModal({title:"确认删除",content:`确定要删除全部 ${r.value.length} 个对话吗?此操作不可恢复。`,confirmText:"删除全部",confirmColor:"#ff0000",success:async e=>{if(e.confirm)try{const e=k(),t=r.value.map((e=>e._id));await l(e,t),uni.showToast({title:"已删除全部对话",icon:"success"}),i("refresh-conversations")}catch(a){t("error","at components/ChatSidebar.vue:241","清空全部对话失败:",a),uni.showToast({title:"删除失败,请重试",icon:"none"})}}}):uni.showToast({title:"没有可删除的会话",icon:"none"})},h=e.computed((()=>r.value.length>0&&v.value.length===r.value.length)),g=e.toRef(c,"currentSessionId"),y=(e,a="")=>{t("log","at components/ChatSidebar.vue:259","选择的id是:",e),a&&uni.setStorageSync("receiverId",a),uni.setStorageSync("currentSessionId",e),i("update:currentSessionId",e)},E=()=>{t("log","at components/ChatSidebar.vue:270","点击了新建会话"),i("update:showNewChatModal",!0)},N=()=>{uni.navigateTo({url:"/pages/ContactPages/ContactPages"})},C=e.ref(""),b=e.ref(!1),V=()=>{m.value=!m.value,m.value||(v.value=[])},_=e=>{const t=v.value.indexOf(e);-1===t?v.value.push(e):v.value.splice(t,1)},B=()=>{h.value?v.value=[]:v.value=r.value.map((e=>e._id))},S=e.ref(""),x=e.ref(""),T=e.ref(""),D=(e,t=20)=>e?e.length>t?e.substring(0,t)+"...":e:"";return e.onMounted((async()=>{S.value=k();const e=await s(S.value);x.value=e.avatar||"",T.value=e.username||"",t("log","at components/ChatSidebar.vue:326","菜单收到的会话列表:",r.value)})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"chat-sidebar-container"},[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"sidebar-header"},[e.createElementVNode("view",{class:"user-profile-card",onClick:d},[e.createElementVNode("view",{class:"left"},[x.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"avatar-preview"},[e.createElementVNode("image",{src:x.value,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"avatar-placeholder"},[e.createVNode(o,{type:"contact-filled",size:"50",color:"#007aff"})]))]),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,"欢迎回来"),e.createElementVNode("text",null,e.toDisplayString(T.value),1)]),e.createElementVNode("view",{class:"right"},[e.createElementVNode("view",{class:"status-dot"}),e.createElementVNode("view",{class:"status-text"},[e.createElementVNode("text",null,"在线")])])]),e.createElementVNode("view",{class:"new-chat-btn",onClick:N},[e.createElementVNode("text",null,"+ 聊天列表")])]),e.createElementVNode("view",{class:"chat-history"},[e.createElementVNode("view",{class:"history-header"},[e.createElementVNode("view",{class:"history-title-section"},[e.createElementVNode("text",null,"历史会话"),e.createElementVNode("text",null,e.toDisplayString(r.value.length)+"个对话",1)]),e.createElementVNode("view",{class:"history-management"},[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-management-btn iconfont icon-jia icon-jia-style",onClick:E})),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"history-management-btn iconfont icon-duoxuan icon-duoxuan-style",onClick:V})),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"history-management-btn iconfont icon-saochu icon-saochu-style",onClick:f})),m.value&&v.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:3,class:"history-management-btn iconfont icon-shanchu icon-shanchu-style",onClick:p})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:e.normalizeClass(["history-management-btn iconfont icon-total_selection icon-total_selection-style",{active:h.value}]),onClick:B},null,2)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"history-management-btn iconfont icon-quxiao icon-quxiao-style",onClick:V})):e.createCommentVNode("",!0)])]),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-search-wrap"},[e.createElementVNode("view",{class:e.normalizeClass(["history-search-inner",{"has-value":C.value||b.value}])},[e.createVNode(o,{type:"search",class:e.normalizeClass([C.value||b.value?"chat-search-icon":"search-icon"])},null,8,["class"]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>C.value=e),onFocus:n[1]||(n[1]=e=>b.value=!0),onBlur:n[2]||(n[2]=e=>b.value=!1),type:"text",placeholder:"搜索会话..."},null,544),[[e.vModelText,C.value]])],2)])),e.createElementVNode("view",{class:"chat-history-list"},[0===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(t=>{var a;return e.openBlock(),e.createElementBlock("view",{key:t._id,"data-chat-id":t._id,class:e.normalizeClass(["chat-history-card",{"is-select-chat":g.value===t._id||v.value.includes(t._id)}]),onClick:e=>m.value?_(t._id):y(t._id)},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-chat-checkbox"},[v.value.includes(t._id)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",size:"20",color:"#007aff"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-chat-avatar"},[e.createVNode(o,{type:"chat-filled",size:"26",color:"#007aff"})]),t.agent_id?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(D(null==(a=t.agent_data)?void 0:a.title)||"加载中"),1)):(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(D(t.title)),1))],10,["data-chat-id","onClick"])})),128)):e.createCommentVNode("",!0),1===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t.sessionId,"data-chat-id":t.sessionId,class:e.normalizeClass(["chat-history-card",{"is-select-chat":g.value===t.sessionId||v.value.includes(t.sessionId)}]),onClick:e=>m.value?_(t.sessionId):y(t.sessionId,t.receiver)},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-chat-checkbox"},[v.value.includes(t.sessionId)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",size:"20",color:"#007aff"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-chat-avatar"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0)]),e.createElementVNode("view",null,e.toDisplayString(t.friendNickName),1)],10,["data-chat-id","onClick"])))),128)):e.createCommentVNode("",!0),2===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(r.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t.id,"data-chat-id":t.id,class:e.normalizeClass(["chat-history-card",{"is-select-chat":g.value===t.id||v.value.includes(t.id)}]),onClick:e=>m.value?_(t.id):y(t.id)},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-chat-checkbox"},[v.value.includes(t.id)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",size:"20",color:"#007aff"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-chat-avatar"},[e.createElementVNode("view",{class:"iconfont icon-qunliao",style:{"font-size":"80rpx",color:"#fff"}})]),e.createElementVNode("view",null,e.toDisplayString(t.name),1)],10,["data-chat-id","onClick"])))),128)):e.createCommentVNode("",!0)])])])}}}),[["__scopeId","data-v-2a484f8a"]]);var b={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
"]," ":["
"],"-":["
"]};function V(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function _(e){return(e+"").replace(/"/g,""").replace(//g,">")}function B(e,t){var a,n,o,l,s,c=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,i=[],r="",u=t||{},d=0;function m(e){var t=b[e[1]||""],a=i[i.length-1]==e;return t?t[1]?(a?i.pop():i.push(e),t[0|a]):t[0]:e}function v(){for(var e="";i.length;)e+=m(i[i.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(e,t,a){return u[t.toLowerCase()]=a,""})).replace(/^\n+|\n+$/g,"");o=c.exec(e);)n=e.substring(d,o.index),d=c.lastIndex,a=o[0],n.match(/[^\\](\\\\)*\\$/)||((s=o[3]||o[4])?a='
"+V(_(s).replace(/^\n+|\n+$/g,""))+"
":(s=o[6])?(s.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),l=B(V(o[5].replace(/^\s*[>*+.-]/gm,""))),">"==s?s="blockquote":(s=s.match(/\./)?"ol":"ul",l=l.replace(/^(.*)(\n|$)/gm,"
  • $1
  • ")),a="<"+s+">"+l+""):o[8]?a=''+_(o[7])+'':o[10]?(r=r.replace("",''),a=v()+""):o[9]?a="":o[12]||o[14]?a="<"+(s="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+B(o[12]||o[15],u)+"":o[16]?a=""+_(o[16])+"":(o[17]||o[1])&&(a=m(o[17]||"--"))),r+=n,r+=a;return(r+e.substring(d)+v()).replace(/^\n+|\n+$/g,"")} +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n=(t,a=0)=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)},o=n("onShow",3),l=n("onUnload",2),s="https://cloud.yuxindazhineng.com",c=async(e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/delete_conversation`,method:"POST",data:{access_token:e,conversation_ids:t},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)a(t.message);else{const e=t.failed_ids.error||"删除对话出错啦";n(e)}}else n(`删除对话失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),i=async e=>new Promise(((t,a)=>{uni.request({url:`${s}/get_user_info`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e},success:e=>{var n,o;if(200===e.statusCode){const l=e.data;if(null==l?void 0:l._id)uni.setStorageSync("userId",l._id),t(l);else{const e=(null==(o=null==(n=null==l?void 0:l.detail)?void 0:n[0])?void 0:o.msg)||"获取用户信息出错啦";a(e)}}else a(`获取用户信息失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})),r=(e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/cloud_api/get_user_avatar`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,user_ids:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.users);else{const e=(null==t?void 0:t.error)||"获取用户头像出错啦";n(e)}}else n(`获取用户头像失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),u=(e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/cloud_api/search_users`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,keyword:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.users);else{const e=(null==t?void 0:t.error)||"通过用户名或邮箱来去查询用户出错啦";n(e)}}else n(`通过用户名或邮箱来去查询用户失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),d=(e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/phone/workspace/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:t,file_path:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"删除工作区文件出错啦";o(e)}}else o(`删除工作区文件失败:${e.statusCode}`)}})})),m=(e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/phone/workspace/create`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:t,dir_path:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"创建工作区文件夹出错啦";o(e)}}else o(`创建工作区文件夹失败:${e.statusCode}`)}})})),v=(e,t,a="/",n="")=>new Promise(((o,l)=>{uni.request({url:`${s}/cloud_api/file/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,path:a,type:t,team_id:n},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)o(t.data);else{const e=(null==t?void 0:t.error)||"获取工作区文件目录出错啦";l(e)}}else l(`获取工作区文件目录失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})),p=async e=>new Promise(((t,a)=>{uni.request({url:`${s}/cloud_api/team/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_name:""},success:e=>{if(200===e.statusCode){const n=e.data;if(n.success){const e=n.teams.slice(1);t(e)}else{const t=e.data.error||"获取用户可访问的团队列表出错啦";a(t)}}else a(`获取用户可访问的团队列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})),f=(e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/cloud_api/team/get_all_member`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t},success:e=>{var t;if(200===e.statusCode){const o=e.data;if(o.success){const e=(null==(t=o.team)?void 0:t.result)||[];a(e)}else{const e=(null==o?void 0:o.error)||"获取团队全部成员出错啦";n(e)}}else n(`获取团队全部成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),h=(e,t,a,n)=>new Promise(((o,l)=>{const c={access_token:e,database_id:t};"user_id"===a?c.user_id=n:"team_id"===a&&(c.team_id=n),uni.request({url:`${s}/cloud_api/database/permission/info`,method:"POST",data:c,header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)o(t.data);else if(Array.isArray(t))o(t);else{const e=(null==t?void 0:t.error)||"查看 个人/团队 数据库权限信息出错啦";l(e)}}else l(`查看 个人/团队 数据库权限信息失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})),g=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a},w=g({__name:"Login",setup(a){const n=e.ref(""),o=e.ref(!1),l=e.ref(!1),c=()=>{o.value=!0,g.value=!1},i=()=>{o.value=!1},r=()=>{},u=e.ref(""),d=e.ref(!1),m=e.ref(!1),v=()=>{d.value=!0,g.value=!1},p=()=>{d.value=!1},f=e.reactive({username:e.computed((()=>n.value)),password:e.computed((()=>u.value)),remember:!0}),h=e.ref(!1),g=e.ref(!1),w=async()=>{if(k(),!g.value){h.value=!0;try{t("log","at pages/Login/Login.vue:119","有返回token:",await(async(e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/login`,method:"POST",data:{username:e,password:t,login_type:"phone"},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data.access_token;if(t)uni.setStorageSync("token",t),a(t);else{const t=e.data.error||"检查用户名和密码";n(t)}}else String(e.statusCode).startsWith("5")?n({serverError:!0,code:e.statusCode,message:"服务器升级中,请稍后再试"}):n(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(n.value,u.value)),y(),uni.reLaunch({url:"/pages/Chat/Chat"})}catch(e){t("log","at pages/Login/Login.vue:125","登录失败",e),e&&"object"==typeof e&&e.serverError?uni.showModal({title:"提示",content:e.message,showCancel:!1,confirmText:"知道了"}):uni.showToast({title:(null==e?void 0:e.message)||e||"失败",icon:"error"})}finally{h.value=!1}}},k=()=>{n.value&&u.value||(g.value=!0)},y=()=>{if(f.remember){const e={username:f.username,password:f.password,remember:!0};uni.setStorageSync("login_info",e),uni.setStorageSync("chatType",0)}else uni.removeStorageSync("login_info")};return e.onMounted((()=>{(()=>{try{const e=uni.getStorageSync("login_info");e&&(n.value=e.username||"",u.value=e.password||"",f.remember=e.remember??!0)}catch(e){t("error","at pages/Login/Login.vue:178","读取登录信息失败",e)}})()})),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"login-container page-container"},[e.createElementVNode("view",{class:"login-card"},[e.createElementVNode("view",{class:"login-header"},[e.createElementVNode("view",{class:"login-header-logo"},[e.createElementVNode("view",{class:"icon-wrapper"},[e.createElementVNode("view",{class:"iconfont icon-brain-2-fill danao-style"})]),e.createElementVNode("text",null,"YXD")]),e.createElementVNode("view",{class:"sub-title"},"File Handling Chat")]),e.createElementVNode("view",{class:"form-wrapper"},[e.createElementVNode("view",{class:"form-item"},[e.createElementVNode("view",{class:"form-label"},[e.createElementVNode("text",null,"用户名")]),e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(["form-input",{focused:o.value,error:l.value}]),"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),onFocus:c,onBlur:i,onInput:r,placeholder:"请输入用户名"},null,34),[[e.vModelText,n.value]])]),e.createElementVNode("view",{class:"form-item"},[e.createElementVNode("view",{class:"form-label"},[e.createElementVNode("text",null,"密码")]),e.withDirectives(e.createElementVNode("input",{type:"password",class:e.normalizeClass(["form-input",{focused:d.value,error:m.value}]),"onUpdate:modelValue":a[1]||(a[1]=e=>u.value=e),onFocus:v,onBlur:p,placeholder:"请输入密码"},null,34),[[e.vModelText,u.value]])]),g.value?(e.openBlock(),e.createElementBlock("text",{key:0,class:"error-info"},"用户名或密码不能为空")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"form-option"},[e.createElementVNode("view",{class:"checkbox-wrapper",onClick:a[2]||(a[2]=e=>f.remember=!f.remember)},[e.createElementVNode("view",{class:e.normalizeClass(["checkbox",{checked:f.remember}])},[f.remember?(e.openBlock(),e.createElementBlock("text",{key:0},"✓")):e.createCommentVNode("",!0)],2),e.createElementVNode("text",{class:"checkbox-text"},"记住密码")]),e.createElementVNode("text",{class:"forget-pwd"},"忘记密码?")]),e.createElementVNode("button",{class:"login-btn",disabled:h.value,loading:h.value,onClick:w},e.toDisplayString(h.value?"Loading...":"登录"),9,["disabled","loading"])])])])],64))}},[["__scopeId","data-v-1f1e3d89"]]),k=[{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 y=g({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:k}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(e){this.$emit("click",e)}}},[["render",function(t,a,n,o,l,s){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(s.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:a[0]||(a[0]=(...e)=>s._onClick&&s._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-b25a9929"]]),E=()=>uni.getStorageSync("token"),C=()=>{const e=uni.getStorageSync("currentSessionId");return isNaN(Number(e))?e.replace(/-/g,""):e},N=()=>uni.getStorageSync("taskCallId"),b=()=>(t("log","at utils/user-info.js:50","用户Id(UserId)",uni.getStorageSync("userId")),uni.getStorageSync("userId")),V=g(Object.assign({name:"ChatSidebar"},{__name:"ChatSidebar",props:{chatList:{type:Array,required:!0},showNewChatModal:{type:Boolean,default:!1},currentSessionId:{type:[String,Number],required:!0},chatType:{type:Number,required:!0}},emits:["update:showNewChatModal","update:currentSessionId","refresh-conversations","update:chatType"],setup(n,{emit:o}){const l=n,s=o,r=e.toRef(l,"chatList");e.toRef(l,"showNewChatModal");const u=e.toRef(l,"chatType"),d=()=>{uni.navigateTo({url:"/pages/UserProfileModal/UserProfileModal"})},m=e.ref(!1),v=e.ref([]),p=()=>{0!==v.value.length&&uni.showModal({title:"确认删除",content:`确定要删除全部 ${v.value.length} 个对话吗?此操作不可恢复。`,confirmText:"确认删除",confirmColor:"#ff0000",success:async e=>{if(e.confirm)try{const e=E();await c(e,v.value),uni.showToast({title:"删除成功",icon:"success"}),v.value=[],m.value=!1,s("refresh-conversations")}catch(a){t("error","at components/ChatSidebar.vue:209","删除会话失败:",a),uni.showToast({title:"删除失败,请重试",icon:"none"})}}})},f=()=>{r.value.length?uni.showModal({title:"确认删除",content:`确定要删除全部 ${r.value.length} 个对话吗?此操作不可恢复。`,confirmText:"删除全部",confirmColor:"#ff0000",success:async e=>{if(e.confirm)try{const e=E(),t=r.value.map((e=>e._id));await c(e,t),uni.showToast({title:"已删除全部对话",icon:"success"}),s("refresh-conversations")}catch(a){t("error","at components/ChatSidebar.vue:241","清空全部对话失败:",a),uni.showToast({title:"删除失败,请重试",icon:"none"})}}}):uni.showToast({title:"没有可删除的会话",icon:"none"})},h=e.computed((()=>r.value.length>0&&v.value.length===r.value.length)),g=e.toRef(l,"currentSessionId"),w=(e,a="")=>{t("log","at components/ChatSidebar.vue:259","选择的id是:",e),a&&uni.setStorageSync("receiverId",a),uni.setStorageSync("currentSessionId",e),s("update:currentSessionId",e)},k=()=>{t("log","at components/ChatSidebar.vue:270","点击了新建会话"),s("update:showNewChatModal",!0)},C=()=>{uni.navigateTo({url:"/pages/ContactPages/ContactPages"})},N=e.ref(""),b=e.ref(!1),V=()=>{m.value=!m.value,m.value||(v.value=[])},_=e=>{const t=v.value.indexOf(e);-1===t?v.value.push(e):v.value.splice(t,1)},B=()=>{h.value?v.value=[]:v.value=r.value.map((e=>e._id))},S=e.ref(""),x=e.ref(""),T=e.ref(""),D=(e,t=20)=>e?e.length>t?e.substring(0,t)+"...":e:"";return e.onMounted((async()=>{S.value=E();const e=await i(S.value);x.value=e.avatar||"",T.value=e.username||"",t("log","at components/ChatSidebar.vue:326","菜单收到的会话列表:",r.value)})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock("view",{class:"chat-sidebar-container"},[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"sidebar-header"},[e.createElementVNode("view",{class:"user-profile-card",onClick:d},[e.createElementVNode("view",{class:"left"},[x.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"avatar-preview"},[e.createElementVNode("image",{src:x.value,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"avatar-placeholder"},[e.createVNode(o,{type:"contact-filled",size:"50",color:"#007aff"})]))]),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,"欢迎回来"),e.createElementVNode("text",null,e.toDisplayString(T.value),1)]),e.createElementVNode("view",{class:"right"},[e.createElementVNode("view",{class:"status-dot"}),e.createElementVNode("view",{class:"status-text"},[e.createElementVNode("text",null,"在线")])])]),e.createElementVNode("view",{class:"new-chat-btn",onClick:C},[e.createElementVNode("text",null,"+ 聊天列表")])]),e.createElementVNode("view",{class:"chat-history"},[e.createElementVNode("view",{class:"history-header"},[e.createElementVNode("view",{class:"history-title-section"},[e.createElementVNode("text",null,"历史会话"),e.createElementVNode("text",null,e.toDisplayString(r.value.length)+"个对话",1)]),e.createElementVNode("view",{class:"history-management"},[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-management-btn iconfont icon-jia icon-jia-style",onClick:k})),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"history-management-btn iconfont icon-duoxuan icon-duoxuan-style",onClick:V})),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"history-management-btn iconfont icon-saochu icon-saochu-style",onClick:f})),m.value&&v.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:3,class:"history-management-btn iconfont icon-shanchu icon-shanchu-style",onClick:p})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:e.normalizeClass(["history-management-btn iconfont icon-total_selection icon-total_selection-style",{active:h.value}]),onClick:B},null,2)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"history-management-btn iconfont icon-quxiao icon-quxiao-style",onClick:V})):e.createCommentVNode("",!0)])]),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-search-wrap"},[e.createElementVNode("view",{class:e.normalizeClass(["history-search-inner",{"has-value":N.value||b.value}])},[e.createVNode(o,{type:"search",class:e.normalizeClass([N.value||b.value?"chat-search-icon":"search-icon"])},null,8,["class"]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>N.value=e),onFocus:n[1]||(n[1]=e=>b.value=!0),onBlur:n[2]||(n[2]=e=>b.value=!1),type:"text",placeholder:"搜索会话..."},null,544),[[e.vModelText,N.value]])],2)])),e.createElementVNode("view",{class:"chat-history-list"},[0===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(t=>{var a;return e.openBlock(),e.createElementBlock("view",{key:t._id,"data-chat-id":t._id,class:e.normalizeClass(["chat-history-card",{"is-select-chat":g.value===t._id||v.value.includes(t._id)}]),onClick:e=>m.value?_(t._id):w(t._id)},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-chat-checkbox"},[v.value.includes(t._id)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",size:"20",color:"#007aff"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-chat-avatar"},[e.createVNode(o,{type:"chat-filled",size:"26",color:"#007aff"})]),t.agent_id?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(D(null==(a=t.agent_data)?void 0:a.title)||"加载中"),1)):(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(D(t.title)),1))],10,["data-chat-id","onClick"])})),128)):e.createCommentVNode("",!0),1===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t.sessionId,"data-chat-id":t.sessionId,class:e.normalizeClass(["chat-history-card",{"is-select-chat":g.value===t.sessionId||v.value.includes(t.sessionId)}]),onClick:e=>m.value?_(t.sessionId):w(t.sessionId,t.receiver)},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-chat-checkbox"},[v.value.includes(t.sessionId)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",size:"20",color:"#007aff"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-chat-avatar"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0)]),e.createElementVNode("view",null,e.toDisplayString(t.friendNickName),1)],10,["data-chat-id","onClick"])))),128)):e.createCommentVNode("",!0),2===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(r.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t.id,"data-chat-id":t.id,class:e.normalizeClass(["chat-history-card",{"is-select-chat":g.value===t.id||v.value.includes(t.id)}]),onClick:e=>m.value?_(t.id):w(t.id)},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-chat-checkbox"},[v.value.includes(t.id)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",size:"20",color:"#007aff"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-chat-avatar"},[e.createElementVNode("view",{class:"iconfont icon-qunliao",style:{"font-size":"80rpx",color:"#fff"}})]),e.createElementVNode("view",null,e.toDisplayString(t.name),1)],10,["data-chat-id","onClick"])))),128)):e.createCommentVNode("",!0)])])])}}}),[["__scopeId","data-v-eed4c646"]]);var _={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
    "]," ":["
    "],"-":["
    "]};function B(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function S(e){return(e+"").replace(/"/g,""").replace(//g,">")}function x(e,t){var a,n,o,l,s,c=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,i=[],r="",u=t||{},d=0;function m(e){var t=_[e[1]||""],a=i[i.length-1]==e;return t?t[1]?(a?i.pop():i.push(e),t[0|a]):t[0]:e}function v(){for(var e="";i.length;)e+=m(i[i.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(e,t,a){return u[t.toLowerCase()]=a,""})).replace(/^\n+|\n+$/g,"");o=c.exec(e);)n=e.substring(d,o.index),d=c.lastIndex,a=o[0],n.match(/[^\\](\\\\)*\\$/)||((s=o[3]||o[4])?a='
    "+B(S(s).replace(/^\n+|\n+$/g,""))+"
    ":(s=o[6])?(s.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),l=x(B(o[5].replace(/^\s*[>*+.-]/gm,""))),">"==s?s="blockquote":(s=s.match(/\./)?"ol":"ul",l=l.replace(/^(.*)(\n|$)/gm,"
  • $1
  • ")),a="<"+s+">"+l+""):o[8]?a=''+S(o[7])+'':o[10]?(r=r.replace("
    ",''),a=v()+""):o[9]?a="":o[12]||o[14]?a="<"+(s="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+x(o[12]||o[15],u)+"":o[16]?a=""+S(o[16])+"":(o[17]||o[1])&&(a=m(o[17]||"--"))),r+=n,r+=a;return(r+e.substring(d)+v()).replace(/^\n+|\n+$/g,"")} /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let S;const x=e=>S=e,T=Symbol();function D(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var P,j;(j=P||(P={})).direct="direct",j.patchObject="patch object",j.patchFunction="patch function";const $=()=>{};function L(t,a,n,o=$){t.push(a);const l=()=>{const e=t.indexOf(a);e>-1&&(t.splice(e,1),o())};return!n&&e.getCurrentScope()&&e.onScopeDispose(l),l}function M(e,...t){e.slice().forEach((e=>{e(...t)}))}const I=e=>e();function z(t,a){t instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>t.set(a,e))),t instanceof Set&&a instanceof Set&&a.forEach(t.add,t);for(const n in a){if(!a.hasOwnProperty(n))continue;const o=a[n],l=t[n];D(l)&&D(o)&&t.hasOwnProperty(n)&&!e.isRef(o)&&!e.isReactive(o)?t[n]=z(l,o):t[n]=o}return t}const F=Symbol();const{assign:O}=Object;function A(t,a,n={},o,l,s){let c;const i=O({actions:{}},n),r={deep:!0};let u,d,m,v=[],p=[];const f=o.state.value[t];let h;function g(a){let n;u=d=!1,"function"==typeof a?(a(o.state.value[t]),n={type:P.patchFunction,storeId:t,events:m}):(z(o.state.value[t],a),n={type:P.patchObject,payload:a,storeId:t,events:m});const l=h=Symbol();e.nextTick().then((()=>{h===l&&(u=!0)})),d=!0,M(v,n,o.state.value[t])}s||f||(o.state.value[t]={}),e.ref({});const w=s?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{O(e,t)}))}:$;function k(e,a){return function(){x(o);const n=Array.from(arguments),l=[],s=[];function c(e){l.push(e)}function i(e){s.push(e)}let r;M(p,{args:n,name:e,store:E,after:c,onError:i});try{r=a.apply(this&&this.$id===t?this:E,n)}catch(u){throw M(s,u),u}return r instanceof Promise?r.then((e=>(M(l,e),e))).catch((e=>(M(s,e),Promise.reject(e)))):(M(l,r),r)}}const y={_p:o,$id:t,$onAction:L.bind(null,p),$patch:g,$reset:w,$subscribe(a,n={}){const l=L(v,a,n.detached,(()=>s())),s=c.run((()=>e.watch((()=>o.state.value[t]),(e=>{("sync"===n.flush?d:u)&&a({storeId:t,type:P.direct,events:m},e)}),O({},r,n))));return l},$dispose:function(){c.stop(),v=[],p=[],o._s.delete(t)}},E=e.reactive(y);o._s.set(t,E);const N=(o._a&&o._a.runWithContext||I)((()=>o._e.run((()=>(c=e.effectScope()).run(a)))));for(const V in N){const a=N[V];if(e.isRef(a)&&(b=a,!e.isRef(b)||!b.effect)||e.isReactive(a))s||(!f||D(C=a)&&C.hasOwnProperty(F)||(e.isRef(a)?a.value=f[V]:z(a,f[V])),o.state.value[t][V]=a);else if("function"==typeof a){const e=k(V,a);N[V]=e,i.actions[V]=a}}var C,b;return O(E,N),O(e.toRaw(E),N),Object.defineProperty(E,"$state",{get:()=>o.state.value[t],set:e=>{g((t=>{O(t,e)}))}}),o._p.forEach((e=>{O(E,c.run((()=>e({store:E,app:o._a,pinia:o,options:i}))))})),f&&s&&n.hydrate&&n.hydrate(E.$state,f),u=!0,d=!0,E}function U(t,a,n){let o,l;const s="function"==typeof a;function c(t,n){const c=e.hasInjectionContext();(t=t||(c?e.inject(T,null):null))&&x(t),(t=S)._s.has(o)||(s?A(o,a,l,t):function(t,a,n,o){const{state:l,actions:s,getters:c}=a,i=n.state.value[t];let r;r=A(t,(function(){i||(n.state.value[t]=l?l():{});const a=e.toRefs(n.state.value[t]);return O(a,s,Object.keys(c||{}).reduce(((a,o)=>(a[o]=e.markRaw(e.computed((()=>{x(n);const e=n._s.get(t);return c[o].call(e,e)}))),a)),{}))}),a,n,0,!0)}(o,l,t));return t._s.get(o)}return"string"==typeof t?(o=t,l=s?n:a):(l=t,o=t.id),c.$id=o,c}const q=new class{constructor(){this.ws=null,this.url="ws://cloud.yuxindazhineng.com/cloud_api/phone/app_ws",this.options={token:"",conversationId:"",onMessage:null,onError:null,onReconnect:null,onOpen:null,onClose:null},this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.reconnectDelay=3e3,this.reconnectTimer=null,this.heartbeatTimer=null,this.isManualClose=!1}connect(e={}){this.options={...this.options,...e},this.isManualClose=!1,this.ws&&this.close();try{this.ws=uni.connectSocket({url:this.url,success:()=>{t("log","at utils/socket.js:44","WebSocket 连接请求已发送")},fail:e=>{t("error","at utils/socket.js:47","WebSocket 连接失败:",e),this.handleError(e)}}),this.initEventHandlers()}catch(a){this.handleError(a)}}initEventHandlers(){this.ws&&(this.ws.onOpen((e=>{var a,n,o,l;t("log","at utils/socket.js:74","WebSocket 已连接"),this.reconnectAttempts>0&&(null==(n=(a=this.options).onReconnect)||n.call(a)),null==(l=(o=this.options).onOpen)||l.call(o,e),this.reconnectAttempts=0})),this.ws.onMessage((e=>{try{const a=JSON.parse(e.data);t("log","at utils/socket.js:87","收到了返回消息:",a),this.handleMessage(a)}catch(a){t("error","at utils/socket.js:91","消息解析失败:",a),uni.setStorageSync("currentSessionId",e.data.task_call_id)}})),this.ws.onError((e=>{t("error","at utils/socket.js:96","WebSocket 错误:",e),this.handleError(e)})),this.ws.onClose((e=>{var a,n;t("log","at utils/socket.js:100","WebSocket 已关闭:",e.code,e.reason),null==(n=(a=this.options).onClose)||n.call(a,e),this.stopHeartbeat(),!this.isManualClose&&this.reconnectAttempts{if(!this.isConnected())return void n(new Error("WebSocket 未连接"));const o=JSON.stringify(e);t("log","at utils/socket.js:193","发送的消息是:",o),this.ws.send({data:o,success:()=>a(),fail:e=>{t("error","at utils/socket.js:201","发送消息失败:",e),n(e)}})}))}reconnect(){this.reconnectTimer||(this.reconnectAttempts++,t("log","at utils/socket.js:227",`尝试重连 (${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.reconnectTimer=setTimeout((()=>{this.reconnectTimer=null,this.isManualClose||this.connect(this.options)}),this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval((()=>{this.isConnected()?this.send({ws_event:"ping"}).catch((()=>{t("log","at utils/socket.js:249","心跳发送失败,准备重连"),this.reconnectTimer||this.isManualClose||this.reconnect()})):!this.isManualClose&&this.reconnectAttemptst("log","at utils/socket.js:335","连接已关闭"),fail:e=>t("error","at utils/socket.js:336","关闭失败:",e)})}catch(e){t("error","at utils/socket.js:344","关闭连接出错:",e)}this.ws=null}this.reconnectAttempts=0}updateOptions(e){this.options={...this.options,...e}}},W=U("socket",(()=>{const a=e.ref("disconnected"),n=e.ref([]),o=e.ref(""),l=e.ref(!1),s=e.ref({token:"",conversationId:""});e.ref("");const c=e.ref([]),i=e.ref(20),r=e.ref(""),u=e.computed((()=>"connected"===a.value)),d=e.computed((()=>"connecting"===a.value)),m=e.computed((()=>"disconnected"===a.value)),v=e.computed((()=>"error"===a.value)),p=e.computed((()=>n.value[n.value.length-1]));function f(e,a){const n=new Date,o=`${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}`;c.value.push({type:e,connect:a,time:o}),c.value.length>i.value&&(c.value=c.value.slice(-i.value)),t("log","at stores/socket.js:54",`[${e.toUpperCase()}] ${a}`)}function h(){a.value="connected",f("success","连接成功!发送auth"),t("log","at stores/socket.js:117","连接成功!发送auth"),s.value.token,q.send({type:"auth",access_token:s.value.token})}function g(){"disconnected"!==a.value&&(a.value="disconnected",f("warn","连接已断开"))}function w(e){f("error",`Socket错误: ${JSON.stringify(e)}`),a.value="error"}function k(e){a.value="connecting",f("warn",`重连中... (${e}/5)`)}function y(e){f("receive",`收到: ${JSON.stringify(e)}`);const{type:a,conversation_id:n,message_id:s,data:c}=e||{};switch(t("log","at stores/socket.js:162","[handleMessage] type =",a,", data =",JSON.stringify(c)),a){case"auth_ok":f("success","连接成功");break;case"auth_fail":l.value=!1,r.value=(null==c?void 0:c.reason)||(null==e?void 0:e.reason)||"unknown",f("error",`认证失败: ${r.value}`);break;case"chat_ack":f("warn","AI成功收到用户发送的消息");break;case"render":f("warn","AI正在回复信息"),function(e){if("exit"===e)return t("log","at stores/socket.js:220","ai结束思考"),void(l.value=!1);if(!e||"object"!=typeof e)return;const{role:a,chunk:n,message_role:s,meaasge_uuid:c,message_type:i,task_call_id:r}=e;l.value||!n&&"assistant"!==s||(t("log","at stores/socket.js:241","ai开始思考"),o.value="",l.value=!0);n&&(o.value+=n)}(c);break;default:f("info",`未知事件类型: ${a}`)}}return{connectionStatus:a,messageString:o,isThinking:l,logs:c,config:s,authFailReason:r,isConnected:u,isConnecting:d,isDisconnected:m,isError:v,lastMessage:p,connect:function(e={}){n.value=[],o.value="",s.value={...s.value,...e},f("info",`准备连接WebSocket。Token:${s.value.token||"未设置"}。ConversationId: ${s.value.conversationId||"未设置"}`),s.value.token&&s.value.conversationId?(a.value="connecting",q.connect({token:s.value.token,conversationId:s.value.conversationId,onMessage:y,onError:w,onOpen:h,onClose:g,onReconnect:k}),setTimeout((()=>{"connecting"===a.value&&(a.value="error",f("error","连接超时(10s)"))}),1e4)):f("error","Token和ConversationId都不能为空")},disconnect:function(){q.close(),a.value="disconnected",f("warn","已主动断开连接")},send:async function(e){if(t("log","at stores/socket.js:98","检查到要发生消息为:",e),!u.value)throw f("error","发送失败: 连接未建立"),new Error("连接未建立");try{return await q.send(e),f("send","string"==typeof e?e:JSON.stringify(e)),!0}catch(a){throw f("error",`发送失败: ${a.message||a}`),a}},addLog:f,clearLogs:function(){c.value=[]},getStatusText:function(){return{connecting:"连接中",connected:"已连接",disconnected:"未连接",error:"连接错误"}[a.value]||"未知状态"}}})),R="http://chat.yuxindazhineng.com",J=async e=>new Promise(((a,n)=>{uni.request({url:`${R}/api/chatList/getChatFriend`,method:"POST",header:{"Content-Type":"application/json"},data:{size:500,current:1,sendId:e},success:e=>{var o;if(200===e.statusCode){const l=e.data;if(t("log","at utils/friend-api.js:20","获取到的好友列表消息",l),0===(null==l?void 0:l.code)||"成功"===(null==l?void 0:l.msg)){const e=null==(o=l.data)?void 0:o.records;if(e.length>0){const t=e[0].receiver;t&&uni.setStorageSync("receiverId",t)}a(e)}else{const t=e.data.error||"获取好友列表出错啦";n(t)}}else n(`获取好友列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),H=async e=>new Promise(((t,a)=>{uni.request({url:`${R}/api/group/getGroup`,method:"POST",header:{"Content-Type":"application/json"},data:{size:500,current:1,contactId:e},success:e=>{var n;if(200===e.statusCode){const o=e.data;if(0===(null==o?void 0:o.code)||"成功"===(null==o?void 0:o.msg)){const e=null==(n=o.data)?void 0:n.records;t(e)}else{const t=e.data.error||"获取群聊列表出错啦";a(t)}}else a(`获取群聊列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})),G=e=>new Promise(((t,a)=>{uni.uploadFile({url:`${R}/api/file/upload`,filePath:e,name:"file",success:e=>{const n=JSON.parse(e.data);0===n.code?t(n.data):a(n.msg||"上传失败")},fail:e=>{a(e.errMsg||"网络错误")}})}));const X=new class{constructor(){this.ws=null,this.url="wss://wss.yuxindazhineng.com/ws",this.options={token:"",UserId:"",onMessage:null,onError:null,onReconnect:null,onOpen:null,onClose:null},this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.reconnectDelay=3e3,this.reconnectTimer=null,this.heartbeatTimer=null,this.isManualClose=!1}connect(e={}){this.options={...this.options,...e},this.isManualClose=!1,this.ws&&(t("log","at utils/friend-socket.js:37","关闭现有连接"),this.close());try{this.ws=uni.connectSocket({url:this.url,success:()=>{t("log","at utils/friend-socket.js:45","WebSocket 连接请求已发送")},fail:e=>{t("error","at utils/friend-socket.js:48","WebSocket 连接失败:",e),this.handleError(e)}}),this.initEventHandlers()}catch(a){this.handleError(a)}}initEventHandlers(){this.ws&&(this.ws.onOpen((e=>{var a,n,o,l;t("log","at utils/friend-socket.js:75","WebSocket 已连接"),this.reconnectAttempts>0&&(null==(n=(a=this.options).onReconnect)||n.call(a)),null==(l=(o=this.options).onOpen)||l.call(o,e),this.reconnectAttempts=0})),this.ws.onMessage((e=>{try{const a=JSON.parse(e.data);t("log","at utils/friend-socket.js:88","收到了返回消息:",a),this.handleMessage(a)}catch(a){t("error","at utils/friend-socket.js:91","消息解析失败:",a),uni.setStorageSync("currentSessionId",e.data.task_call_id)}})),this.ws.onError((e=>{t("error","at utils/friend-socket.js:96","WebSocket 错误:",JSON.stringify(e)),this.handleError(e)})),this.ws.onClose((e=>{var a,n;t("log","at utils/friend-socket.js:100","WebSocket 已关闭:",e.code,e.reason),null==(n=(a=this.options).onClose)||n.call(a,e),!this.isManualClose&&this.reconnectAttempts{if(!this.isConnected())return void n(new Error("WebSocket 未连接"));const o=JSON.stringify(e);t("log","at utils/friend-socket.js:171","发送的消息是:",o),this.ws.send({data:o,success:()=>a(),fail:e=>{t("error","at utils/friend-socket.js:179","发送消息失败:",e),n(e)}})}))}reconnect(){this.reconnectTimer||(this.reconnectAttempts++,t("log","at utils/friend-socket.js:205",`尝试重连 (${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.reconnectTimer=setTimeout((()=>{this.reconnectTimer=null,this.isManualClose||this.connect(this.options)}),this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval((()=>{this.isConnected()?this.send({ws_event:"ping"}).catch((()=>{t("log","at utils/friend-socket.js:227","心跳发送失败,准备重连"),this.reconnectTimer||this.isManualClose||this.reconnect()})):!this.isManualClose&&this.reconnectAttempts{})),this.ws.onMessage((()=>{})),this.ws.onError((()=>{})),this.ws.onClose((()=>{}));try{this.ws.close({success:()=>t("log","at utils/friend-socket.js:314","连接已关闭"),fail:e=>t("error","at utils/friend-socket.js:315","关闭失败:",e)})}catch(e){t("error","at utils/friend-socket.js:323","关闭连接出错:",e)}this.ws=null}this.reconnectAttempts=0}updateOptions(e){this.options={...this.options,...e}}},K=U("friendSocket",(()=>{const a=e.ref("disconnected"),n=e.ref([]),o=e.ref(""),l=e.ref({token:"",UserId:""});e.ref("");const s=e.ref(null),c=e.ref(null),i=e.ref(!1),r=e.ref([]),u=e.ref(20),d=e.computed((()=>"connected"===a.value)),m=e.computed((()=>"connecting"===a.value)),v=e.computed((()=>"disconnected"===a.value)),p=e.computed((()=>"error"===a.value)),f=e.computed((()=>n.value[n.value.length-1]));function h(e,a){const n=new Date,o=`${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}`;r.value.push({type:e,connect:a,time:o}),r.value.length>u.value&&(r.value=r.value.slice(-u.value)),t("log","at stores/friend-socket.js:57",`[${e.toUpperCase()}] ${a}`)}function g(){a.value="connected",h("success","连接成功!"),async function(){const e={version:"1.1",body:{command:7,sender:N(),avatar:"",sessionId:"",message:"",callBackMessage:!1}};try{await X.send(e),h("send","string"==typeof e?e:JSON.stringify(e))}catch(t){throw h("error",`发送验证失败: ${t.message||t}`),t}}()}function w(){"disconnected"!==a.value&&(a.value="disconnected",h("warn","连接已断开"))}function k(e){h("error",`Socket错误: ${JSON.stringify(e)}`),a.value="error"}function y(e){a.value="connecting",h("warn",`重连中... (${e}/5)`)}function E(e){h("receive",`收到: ${JSON.stringify(e)}`);const a=e.body||e,{callBackMessage:n,groupName:o,command:l,groupId:r}=a||{};switch(l){case 3:s.value=l,c.value=r;break;case 7:s.value=l;break;case 1:t("log","at stores/friend-socket.js:199","有好友消息"),i.value=!0;break;case 9:t("log","at stores/friend-socket.js:204","群消息发送成功/有新群消息"),i.value=!0;break;default:h("info","未知事件类型")}}return{connectionStatus:a,messageString:o,logs:r,config:l,command:s,groupId:c,MessageReceived:i,isConnected:d,isConnecting:m,isDisconnected:v,isError:p,lastMessage:f,connect:function(e={}){n.value=[],o.value="",l.value={...l.value,...e},h("info",`准备连接FriendsWebSocket。Token:${l.value.token||"未设置"}。UserId: ${l.value.UserId||"未设置"}`),l.value.token&&l.value.UserId?(a.value="connecting",X.connect({token:l.value.token,UserId:l.value.UserId,onMessage:E,onError:k,onOpen:g,onClose:w,onReconnect:y}),setTimeout((()=>{"connecting"===a.value&&(a.value="error",h("error","连接超时(10s)"))}),1e4)):h("error","Token和UserId都不能为空")},disconnect:function(){X.close(),a.value="disconnected",h("warn","已主动断开连接")},send:async function(e){if(!d.value)throw h("error","发送失败: 连接未建立"),new Error("连接未建立");try{return await X.send(e),h("send","string"==typeof e?e:JSON.stringify(e)),!0}catch(t){throw h("error",`发送失败: ${t.message||t}`),t}},addLog:h,clearLogs:function(){r.value=[]},getStatusText:function(){return{connecting:"连接中",connected:"已连接",disconnected:"未连接",error:"连接错误"}[a.value]||"未知状态"}}})),{registerUTSInterface:Y,initUTSProxyClass:Q,initUTSProxyFunction:Z,initUTSPackageName:ee,initUTSIndexClassName:te,initUTSClassName:ae}=uni,ne="limeChooseFile",oe=Z(!1,{moduleName:"lime-choose-file 文件选择",moduleType:"",errMsg:"",main:!0,package:ee(ne,true),class:te(ne,true),name:"chooseFileByJs",keepAlive:!1,params:[{name:"options",type:"UTSSDKModulesLimeChooseFileChooseFileOptionJSONObject"}],return:""}),le=f({__name:"Chat",setup(l){const i=K(),r=()=>{i.isConnected||(te.value&&ae.value?i.connect({token:te.value,UserId:ae.value}):t("warn","at pages/Chat/Chat.vue:306","Token或UserId未准备好"))},u=W(),d=e.ref(0),m=(e,t)=>{let a='';return e.forEach(((e,n)=>{const o=0===n?"th":"td",l=e.split("|").filter((e=>""!==e.trim()));a+="",l.forEach(((e,n)=>{const l=t[n]?` style="text-align:${t[n]}"`:"";a+=`<${o}${l} style="padding:6px 10px;border:1px solid #ddd">${e.trim()}`})),a+=""})),a+="
    ",a},v=e=>{if(!e)return"";e=p(e);try{e=(e=>{const t=e.split("\n");let a=[],n=!1,o=[],l=[];for(let s=0;se.trim())).map((e=>e.trim().startsWith(":")&&e.trim().endsWith(":")?"center":e.trim().endsWith(":")?"right":"left"));continue}o.push(e),n=!0}else n&&o.length>0&&(a.push(m(o,l)),o=[],l=[],n=!1),a.push(e)}return n&&o.length>0&&a.push(m(o,l)),a.join("\n")})(e);return B(e)}catch(a){return t("error","at pages/Chat/Chat.vue:404","解析失败",a),e}},p=e=>{const t=/]*>([\s\S]*?)<\/script>/i.test(e),a=/<(form|input|select|textarea|button)\b[^>]*>/i.test(e);let n=e.replace(/]*>([\s\S]*?)<\/script>/gi,"");if(n=n.replace(/<\/?minimax:tool_call>/g,(e=>e.replace(//g,">"))).replace(/<\|[\w]+?\|>/g,(e=>e.replace(//g,">"))),t||a){return'

    表单仅预览,不可操作!!!

    '+n}return n},f=e=>{uni.previewImage({urls:[e]})},h=e=>{uni.downloadFile({url:e,success:e=>{uni.openDocument({filePath:e.tempFilePath,showMenu:!0})}})},g=e=>e?e<1?(1024*e).toFixed(0)+"KB":e.toFixed(2)+"MB":"0KB",E=e=>{if(!e||"string"!=typeof e)return{textContent:e||"",files:[]};const a=e.match(/\[文件信息:(\[.*?\])\]/);if(!a)return{textContent:e,files:[]};try{const t=JSON.parse(a[1]);return{textContent:e.replace(a[0],"").trim(),files:t}}catch(n){return t("error","at pages/Chat/Chat.vue:472","解析文件信息失败:",n),{textContent:e,files:[]}}},N=async()=>{try{const e="0123456789abcdef";let t="";for(let o=0;o<24;o++)t+=e[Math.floor(Math.random()*e.length)];const a=await(async(e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/create_workspace`,method:"POST",data:{access_token:e,name:t},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data.workspace_id;if(t)a(t);else{const t=e.data.error||"创建工作区id出错啦";n(t)}}else n(`创建工作区id失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(te.value,t);if(!a)return void uni.showToast({title:"工作区创建失败",icon:"none"});const n=uni.getStorageSync("yxd_login_info");let l="";n&&(l=n.username||"");const s=await(async(e,t,a,n)=>new Promise(((l,s)=>{uni.request({url:`${o}/create_conversation`,method:"POST",data:{access_token:e,workspace_id:t,title:a,sender:n},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data.conversation_id;if(t)l(t);else{const t=e.data.error||"创建新对话id出错啦";s(t)}}else s(`创建新对话失败:${e.statusCode}`)}})})))(te.value,a,"新会话",l);if(!s)return void uni.showToast({title:"新会话创建失败",icon:"none"});se()}catch(e){t("error","at pages/Chat/Chat.vue:514","新建普通会话失败:",e),uni.showToast({title:"创建会话失败,请重试",icon:"none"})}},b=e.ref(!1),V=()=>{b.value=!1},_=e.ref(!1),S=()=>{_.value=!_.value},x=()=>{ee.value&&uni.setStorageSync("currentSessionId",ee.value),uni.navigateTo({url:"/pages/WorkSpace/WorkSpace"})},T=()=>{ee.value&&uni.setStorageSync("currentSessionId",ee.value),uni.navigateTo({url:"/pages/CloudDatabase/CloudDatabase"})},D=()=>{uni.reLaunch({url:"/pages/Login/Login"})},P=e.ref([]),j=()=>{t("log","at pages/Chat/Chat.vue:563","点击了拍照上传"),uni.chooseImage({count:1,sourceType:["camera","album"],success:e=>{const t=e.tempFiles,a=e.tempFilePaths;t.forEach(((e,t)=>{P.value.push({path:a[t],name:e.name||`photo_${Date.now()}_${t}.jpg`,size:e.size,type:"image",tempFile:e})}))},fail:e=>{t("error","at pages/Chat/Chat.vue:581","选择图片失败",e)}})},$=e.ref([]),L=e.ref(!1),M=e.ref(!1),I=e.ref([]),z=e.ref(!1),F=e.ref(""),O=()=>{z.value=!1,F.value=""},A=async()=>{if(Q.value.trim()||0!==P.value.length){if(P.value.length>0){M.value=!0,uni.showLoading({title:"上传文件中...",mask:!0});try{const e=[];for(const t of P.value){const a=await G(t.path);e.push(a)}I.value=e,P.value=[]}catch(e){return uni.hideLoading(),t("error","at pages/Chat/Chat.vue:699","文件上传失败:",e),uni.showToast({title:"文件上传失败,请重试",icon:"error"}),void(M.value=!1)}uni.hideLoading(),M.value=!1}0===d.value&&Y(),1===d.value&&U(),2===d.value&&q()}},U=async()=>{i.isConnecting||await r();const e=uni.getStorageSync("receiverId"),t=I.value.length>0,a={command:1,sender:ae.value,receiver:e,avatar:"",sessionId:ee.value,message:Q.value,callBackMessage:!1};t&&(a.contentType=1,a.uploadVos=I.value);const n={version:"1.1",body:a};i.send(n);const o={sender:ae.value,receiver:e,content:Q.value,taskId:null,avatar:null,createTime:"",messageType:"null",contentJson:t?JSON.stringify(I.value):"null"};ve.value=[...ve.value,o],Q.value="",I.value=[],setTimeout((()=>{we()}),1e3)},q=async()=>{i.isConnecting||await r();const e=I.value.length>0,t={command:9,groupId:ee.value,message:Q.value||"",callBackMessage:!e,messageType:e?1:0,sender:ae.value};e&&(t.uploadVos=I.value);const a={version:"1.1",body:t};i.send(a);const n={id:ve.value.length+1,message:Q.value,messageType:e?1:0,groupId:null,createTime:"",contentJson:e?JSON.stringify(I.value):"",sender:ae.value};ve.value=[...ve.value,n],Q.value="",I.value=[],setTimeout((()=>{ke()}),1e3)};let X=null;const Y=async()=>{try{await new Promise(((t,a)=>{if(u.isConnected)return t();const n=e.watch((()=>u.isConnected),(e=>{e&&(n(),t())})),o=e.watch((()=>u.connectionStatus),(e=>{"error"===e&&(n(),o(),a(new Error("连接失败")))}));u.connect({token:te.value,conversationId:ee.value})}));let t=Q.value;if(I.value.length){const e=JSON.stringify(I.value);t=t?`${t}\n[文件信息:${e}]`:`[文件信息:${e}]`}const a={type:"chat",conversation_id:ee.value,content:t};u.send(a),L.value=!0,X=setTimeout((()=>{uni.showToast({title:"AI回复超时,请重试",icon:"none"}),L.value=!1,Q.value="",I.value=[]}),6e5)}catch(t){L.value=!1,uni.showToast({title:`用户发送消息失败${t}`,icon:"error"})}};e.watch((()=>u.isThinking),((e,a)=>{t("log","at pages/Chat/Chat.vue:861","isThinking 变化:",a,"→",e),a&&!e&&u.messageString&&(clearTimeout(X),t("log","at pages/Chat/Chat.vue:865","ai返回的消息:",u.messageString),t("log","at pages/Chat/Chat.vue:866","AI回复结束,刷新消息列表"),ge(),L.value=!1,Q.value="",I.value=[])})),e.watch((()=>u.authFailReason),(t=>{"pc offline"===t&&(L.value=!1,u.authFailReason="",e.nextTick((()=>{uni.showModal({title:"提示",content:"PC端不在线,不可聊天",showCancel:!1,confirmText:"知道了"})})))}));const Q=e.ref(""),Z=e.ref([]),ee=e.ref(""),te=e.ref(""),ae=e.ref(""),ne=e.ref(""),le=e.ref(null),se=async()=>{try{te.value=k(),t("log","at pages/Chat/Chat.vue:918","token:",te.value),Z.value=await(async e=>new Promise(((t,a)=>{uni.request({url:`${o}/get_user_conversations`,method:"POST",data:{access_token:e},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const a=e.data.conversations;t(a)}else a(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(te.value)||[];const e=y();e&&Z.value.some((t=>t._id===e))?ee.value=e:Z.value.length>0?ee.value=Z.value[0]._id:ee.value="",t("log","at pages/Chat/Chat.vue:930","保存会话id:",ee.value),uni.setStorageSync("currentSessionId",ee.value)}catch(e){uni.showToast({title:`获取会话列表失败${e}`,icon:"error"})}},ce=e.ref([]),ie=e=>{if(!e)return null;const t=ce.value.find((t=>t.receiver===e));return(null==t?void 0:t.avatar)||null},re=async e=>{if(!(null==e?void 0:e.length))return[];try{const t=e.map((e=>e.receiver)),a=await c(te.value,t),n=new Map(a.map((e=>[e.user_id,e]))||[]);return e.map((e=>{const t=n.get(e.receiver);return{...e,avatar:(null==t?void 0:t.avatar)||null}}))}catch(a){return t("error","at pages/Chat/Chat.vue:986","获取好友头像失败",a),e}},ue=e.ref([]),de=e.ref([]),me=e=>{if(!e)return null;const t=de.value.find((t=>t.groupContactId===e));return(null==t?void 0:t.avatar)||null},ve=e.ref([]),pe=e.ref("");e.ref(!1);const fe=e.ref(1),he=e.computed((()=>ve.value.slice(-100))),ge=async()=>{try{ve.value=await(async(e,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/get_conversation_messages`,method:"POST",data:{access_token:e,login_type:"phone",conversation_id:a},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const a=e.data;if(a)t("log","at utils/cloud-api.js:89","工作区id为:",a.workspace_id||"(无)"),a.workspace_id&&uni.setStorageSync("workspace_id",a.workspace_id),n(a.messages);else{const t=e.data.error||"获取消息出错啦";l(t)}}else l(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(te.value,ee.value)||[],Ne()}catch(e){uni.showToast({title:`获取ai会话内容失败${e}`,icon:"none"})}},we=async()=>{try{ve.value=await(async(e,a=1)=>(t("log","at utils/friend-api.js:88","请求的好友消息id:",e),new Promise(((t,n)=>{uni.request({url:`${R}/api/message/list`,method:"POST",data:{sessionId:e,size:100,current:a,beginTime:"",endTime:""},header:{"Content-Type":"application/json"},success:e=>{var a;if(200===e.statusCode){const o=e.data;if(0===o.code){const e=((null==(a=null==o?void 0:o.data)?void 0:a.records)||[]).reverse();t(e)}else{const t=e.data.error||"获取好友消息出错啦";n(t)}}else n(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})}))))(ee.value)||[],t("log","at pages/Chat/Chat.vue:1077","好友消息:",JSON.stringify(ve.value)),Ne()}catch(e){uni.showToast({title:`获取好友会话消息失败${e}`,icon:"none"})}},ke=async()=>{try{ve.value=await(async(e,a=1)=>(t("log","at utils/friend-api.js:134","请求的群聊消息id:",e),new Promise(((n,o)=>{uni.request({url:`${R}/api/group/getGroupList`,method:"POST",data:{current:a,size:100,groupId:e,beginTime:"",endTime:""},header:{"Content-Type":"application/json"},success:e=>{var a;if(200===e.statusCode){const l=e.data;if(t("log","at utils/friend-api.js:152","获取到的群聊信息:",l),0===l.code){const e=((null==(a=null==l?void 0:l.data)?void 0:a.records)||[]).reverse();n(e)}else{const t=e.data.error||"获取群聊消息出错啦";o(t)}}else o(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})}))))(ee.value)||[],t("log","at pages/Chat/Chat.vue:1090","群聊消息:",ve.value);const e=await(async e=>new Promise(((t,a)=>{uni.request({url:`${R}/api/group/getGroupMemberList`,method:"POST",header:{"Content-Type":"application/json"},data:{groupId:e,current:1,size:100},success:e=>{if(200===e.statusCode){const n=e.data;if(0===n.code){const e=n.data.records;t(e)}else{const t=e.data.error||"获取群成员出错啦";a(t)}}else a(`请求群成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(ee.value);t("log","at pages/Chat/Chat.vue:1093","获取到的群成员列表:",e),e&&e.length?(de.value=await(async e=>{if(!(null==e?void 0:e.length))return[];try{const a=e.map((e=>e.groupContactId));t("log","at pages/Chat/Chat.vue:1015","请求头像的ID列表:",a);const n=await c(te.value,a);t("log","at pages/Chat/Chat.vue:1017","头像接口返回数据:",n);const o=new Map(n.map((e=>[e.user_id,e]))||[]);return t("log","at pages/Chat/Chat.vue:1020","userMap的keys:",Array.from(o.keys())),e.map((e=>{const a=e.groupContactId,n=o.get(a);return t("log","at pages/Chat/Chat.vue:1025",`查找 ${a} 的头像:`,n),{...e,avatar:(null==n?void 0:n.avatar)||null}}))}catch(a){return t("error","at pages/Chat/Chat.vue:1032","获取群成员头像失败",a),e}})(e),t("log","at pages/Chat/Chat.vue:1096","群成员列表(带头像):",de.value)):de.value=[],Ne()}catch(e){uni.showToast({title:`获取群聊会话失败${e}`,icon:"none"})}},ye=async()=>{if(t("log","at pages/Chat/Chat.vue:1111","加载更多信息"),ve.value.length>100*fe.value){fe.value+=1;const t=ve.value.slice(-100*fe.value),a=t.length-he.value.length;he.value=t,await e.nextTick(),pe.value="msg-"+(a+1)}},Ee=e=>{},Ne=async()=>{await e.nextTick(),he.value.length>0&&(pe.value="msg-"+(he.value.length-1))};return e.watch((()=>i.MessageReceived),(e=>{if(t("log","at pages/Chat/Chat.vue:1139","收到了好友消息"),e)switch(t("log","at pages/Chat/Chat.vue:1141","ChatType:",d.value),d.value){case 0:ge(),i.MessageReceived=!1;break;case 1:we(),i.MessageReceived=!1;break;case 2:ke(),i.MessageReceived=!1;break;default:t("log","at pages/Chat/Chat.vue:1157","default 分支"),i.MessageReceived=!1}}),{immediate:!0}),e.watch(ee,(e=>{if(e)switch(uni.setStorageSync("currentSessionId",ee.value),d.value){case 0:default:ge();break;case 1:we();break;case 2:ke()}}),{immediate:!0}),e.onMounted((()=>{})),n((async()=>{await(async()=>{try{te.value=k(),le.value=await s(te.value),ae.value=le.value._id,ne.value=le.value.avatar||"",t("log","at pages/Chat/Chat.vue:908","用户信息已加载:",ae.value,ne.value)}catch(e){t("error","at pages/Chat/Chat.vue:910","获取用户信息失败:",e)}})();const e=uni.getStorageSync("chatType");d.value=e;const a=y();a&&(ee.value=a),0===e?(await se(),ee.value&&ge()):1===e?(await(async()=>{try{t("log","at pages/Chat/Chat.vue:945","开始获取好友列表");const e=await J(ae.value);t("log","at pages/Chat/Chat.vue:948","friendList:",e),e&&e.length?ce.value=await re(e):(ce.value=[],t("log","at pages/Chat/Chat.vue:953","好友列表为空"))}catch(e){t("error","at pages/Chat/Chat.vue:956","获取好友列表失败:",e),ce.value=[]}finally{Z.value=ce.value}})(),we(),r()):2===e&&(await(async()=>{try{t("log","at pages/Chat/Chat.vue:996","开始获取群聊列表"),ue.value=await H(ae.value)}catch(e){t("error","at pages/Chat/Chat.vue:1001","获取群聊列表失败:",e),ue.value=[]}finally{Z.value=ue.value}})(),await r(),await ke())})),(n,o)=>{const l=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),b.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ncd-overlay",onClick:V},[e.createElementVNode("view",{class:"ncd-card",onClick:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"ncd-header"},[e.createElementVNode("view",{class:"ncd-title-eng"},[e.createElementVNode("text",null,"NEW")]),e.createElementVNode("text",{class:"ncd-title-zh"},"创建对话"),e.createVNode(l,{type:"closeempty",color:"#ff0000",size:"24",onClick:V})]),e.createElementVNode("text",null,"选择对话类型,开启全新会话体验"),e.createElementVNode("view",{class:"ncd-options"},[e.createElementVNode("view",{class:"ncd-option ncd-normal"},[e.createElementVNode("view",{class:"ncd-opt-icon"},[e.createVNode(l,{type:"chat",color:"#000000",size:"30"})]),e.createElementVNode("view",{class:"ncd-opt-title",onClick:N},[e.createElementVNode("view",{class:"ncd-opt-title-1"},"普通会话"),e.createElementVNode("view",{class:"ncd-opt-title-2"},"与AI自由对话,探索任何话题")]),e.createVNode(l,{type:"arrow-right",class:"arrow-right-style"})]),e.createElementVNode("view",{class:"ncd-option ncd-intelligence"},[e.createElementVNode("view",{class:"ncd-opt-icon"},[e.createVNode(l,{type:"star",color:"#ffffff",size:"30"})]),e.createElementVNode("view",{class:"ncd-opt-title"},[e.createElementVNode("view",{class:"ncd-opt-title-1"},"智能体会话"),e.createElementVNode("view",{class:"ncd-opt-title-2"},"选择专属智能体,获得精准专业服务")]),e.createVNode(l,{type:"arrow-right",class:"arrow-right-style"})])])])])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"ncd-overlay",onClick:V},[e.createElementVNode("view",{class:"ncd-card ai-card",onClick:o[1]||(o[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"thinking-content"},[e.createElementVNode("view",{class:"loading-dots"},[e.createElementVNode("view",{class:"dot"}),e.createElementVNode("view",{class:"dot"}),e.createElementVNode("view",{class:"dot"})]),e.createElementVNode("text",{class:"thinking-text"},"AI 正在思考中...")])])])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"ncd-overlay",onClick:O},[e.createElementVNode("view",{class:"ncd-card message-detail-card",onClick:o[2]||(o[2]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"ncd-header"},[e.createElementVNode("text",{class:"ncd-title-zh"},"消息详情"),e.createVNode(l,{type:"closeempty",color:"#ff0000",size:"24",onClick:O})]),e.createElementVNode("scroll-view",{class:"message-detail-content","scroll-y":""},[e.createElementVNode("text",null,e.toDisplayString(F.value),1)])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"chat-page page-container"},[_.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mask",onClick:S})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["chat-sidebar",{"sidebar-show":_.value}])},[e.createVNode(C,{chatList:Z.value,showNewChatModal:b.value,"onUpdate:showNewChatModal":o[3]||(o[3]=e=>b.value=e),currentSessionId:ee.value,"onUpdate:currentSessionId":o[4]||(o[4]=e=>ee.value=e),chatType:d.value,"onUpdate:chatType":o[5]||(o[5]=e=>d.value=e),onRefreshConversations:se},null,8,["chatList","showNewChatModal","currentSessionId","chatType"])],2),e.createElementVNode("view",{class:"chat-wrapper"},[e.createElementVNode("view",{class:"chat-hearder"},[e.createElementVNode("view",{class:"chat-btn-group"},[e.createElementVNode("view",{class:"head-btn",onClick:S},[e.createElementVNode("view",{class:"iconfont icon-caidan"})]),e.createElementVNode("view",{class:"head-btn",onClick:x},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"})]),e.createElementVNode("view",{class:"head-btn",onClick:T},[e.createElementVNode("view",{class:"iconfont icon-cloud"})]),e.createElementVNode("view",{class:"head-btn log-out",onClick:D},[e.createElementVNode("view",{class:"iconfont icon-tuichu"})])])]),e.createElementVNode("view",{class:"main-chat"},[e.createElementVNode("scroll-view",{class:"chat-messages",direction:"vertical","scroll-y":"","scroll-into-view":pe.value,onScrolltoupper:ye,"upper-threshold":0,"scroll-with-animation":!0,onScroll:Ee},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,((t,a)=>{var n;return e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[0===d.value&&"tool"!==t.role?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["chat-message",{"message-user":"user"===t.role}]),id:"msg-"+a},["user"===t.role?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["chat-avatar",{"chat-avatar-user":"user"===t.role}])},["user"===t.role&&(null==(n=le.value)?void 0:n.avatar)?(e.openBlock(),e.createElementBlock("image",{key:0,src:le.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"iconfont icon-yonghuziliao"}))],2)):e.createCommentVNode("",!0),t.content&&""!==String(t.content).trim()?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["chat-content",{"chat-content-user":"user"===t.role}]),onClick:e=>(e=>{F.value=e.content||"",z.value=!0})(t)},[E(t.content).textContent?(e.openBlock(),e.createElementBlock("view",{key:0,innerHTML:v(E(t.content).textContent)},null,8,["innerHTML"])):e.createCommentVNode("",!0),E(t.content).files.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E(t.content).files,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"file-item"},[["jpg","jpeg","png","gif","webp","bmp"].includes(t.extendName.toLowerCase())?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.url,mode:"widthFix",class:"message-image",onClick:e=>f(t.url)},null,8,["src","onClick"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file",onClick:e=>h(t.url)},[e.createElementVNode("view",{class:"file-icon"},"📄"),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-size"},e.toDisplayString(g(t.fileSize)),1)],8,["onClick"]))])))),128))])):e.createCommentVNode("",!0)],10,["onClick"])):e.createCommentVNode("",!0)],10,["id"])):e.createCommentVNode("",!0)],64)})),128)),1===d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(he.value,((t,a)=>{var n;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["chat-message",{"message-user":t.sender===ae.value}]),key:a,id:"msg-"+a},[e.createElementVNode("view",{class:e.normalizeClass(["chat-avatar",{"chat-avatar-user":t.sender===ae.value}])},[t.sender===ae.value&&(null==(n=le.value)?void 0:n.avatar)?(e.openBlock(),e.createElementBlock("image",{key:0,src:le.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):ie(t.sender)?(e.openBlock(),e.createElementBlock("image",{key:1,src:ie(t.sender),class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"iconfont icon-yonghuziliao"}))],2),e.createElementVNode("view",{class:e.normalizeClass(["chat-content",{"chat-content-user":t.sender===ae.value}])},[t.content&&""!==String(t.content).trim()?(e.openBlock(),e.createElementBlock("view",{key:0,innerHTML:v(t.content)},null,8,["innerHTML"])):e.createCommentVNode("",!0),t.contentJson?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.contentJson),((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"file-item"},[["jpg","jpeg","png","gif","webp","bmp"].includes(t.extendName.toLowerCase())?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.url,mode:"widthFix",class:"message-image",onClick:e=>f(t.url)},null,8,["src","onClick"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file",onClick:e=>h(t.url)},[e.createElementVNode("view",{class:"file-icon"},"📄"),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-size"},e.toDisplayString(g(t.fileSize)),1)],8,["onClick"]))])))),128))])):e.createCommentVNode("",!0)],2)],10,["id"])})),128)):e.createCommentVNode("",!0),2===d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(he.value,((t,a)=>{var n;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["chat-message",{"message-user":t.sender===ae.value}]),key:a,id:"msg-"+a},[e.createElementVNode("view",{class:e.normalizeClass(["chat-avatar",{"chat-avatar-user":t.sender===ae.value}])},[t.sender===ae.value&&(null==(n=le.value)?void 0:n.avatar)?(e.openBlock(),e.createElementBlock("image",{key:0,src:le.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):de.value.length>0&&me(t.sender)?(e.openBlock(),e.createElementBlock("image",{key:1,src:me(t.sender),class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"iconfont icon-yonghuziliao"}))],2),e.createElementVNode("view",{class:e.normalizeClass(["chat-content",{"chat-content-user":t.sender===ae.value}])},[t.message&&""!==String(t.message).trim()?(e.openBlock(),e.createElementBlock("view",{key:0,innerHTML:v(t.message)},null,8,["innerHTML"])):e.createCommentVNode("",!0),t.contentJson?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.contentJson),((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"file-item"},[["jpg","jpeg","png","gif","webp","bmp"].includes(t.extendName.toLowerCase())?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.url,mode:"widthFix",class:"message-image",onClick:e=>f(t.url)},null,8,["src","onClick"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file",onClick:e=>h(t.url)},[e.createElementVNode("view",{class:"file-icon"},"📄"),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-size"},e.toDisplayString(g(t.fileSize)),1)],8,["onClick"]))])))),128))])):e.createCommentVNode("",!0)],2)],10,["id"])})),128)):e.createCommentVNode("",!0)],40,["scroll-into-view"]),e.createElementVNode("view",{class:"chat-interactive-container"},[e.createElementVNode("view",{class:"chat-interactive-group"},[e.createElementVNode("view",{class:"chat-interactive-btn",onClick:j},"拍照上传"),e.createElementVNode("view",{class:"chat-interactive-btn",onClick:o[6]||(o[6]=e=>(t("log","at pages/Chat/Chat.vue:604","点击了上传文件"),void oe({count:5,type:"all",success:e=>{t("log","at pages/Chat/Chat.vue:609","成功了"),$.value=e.tempFiles,P.value.push(...e.tempFiles),uni.showToast({title:`已选择 ${e.tempFiles.length} 个文件`,icon:"success"})},fail:e=>{t("error","at pages/Chat/Chat.vue:620","选择失败:",e),uni.showToast({title:"选择失败",icon:"error"})}})))},"上传文件")]),P.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"image-list"},[e.createElementVNode("view",{class:"image-title"},"已选择: ("+e.toDisplayString(P.value.length)+")",1),e.createElementVNode("view",{class:"image-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"image-item",key:a},[e.createElementVNode("view",{class:"image-info"},[e.createElementVNode("text",{class:"image-name"},e.toDisplayString(t.name),1),e.createElementVNode("text",{class:"delete-btn",onClick:e.withModifiers((e=>(e=>{uni.showModal({title:"提示",content:"确定要删除这张图片吗?",success:t=>{t.confirm&&(P.value.splice(e,1),uni.showToast({title:"删除成功",icon:"success"}))}})})(a)),["stop"])},"删除",8,["onClick"])])])))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"chat-input-container"},[e.withDirectives(e.createElementVNode("textarea",{class:"message-input",placeholder:"输入消息...",onConfirm:A,"confirm-type":"send","onUpdate:modelValue":o[7]||(o[7]=e=>Q.value=e),"auto-height":""},null,544),[[e.vModelText,Q.value]]),e.createElementVNode("view",{class:"input-btn-group"},[e.createElementVNode("view",{class:"iconfont icon-tingzhi icon-btn"})])])])])])])],64)}}},[["__scopeId","data-v-0f1d768b"]]),se=f({__name:"WorkSpace",setup(n){const l=e.ref(""),s=e.ref(""),c=e.ref(""),i=e.ref("工作区"),d=e.ref(!1),m=e.ref([]),v=e.ref(!1),p=e.ref(!1),f=e.ref(""),h=()=>{v.value=!1,f.value=""},g=()=>{oe({count:10,type:"all",success:async e=>{const t=e.tempFiles||[];0!==t.length?await y(t):uni.showToast({title:"未选择文件",icon:"none"})},fail:e=>{t("error","at pages/WorkSpace/WorkSpace.vue:176","选择文件失败:",e)}})},y=async e=>{uni.showLoading({title:"上传中..."});try{const a=M.value.length>0?"./"+M.value.map((e=>e.name)).join("/")+"/":"/",n=await((e,a,n)=>new Promise(((l,s)=>{const c=(Array.isArray(a)?a:[a]).map((e=>({name:"files",uri:"string"==typeof e?e:e.tempFilePath||e.path||e})));t("log","at utils/cloud-api.js:588","uploadFileToShortStorage 参数:",{workspacesId:e,fileCount:c.length,filePath:n}),uni.uploadFile({url:`${o}/cloud_api/file/temp/upload`,method:"POST",formData:{workspaces_id:e,file_path:n||"/",overwrite:"true"},files:c,success:e=>{if(t("log","at utils/cloud-api.js:600","uploadFileToShortStorage 响应状态:",e.statusCode,"数据:",e.data),200===e.statusCode)try{const t=JSON.parse(e.data);if(Array.isArray(t)&&t.length>0)l(t);else if(t.success)l([{url:t.url||t.message,success:!0}]);else{const e=(null==t?void 0:t.error)||(null==t?void 0:t.message)||"上传文件(到短存云端)获取URL出错啦";s(e)}}catch(a){s("接口返回数据格式异常: "+e.data)}else s(`上传文件(到短存云端)获取URL失败:${e.statusCode} - ${e.data}`)},fail:e=>{const t=e.errMsg||"网络错误";s(t)}})})))(s.value,e,a),c=n.filter((e=>e.success)).map((e=>e.url));if(0===c.length){const e=n.filter((e=>!e.success)).map((e=>e.error)).join("; ");throw new Error(e||"所有文件上传失败")}await((e,t,a,n)=>new Promise(((l,s)=>{const c=Array.isArray(a)?a:a?[a]:[];uni.request({url:`${o}/cloud_api/phone/workspace/upload`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:t,dir_path:n||"/",urls:c},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)l(t);else{const e=(t.results||[]).filter((e=>!e.success)).map((e=>e.error||"未知错误")),a=e.length>0?`上传失败 ${t.failed_count}/${t.total_files}:${e[0]}`:t.summary||(null==t?void 0:t.error)||"上传文件到工作区出错啦";s(a)}}else s(`上传文件到工作区失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";s(t)}})})))(l.value,s.value,c,a),uni.hideLoading();const i=e.length,r=i-c.length,u=r>0?`上传完成:成功 ${c.length},失败 ${r}`:`成功上传 ${i} 个文件`;uni.showToast({title:u,icon:c.length>0?"success":"error"}),F()}catch(a){uni.hideLoading(),t("error","at pages/WorkSpace/WorkSpace.vue:229","上传文件失败:",a),uni.showToast({title:"string"==typeof a?a:"上传失败,请重试",icon:"error"})}},E=e.computed((()=>0===M.value.length?"根目录":"/"+M.value.map((e=>e.name)).join("/"))),N=e.computed((()=>{const e=M.value.map((e=>e.name)).join("/"),t=f.value.trim();return t?e?`./${e}/${t}`:`./${t}`:e?`./${e}/`:"./"})),C=async()=>{const e=f.value.trim();if(e)try{const t=M.value.map((e=>e.name)).join("/"),a=t?`./${t}/${e}`:`./${e}`;await u(l.value,s.value,a),uni.showToast({title:"创建成功",icon:"success"}),h(),F()}catch(a){t("error","at pages/WorkSpace/WorkSpace.vue:275","创建文件夹失败:",a),uni.showToast({title:"创建失败,请重试",icon:"error"})}else uni.showToast({title:"请输入目录名称",icon:"none"})},b=async e=>{var a,n,c;if("directory"!==e.type)try{uni.showLoading({title:"获取下载链接..."});const i=e.path.startsWith("./")?e.path.slice(2):e.path,r=await(a=l.value,n=s.value,c=i,new Promise(((e,t)=>{uni.request({url:`${o}/cloud_api/phone/workspace/downloadFile`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:a,workspaces_id:n,file_path:c},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.message||n.data);else if(Array.isArray(n))e(n);else{const e=(null==n?void 0:n.error)||"获取工作区文URL出错啦";t(e)}}else t(`获取工作区文URL失败:${a.statusCode}`)}})})));uni.hideLoading();const u=Array.isArray(r)?r[0]:r;if(!u||!u.url)return void uni.showToast({title:"获取下载链接失败",icon:"error"});const d=u.url,m=e.name;uni.showLoading({title:"下载中..."}),uni.downloadFile({url:d,name:m,success:e=>{if(uni.hideLoading(),200===e.statusCode){const t=e.tempFilePath;V(m,t)}else uni.showToast({title:"下载失败",icon:"error"})},fail:e=>{uni.hideLoading(),t("error","at pages/WorkSpace/WorkSpace.vue:406","下载文件失败:",e),uni.showToast({title:"下载失败,请重试",icon:"error"})}})}catch(i){uni.hideLoading(),t("error","at pages/WorkSpace/WorkSpace.vue:415","获取下载链接失败:",i),uni.showToast({title:"获取下载链接失败,请重试",icon:"error"})}else uni.showToast({title:"暂不支持下载目录",icon:"none"})},V=(e,a)=>{const n="/storage/emulated/0/yxd/";var o;o=o=>{plus.io.resolveLocalFileSystemURL(a,(l=>{l.copyTo(o,e,(()=>{const a=n+e;t("log","at pages/WorkSpace/WorkSpace.vue:464","文件已保存到:",a),_(e,a)}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:468","复制文件失败:",JSON.stringify(n)),_(e,a)}))}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:473","读取临时文件失败:",JSON.stringify(n)),_(e,a)}))},plus.io.resolveLocalFileSystemURL(n,(e=>{o(e)}),(()=>{plus.io.resolveLocalFileSystemURL("/storage/emulated/0/",(n=>{n.getDirectory("yxd",{create:!0},(e=>{o(e)}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:439","创建 yxd 目录失败:",JSON.stringify(n)),uni.showToast({title:"创建目录失败",icon:"error"}),_(e,a)}))}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:447","访问外部存储根目录失败:",JSON.stringify(n)),uni.showToast({title:"无法访问存储目录",icon:"error"}),_(e,a)}))}))},_=(e,t)=>{uni.showActionSheet({title:`${e} 下载完成`,itemList:["打开文件","选择其他应用打开","仅保存"],success:e=>{switch(e.tapIndex){case 0:B(t);break;case 1:S(t);break;case 2:uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}},fail:()=>{uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}})},B=e=>{uni.openDocument({filePath:e,success:()=>uni.showToast({title:"打开成功",icon:"success"}),fail:e=>{t("error","at pages/WorkSpace/WorkSpace.vue:530","打开文件失败:",e),uni.showToast({title:"无法打开此文件",icon:"error"})}})},S=e=>{uni.openDocument({filePath:e,showMenu:!0,success:()=>uni.showToast({title:"打开成功",icon:"success"}),fail:e=>{t("error","at pages/WorkSpace/WorkSpace.vue:549","打开文件失败:",e),uni.showToast({title:"无法打开此文件",icon:"error"})}})},x=e=>{uni.showModal({title:"提示",content:`确定要删除"${e.name}"吗?`,success:async a=>{if(a.confirm)try{const a=`./${e.path}`;t("log","at pages/WorkSpace/WorkSpace.vue:568","删除的是:",a),await r(l.value,s.value,a),uni.showToast({title:"删除成功",icon:"success"}),F()}catch(n){t("error","at pages/WorkSpace/WorkSpace.vue:576","删除失败:",n),uni.showToast({title:"删除失败,请重试",icon:"error"})}}})},T=e.ref(!1),D=()=>{T.value=!T.value},P=e.ref(""),j=e.ref(!1),$=()=>{j.value=!j.value},L=e.ref({}),M=e.ref([]),I=e.ref([]),z=()=>{var e,a;t("log","at pages/WorkSpace/WorkSpace.vue:657","当前路径为:",JSON.stringify(M.value));const n=M.value.length>0?M.value[M.value.length-1].path:".";if("."===n)return(null==(e=L.value)?void 0:e.children)||[];const o=(e,t)=>{var a;for(const n of e){if(n.path===t)return n;if("directory"===n.type&&(null==(a=n.children)?void 0:a.length)){const e=o(n.children,t);if(e)return e}}return null},l=o((null==(a=L.value)?void 0:a.children)||[],n);return l?l.children:[]},F=async()=>{var e,a;s.value=uni.getStorageSync("workspace_id"),l.value=k(),t("log","at pages/WorkSpace/WorkSpace.vue:684","getWorkspaceId:",s.value),L.value=await(e=l.value,a=s.value,new Promise(((t,n)=>{uni.request({url:`${o}/cloud_api/phone/workspace/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:a,format:"tree",parent_path:"",filter_type:""},success:e=>{if(200===e.statusCode){const a=e.data;if(a.success)t(a.data);else{const e=(null==a?void 0:a.error)||"获取工作区文件目录出错啦";n(e)}}else n(`获取工作区文件目录失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})}))),I.value=z()},O=()=>{d.value?m.value.length===I.value.length?m.value=[]:m.value=I.value.map((e=>e.path)):M.value.length>0?(M.value.pop(),0===M.value.length?(i.value="工作区",c.value=null):(i.value=M.value[M.value.length-1].name,c.value=M.value.length>1?M.value[M.value.length-2].name:"工作区"),F(),P.value="",j.value=!1):uni.navigateBack({delta:1,fail(){t("log","at pages/WorkSpace/WorkSpace.vue:741","返回失败,进入兜底跳转"),uni.reLaunch({url:"/pages/Chat/Chat"})}})};return e.onMounted((()=>{F()})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay",onClick:h},[e.createElementVNode("view",{class:"popup-card",onClick:n[3]||(n[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:h},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"新建工作区目录"),e.createElementVNode("view",{class:"new-folder-name"},"目录名称"),e.createElementVNode("view",{class:e.normalizeClass(["create-folder-name",{"has-value":p.value||f.value}])},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>f.value=e),onFocus:n[1]||(n[1]=e=>p.value=!0),onBlur:n[2]||(n[2]=e=>p.value=!1),type:"text",placeholder:"输入目录名称,如:项目资料/设计图"},null,544),[[e.vModelText,f.value]])],2),e.createElementVNode("view",{class:"nf-path-label"},"当前路径"),e.createElementVNode("view",{class:"nf-path-display"},e.toDisplayString(E.value),1),e.createElementVNode("view",{class:"nf-path-label"},"路径预览"),e.createElementVNode("view",{class:"nf-path-preview"},e.toDisplayString(N.value),1),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:h},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:C},"确认")])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"workspace-container page-container"},[e.createElementVNode("view",{class:"workspace-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:n[4]||(n[4]=(...e)=>O&&O(...e))},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"}),e.createElementVNode("view",{class:"navbar-before-title workspace-text"},e.toDisplayString(d.value?"全选":c.value),1)]),e.createElementVNode("view",{class:"navbar-title workspace-text"},e.toDisplayString(i.value),1),e.createElementVNode("view",{class:"navbar-right"},[d.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-right-text workspace-text",onClick:n[5]||(n[5]=e=>(d.value&&(m.value=[]),void(d.value=!d.value)))}," 完成")):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["iconfont icon-gengduo",T.value?"menu-open":"custom-navbar-icon"]),onClick:D},null,2))]),T.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:n[6]||(n[6]=e=>{g(),D()})},"上传文件"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item",onClick:n[7]||(n[7]=e=>{v.value=!0,D()})},"新建文件夹")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"search-file-warpper"},[e.createElementVNode("view",{class:"search-file"},[e.createElementVNode("view",{class:"iconfont icon-sousuo"}),e.withDirectives(e.createElementVNode("input",{class:"search-file-input",placeholder:"搜索",onFocus:$,"onUpdate:modelValue":n[8]||(n[8]=e=>P.value=e)},null,544),[[e.vModelText,P.value]])]),j.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"cancel-search",onClick:$},"取消")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"workspace-content"},[0===I.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createTextVNode(" 文件夹为空 ")])):e.createCommentVNode("",!0),I.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"folder-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(t=>{return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["folder-item",{"select-folder":m.value.includes(t.path)}]),key:t.path,onClick:e=>d.value?(e=>{const t=m.value.indexOf(e);-1!==t?m.value.splice(t,1):m.value.push(e)})(t.path):(e=>{"directory"===e.type&&(M.value.push({path:e.path,name:e.name}),i.value=e.name,c.value=M.value.length>1?M.value[M.value.length-2].name:"工作区",I.value=z(),P.value="",j.value=!1)})(t),onLongpress:e=>(e=>{d.value||uni.showActionSheet({itemList:["下载","删除"],success:t=>{switch(t.tapIndex){case 0:b(e);break;case 1:x(e)}}})})(t)},["directory"===t.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:"iconfont icon-a-wenjianjiawenjian folder-item-style"})):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["iconfont folder-item-style",(a=t.extension,{".png":"icon-wenjiantupian",".jpg":"icon-wenjiantupian",".jpeg":"icon-wenjiantupian",".gif":"icon-wenjiantupian",".svg":"icon-SVG",".bmp":"icon-wenjiantupian",".webp":"icon-wenjiantupian",".mp4":"icon-wenjianshipin",".avi":"icon-wenjianshipin",".mov":"icon-wenjianshipin",".wmv":"icon-wenjianshipin",".flv":"icon-wenjianshipin",".mkv":"icon-wenjianshipin",".mp3":"icon-wenjianyinpin",".wav":"icon-wenjianyinpin",".flac":"icon-wenjianyinpin",".aac":"icon-wenjianyinpin",".pdf":"icon-PDF",".doc":"icon-DOC",".docx":"icon-DOC",".xls":"icon-XLS",".xlsx":"icon-XLS",".ppt":"icon-PPT",".pptx":"icon-PPT",".txt":"icon-TXT",".md":"icon-file-markdown-fill",".zip":"icon-wenjianyasuo",".rar":"icon-wenjianyasuo",".7z":"icon-wenjianyasuo",".tar":"icon-wenjianyasuo",".gz":"icon-wenjianyasuo",".js":"icon-JS",".ts":"icon-daimawenjia",".vue":"icon-daimawenjia",".html":"icon-HTML",".css":"icon-CSS",".py":"icon-daimawenjian",".java":"icon-daimawenjian",".json":"icon-JSON"}[null==a?void 0:a.toLowerCase()]||"icon-qitawenjian")])},null,2)),e.createElementVNode("view",{class:"folder-name"},e.toDisplayString(t.name),1),d.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(["folder-checkbox",{"select-folder":m.value.includes(t.path)}])},[m.value.includes(t.path)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",color:"#fff"})):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],42,["onClick","onLongpress"]);var a})),128))])):e.createCommentVNode("",!0)]),d.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["workspace-footer",{"folder-actions":m.value.length>0}])},[e.createElementVNode("view",{class:"iconfont icon-shangchuan",onClick:g}),e.createElementVNode("view",{class:"iconfont icon-del"})],2)):e.createCommentVNode("",!0)])],64)}}},[["__scopeId","data-v-02673744"]]),ce=f({__name:"UserProfileModal",setup(n){const l=()=>{t("log","at pages/UserProfileModal/UserProfileModal.vue:55","点击了返回"),uni.navigateBack({delta:1,fail(){uni.reLaunch({url:"/pages/Chat/Chat"})}})},c=async()=>{if(d.value.trim()){uni.showLoading({title:"保存中...",mask:!0});try{await(e=i.value,a=r.value,n=d.value.trim(),s=m.value.trim(),c=u.value,new Promise(((t,l)=>{uni.request({url:`${o}/cloud_api/update_user_profile`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,user_id:a,username:n,"email:":s,avatar:c},success:e=>{if(200===e.statusCode){const a=e.data;if(a.success)t(a.message);else{const e=(null==a?void 0:a.error)||"修改用户信息出错啦";l(e)}}else l(`修改用户信息失败:${e.statusCode}`)}})}))),uni.hideLoading(),uni.showToast({title:"保存成功",icon:"success"}),setTimeout((()=>{l()}),800)}catch(v){uni.hideLoading();const e="string"==typeof v?v:"保存失败,请稍后重试";uni.showToast({title:e,icon:"none"}),t("error","at pages/UserProfileModal/UserProfileModal.vue:93","保存用户信息失败:",v)}var e,a,n,s,c}else uni.showToast({title:"用户名不能为空",icon:"none"})},i=e.ref(""),r=e.ref(""),u=e.ref(""),d=e.ref(""),m=e.ref(""),v=e.ref(!1),p=e.ref(!1),f=()=>{uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:e=>{const t=e.tempFilePaths[0];h(t)},fail:e=>{t("log","at pages/UserProfileModal/UserProfileModal.vue:116","选择图片失败",e)}})},h=e=>{u.value=e};return e.onMounted((async()=>{i.value=k();try{const e=await s(i.value);r.value=e._id||"",u.value=e.avatar||"",d.value=e.username||"",m.value=e.email||""}catch(e){t("error","at pages/UserProfileModal/UserProfileModal.vue:135","获取用户信息失败:",e),uni.showToast({title:"加载用户信息失败",icon:"none"})}})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"user-profile page-container"},[e.createElementVNode("view",{class:"modal-header"},[e.createElementVNode("view",{class:"modal-left",onClick:l},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"})]),e.createElementVNode("view",{class:"modal-title"},[e.createElementVNode("view",{class:"title-text"},"编辑资料")]),e.createElementVNode("view",{class:"modal-right",onClick:c},[e.createElementVNode("view",{class:"save-btn"},"保存")])]),e.createElementVNode("view",{class:"modal-body"},[e.createElementVNode("view",{class:"avatar-upload-section",onClick:f},[e.createElementVNode("view",{class:"avatar-upload-container"},[u.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"avatar-preview"},[e.createElementVNode("image",{src:u.value,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"avatar-placeholder"},[e.createVNode(o,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))])]),e.createElementVNode("view",{class:"form-card"},[e.createElementVNode("view",{class:"form-field"},[e.createElementVNode("view",{class:"form-text"},"用户名"),e.withDirectives(e.createElementVNode("input",{"adjust-position":"false",class:e.normalizeClass(["form-field-input form-field-username",{"edit-input-focus":v.value}]),"onUpdate:modelValue":n[0]||(n[0]=e=>d.value=e),onFocus:n[1]||(n[1]=e=>v.value=!0),onBlur:n[2]||(n[2]=e=>v.value=!1)},null,34),[[e.vModelText,d.value]])]),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"form-field"},[e.createElementVNode("view",{class:"form-text"},"邮箱"),e.withDirectives(e.createElementVNode("input",{"adjust-position":"false",class:e.normalizeClass(["form-field-input form-field-emile",{"edit-input-focus":p.value}]),"onUpdate:modelValue":n[3]||(n[3]=e=>m.value=e),onFocus:n[4]||(n[4]=e=>p.value=!0),onBlur:n[5]||(n[5]=e=>p.value=!1)},null,34),[[e.vModelText,m.value]])])]),e.createElementVNode("view",{class:"prompt-content"},"*保存后再返回哟")])])],64)}}},[["__scopeId","data-v-8fad524d"]]),ie=f({__name:"ContactPages",setup(n){const o=K(),l=()=>{uni.navigateBack({delta:1,fail(){uni.reLaunch({url:"/pages/Chat/Chat"})}})},r=(e,t="")=>{uni.setStorageSync("chatType",e),t&&uni.setStorageSync("currentSessionId",t),uni.reLaunch({url:"/pages/Chat/Chat"})},u=e.ref(0),d=e.reactive([{name:"contacts",label:"通讯录",icon:"📞"},{name:"createGroup",label:"新建群聊",icon:"👥"},{name:"addFriend",label:"添加好友",icon:"➕"},{name:"friendRequest",label:"好友申请",icon:"📨"}]),m=e=>{u.value=e.detail.current},v=e.ref(""),p=e.ref(""),f="宇恒一号",h=e.ref([]),g=async()=>{try{t("log","at pages/ContactPages/ContactPages.vue:442","开始获取好友列表"),v.value=k();const e=await s(v.value);p.value=e._id,t("log","at pages/ContactPages/ContactPages.vue:446","UserId.value:",p.value);const a=await J(p.value);t("log","at pages/ContactPages/ContactPages.vue:448","friendList:",a),a&&a.length?h.value=await y(a):(h.value=[],t("log","at pages/ContactPages/ContactPages.vue:453","好友列表为空"))}catch(e){t("error","at pages/ContactPages/ContactPages.vue:456","获取好友列表失败:",e),h.value=[]}},y=async e=>{if(!(null==e?void 0:e.length))return[];try{const t=e.map((e=>e.receiver)),a=await c(v.value,t),n=new Map(a.map((e=>[e.user_id,e]))||[]);return e.map((e=>{const t=n.get(e.receiver);return{...e,avatar:(null==t?void 0:t.avatar)||null}}))}catch(a){return t("error","at pages/ContactPages/ContactPages.vue:477","获取好友头像失败",a),e}};e.onMounted((async()=>{await g(),await N(),await z(),o.isConnected||(v.value&&p.value?o.connect({token:v.value,UserId:p.value}):t("warn","at pages/ContactPages/ContactPages.vue:341","Token或UserId未准备好"))}));const E=e.ref([]),N=async()=>{try{t("log","at pages/ContactPages/ContactPages.vue:494","开始获取群聊列表"),v.value=k();const e=await s(v.value);p.value=e._id,t("log","at pages/ContactPages/ContactPages.vue:498","UserId.value:",p.value),E.value=await H(p.value)}catch(e){t("error","at pages/ContactPages/ContactPages.vue:501","获取群聊列表失败:",e),E.value=[]}},C=e.ref(""),b=e.ref(),V=async()=>{try{if(!C.value)return void uni.showToast({title:"群名称不能为空",icon:"none"});if(0===B.value.length)return void uni.showToast({title:"请选择群成员",icon:"none"});await new Promise(((e,a)=>{if(o.isConnected)return void e();if(!v.value||!p.value)return void a(new Error("Token或UserId未准备好"));t("log","at pages/ContactPages/ContactPages.vue:522","friendSocket 未连接,正在建立连接..."),o.connect({token:v.value,UserId:p.value});const n=setInterval((()=>{o.isConnected&&(clearInterval(n),t("log","at pages/ContactPages/ContactPages.vue:531","friendSocket 连接已建立"),e())}),100);setTimeout((()=>{clearInterval(n),o.isConnected||a(new Error("连接超时"))}),1e4)}));const e=B.value.map((e=>e.id));b.value={version:"1.1",body:{command:3,userIds:e,message:"我来邀请你们了",sender:p.value,callBackMessage:!0,groupName:C.value,teamCreateReq:{access_token:v.value}}};await o.send(b.value)?await _():t("log","at pages/ContactPages/ContactPages.vue:587","发送新建群聊消息失败")}catch(e){t("log","at pages/ContactPages/ContactPages.vue:590",e),uni.showToast({title:`新建群聊失败${e}`,icon:"none"})}},_=()=>new Promise(((a,n)=>{const l=setTimeout((()=>{n(new Error("超时未返回群聊创建结果"))}),18e4),s=e.watch((()=>o.command),(async e=>{if(t("log","at pages/ContactPages/ContactPages.vue:609","创建一个一次性监听器"),e&&3===o.command){t("log","at pages/ContactPages/ContactPages.vue:611","监听到command的值是3,检查群聊是否创建成功",o.command);try{await N();const e=E.value.find((e=>e.id===o.groupId));e?(t("log","at pages/ContactPages/ContactPages.vue:618","✅ 新建群聊成功",e),B.value=[],u.value=0):t("log","at pages/ContactPages/ContactPages.vue:623","❌ 新建群聊失败 / 群组不存在")}catch(a){t("error","at pages/ContactPages/ContactPages.vue:627","保存AI回复失败:",a),n(a)}finally{o.command=null,o.groupId=null,s(),clearTimeout(l)}}}))})),B=e.ref([]),S=e.ref(!1),x=e.ref(""),T=e.ref([]),D=async()=>{if(!x.value.trim())return void(T.value=[]);const e=x.value.toLowerCase().trim();T.value=await i(v.value,e),t("log","at pages/ContactPages/ContactPages.vue:676","searchResultList.value:",JSON.stringify(T.value))},P=()=>{S.value=!S.value},j=e.ref(null),$=()=>{j.value=null,M.value=!1},L=e.ref("");e.ref(!1),e.ref(!1);const M=e.ref(!1),I=e.ref([]),z=async()=>{try{if(!p.value)return;const e=await(async e=>new Promise(((t,a)=>{uni.request({url:`${R}/api/friendship/getFriendship`,method:"POST",data:{current:1,size:100,sendId:e},success:e=>{var n;if(200===e.statusCode){const o=e.data;if(0===(null==o?void 0:o.code)||"成功"===(null==o?void 0:o.msg)){const e=(null==(n=null==o?void 0:o.data)?void 0:n.records)||[];t(e)}else{const t=e.data.msg||"获取添加我的好友出错啦";a(t)}}else a(`获取添加我的好友失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(p.value);e&&e.length?I.value=await F(e):I.value=[]}catch(e){t("error","at pages/ContactPages/ContactPages.vue:732","获取好友申请列表失败:",e),I.value=[]}},F=async e=>{if(!(null==e?void 0:e.length))return[];try{const t=e.map((e=>e.sendId)),a=await c(v.value,t),n=new Map(a.map((e=>[e.user_id,e]))||[]);return e.map((e=>{const t=n.get(e.sendId);return{...e,avatar:(null==t?void 0:t.avatar)||null}}))}catch(a){return t("error","at pages/ContactPages/ContactPages.vue:751","获取申请人头像失败",a),e}},O=async()=>{if(M.value)try{const e=j.value.sendId,t=L.value||j.value.friendNickName||"",a=j.value.sessionId||Date.now(),n=j.value.id;await(async e=>new Promise(((t,a)=>{uni.request({url:`${R}/api/chatList/save`,method:"POST",header:{"Content-Type":"application/json"},data:e,success:e=>{if(200===e.statusCode){const n=e.data;if(0===(null==n?void 0:n.code)||"成功"===(null==n?void 0:n.msg))t("保存好友成功");else{const e=(null==n?void 0:n.msg)||"保存好友出错啦";a(e)}}else a(`保存好友失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))([{friendNickName:t,sender:p.value,receiver:e,sessionId:a,friendRelationshipId:n},{friendNickName:"",sender:e,receiver:p.value,sessionId:a,friendRelationshipId:n}]),uni.showToast({title:"已同意好友申请",icon:"none"});const o=I.value.find((t=>t.sendId===e));o&&(o.status=1),$(),await g()}catch(e){t("error","at pages/ContactPages/ContactPages.vue:795","同意好友申请失败:",e),uni.showToast({title:"操作失败",icon:"none"})}else try{const e=j.value._id,a=await(async(e,a,n)=>new Promise(((o,l)=>{t("log","at utils/friend-api.js:239","进入sendFriendRequest"),uni.request({url:`${R}/api/friendship/saveShip`,method:"POST",data:{sendId:e,friendNickName:a,recipientId:n},success:e=>{if(200===e.statusCode){const t=e.data;if(0===(null==t?void 0:t.code)||"成功"===(null==t?void 0:t.msg))o("已成功发送好友申请");else{const t=e.data.msg||"发送好友申请出错啦";l(t)}}else l(`发送好友申请失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(p.value,L.value,e);uni.showToast({title:a,icon:"none"}),$()}catch(e){t("error","at pages/ContactPages/ContactPages.vue:806","发送好友申请失败:",e),uni.showToast({title:"发送申请失败",icon:"none"})}};return(n,o)=>{const s=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),j.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay"},[e.createElementVNode("view",{class:"popup-card"},[e.createElementVNode("view",{class:"close-popup-card",onClick:$},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},e.toDisplayString(M.value?"通过好友申请":"申请添加朋友"),1),e.createElementVNode("view",{class:"friend-card"},[e.createElementVNode("view",{class:"friend-card-left"},[j.value.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:j.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(s,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(j.value.username),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(j.value.sessionId),1)])]),e.createElementVNode("view",{class:"nickname-wrapper"},[e.createElementVNode("view",null,"好友备注"),e.withDirectives(e.createElementVNode("input",{class:"input-nickname",placeholder:"请输入好友名称","onUpdate:modelValue":o[0]||(o[0]=e=>L.value=e)},null,512),[[e.vModelText,L.value]])]),e.createElementVNode("view",{class:"text-btn confirm-btn",onClick:O},e.toDisplayString(M.value?"确认通过":"发送申请"),1)])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"tabbar-page page-container"},[e.createElementVNode("swiper",{class:"content-swiper",current:u.value,duration:300,onChange:m},[e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"通讯录")]),e.createElementVNode("view",{class:"tabpage-body"},[e.createElementVNode("scroll-view",{class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[e.createElementVNode("view",{class:"friend-card",onClick:o[1]||(o[1]=e=>r(0))},[e.createElementVNode("view",{class:"friend-card-left"},[e.createElementVNode("view",{class:"friend-avatar",style:{"background-color":"#38bdf8"}},[e.createElementVNode("view",{class:"iconfont icon-Robot",style:{"font-size":"80rpx",color:"#fff"}})])]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(f),1),e.createElementVNode("view",{class:"friend-label"})]),e.createElementVNode("view",{class:"friend-card-right"},[e.createVNode(s,{type:"right"})])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:t.sessionId,onClick:e=>r(t.type,t.sessionId)},[e.createElementVNode("view",{class:"friend-card-left"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(s,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(t.friendNickName),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(t.sessionId),1)]),e.createElementVNode("view",{class:"friend-card-right"},[e.createVNode(s,{type:"right"})])],8,["onClick"])))),128)),e.createElementVNode("view",null,"群聊"),e.createElementVNode("view",{class:"solid-line"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:t.id,onClick:e=>r(t.type,t.id)},[e.createElementVNode("view",{class:"friend-card-left"},[e.createElementVNode("view",{class:"friend-avatar",style:{"background-color":"#ffaaff"}},[e.createElementVNode("view",{class:"iconfont icon-qunliao",style:{"font-size":"80rpx",color:"#fff"}})])]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(t.createTime),1)]),e.createElementVNode("view",{class:"friend-card-right"},[e.createVNode(s,{type:"right"})])],8,["onClick"])))),128))])])])])]),e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"新建群聊")]),e.createElementVNode("view",{class:"tabpage-body"},[e.createElementVNode("view",{class:"group-info"},[e.createElementVNode("view",{class:"group-name"},[e.createElementVNode("view",null,"群名称"),e.withDirectives(e.createElementVNode("input",{class:"input",placeholder:"请输入群名称","onUpdate:modelValue":o[2]||(o[2]=e=>C.value=e)},null,512),[[e.vModelText,C.value]])]),e.createElementVNode("view",{class:"group-member-wrapper"},[e.createElementVNode("view",{class:"member-title"},"群成员"),e.createElementVNode("view",{class:"group-ismember-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"group-ismember-info",key:a},[e.createElementVNode("view",{class:"group-ismember-name"},e.toDisplayString(t.friendNickName),1)])))),128))])]),e.createElementVNode("view",{class:"create-group-btn",onClick:V},"创建群聊")]),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("scroll-view",{class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a=>{var n;return e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:a.receiver},[e.createElementVNode("view",{class:"friend-card-left"},[a.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:a.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(s,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(a.friendNickName),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(a.email),1)]),e.createElementVNode("view",{class:"friend-card-right",onClick:e=>(e=>{t("log","at pages/ContactPages/ContactPages.vue:648","选择的好友id:",e),t("log","at pages/ContactPages/ContactPages.vue:649","selectGroupMember.value=",JSON.stringify(B.value));const a=B.value.findIndex((t=>t.id===e));if(-1===a){const t=h.value.find((t=>t.receiver===e));t&&B.value.push({id:t.receiver,friendNickName:t.friendNickName})}else B.value.splice(a,1)})(a.receiver)},[e.createElementVNode("view",{class:"friend-checkbox"},[(null==(n=B.value)?void 0:n.find((e=>e.id===a.receiver)))?(e.openBlock(),e.createBlock(s,{key:0,type:"checkmarkempty"})):e.createCommentVNode("",!0)])],8,["onClick"])])})),128))])])])])]),e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"添加好友")]),e.createElementVNode("view",{class:"tabpage-body"},[e.createElementVNode("view",{class:"search-warpper"},[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(["search-file-input",{active:S.value}]),onFocus:P,onBlur:P,"onUpdate:modelValue":o[3]||(o[3]=e=>x.value=e),"confirm-type":"search",onConfirm:D},null,34),[[e.vModelText,x.value]]),e.createElementVNode("view",{class:"iconfont icon-sousuo",onClick:D})]),x.value?T.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"search-result"},[e.createElementVNode("scroll-view",{class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(a=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:a.id},[e.createElementVNode("view",{class:"friend-card-left"},[e.createElementVNode("view",{class:"friend-avatar"},[e.createElementVNode("image",{class:"friend-avatar",src:a.avatar,mode:"aspectFill"},null,8,["src"])])]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(a.nickname),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(a.email),1)]),e.createElementVNode("view",{class:"friend-card-right",onClick:e=>(e=>{const a=T.value.find((t=>t._id===e));a?j.value={...a}:(t("warn","at pages/ContactPages/ContactPages.vue:697","未找到该好友"),j.value=null)})(a._id)},[e.createElementVNode("view",{class:"add-btn text-btn"},"添加")],8,["onClick"])])))),128))])])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-result"},"未找到相关用户,请尝试其他关键词")):(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-tip"},"请输入用户名或邮箱进行搜索"))])])]),e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"好友申请")]),e.createElementVNode("view",{class:"tabpage-body"},[I.value.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:1,class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:t.id},[e.createElementVNode("view",{class:"friend-card-left"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(s,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(t.friendNickName||t.sendId),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(t.message||"请求添加你为好友"),1)]),e.createElementVNode("view",{class:"friend-card-right"},[0===t.state?(e.openBlock(),e.createElementBlock("view",{key:0,class:"friend-option"},[e.createElementVNode("view",{class:"agree-btn text-btn",onClick:e=>(e=>{M.value=!0,j.value={...e,username:e.friendNickName||e.sendId}})(t)},"同意",8,["onClick"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-status agreed"},"已同意"))])])))),128))])])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-result"},"暂无好友申请"))])])])],40,["current"]),e.createElementVNode("view",{class:"bottom-tabbar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:t.name,onClick:e=>(e=>{u.value=e})(a),class:"tab-item"},[e.createElementVNode("view",{class:"tab-icon"},e.toDisplayString(t.icon),1),e.createElementVNode("view",{class:"tab-label"},e.toDisplayString(t.label),1)],8,["onClick"])))),128))])])],64)}}},[["__scopeId","data-v-d6fd7c06"]]),re=f({__name:"TemplateSpace",setup(a){const n=e=>{if(!e)return"";const t=Math.floor(e),a=new Date(1e3*t);return`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")} ${a.getHours().toString().padStart(2,"0")}:${a.getMinutes().toString().padStart(2,"0")}:${a.getSeconds().toString().padStart(2,"0")}`},o=e=>{if(!e||0===e)return"0 B";const t=["B","KB","MB","GB","TB"];let a=e,n=0;for(;a>=1024&&n{t("log","at pages/WorkSpace/TemplateSpace/TemplateSpace.vue:188","点击了编辑模板")},c=e.ref(""),i=e.ref([]),r=e=>{c.value=e,"all"===e&&(d.value="全部模板",i.value=y.value),"like"===e&&(d.value="收藏模板",i.value=y.value.filter((e=>!0===e.is_favorite)))},u=e.ref(""),d=e.ref("模板区"),m=e.ref(!1),v=e.ref([]),p=()=>{m.value&&(v.value=[]),m.value=!m.value},f=e.ref(!1),h=()=>{f.value=!f.value},g=e.ref(""),w=e.ref(!1),k=()=>{w.value=!w.value},y=e.ref([{name:"SKILL.md",type:"file",path:"SKILL.md",children:[],file_count:0,directory_count:0,size:4768,modified_time:1776827361.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"该回家看了的法国红酒看来法帝国海军快来尝尝v吧给v复仇计划曝光vi计划日方提供与i哦的风格和健康"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"的法国红酒看来法帝国海军快来尝尝v吧给"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:""},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"}]),E=()=>{m.value?v.value.length===i.value.length?v.value=[]:v.value=i.value.map((e=>e.id)):(!m.value&&i.value&&(i.value=[],c.value="",d.value="模板区"),m.value||i.value||uni.navigateBack({delta:1,fail(){t("log","at pages/WorkSpace/TemplateSpace/TemplateSpace.vue:468","返回失败,进入兜底跳转"),uni.reLaunch({url:"/pages/Chat/Chat"})}}))};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"popup-overlay"},[e.createElementVNode("view",{class:"popup-card"},[e.createElementVNode("view",{class:"close-popup-card"},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"编辑模板"),e.createElementVNode("view",{class:"edit-template-wrapper"},[e.createElementVNode("view",{class:"edit-template-name"},[e.createElementVNode("view",null,"模板名称"),e.withDirectives(e.createElementVNode("input",{"placeholder-style":"请输入模板名称","onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e)},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"edit-template-name"},[e.createElementVNode("view",null,"模板内容"),e.createElementVNode("view",{class:"markdown-editor-pane"},[e.createElementVNode("view",{class:"markdown-pane-header"}," 编辑 "),e.createElementVNode("textarea")]),e.createElementVNode("view",{class:"markdown-preview-pane"},[e.createElementVNode("view",{class:"markdown-pane-header"}," 预览 "),e.createElementVNode("view")])])])])]),e.createElementVNode("view",{class:"workspace-container page-container"},[e.createElementVNode("view",{class:"workspace-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:a[1]||(a[1]=(...e)=>E&&E(...e))},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"}),e.createElementVNode("view",{class:"navbar-before-title workspace-text"},e.toDisplayString(m.value?"全选":u.value),1)]),e.createElementVNode("view",{class:"navbar-title workspace-text"},e.toDisplayString(d.value),1),c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-right"},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-right-text workspace-text",onClick:a[2]||(a[2]=e=>p())}," 完成")):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["iconfont icon-gengduo",f.value?"menu-open":"custom-navbar-icon"]),onClick:h},null,2))])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:a[3]||(a[3]=e=>{p(),h()})},"选择"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item"},"新建模板"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item"},"上传模板")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"search-file-warpper"},[e.createElementVNode("view",{class:"search-file"},[e.createElementVNode("view",{class:"iconfont icon-sousuo"}),e.withDirectives(e.createElementVNode("input",{class:"search-file-input",placeholder:"搜索",onFocus:k,"onUpdate:modelValue":a[4]||(a[4]=e=>g.value=e)},null,544),[[e.vModelText,g.value]])]),w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"cancel-search",onClick:k},"取消")):e.createCommentVNode("",!0)])]),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-grid"},[e.createElementVNode("view",{class:"folder-item",onClick:a[5]||(a[5]=e=>r("all"))},[e.createElementVNode("view",{class:"iconfont icon-a-wenjianjiawenjian folder-item-style"}),e.createElementVNode("view",{class:"folder-name"},"全部模板")]),e.createElementVNode("view",{class:"folder-item",onClick:a[6]||(a[6]=e=>r("like"))},[e.createElementVNode("view",{class:"iconfont icon-a-wenjianjiawenjian folder-item-style"}),e.createElementVNode("view",{class:"folder-name"},"收藏模板")])])),c.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"workspace-content"},[0===i.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createTextVNode(" 暂无模板 ")])):e.createCommentVNode("",!0),i.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"template-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"template-card",key:a},[e.createElementVNode("view",{class:"template-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"template-content"},[e.createElementVNode("view",{class:"template-content-text"},e.toDisplayString(t.content),1)]),e.createElementVNode("view",{class:"template-info-wrapper"},[e.createElementVNode("view",{class:"template-item"},[e.createElementVNode("view",{class:"template-time background-style"},e.toDisplayString(n(t.modified_time)),1),e.createElementVNode("view",{class:"template-cache background-style"},e.toDisplayString(o(t.size)),1)]),e.createElementVNode("view",{class:"template-option"},[e.createElementVNode("view",{class:e.normalizeClass(["iconfont",t.is_favorite?"icon-favorite-fill":"icon-favorite"]),onClick:e=>(e=>{let t;"all"===c.value?t=y.value[e]:"like"===c.value&&(t=y.value.filter((e=>e.is_favorite))[e]);t&&(t.is_favorite=!t.is_favorite),"all"===c.value?i.value=[...y.value]:i.value=y.value.filter((e=>e.is_favorite))})(a)},null,10,["onClick"]),e.createElementVNode("view",{class:"iconfont icon-edit-fill",onClick:s}),e.createElementVNode("view",{class:"iconfont icon-choose-fill"})])])])))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(["workspace-footer",{"folder-actions":v.value.length>0}])},[e.createElementVNode("view",{class:"iconfont icon-shangchuan"}),e.createElementVNode("view",{class:"iconfont icon-fuzhi"}),e.createElementVNode("view",{class:"iconfont icon-wenjian"}),e.createElementVNode("view",{class:"iconfont icon-del"}),e.createElementVNode("view",{class:"iconfont icon-gengduo"})],2)):e.createCommentVNode("",!0)])],64))}},[["__scopeId","data-v-2acd55d4"]]),ue={__name:"text",setup(t){const a=e.ref("");return e.onMounted((()=>{a.value='\n明白了!您希望在我的回复中直接嵌入可编辑的表单卡片。让我试试:\n\n---\n\n
    \n

    \n✏️ 直接在下方编辑任务\n

    \n\n
    \n
    \n\n\n
    \n\n
    \n\n\n
    \n\n
    \n
    \n\n\n
    \n
    \n\n\n
    \n
    \n\n
    \n\n\n
    \n\n
    \n\n
    \n\n\n\n
    \n
    \n\n
    \n\n
    \n\n\n\n\n
    \n
    \n\n
    \n\n\n
    \n
    \n
    \n\n\n\n---\n\n**✅ 您现在可以直接在上方的卡片中填写任务信息,点击"添加任务"即可!**\n\n填写完成后告诉我"已填好"或"添加",我会帮您确认是否成功!\n'})),(t,n)=>{return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{innerHTML:(o=a.value,o.replace(/<\/?script>/gi,(e=>{let t="";for(let a=0;a{const e=n.connectionStatus;return{"status-connected":"connected"===e,"status-connecting":"connecting"===e,"status-error":"error"===e,"status-disconnected":"disconnected"===e}})),i=()=>{o.value.token?n.connect({token:o.value.token,conversationId:y()}):uni.showToast({title:"请输入Token",icon:"none"})},r=()=>{n.disconnect()},u=async()=>{try{await n.sendPing()}catch(e){uni.showToast({title:"发送失败",icon:"none"})}},d=async()=>{if(l.value.trim())try{const e={ws_event:"message",data:{task_call_id:E(),result:{tools:[]}}};await n.send(e),l.value=""}catch(e){uni.showToast({title:"发送失败",icon:"none"})}},m=()=>{if(l.value.trim())try{const e=JSON.parse(l.value);l.value=JSON.stringify(e,null,2)}catch{uni.showToast({title:"不是有效的JSON",icon:"none"})}},v=()=>{};return e.watch((()=>n.isDisconnected),(e=>{e&&n.messageString&&t("log","at pages/text/text2.vue:253",n.messageString)})),e.onMounted((()=>{n.addLog("info","=== Socket测试页面 ==="),n.addLog("info","页面已加载"),n.isConnected&&n.addLog("info","当前已处于连接状态")})),e.onUnmounted((()=>{n.addLog("info","页面卸载")})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"status-card"},[e.createElementVNode("text",{class:"status-label"},"连接状态"),e.createElementVNode("view",{class:e.normalizeClass(["status-value",c.value])},[e.createElementVNode("text",null,e.toDisplayString(e.unref(n).getStatusText()),1)],2),e.unref(n).reconnectAttempts>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status-info"},[e.createElementVNode("text",{class:"reconnect-info"},"重连次数: "+e.toDisplayString(e.unref(n).reconnectAttempts),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"config-card"},[e.createElementVNode("text",{class:"section-title"},"连接配置"),e.createElementVNode("view",{class:"input-group"},[e.createElementVNode("text",{class:"input-label"},"Token"),e.withDirectives(e.createElementVNode("input",{class:"input-field","onUpdate:modelValue":a[0]||(a[0]=e=>o.value.token=e),placeholder:"请输入Token"},null,512),[[e.vModelText,o.value.token]])]),e.createElementVNode("view",{class:"input-group"},[e.createElementVNode("text",{class:"input-label"},"Conversation ID"),e.withDirectives(e.createElementVNode("input",{class:"input-field","onUpdate:modelValue":a[1]||(a[1]=e=>o.value.conversationId=e),placeholder:"请输入会话ID(可选)"},null,512),[[e.vModelText,o.value.conversationId]])])]),e.createElementVNode("view",{class:"control-card"},[e.createElementVNode("button",{class:"btn btn-primary",disabled:e.unref(n).isConnected||e.unref(n).isConnecting,onClick:i},e.toDisplayString(e.unref(n).isConnecting?"连接中...":"连接"),9,["disabled"]),e.createElementVNode("button",{class:"btn btn-danger",disabled:!e.unref(n).isConnected,onClick:r}," 断开 ",8,["disabled"]),e.createElementVNode("button",{class:"btn btn-secondary",onClick:u,disabled:!e.unref(n).isConnected}," Ping ",8,["disabled"])]),e.createElementVNode("view",{class:"send-card"},[e.createElementVNode("text",{class:"section-title"},"发送消息"),e.createElementVNode("view",{class:"send-input-wrapper"},[e.withDirectives(e.createElementVNode("textarea",{class:"send-input","onUpdate:modelValue":a[2]||(a[2]=e=>l.value=e),placeholder:"输入要发送的消息(JSON格式)",disabled:!e.unref(n).isConnected},null,8,["disabled"]),[[e.vModelText,l.value]]),e.createElementVNode("view",{class:"send-buttons"},[e.createElementVNode("button",{class:"btn btn-primary btn-small",disabled:!e.unref(n).isConnected||!l.value.trim(),onClick:d}," 发送 ",8,["disabled"]),e.createElementVNode("button",{class:"btn btn-outline btn-small",disabled:!l.value.trim(),onClick:m}," 格式化 ",8,["disabled"])])]),e.createElementVNode("view",{class:"quick-messages"},[e.createElementVNode("text",{class:"quick-label"},"快捷消息:"),e.createElementVNode("view",{class:"quick-btns"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(t=>(e.openBlock(),e.createElementBlock("button",{key:t.label,class:"quick-btn",disabled:!e.unref(n).isConnected,onClick:e=>(async e=>{const t={ws_event:"message",data:{task_call_id:E(),token:k(),conversation_id:y()}};try{await n.send(t)}catch(a){uni.showToast({title:"发送失败",icon:"none"})}})(t.data)},e.toDisplayString(t.label),9,["disabled","onClick"])))),128))])])]),e.createElementVNode("view",{class:"log-card"},[e.createElementVNode("view",{class:"log-header"},[e.createElementVNode("view",{class:"log-title-wrapper"},[e.createElementVNode("text",{class:"section-title"},"日志"),e.createElementVNode("text",{class:"log-count"},"("+e.toDisplayString(e.unref(n).logs.length)+")",1)]),e.createElementVNode("view",{class:"log-actions"},[e.createElementVNode("button",{class:"btn btn-small btn-secondary",onClick:a[3]||(a[3]=(...t)=>e.unref(n).clearLogs&&e.unref(n).clearLogs(...t))},"清空")])]),e.createElementVNode("scroll-view",{class:"log-list","scroll-y":"",onScrolltoupper:v},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).logs,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass(["log-item","log-"+t.type])},[e.createElementVNode("text",{class:"log-time"},e.toDisplayString(t.time),1),e.createElementVNode("text",{class:"log-content"},e.toDisplayString(t.content),1)],2)))),128))],32)])]))}},[["__scopeId","data-v-939e1d1d"]]),me=f({__name:"CloudDatabase",setup(n){const l=e.ref(""),c=e.ref(""),p=e.ref(""),f=e.ref("user"),h=e=>{f.value=e,T.value=[],M()},g=e.ref("云端数据"),y=e.ref(!1),E=e.ref(!1),N=e.ref([]),C=()=>{y.value=!y.value},b=e.computed((()=>{var e;return 0===T.value.length?"":1===T.value.length?"云端数据":(null==(e=T.value[T.value.length-2])?void 0:e.name)||"云端数据"})),V=()=>{T.value.length>0?(T.value.pop(),g.value=T.value.length>0?T.value[T.value.length-1].name:"云端数据",M()):uni.navigateBack({delta:1,fail(){uni.reLaunch({url:"/pages/Chat/Chat"})}})},_=e.ref([]),B=e.ref([]),S=e.ref([]),x=e.ref([]),T=e.ref([]),D=e=>"folder"===e.type,P=e=>{if(D(e))return"icon-a-wenjianjiawenjian";const t=(e=>{if(D(e))return"folder";const t=e.name||"",a=t.lastIndexOf(".");return-1===a?"":t.slice(a).toLowerCase()})(e),a=(e.type||"").toLowerCase(),n={".png":"icon-wenjiantupian",".jpg":"icon-wenjiantupian",".jpeg":"icon-wenjiantupian",".gif":"icon-wenjiantupian",".svg":"icon-SVG",".bmp":"icon-wenjiantupian",".webp":"icon-wenjiantupian",".mp4":"icon-wenjianshipin",".avi":"icon-wenjianshipin",".mov":"icon-wenjianshipin",".wmv":"icon-wenjianshipin",".flv":"icon-wenjianshipin",".mkv":"icon-wenjianshipin",".mp3":"icon-wenjianyinpin",".wav":"icon-wenjianyinpin",".flac":"icon-wenjianyinpin",".aac":"icon-wenjianyinpin",".pdf":"icon-PDF",".doc":"icon-DOC",".docx":"icon-DOC",".xls":"icon-XLS",".xlsx":"icon-XLS",".ppt":"icon-PPT",".pptx":"icon-PPT",".txt":"icon-TXT",".md":"icon-file-markdown-fill",".zip":"icon-wenjianyasuo",".rar":"icon-wenjianyasuo",".7z":"icon-wenjianyasuo",".tar":"icon-wenjianyasuo",".gz":"icon-wenjianyasuo",".js":"icon-JS",".ts":"icon-daimawenjia",".vue":"icon-daimawenjia",".html":"icon-HTML",".css":"icon-CSS",".py":"icon-daimawenjian",".java":"icon-daimawenjian",".json":"icon-JSON"};return t&&n[t]?n[t]:a.startsWith("image/")?"icon-wenjiantupian":a.startsWith("video/")?"icon-wenjianshipin":a.startsWith("audio/")?"icon-wenjianyinpin":a.includes("spreadsheet")||a.includes("excel")?"icon-XLS":a.includes("document")||a.includes("word")?"icon-DOC":a.includes("presentation")||a.includes("powerpoint")?"icon-PPT":a.includes("pdf")?"icon-PDF":a.includes("zip")||a.includes("rar")||a.includes("tar")||a.includes("gzip")?"icon-wenjianyasuo":"icon-qitawenjian"},j=e=>e?e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB":"",$=e.computed((()=>0===T.value.length?"根目录 (/)":"/"+T.value.map((e=>e.name)).join("/"))),L=e.computed((()=>_.value.length)),M=()=>{const e="user"===f.value?_.value:B.value;if(0===T.value.length)"user"===f.value?S.value=e:x.value=e;else{const e=T.value[T.value.length-1].children||[];"user"===f.value?S.value=e:x.value=e}},I=async()=>{try{l.value=k();const e=await s(l.value);c.value=e._id,p.value=uni.getStorageSync("workspace_id")||"";const t=await d(l.value,"user");_.value=t||[],"user"===f.value&&(S.value=t||[])}catch(e){t("error","at pages/CloudDatabase/CloudDatabase.vue:689","获取文件列表失败:",e),_.value=[],S.value=[]}},z=async e=>{try{e=null==e?"":String(e);const a=await d(l.value,"team","/",e);t("log","at pages/CloudDatabase/CloudDatabase.vue:700","团队云端文件:",JSON.stringify(a)),B.value=a||[],x.value=a||[]}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:704","获取团队文件列表失败:",a),B.value=[],x.value=[]}},F=e=>{D(e)?(T.value.push({path:e.path,name:e.name,children:e.children||[]}),g.value=e.name,M()):A(e)},O=e=>{if(E.value){const t=N.value.indexOf(e.id);return void(-1!==t?N.value.splice(t,1):N.value.push(e.id))}const t=D(e)?["重命名","删除"]:["下载","重命名","删除"];uni.showActionSheet({itemList:t,success:t=>{if(D(e))switch(t.tapIndex){case 0:J(e);break;case 1:H(e)}else switch(t.tapIndex){case 0:A(e);break;case 1:J(e);break;case 2:H(e)}}})},A=async e=>{var a,n;if(D(e))uni.showToast({title:"暂不支持下载目录",icon:"none"});else try{uni.showLoading({title:"获取下载链接..."});const t=await(a=l.value,n=e.id,new Promise(((e,t)=>{uni.request({url:`${o}/cloud_api/file/download`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:a,file_id:n},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.data.download_url);else{const e=(null==n?void 0:n.error)||"获取云端文件url出错啦";t(e)}}else t(`获取云端文件url失败:${a.statusCode}`)},fail:e=>{const a=e.errMsg||"网络错误";t(a)}})})));if(uni.hideLoading(),!t)return void uni.showToast({title:"获取下载链接失败",icon:"error"});uni.showLoading({title:"下载中..."}),uni.downloadFile({url:t,success:t=>{if(uni.hideLoading(),200===t.statusCode){const a=t.tempFilePath;U(e.name,a)}else uni.showToast({title:"下载失败",icon:"error"})},fail:()=>{uni.hideLoading(),uni.showToast({title:"下载失败,请重试",icon:"error"})}})}catch(s){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:821","下载失败:",s),uni.showToast({title:"下载失败,请重试",icon:"error"})}},U=(e,a)=>{const n="/storage/emulated/0/yxd/";var o;o=o=>{plus.io.resolveLocalFileSystemURL(a,(l=>{l.copyTo(o,e,(()=>{const a=n+e;t("log","at pages/CloudDatabase/CloudDatabase.vue:864","文件已保存到:",a),q(e,a)}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:868","复制文件失败:",JSON.stringify(n)),q(e,a)}))}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:873","读取临时文件失败:",JSON.stringify(n)),q(e,a)}))},plus.io.resolveLocalFileSystemURL(n,(e=>{o(e)}),(()=>{plus.io.resolveLocalFileSystemURL("/storage/emulated/0/",(n=>{n.getDirectory("yxd",{create:!0},(e=>{o(e)}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:845","创建 yxd 目录失败:",JSON.stringify(n)),uni.showToast({title:"创建目录失败",icon:"error"}),q(e,a)}))}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:850","访问外部存储根目录失败:",JSON.stringify(n)),uni.showToast({title:"无法访问存储目录",icon:"error"}),q(e,a)}))}))},q=(e,t)=>{uni.showActionSheet({title:`${e} 下载完成`,itemList:["打开文件","选择其他应用打开","仅保存"],success:e=>{switch(e.tapIndex){case 0:W(t);break;case 1:R(t);break;case 2:uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}},fail:()=>{uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}})},W=e=>{uni.openDocument({filePath:e,success:()=>uni.showToast({title:"打开成功",icon:"success"}),fail:a=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:936","打开文件失败:",a),R(e)}})},R=e=>{plus.runtime.openFile(e,{},(e=>{t("log","at pages/CloudDatabase/CloudDatabase.vue:948","文件打开成功")}))},J=e=>{uni.showModal({title:"重命名",content:"请输入新名称",editable:!0,placeholderText:e.name,success:e=>{e.confirm&&e.content&&(uni.showToast({title:"重命名成功",icon:"success"}),G())}})},H=e=>{const a=D(e)?`确定要删除目录"${e.name}"吗?目录内所有文件将被一并删除。`:`确定要删除文件"${e.name}"吗?`;uni.showModal({title:"删除确认",content:a,confirmText:"删除",confirmColor:"#e74c3c",success:async a=>{if(a.confirm){uni.showLoading({title:"删除中..."});try{await(n=l.value,s=e.id,new Promise(((e,t)=>{uni.request({url:`${o}/cloud_api/file/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:n,file_id:s},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.message);else{const e=(null==n?void 0:n.error)||"删除云端文件出错啦";t(e)}}else t(`删除云端文件失败:${a.statusCode}`)},fail:e=>{const a=e.errMsg||"网络错误";t(a)}})}))),uni.hideLoading(),uni.showToast({title:"删除成功",icon:"success"}),G()}catch(c){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1014","deleteCloudFile 失败,尝试 daleteWorkspace:",c);try{const t=e.path||"/"+e.name;p.value&&await r(l.value,p.value,t),uni.showToast({title:"删除成功",icon:"success"}),G()}catch(i){t("error","at pages/CloudDatabase/CloudDatabase.vue:1026","删除失败:",i),uni.showToast({title:"删除失败,请重试",icon:"error"})}}}var n,s}})},G=async()=>{"user"===f.value?await I():await z(Te.value)},X=e.ref(!1),K=e.ref(""),Y=()=>{X.value=!1,K.value=""},Q=async()=>{const e=K.value.trim();if(e)try{if(p.value){const t=("根目录 (/)"===$.value?"/":$.value)+e;await u(l.value,p.value,t)}uni.showToast({title:"创建成功",icon:"success"}),Y(),G()}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:1083","创建文件夹失败:",a),uni.showToast({title:"创建失败,请重试",icon:"error"})}else uni.showToast({title:"请输入目录名称",icon:"none"})},Z=e.ref(!1),ee=e.ref("/"),te=()=>{Z.value=!0,ee.value="/"},ae=()=>{Z.value=!1},ne=()=>{ee.value.trim()||(ee.value="/"),Z.value=!1,le()},le=()=>{oe({count:10,type:"all",success:e=>{const t=(e.tempFiles||[]).map((e=>({tempFilePath:e.path||e.tempFilePath,name:e.name})));0!==t.length?se(t):uni.showToast({title:"未选择文件",icon:"none"})},fail:e=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:1133","选择文件失败:",e)}})},se=async e=>{uni.showLoading({title:"上传中..."});try{const t=ee.value.trim()||"/",a="user"===f.value?"user":"team",n="team"===f.value?Te.value:"";await((e,t,a,n,l)=>new Promise(((s,c)=>{const i=null==l?"":String(l);uni.uploadFile({url:`${o}/cloud_api/file/upload`,method:"POST",header:{},formData:{access_token:e,path:a||"/",type:t,team_id:i},files:n.map((e=>({uri:e.tempFilePath,name:"files"}))),success:e=>{if(200===e.statusCode)try{const t=JSON.parse(e.data);if(t.success)s(t.message);else{const e=(null==t?void 0:t.error)||"获取云端文件url出错啦";c(e)}}catch(t){c("接口返回数据格式异常")}else c(`获取云端文件url失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(l.value,a,t,e,n),uni.hideLoading(),uni.showToast({title:"上传成功",icon:"success"}),G()}catch(a){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1159","上传文件失败:",a),uni.showToast({title:"上传失败,请重试",icon:"error"})}},ce=e.ref([]),ie=e.ref(!1),re=e.computed((()=>ce.value)),ue=e.computed((()=>ce.value.filter((e=>e.team_id&&String(e.team_id)===String(Te.value))))),de=e.ref(!1),me=e.ref(""),ve=async()=>{ie.value=!0;try{const e=k(),t=await(e=>new Promise(((t,a)=>{uni.request({url:`${o}/cloud_api/database/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e},success:e=>{if(200===e.statusCode){const n=e.data;if(n.success)t(n.databases);else{const e=(null==n?void 0:n.error)||"获取用户可访问的数据库列表出错啦";a(e)}}else a(`获取用户可访问的数据库列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(e);ce.value=t||[]}catch(e){t("error","at pages/CloudDatabase/CloudDatabase.vue:1185","获取数据库列表失败:",e),ce.value=[]}finally{ie.value=!1}},pe=()=>{de.value=!0,me.value=""},fe=()=>{de.value=!1,me.value=""},he=async()=>{const e=me.value.trim();if(e){uni.showLoading({title:"创建中..."});try{const t=k();await((e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/cloud_api/database/create`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_name:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.message);else{const e=(null==t?void 0:t.error)||"创建数据库出错啦";n(e)}}else n(`创建数据库失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(t,e),uni.hideLoading(),uni.showToast({title:"创建成功",icon:"success"}),fe(),await ve()}catch(a){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1216","创建数据库失败:",a),uni.showToast({title:"创建失败,请重试",icon:"error"})}}else uni.showToast({title:"请输入数据库名称",icon:"none"})},ge=e.ref(!1),we=e.ref(""),ke=e.ref(""),ye=()=>{ge.value=!0,we.value="",ke.value=""},Ee=()=>{ge.value=!1},Ne=()=>{oe({count:1,type:"all",success:e=>{const t=e.tempFiles[0];we.value=t.name||"unknown",ke.value=t.path},fail:e=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:1245","选择文件失败:",e),uni.showToast({title:"选择文件失败",icon:"none"})}})},Ce=async()=>{var e;if(!ke.value)return void uni.showToast({title:"请选择数据库文件",icon:"none"});const a=null==(e=we.value.split(".").pop())?void 0:e.toLowerCase();if(["db","sqlite","sqlite3"].includes(a)){uni.showLoading({title:"上传中..."});try{const e=k();await((e,t)=>new Promise(((a,n)=>{const l="string"==typeof t?t:t.tempFilePath||t.path||t,s="string"==typeof t?t.split("/").pop()||"database.db":t.name||"database.db";uni.uploadFile({url:`${o}/cloud_api/database/upload/db`,method:"POST",header:{},formData:{access_token:e},file:{name:s,uri:l},files:[{name:"file",uri:l}],success:e=>{if(200===e.statusCode)try{const t=JSON.parse(e.data);if(t.success)a(t.message);else{const e=(null==t?void 0:t.error)||"上传db出错啦";n(e)}}catch(t){n("接口返回数据格式异常")}else n(`上传db失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(e,ke.value),uni.hideLoading(),uni.showToast({title:"上传成功",icon:"success"}),Ee(),await ve()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1273","上传数据库失败:",n),uni.showToast({title:"上传失败,请重试",icon:"error"})}}else uni.showToast({title:"仅支持 .db / .sqlite / .sqlite3 文件",icon:"none"})},be=e=>{uni.showModal({title:"删除数据库",content:`确定要删除数据库"${e.database_name}"吗?此操作不可恢复。`,success:async a=>{if(a.confirm){uni.showLoading({title:"删除中..."});try{const t=k();await((e,t)=>new Promise(((a,n)=>{uni.request({url:`${o}/cloud_api/database/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_id:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.message);else{const e=(null==t?void 0:t.error)||"删除数据库出错啦";n(e)}}else n(`删除数据库失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(t,e.database_id),uni.hideLoading(),uni.showToast({title:"删除成功",icon:"success"}),await ve()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1293","删除数据库失败:",n),uni.showToast({title:"删除失败,请重试",icon:"error"})}}}})},Ve=e=>{uni.navigateTo({url:`/pages/CloudDbDetail/CloudDbDetail?databaseId=${e.database_id}&databaseName=${encodeURIComponent(e.database_name)}&teamId=${e.team_id||""}`})},_e=e=>{if(!e)return"";const t=new Date(1e3*e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},Be=e=>({0:"无权限",1:"只读",2:"读写",3:"管理"}[e]||"未知"),Se=e.ref(!1),xe=e.ref([]),Te=e.ref(""),De=e.ref([]),Pe=e.ref(""),je=e.computed((()=>{if(!Te.value)return"";const e=xe.value.find((e=>e.id===Te.value));return(null==e?void 0:e.description)||""})),$e=e.computed((()=>{if(!Te.value)return"";const e=xe.value.find((e=>e.id===Te.value));return(null==e?void 0:e.type)||""})),Le=e.computed((()=>{if(!c.value||0===De.value.length)return"member";const e=De.value.find((e=>e.receiver===c.value||e.user_id===c.value));return(null==e?void 0:e.role)||"member"}));e.computed((()=>{const e=Le.value;return"admin"===e||"owner"===e}));const Me=async()=>{try{const e=k(),t=await m(e);xe.value=t||[]}catch(e){t("error","at pages/CloudDatabase/CloudDatabase.vue:1362","获取团队列表失败:",e),xe.value=[]}},Ie=async e=>{t("log","at pages/CloudDatabase/CloudDatabase.vue:1368","团队id为",e),Te.value=e;try{const t=k(),a=await v(t,e);De.value=(a||[]).map((e=>{var t,a,n,o,l;return{id:e._id,receiver:e.user_id,user_id:e.user_id,friendNickName:(null==(t=e.user)?void 0:t.username)||"",username:(null==(a=e.user)?void 0:a.username)||"",avatar:(null==(n=e.user)?void 0:n.avatar)||"",email:(null==(o=e.user)?void 0:o.email)||"",role:e.role||(null==(l=e.user)?void 0:l.role)||"member"}}))}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:1385","获取团队成员失败:",a),De.value=[]}T.value=[],g.value="云端数据",await z(e)},ze=async()=>{if(Te.value)try{const e=k(),t=await v(e,Te.value),a=(t||[]).find((e=>e.user_id===c.value)),n=(null==a?void 0:a.role)||"member";if("admin"!==n&&"owner"!==n)return void uni.showToast({title:"仅管理员可管理团队",icon:"none"});De.value=(t||[]).map((e=>{var t,a,n,o,l;return{id:e._id,receiver:e.user_id,user_id:e.user_id,friendNickName:(null==(t=e.user)?void 0:t.username)||"",username:(null==(a=e.user)?void 0:a.username)||"",avatar:(null==(n=e.user)?void 0:n.avatar)||"",email:(null==(o=e.user)?void 0:o.email)||"",role:e.role||(null==(l=e.user)?void 0:l.role)||"member"}}))}catch(e){return t("error","at pages/CloudDatabase/CloudDatabase.vue:1419","获取团队成员失败:",e),void uni.showToast({title:"获取团队信息失败",icon:"none"})}else if(xe.value.length>0){await Ie(xe.value[0].id),Se.value=!0;const e=De.value.find((e=>(e.receiver||e.user_id)===c.value)),t=(null==e?void 0:e.role)||"member";if("admin"!==t&&"owner"!==t)return Se.value=!1,void uni.showToast({title:"仅管理员可管理团队",icon:"none"})}Se.value=!0},Fe=()=>{Se.value=!1,Pe.value="",Ke.value=[],Ye.value=!1},Oe=e.ref(!1),Ae=e.ref(""),Ue=e.ref(""),qe=e.ref(""),We=()=>{const e=xe.value.find((e=>e.id===Te.value));e?(Ae.value=e.name||"",Ue.value=e.description||"",qe.value=e.type||"",Oe.value=!0):uni.showToast({title:"请先选择团队",icon:"none"})},Re=()=>{Oe.value=!1},Je=async()=>{const e=Ae.value.trim();if(e){uni.showLoading({title:"修改中..."});try{const t=k();await((e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/team/update`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,...a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"修改团队信息出错啦";l(e)}}else l(`修改团队信息失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(t,Te.value,{team_name:e,team_description:Ue.value.trim(),team_type:qe.value.trim()}),uni.hideLoading(),uni.showToast({title:"修改成功",icon:"success"}),Re(),await Me(),Te.value=Te.value}catch(a){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1491","修改团队信息失败:",a),uni.showToast({title:"修改失败,请重试",icon:"error"})}}else uni.showToast({title:"请输入团队名称",icon:"none"})},He=async(e,a)=>{const n=e.friendNickName||e.username||e.name;uni.showModal({title:"admin"===a?"设为管理员":"降为成员",content:`确定将"${n}"${"admin"===a?"设为管理员":"降为普通成员"}吗?`,success:async n=>{if(n.confirm){uni.showLoading({title:"操作中..."});try{const t=k(),n=e.receiver||e.user_id;await((e,t,a,n)=>new Promise(((l,s)=>{uni.request({url:`${o}/cloud_api/team/adjust_member_role`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,user_id:a,role:n},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)l(t.message);else{const e=(null==t?void 0:t.error)||"调整团员身份出错啦";s(e)}}else s(`调整团员身份失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";s(t)}})})))(t,Te.value,n,a),uni.hideLoading(),uni.showToast({title:"已"+("admin"===a?"设为管理员":"降为成员"),icon:"success"}),await Xe()}catch(l){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1516","调整成员身份失败:",l),uni.showToast({title:"操作失败,请重试",icon:"error"})}}}})},Ge=async e=>{const a=e.friendNickName||e.username||e.name;uni.showModal({title:"移除成员",content:`确定要移除"${a}"吗?`,success:async a=>{if(a.confirm){uni.showLoading({title:"移除中..."});try{const t=k(),a=e.receiver||e.user_id;await((e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/team/remove_member`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,user_ids:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"移除团队成员出错啦";l(e)}}else l(`移除团队成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(t,Te.value,[a]),uni.hideLoading(),uni.showToast({title:"已移除",icon:"success"}),await Xe()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1542","移除团队成员失败:",n),uni.showToast({title:"移除失败,请重试",icon:"error"})}}}})},Xe=async()=>{const e=k(),t=await v(e,Te.value);De.value=(t||[]).map((e=>{var t,a,n,o;return{id:e._id,receiver:e.user_id,user_id:e.user_id,friendNickName:(null==(t=e.user)?void 0:t.username)||"",username:(null==(a=e.user)?void 0:a.username)||"",avatar:(null==(n=e.user)?void 0:n.avatar)||"",email:(null==(o=e.user)?void 0:o.email)||"",role:e.role||"member"}}))},Ke=e.ref([]),Ye=e.ref(!1),Qe=async()=>{const e=Pe.value.trim();if(e)try{const t=k(),a=await i(t,e);Ke.value=a||[],Ye.value=!0,Ke.value.length}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:1584","搜索用户失败:",a),Ke.value=[],Ye.value=!0}else uni.showToast({title:"请输入用户名或邮箱",icon:"none"})},Ze=e=>{uni.showModal({title:"添加成员",content:`确定将"${e.username}"添加到当前团队吗?`,success:async a=>{if(a.confirm){uni.showLoading({title:"添加中..."});try{const t=k();await((e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/team/add_member`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,user_ids:a,role:"admin"},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"添加团队成员出错啦";l(e)}}else l(`添加团队成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(t,Te.value,[e._id]),uni.hideLoading(),uni.showToast({title:"添加成功",icon:"success"}),Pe.value="",Ke.value=[],Ye.value=!1,await Xe()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1610","添加团队成员失败:",n),uni.showToast({title:"添加失败,请重试",icon:"error"})}}}})},et=()=>{const e=xe.value.find((e=>e.id===Te.value)),a=e?e.name:"当前团队";uni.showModal({title:"删除团队",content:`确定要删除团队"${a}"吗?此操作不可撤销,团队内所有文件和数据将被永久删除。`,confirmText:"删除",confirmColor:"#e74c3c",success:async e=>{if(e.confirm){uni.showLoading({title:"删除中..."});try{await(a=l.value,n=Te.value,new Promise(((e,t)=>{uni.request({url:`${o}/cloud_api/team/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:a,team_id:n},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.message);else{const e=(null==n?void 0:n.error)||"删除团队出错啦";t(e)}}else t(`删除团队失败:${a.statusCode}`)},fail:e=>{const a=e.errMsg||"网络错误";t(a)}})}))),uni.hideLoading(),uni.showToast({title:"团队已删除",icon:"success"}),Te.value="",De.value=[],x.value=[],T.value=[],g.value="云端数据",await Me(),Fe()}catch(s){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1644","删除团队失败:",s),uni.showToast({title:"删除失败,请重试",icon:"error"})}}var a,n}})};return e.onMounted((async()=>{await I(),await Me(),await ve()})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),Se.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay",onClick:Fe},[e.createElementVNode("view",{class:"popup-card",onClick:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Fe},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"团队管理"),e.createElementVNode("scroll-view",{class:"team-manage-body","scroll-y":""},[0===De.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},"暂无团队成员")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"member-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(De.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"member-item",key:t._id||t.receiver},[e.createElementVNode("view",{class:"member-avatar"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"default-avatar"},[e.createVNode(o,{type:"person-filled",size:"60rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"member-info"},[e.createElementVNode("view",{class:"member-name"},e.toDisplayString(t.friendNickName||t.username||t.name),1),e.createElementVNode("view",{class:"member-label"},e.toDisplayString(t.email||t.sessionId||""),1)]),e.createElementVNode("view",{class:"member-actions"},[(t.receiver||t.user_id)===c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["member-role",Le.value])},e.toDisplayString("owner"===Le.value?"创建者":"管理员"),3)):"owner"===t.role?(e.openBlock(),e.createElementBlock("view",{key:1,class:"member-role owner"},"创建者")):"admin"===t.role?(e.openBlock(),e.createElementBlock("view",{key:2,class:"member-actions-right"},[e.createElementVNode("view",{class:"member-action-btn demote-admin",onClick:e=>He(t,"member")},"降为成员",8,["onClick"]),e.createElementVNode("view",{class:"member-action-btn remove-member",onClick:e=>Ge(t)},"移除",8,["onClick"])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"member-actions-right"},[e.createElementVNode("view",{class:"member-action-btn set-admin",onClick:e=>He(t,"admin")},"设为管理",8,["onClick"]),e.createElementVNode("view",{class:"member-action-btn remove-member",onClick:e=>Ge(t)},"移除",8,["onClick"])]))])])))),128))]))]),e.createElementVNode("view",{class:"invite-section"},[e.createElementVNode("view",{class:"invite-input-wrapper"},[e.withDirectives(e.createElementVNode("input",{class:"invite-input",placeholder:"输入用户名或邮箱搜索","onUpdate:modelValue":n[0]||(n[0]=e=>Pe.value=e),onConfirm:Qe},null,544),[[e.vModelText,Pe.value]]),e.createElementVNode("view",{class:"invite-btn text-btn",onClick:Qe},"搜索")]),Ke.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-result-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ke.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"search-result-item",key:t._id,onClick:e=>Ze(t)},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"result-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"result-default-avatar"},[e.createVNode(o,{type:"person-filled",size:"40rpx",color:"#fff"})])),e.createElementVNode("view",{class:"result-info"},[e.createElementVNode("text",{class:"result-name"},e.toDisplayString(t.username),1),e.createElementVNode("text",{class:"result-email"},e.toDisplayString(t.email),1)]),e.createElementVNode("view",{class:"result-add-btn"},"添加")],8,["onClick"])))),128))])):Pe.value&&Ye.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"search-empty"},"未找到匹配用户")):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"edit-team-section"},[e.createElementVNode("view",{class:"edit-team-btn",onClick:We},"修改团队信息")]),e.createElementVNode("view",{class:"delete-team-section"},[e.createElementVNode("view",{class:"delete-team-btn",onClick:et},"删除团队")])])])):e.createCommentVNode("",!0),Oe.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-overlay",onClick:Re},[e.createElementVNode("view",{class:"popup-card",onClick:n[4]||(n[4]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Re},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"修改团队信息"),e.createElementVNode("view",{class:"edit-team-form"},[e.createElementVNode("view",{class:"form-label"},"团队名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[2]||(n[2]=e=>Ae.value=e),type:"text",placeholder:"输入团队名称"},null,512),[[e.vModelText,Ae.value]])]),e.createElementVNode("view",{class:"form-label"},"团队描述"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=e=>Ue.value=e),type:"text",placeholder:"输入团队描述"},null,512),[[e.vModelText,Ue.value]])])]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:Re},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:Je},"确认修改")])])])):e.createCommentVNode("",!0),X.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"popup-overlay",onClick:Y},[e.createElementVNode("view",{class:"popup-card",onClick:n[6]||(n[6]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Y},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"新建"+e.toDisplayString("user"===f.value?"个人":"团队")+"目录",1),e.createElementVNode("view",{class:"new-folder-name"},"目录名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[5]||(n[5]=e=>K.value=e),type:"text",placeholder:"输入目录名称"},null,512),[[e.vModelText,K.value]])]),e.createElementVNode("view",{class:"nf-path-label"},"当前路径"),e.createElementVNode("view",{class:"nf-path-display"},e.toDisplayString($.value),1),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:Y},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:Q},"确认")])])])):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"popup-overlay",onClick:ae},[e.createElementVNode("view",{class:"popup-card",onClick:n[8]||(n[8]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:ae},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"上传文件"),e.createElementVNode("view",{class:"upload-path-label"},"上传路径"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[7]||(n[7]=e=>ee.value=e),type:"text",placeholder:"输入上传路径,如:/myfolder"},null,512),[[e.vModelText,ee.value]])]),e.createElementVNode("view",{class:"upload-path-hint"},"默认为根目录 /,后端会自动创建不存在的文件夹"),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:ae},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:ne},"确认上传")])])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"popup-overlay",onClick:fe},[e.createElementVNode("view",{class:"popup-card",onClick:n[10]||(n[10]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:fe},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"新建个人数据库"),e.createElementVNode("view",{class:"new-folder-name"},"数据库名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[9]||(n[9]=e=>me.value=e),type:"text",placeholder:"输入数据库名称"},null,512),[[e.vModelText,me.value]])]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:fe},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:he},"确认")])])])):e.createCommentVNode("",!0),ge.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"popup-overlay",onClick:Ee},[e.createElementVNode("view",{class:"popup-card",onClick:n[11]||(n[11]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Ee},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"上传数据库文件"),e.createElementVNode("view",{class:"upload-db-hint"},"支持 .db / .sqlite / .sqlite3 格式的 SQLite 数据库文件"),e.createElementVNode("view",{class:"upload-file-area",onClick:Ne},[we.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"selected-file"},e.toDisplayString(we.value),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload-hint"},"点击选择数据库文件"))]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:Ee},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:Ce},"确认上传")])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"cloud-db-container page-container"},[e.createElementVNode("view",{class:"cloud-db-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:V},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"}),T.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-before-title"},e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"navbar-title"},e.toDisplayString(g.value),1),e.createElementVNode("view",{class:"navbar-right"}),y.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:n[12]||(n[12]=e=>{E.value=!E.value,E.value||(N.value=[]),C()})},"选择"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item",onClick:n[13]||(n[13]=e=>{X.value=!0,K.value="",C()})},"新建文件夹")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"category-tabs"},[e.createElementVNode("view",{class:e.normalizeClass(["category-tab",{active:"user"===f.value}]),onClick:n[14]||(n[14]=e=>h("user"))}," 个人 ",2),e.createElementVNode("view",{class:e.normalizeClass(["category-tab",{active:"team"===f.value}]),onClick:n[15]||(n[15]=e=>h("team"))}," 团队 ",2)])]),e.createElementVNode("scroll-view",{class:"cloud-db-content","scroll-y":""},["user"===f.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"云端文件"),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(L.value>0?"("+L.value+")":""),1)]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("view",{class:"action-btn",onClick:te},[e.createVNode(o,{type:"upload",size:"16"}),e.createElementVNode("text",null,"上传文件")])])]),e.createElementVNode("view",{class:"section-body"},[0===S.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"暂无云端文件")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"file-item",key:t.id,onClick:e=>F(t),onLongpress:e=>O(t)},[e.createElementVNode("view",{class:e.normalizeClass(["file-icon",D(t)?"is-directory":"is-file"])},[e.createElementVNode("view",{class:e.normalizeClass(["iconfont",P(t)])},null,2)],2),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-meta"},[e.createElementVNode("text",{class:"file-type-tag"},e.toDisplayString(D(t)?"目录":"文件"),1),t.size?(e.openBlock(),e.createElementBlock("text",{key:0,class:"file-size"},e.toDisplayString(j(t.size)),1)):e.createCommentVNode("",!0)])],40,["onClick","onLongpress"])))),128))]))])]),e.createElementVNode("view",{class:"section-divider"}),e.createElementVNode("view",{class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"云端数据库"),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(!ie.value&&re.value.length>0?"("+re.value.length+")":""),1)]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("view",{class:"action-btn",onClick:ye},[e.createVNode(o,{type:"upload",size:"16"}),e.createElementVNode("text",null,"上传数据库")]),e.createElementVNode("view",{class:"action-btn",onClick:pe},[e.createVNode(o,{type:"plus",size:"16"}),e.createElementVNode("text",null,"新建数据库")])])]),e.createElementVNode("view",{class:"section-body"},[ie.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-area"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):0===re.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"暂无数据库")])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"table-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"table-item",key:t.database_id,onClick:e=>Ve(t),onLongpress:e=>be(t)},[e.createElementVNode("view",{class:"table-icon"},[e.createVNode(o,{type:"compose",size:"22",color:"#3b86ff"})]),e.createElementVNode("view",{class:"table-info"},[e.createElementVNode("view",{class:"table-name"},[e.createTextVNode(e.toDisplayString(t.database_name)+" ",1),e.createElementVNode("text",{class:e.normalizeClass(["db-tag",t.team_id?"tag-team":"tag-personal"])},e.toDisplayString(t.team_id?"团队共享":"个人私有"),3)]),e.createElementVNode("view",{class:"table-desc"},e.toDisplayString(t.table_count||0)+" 张表 · "+e.toDisplayString(Be(t.access_level)),1)]),e.createElementVNode("view",{class:"table-meta"},[e.createElementVNode("text",{class:"table-rows"},e.toDisplayString(_e(t.modified_time)),1),e.createVNode(o,{type:"right",size:"14",color:"#999"})])],40,["onClick","onLongpress"])))),128))]))])])],64)):e.createCommentVNode("",!0),"team"===f.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"section-block team-manage-block",onClick:ze},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-qunliao"}),e.createElementVNode("text",null,"团队管理")]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("text",{class:"team-count"},e.toDisplayString(xe.value.length)+" 个团队",1),e.createVNode(o,{type:"right",size:"14",color:"#999"})])])]),e.createElementVNode("view",{class:"section-divider"}),xe.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"team-selector"},[e.createElementVNode("scroll-view",{"scroll-x":"",class:"team-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(xe.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["team-chip",{active:Te.value===t.id}]),key:t.id,onClick:e=>Ie(t.id)},e.toDisplayString(t.name),11,["onClick"])))),128))]),$e.value||je.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"team-info"},[$e.value?(e.openBlock(),e.createElementBlock("text",{key:0,class:"team-type-tag"},e.toDisplayString($e.value),1)):e.createCommentVNode("",!0),je.value?(e.openBlock(),e.createElementBlock("text",{key:1,class:"team-desc-text"},e.toDisplayString(je.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),!Te.value&&xe.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip select-team-tip"},[e.createElementVNode("view",{class:"iconfont icon-qunliao"}),e.createElementVNode("text",null,"请选择一个团队")])):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"团队云端文件")]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("view",{class:"action-btn",onClick:te},[e.createVNode(o,{type:"upload",size:"16"}),e.createElementVNode("text",null,"上传文件")])])]),e.createElementVNode("view",{class:"section-body"},[0===x.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"暂无团队云端文件")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"file-item",key:t.id,onClick:e=>F(t),onLongpress:e=>O(t)},[e.createElementVNode("view",{class:e.normalizeClass(["file-icon",D(t)?"is-directory":"is-file"])},[e.createElementVNode("view",{class:e.normalizeClass(["iconfont",P(t)])},null,2)],2),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-meta"},[e.createElementVNode("text",{class:"file-type-tag"},e.toDisplayString(D(t)?"目录":"文件"),1),t.size?(e.openBlock(),e.createElementBlock("text",{key:0,class:"file-size"},e.toDisplayString(j(t.size)),1)):e.createCommentVNode("",!0)])],40,["onClick","onLongpress"])))),128))]))])])):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"section-divider"})):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"团队云端数据库")])]),e.createElementVNode("view",{class:"section-body"},[ie.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-area"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):0===ue.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"暂无团队数据库")])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"table-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"table-item",key:t.database_id,onClick:e=>Ve(t)},[e.createElementVNode("view",{class:"table-icon"},[e.createVNode(o,{type:"compose",size:"22",color:"#3b86ff"})]),e.createElementVNode("view",{class:"table-info"},[e.createElementVNode("view",{class:"table-name"},[e.createTextVNode(e.toDisplayString(t.database_name)+" ",1),e.createElementVNode("text",{class:"db-tag tag-team"},"团队共享")]),e.createElementVNode("view",{class:"table-desc"},e.toDisplayString(t.table_count||0)+" 张表 · "+e.toDisplayString(Be(t.access_level)),1)]),e.createElementVNode("view",{class:"table-meta"},[e.createElementVNode("text",{class:"table-rows"},e.toDisplayString(_e(t.modified_time)),1),e.createVNode(o,{type:"right",size:"14",color:"#999"})])],8,["onClick"])))),128))]))])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])])],64)}}},[["__scopeId","data-v-2d96f7d1"]]),ve=f({__name:"CloudDbDetail",props:{databaseId:{type:String,default:""},databaseName:{type:String,default:""},teamId:{type:String,default:""}},setup(n){const l=n,s=e.ref(l.databaseId||""),c=e.ref(l.databaseName||""),i=e.ref(l.teamId||""),r=e.ref(2),u=e.ref(0),d=e.ref([]),v=e.ref(!1),f=e.ref(null),h=e.ref([]),g=e.computed((()=>{var e;if(h.value.length>0){const e=new Set;return h.value.forEach((t=>Object.keys(t).forEach((t=>e.add(t))))),Array.from(e).filter((e=>"_row_id"!==e&&"_id"!==e))}return(null==(e=f.value)?void 0:e.columns)?f.value.columns.map((e=>e.name)).filter((e=>"_row_id"!==e)):[]})),y=e.ref(!1),E=()=>{y.value=!y.value},C=()=>{uni.navigateBack()},b=async()=>{v.value=!0;try{const e=k(),t=await((e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/database/tables`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_id:t,is_detail:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.tables);else{const e=(null==t?void 0:t.error)||"获取用户可访问的数据库列表出错啦";l(e)}}else l(`获取用户可访问的数据库列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(e,s.value,!0);d.value=(t||[]).map((e=>({table_name:e.name,row_count:e.row_count||0,columns:e.columns||[]}))),u.value=d.value.length}catch(e){t("error","at pages/CloudDbDetail/CloudDbDetail.vue:282","获取表列表失败:",e),d.value=[]}finally{v.value=!1}},V=async e=>{f.value=e,h.value=[],uni.showLoading({title:"加载中..."});try{const t=k(),a=await((e,t,a,n="20",l="0")=>new Promise(((s,c)=>{uni.request({url:`${o}/cloud_api/database/table/data`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_id:t,table_name:a,limit:n,offset:l},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)s(t.data);else{const e=(null==t?void 0:t.error)||"获取表数据出错啦";c(e)}}else c(`获取表数据失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,s.value,e.table_name);h.value=a||[],uni.hideLoading()}catch(t){uni.hideLoading(),uni.showToast({title:"string"==typeof t?t:"加载表数据失败",icon:"none"}),h.value=[]}},_=e=>{uni.showModal({title:"删除表",content:`确定要删除表"${e.table_name}"吗?此操作不可恢复。`,success:async a=>{var n;if(a.confirm){uni.showLoading({title:"删除中..."});try{const t=k();await(async(e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/database/table/drop`,method:"POST",data:{access_token:e,database_id:t,table_name:a},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)n(t.message);else{const e=t.error||"删除数据库中的表出错啦";l(e)}}else l(`删除数据库中的表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(t,s.value,e.table_name),uni.hideLoading(),uni.showToast({title:"删除成功",icon:"success"}),(null==(n=f.value)?void 0:n.table_name)===e.table_name&&(f.value=null,h.value=[]),await b()}catch(l){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:335","删除表失败:",l),uni.showToast({title:"删除失败,请重试",icon:"error"})}}}})},B=e=>{const a=e._row_id||e._id;if(!a)return void uni.showToast({title:"无法识别该行",icon:"none"});const n=g.value;if(0===n.length)return void uni.showToast({title:"无可用列",icon:"none"});const l=n[0];uni.showModal({title:`编辑 ${l}`,editable:!0,placeholderText:e[l]||"",content:"",success:async n=>{if(n.confirm&&void 0!==n.content){uni.showLoading({title:"更新中..."});try{const t=k();await((e,t,a,n,l)=>new Promise(((s,c)=>{uni.request({url:`${o}/cloud_api/database/table/update/by/id`,method:"POST",data:{access_token:e,database_id:t,table_name:a,where_data:n,update_data:l},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)s(t.message);else{const e=t.error||"更新表数据出错啦";c(e)}}else c(`更新表数据失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,s.value,f.value.table_name,{_row_id:a},{[l]:n.content}),uni.hideLoading(),uni.showToast({title:"更新成功",icon:"success"}),e[l]=n.content}catch(c){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:397","更新失败:",c),uni.showToast({title:c,icon:"error"})}}}})},S=e.ref(!1),x=e.ref(""),T=e.ref(""),D=e.ref(""),P=()=>{S.value=!1},j=()=>{oe({count:1,type:"all",success:e=>{const t=e.tempFiles[0];T.value=t.name||"unknown",D.value=t.path},fail:e=>{t("error","at pages/CloudDbDetail/CloudDbDetail.vue:434","选择文件失败:",e),uni.showToast({title:"选择文件失败",icon:"none"})}})},$=async()=>{const e=x.value.trim()||"";if(D.value){uni.showLoading({title:"导入中..."});try{const t=k();await((e,t,a,n,l)=>new Promise(((s,c)=>{const i="string"==typeof n?n:n.tempFilePath||n.path||n,r="string"==typeof n?n.split("/").pop()||"file":n.name||"file";uni.uploadFile({url:`${o}/cloud_api/database/import`,method:"POST",header:{},formData:{access_token:e,force_overwrite:t,database_id:a,table_name:l},file:{name:r,uri:i},files:[{name:"file",uri:i}],success:e=>{if(200===e.statusCode)try{const t=JSON.parse(e.data);if(t.success)s(t.message);else{const e=(null==t?void 0:t.error)||"导入文件到数据库出错啦";c(e)}}catch(t){c("接口返回数据格式异常")}else c(`导入文件到数据库失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,!1,s.value,D.value,e),uni.hideLoading(),uni.showToast({title:"导入成功",icon:"success"}),P(),await b()}catch(a){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:474","导入失败:",a),"table_exists"===a?uni.showToast({title:"文件已存在",icon:"error"}):uni.showToast({title:"导入失败,请重试",icon:"error"})}}else uni.showToast({title:"请选择文件",icon:"none"})},L=e.ref(!1),M=e.ref([]),I=async()=>{L.value=!0,uni.showLoading({title:"加载中..."});try{const e=k();let t;t=i.value?await p(e,s.value,"team_id",i.value):await p(e,s.value,"user_id",N());const a=Array.isArray(t)?t:[];M.value=a.map((e=>{var t,a,n;return e.team?{_id:e._id,database_id:e.database_id,access_level:e.access_level,permType:"team_id",id:e.team._id||e.team.id,name:e.team.name}:e.team_id?{database_id:e.database_id,access_level:e.access_level,permType:"team_id",id:e.team_id,name:(null==(t=e.database)?void 0:t.database_name)||""}:{database_id:e.database_id,access_level:e.access_level,permType:"user_id",id:e.user_id||(null==(a=e.database)?void 0:a.user_id)||N(),name:(null==(n=e.database)?void 0:n.database_name)||""}}))}catch(e){t("error","at pages/CloudDbDetail/CloudDbDetail.vue:544","获取权限失败:",e),M.value=[]}uni.hideLoading()},z=()=>{L.value=!1},F=(e,a)=>{if("delete"===a)uni.showModal({title:"移除权限",content:`确定要移除"${e.name}"的权限吗?`,success:async a=>{if(a.confirm){uni.showLoading({title:"移除中..."});try{const t=k();await((e,t,a,n)=>new Promise(((l,s)=>{const c={access_token:e,database_id:t};"user_id"===a?c.user_id=n:"team_id"===a&&(c.team_id=n),uni.request({url:`${o}/cloud_api/database/permission/delete`,method:"POST",data:c,header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)l(t.message);else{const e=t.error||"删除 团队/用户 对数据库权限出错啦";s(e)}}else s(`删除 团队/用户 对数据库权限失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";s(t)}})})))(t,s.value,e.permType,e.id),uni.hideLoading(),uni.showToast({title:"已移除",icon:"success"}),await I()}catch(n){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:574","移除权限失败:",n),uni.showToast({title:"操作失败,请重试",icon:"error"})}}}});else{const a=["无权限访问","仅访问","管理员完全控制","团队完全控制"],n=e.access_level||0;uni.showActionSheet({title:"选择权限级别",itemList:a.map(((e,t)=>`${t}. ${e}`)),success:async a=>{const l=a.tapIndex;if(l!==n){uni.showLoading({title:"更新中..."});try{const t=k();await((e,t,a,n,l)=>new Promise(((s,c)=>{const i={access_token:e,database_id:t,access_level:l};"user_id"===a?i.user_id=n:"team_id"===a&&(i.team_id=n),uni.request({url:`${o}/cloud_api/database/permission/update`,method:"POST",data:i,header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)s(t.message);else{const e=t.error||"修改/增加 团队/用户 对数据库权限出错啦";c(e)}}else c(`修改/增加 团队/用户 对数据库权限失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,s.value,e.permType,e.id,l),uni.hideLoading(),uni.showToast({title:"已更新",icon:"success"}),await I()}catch(c){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:608","更新权限失败:",c),uni.showToast({title:"操作失败,请重试",icon:"error"})}}}})}},O=e.ref(!1),A=e.ref([]),U=e.ref(""),q=()=>{O.value=!1},W=async()=>{U.value?uni.showModal({title:"确认移交",content:"移交后数据库将归属于该团队,确定继续吗?",success:async e=>{if(e.confirm){uni.showLoading({title:"移交中..."});try{const e=k();await(async(e,t,a)=>new Promise(((n,l)=>{uni.request({url:`${o}/cloud_api/database/transfer_to_team`,method:"POST",data:{access_token:e,database_id:t,team_id:a},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)n(t.message);else{const e=t.error||"个人数据库移交团队出错啦";l(e)}}else l(`个人数据库移交团队失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(e,s.value,U.value),uni.hideLoading(),uni.showToast({title:"移交成功",icon:"success"}),q(),setTimeout((()=>{uni.navigateBack()}),1e3)}catch(a){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:670","移交失败:",a),uni.showToast({title:"移交失败,请重试",icon:"error"})}}}}):uni.showToast({title:"请选择目标团队",icon:"none"})},R=e=>({0:"无权限访问",1:"仅访问",2:"管理员完全控制",3:"团队完全控制"}[e]||"未知");return e.onMounted((()=>{var e;const t=getCurrentPages(),a=t[t.length-1],n=(null==(e=a.$page)?void 0:e.options)||a.options||{};s.value=n.databaseId||"",c.value=decodeURIComponent(n.databaseName||"数据库详情"),i.value=n.teamId||"",s.value&&b()})),(n,o)=>{const l=a(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"cloud-db-detail-wrapper"},[e.createElementVNode("view",{class:"status-bar"}),S.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay",onClick:P},[e.createElementVNode("view",{class:"popup-card",onClick:o[1]||(o[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:P},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"导入文件到数据库"),e.createElementVNode("view",{class:"new-folder-name"},"表名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>x.value=e),type:"text",placeholder:"输入表名称"},null,512),[[e.vModelText,x.value]])]),e.createElementVNode("view",{class:"new-folder-name"},"文件"),e.createElementVNode("view",{class:"upload-file-area",onClick:j},[T.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"selected-file"},e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload-hint"},"点击选择文件(支持 CSV/Excel/SQLite)"))]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:P},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:$},"确认导入")])])])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-overlay",onClick:z},[e.createElementVNode("view",{class:"popup-card",onClick:o[2]||(o[2]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:z},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"权限管理"),e.createElementVNode("scroll-view",{class:"permission-body","scroll-y":""},[0===M.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},"暂无权限记录")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"permission-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"permission-item",key:t._id||t.id},[e.createElementVNode("view",{class:"perm-info"},[e.createElementVNode("text",{class:"perm-type"},e.toDisplayString("team_id"===t.permType?"团队":"个人"),1)]),e.createElementVNode("view",{class:"perm-level"},e.toDisplayString(R(t.access_level)),1),e.createElementVNode("view",{class:"perm-actions"},[e.createElementVNode("view",{class:"perm-action-btn",onClick:e=>F(t,"change")},"修改",8,["onClick"]),e.createElementVNode("view",{class:"perm-action-btn delete",onClick:e=>F(t,"delete")},"移除",8,["onClick"])])])))),128))]))]),e.createElementVNode("view",{class:"close-permission-btn",onClick:z},"关闭")])])):e.createCommentVNode("",!0),O.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"popup-overlay",onClick:q},[e.createElementVNode("view",{class:"popup-card",onClick:o[3]||(o[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:q},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"移交数据库到团队"),e.createElementVNode("scroll-view",{class:"transfer-body","scroll-y":""},[0===A.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},"暂无可用团队")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"transfer-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["transfer-item",{active:U.value===t.id}]),key:t.id,onClick:e=>U.value=t.id},[e.createElementVNode("text",{class:"transfer-name"},e.toDisplayString(t.name),1),U.value===t.id?(e.openBlock(),e.createBlock(l,{key:0,type:"checkmarkempty",size:"20",color:"#3b86ff"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]))]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:q},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:W},"确认移交")])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"cloud-db-detail page-container"},[e.createElementVNode("view",{class:"cloud-db-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:C},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"})]),e.createElementVNode("view",{class:"navbar-title"},e.toDisplayString(c.value),1),e.createElementVNode("view",{class:"navbar-right"},[e.createElementVNode("view",{class:"iconfont icon-gengduo custom-navbar-icon",onClick:E})])]),y.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:o[4]||(o[4]=e=>{S.value=!0,x.value="",T.value="",D.value="",E()})},"导入文件"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item",onClick:o[5]||(o[5]=e=>{I(),E()})},"权限管理"),i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"solid-line"})),i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"menu-card-item",onClick:o[6]||(o[6]=e=>{(async()=>{O.value=!0,U.value="";try{const e=k(),t=await m(e);A.value=t||[]}catch(e){t("error","at pages/CloudDbDetail/CloudDbDetail.vue:632","获取团队列表失败:",e),A.value=[]}})(),E()})},"移交团队"))])):e.createCommentVNode("",!0)]),e.createElementVNode("scroll-view",{class:"cloud-db-content","scroll-y":""},[e.createElementVNode("view",{class:"db-info-bar"},[e.createElementVNode("text",{class:"db-info-text"},e.toDisplayString(u.value)+" 张表",1),e.createElementVNode("text",{class:"db-info-text"},"权限:"+e.toDisplayString(R(r.value)),1)]),e.createElementVNode("view",{class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-biaoge"}),e.createElementVNode("text",null,"数据表")])]),e.createElementVNode("view",{class:"section-body"},[v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-area"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):0===d.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"暂无数据表")])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"table-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"table-item",key:t.table_name,onClick:e=>V(t),onLongpress:e=>_(t)},[e.createElementVNode("view",{class:"table-icon"},[e.createVNode(l,{type:"compose",size:"22",color:"#3b86ff"})]),e.createElementVNode("view",{class:"table-info"},[e.createElementVNode("view",{class:"table-name"},e.toDisplayString(t.table_name),1),e.createElementVNode("view",{class:"table-desc"},e.toDisplayString(t.row_count||0)+" 条记录",1)]),e.createElementVNode("view",{class:"table-meta"},[e.createVNode(l,{type:"right",size:"14",color:"#999"})])],40,["onClick","onLongpress"])))),128))]))])]),f.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"section-block"},[e.createElementVNode("view",{class:"section-divider"}),e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-biaoge"}),e.createElementVNode("text",null,e.toDisplayString(f.value.table_name),1)]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("text",{class:"row-count"},e.toDisplayString(h.value.length)+" / "+e.toDisplayString(f.value.row_count||0)+" 条",1)])]),e.createElementVNode("view",{class:"section-body"},[0===h.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"empty-tip"},[e.createElementVNode("text",null,"暂无数据")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"data-table-wrapper"},[e.createElementVNode("scroll-view",{"scroll-x":"",class:"data-table-scroll"},[e.createElementVNode("view",{class:"data-table"},[e.createElementVNode("view",{class:"data-row data-header"},[e.createElementVNode("view",{class:"data-cell index-cell"},"#"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t,class:"data-cell"},e.toDisplayString(t),1)))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"data-row",key:t._row_id||a,onClick:e=>B(t)},[e.createElementVNode("view",{class:"data-cell index-cell"},e.toDisplayString(a+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a=>{return e.openBlock(),e.createElementBlock("view",{key:a,class:"data-cell"},e.toDisplayString(null==(n=t[a])?"":"object"==typeof n?JSON.stringify(n):String(n)),1);var n})),128))],8,["onClick"])))),128))])])]))])])):e.createCommentVNode("",!0)])])])}}},[["__scopeId","data-v-144a6cf9"]]);__definePage("pages/Login/Login",h),__definePage("pages/Chat/Chat",le),__definePage("pages/WorkSpace/WorkSpace",se),__definePage("pages/UserProfileModal/UserProfileModal",ce),__definePage("pages/ContactPages/ContactPages",ie),__definePage("pages/WorkSpace/TemplateSpace/TemplateSpace",re),__definePage("pages/text/text",ue),__definePage("pages/text/text2",de),__definePage("pages/CloudDatabase/CloudDatabase",me),__definePage("pages/CloudDbDetail/CloudDbDetail",ve);const pe={onLaunch:function(){t("log","at App.vue:4","App Launch")},onShow:function(){t("log","at App.vue:7","App Show")},onHide:function(){t("log","at App.vue:10","App Hide")}};const{app:fe,Vuex:he,Pinia:ge}=function(){const t=e.createVueApp(pe),a=function(){const t=e.effectScope(!0),a=t.run((()=>e.ref({})));let n=[],o=[];const l=e.markRaw({install(e){x(l),l._a=e,e.provide(T,l),e.config.globalProperties.$pinia=l,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:t,_s:new Map,state:a});return l}();return t.use(a),{app:t,pinia:a}}();uni.Vuex=he,uni.Pinia=ge,fe.provide("__globalStyles",__uniConfig.styles),fe._component.mpType="app",fe._component.render=()=>{},fe.mount("#app")}(Vue); +let T;const D=e=>T=e,P=Symbol();function j(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var $,L;(L=$||($={})).direct="direct",L.patchObject="patch object",L.patchFunction="patch function";const M=()=>{};function I(t,a,n,o=M){t.push(a);const l=()=>{const e=t.indexOf(a);e>-1&&(t.splice(e,1),o())};return!n&&e.getCurrentScope()&&e.onScopeDispose(l),l}function z(e,...t){e.slice().forEach((e=>{e(...t)}))}const F=e=>e();function O(t,a){t instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>t.set(a,e))),t instanceof Set&&a instanceof Set&&a.forEach(t.add,t);for(const n in a){if(!a.hasOwnProperty(n))continue;const o=a[n],l=t[n];j(l)&&j(o)&&t.hasOwnProperty(n)&&!e.isRef(o)&&!e.isReactive(o)?t[n]=O(l,o):t[n]=o}return t}const A=Symbol();const{assign:U}=Object;function q(t,a,n={},o,l,s){let c;const i=U({actions:{}},n),r={deep:!0};let u,d,m,v=[],p=[];const f=o.state.value[t];let h;function g(a){let n;u=d=!1,"function"==typeof a?(a(o.state.value[t]),n={type:$.patchFunction,storeId:t,events:m}):(O(o.state.value[t],a),n={type:$.patchObject,payload:a,storeId:t,events:m});const l=h=Symbol();e.nextTick().then((()=>{h===l&&(u=!0)})),d=!0,z(v,n,o.state.value[t])}s||f||(o.state.value[t]={}),e.ref({});const w=s?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{U(e,t)}))}:M;function k(e,a){return function(){D(o);const n=Array.from(arguments),l=[],s=[];function c(e){l.push(e)}function i(e){s.push(e)}let r;z(p,{args:n,name:e,store:E,after:c,onError:i});try{r=a.apply(this&&this.$id===t?this:E,n)}catch(u){throw z(s,u),u}return r instanceof Promise?r.then((e=>(z(l,e),e))).catch((e=>(z(s,e),Promise.reject(e)))):(z(l,r),r)}}const y={_p:o,$id:t,$onAction:I.bind(null,p),$patch:g,$reset:w,$subscribe(a,n={}){const l=I(v,a,n.detached,(()=>s())),s=c.run((()=>e.watch((()=>o.state.value[t]),(e=>{("sync"===n.flush?d:u)&&a({storeId:t,type:$.direct,events:m},e)}),U({},r,n))));return l},$dispose:function(){c.stop(),v=[],p=[],o._s.delete(t)}},E=e.reactive(y);o._s.set(t,E);const C=(o._a&&o._a.runWithContext||F)((()=>o._e.run((()=>(c=e.effectScope()).run(a)))));for(const V in C){const a=C[V];if(e.isRef(a)&&(b=a,!e.isRef(b)||!b.effect)||e.isReactive(a))s||(!f||j(N=a)&&N.hasOwnProperty(A)||(e.isRef(a)?a.value=f[V]:O(a,f[V])),o.state.value[t][V]=a);else if("function"==typeof a){const e=k(V,a);C[V]=e,i.actions[V]=a}}var N,b;return U(E,C),U(e.toRaw(E),C),Object.defineProperty(E,"$state",{get:()=>o.state.value[t],set:e=>{g((t=>{U(t,e)}))}}),o._p.forEach((e=>{U(E,c.run((()=>e({store:E,app:o._a,pinia:o,options:i}))))})),f&&s&&n.hydrate&&n.hydrate(E.$state,f),u=!0,d=!0,E}function W(t,a,n){let o,l;const s="function"==typeof a;function c(t,n){const c=e.hasInjectionContext();(t=t||(c?e.inject(P,null):null))&&D(t),(t=T)._s.has(o)||(s?q(o,a,l,t):function(t,a,n,o){const{state:l,actions:s,getters:c}=a,i=n.state.value[t];let r;r=q(t,(function(){i||(n.state.value[t]=l?l():{});const a=e.toRefs(n.state.value[t]);return U(a,s,Object.keys(c||{}).reduce(((a,o)=>(a[o]=e.markRaw(e.computed((()=>{D(n);const e=n._s.get(t);return c[o].call(e,e)}))),a)),{}))}),a,n,0,!0)}(o,l,t));return t._s.get(o)}return"string"==typeof t?(o=t,l=s?n:a):(l=t,o=t.id),c.$id=o,c}const R=new class{constructor(){this.ws=null,this.url="ws://cloud.yuxindazhineng.com/cloud_api/phone/app_ws",this.options={token:"",conversationId:"",onMessage:null,onError:null,onReconnect:null,onOpen:null,onClose:null},this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.reconnectDelay=3e3,this.reconnectTimer=null,this.heartbeatTimer=null,this.isManualClose=!1}connect(e={}){this.options={...this.options,...e},this.isManualClose=!1,this.ws&&this.close();try{this.ws=uni.connectSocket({url:this.url,success:()=>{t("log","at utils/socket.js:44","WebSocket 连接请求已发送")},fail:e=>{t("error","at utils/socket.js:47","WebSocket 连接失败:",e),this.handleError(e)}}),this.initEventHandlers()}catch(a){this.handleError(a)}}initEventHandlers(){this.ws&&(this.ws.onOpen((e=>{var a,n,o,l;t("log","at utils/socket.js:74","WebSocket 已连接"),this.reconnectAttempts>0&&(null==(n=(a=this.options).onReconnect)||n.call(a)),null==(l=(o=this.options).onOpen)||l.call(o,e),this.reconnectAttempts=0})),this.ws.onMessage((e=>{try{const a=JSON.parse(e.data);t("log","at utils/socket.js:87","收到了返回消息:",a),this.handleMessage(a)}catch(a){t("error","at utils/socket.js:91","消息解析失败:",a),uni.setStorageSync("currentSessionId",e.data.task_call_id)}})),this.ws.onError((e=>{t("error","at utils/socket.js:96","WebSocket 错误:",e),this.handleError(e)})),this.ws.onClose((e=>{var a,n;t("log","at utils/socket.js:100","WebSocket 已关闭:",e.code,e.reason),null==(n=(a=this.options).onClose)||n.call(a,e),this.stopHeartbeat(),!this.isManualClose&&this.reconnectAttempts{if(!this.isConnected())return void n(new Error("WebSocket 未连接"));const o=JSON.stringify(e);t("log","at utils/socket.js:199","发送的消息是:",o),this.ws.send({data:o,success:()=>a(),fail:e=>{t("error","at utils/socket.js:207","发送消息失败:",e),n(e)}})}))}reconnect(){this.reconnectTimer||(this.reconnectAttempts++,t("log","at utils/socket.js:233",`尝试重连 (${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.reconnectTimer=setTimeout((()=>{this.reconnectTimer=null,this.isManualClose||this.connect(this.options)}),this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval((()=>{this.isConnected()?this.send({ws_event:"ping"}).catch((()=>{t("log","at utils/socket.js:255","心跳发送失败,准备重连"),this.reconnectTimer||this.isManualClose||this.reconnect()})):!this.isManualClose&&this.reconnectAttemptst("log","at utils/socket.js:341","连接已关闭"),fail:e=>t("error","at utils/socket.js:342","关闭失败:",e)})}catch(e){t("error","at utils/socket.js:350","关闭连接出错:",e)}this.ws=null}this.reconnectAttempts=0}updateOptions(e){this.options={...this.options,...e}}},J=W("socket",(()=>{const a=e.ref("disconnected"),n=e.ref([]),o=e.ref(""),l=e.ref(!1),s=e.ref({token:"",conversationId:""});e.ref("");const c=e.ref([]),i=e.ref(20),r=e.ref(""),u=e.computed((()=>"connected"===a.value)),d=e.computed((()=>"connecting"===a.value)),m=e.computed((()=>"disconnected"===a.value)),v=e.computed((()=>"error"===a.value)),p=e.computed((()=>n.value[n.value.length-1]));function f(e,a){const n=new Date,o=`${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}`;c.value.push({type:e,connect:a,time:o}),c.value.length>i.value&&(c.value=c.value.slice(-i.value)),t("log","at stores/socket.js:54",`[${e.toUpperCase()}] ${a}`)}function h(){a.value="connected",f("success","连接成功!发送auth"),t("log","at stores/socket.js:117","连接成功!发送auth"),s.value.token,R.send({type:"auth",access_token:s.value.token})}function g(){"disconnected"!==a.value&&(a.value="disconnected",f("warn","连接已断开"))}function w(e){f("error",`Socket错误: ${JSON.stringify(e)}`),a.value="error"}function k(e){a.value="connecting",f("warn",`重连中... (${e}/5)`)}function y(e){f("receive",`收到: ${JSON.stringify(e)}`);const{type:a,conversation_id:n,message_id:s,data:c}=e||{};switch(t("log","at stores/socket.js:162",`[handleMessage] type = ${a}, data = ${JSON.stringify(c)}`),a){case"auth_ok":f("success","连接成功");break;case"auth_fail":l.value=!1,r.value=(null==c?void 0:c.reason)||(null==e?void 0:e.reason)||"unknown",f("error",`认证失败: ${r.value}`);break;case"chat_ack":f("warn","AI成功收到用户发送的消息");break;case"render":f("warn","AI正在回复信息"),function(e){if("exit"===e)return t("log","at stores/socket.js:224","ai结束思考"),void(l.value=!1);if(!e||"object"!=typeof e)return;if("event_callback"===e.cmd&&"中断成功"===e.info)return t("log","at stores/socket.js:234","后端确认中断成功"),f("warn",`中断确认: ${e.info}`),void(l.value=!1);const{role:a,chunk:n,message_role:s,meaasge_uuid:c,message_type:i,task_call_id:r}=e;l.value||!n&&"assistant"!==s||(t("log","at stores/socket.js:251","ai开始思考"),o.value="",l.value=!0);n&&(o.value+=n,l.value||(t("log","at stores/socket.js:260","修改状态为开始思考"),l.value=!0))}(c);break;case"pc_offline":f("warn","PC 端已离线");break;default:f("info",`未知事件类型: ${a}`)}}return{connectionStatus:a,messageString:o,isThinking:l,logs:c,config:s,authFailReason:r,isConnected:u,isConnecting:d,isDisconnected:m,isError:v,lastMessage:p,connect:function(e={}){n.value=[],o.value="",s.value={...s.value,...e},f("info",`准备连接WebSocket。Token:${s.value.token||"未设置"}。ConversationId: ${s.value.conversationId||"未设置"}`),s.value.token&&s.value.conversationId?(a.value="connecting",R.connect({token:s.value.token,conversationId:s.value.conversationId,onMessage:y,onError:w,onOpen:h,onClose:g,onReconnect:k}),setTimeout((()=>{"connecting"===a.value&&(a.value="error",f("error","连接超时(10s)"))}),1e4)):f("error","Token和ConversationId都不能为空")},disconnect:function(){R.close(),a.value="disconnected",f("warn","已主动断开连接")},send:async function(e){if(t("log","at stores/socket.js:98","检查到要发生消息为:",e),!u.value)throw f("error","发送失败: 连接未建立"),new Error("连接未建立");try{return await R.send(e),f("send","string"==typeof e?e:JSON.stringify(e)),!0}catch(a){throw f("error",`发送失败: ${a.message||a}`),a}},addLog:f,clearLogs:function(){c.value=[]},getStatusText:function(){return{connecting:"连接中",connected:"已连接",disconnected:"未连接",error:"连接错误"}[a.value]||"未知状态"}}})),H="http://chat.yuxindazhineng.com",G=async e=>new Promise(((a,n)=>{uni.request({url:`${H}/api/chatList/getChatFriend`,method:"POST",header:{"Content-Type":"application/json"},data:{size:500,current:1,sendId:e},success:e=>{var o;if(200===e.statusCode){const l=e.data;if(t("log","at utils/friend-api.js:20","获取到的好友列表消息",l),0===(null==l?void 0:l.code)||"成功"===(null==l?void 0:l.msg)){const e=null==(o=l.data)?void 0:o.records;if(e.length>0){const t=e[0].receiver;t&&uni.setStorageSync("receiverId",t)}a(e)}else{const t=e.data.error||"获取好友列表出错啦";n(t)}}else n(`获取好友列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})),K=async e=>new Promise(((t,a)=>{uni.request({url:`${H}/api/group/getGroup`,method:"POST",header:{"Content-Type":"application/json"},data:{size:500,current:1,contactId:e},success:e=>{var n;if(200===e.statusCode){const o=e.data;if(0===(null==o?void 0:o.code)||"成功"===(null==o?void 0:o.msg)){const e=null==(n=o.data)?void 0:n.records;t(e)}else{const t=e.data.error||"获取群聊列表出错啦";a(t)}}else a(`获取群聊列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})),X=e=>new Promise(((t,a)=>{uni.uploadFile({url:`${H}/api/file/upload`,filePath:e,name:"file",success:e=>{const n=JSON.parse(e.data);0===n.code?t(n.data):a(n.msg||"上传失败")},fail:e=>{a(e.errMsg||"网络错误")}})}));const Y=new class{constructor(){this.ws=null,this.url="wss://wss.yuxindazhineng.com/ws",this.options={token:"",UserId:"",onMessage:null,onError:null,onReconnect:null,onOpen:null,onClose:null},this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.reconnectDelay=3e3,this.reconnectTimer=null,this.heartbeatTimer=null,this.isManualClose=!1}connect(e={}){this.options={...this.options,...e},this.isManualClose=!1,this.ws&&(t("log","at utils/friend-socket.js:37","关闭现有连接"),this.close());try{this.ws=uni.connectSocket({url:this.url,success:()=>{t("log","at utils/friend-socket.js:45","WebSocket 连接请求已发送")},fail:e=>{t("error","at utils/friend-socket.js:48","WebSocket 连接失败:",e),this.handleError(e)}}),this.initEventHandlers()}catch(a){this.handleError(a)}}initEventHandlers(){this.ws&&(this.ws.onOpen((e=>{var a,n,o,l;t("log","at utils/friend-socket.js:75","WebSocket 已连接"),this.reconnectAttempts>0&&(null==(n=(a=this.options).onReconnect)||n.call(a)),null==(l=(o=this.options).onOpen)||l.call(o,e),this.reconnectAttempts=0})),this.ws.onMessage((e=>{try{const a=JSON.parse(e.data);t("log","at utils/friend-socket.js:88","收到了返回消息:",a),this.handleMessage(a)}catch(a){t("error","at utils/friend-socket.js:91","消息解析失败:",a),uni.setStorageSync("currentSessionId",e.data.task_call_id)}})),this.ws.onError((e=>{t("error","at utils/friend-socket.js:96","WebSocket 错误:",JSON.stringify(e)),this.handleError(e)})),this.ws.onClose((e=>{var a,n;t("log","at utils/friend-socket.js:100","WebSocket 已关闭:",e.code,e.reason),null==(n=(a=this.options).onClose)||n.call(a,e),!this.isManualClose&&this.reconnectAttempts{if(!this.isConnected())return void n(new Error("WebSocket 未连接"));const o=JSON.stringify(e);t("log","at utils/friend-socket.js:171","发送的消息是:",o),this.ws.send({data:o,success:()=>a(),fail:e=>{t("error","at utils/friend-socket.js:179","发送消息失败:",e),n(e)}})}))}reconnect(){this.reconnectTimer||(this.reconnectAttempts++,t("log","at utils/friend-socket.js:205",`尝试重连 (${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.reconnectTimer=setTimeout((()=>{this.reconnectTimer=null,this.isManualClose||this.connect(this.options)}),this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval((()=>{this.isConnected()?this.send({ws_event:"ping"}).catch((()=>{t("log","at utils/friend-socket.js:227","心跳发送失败,准备重连"),this.reconnectTimer||this.isManualClose||this.reconnect()})):!this.isManualClose&&this.reconnectAttempts{})),this.ws.onMessage((()=>{})),this.ws.onError((()=>{})),this.ws.onClose((()=>{}));try{this.ws.close({success:()=>t("log","at utils/friend-socket.js:314","连接已关闭"),fail:e=>t("error","at utils/friend-socket.js:315","关闭失败:",e)})}catch(e){t("error","at utils/friend-socket.js:323","关闭连接出错:",e)}this.ws=null}this.reconnectAttempts=0}updateOptions(e){this.options={...this.options,...e}}},Q=W("friendSocket",(()=>{const a=e.ref("disconnected"),n=e.ref([]),o=e.ref(""),l=e.ref({token:"",UserId:""});e.ref("");const s=e.ref(null),c=e.ref(null),i=e.ref(!1),r=e.ref([]),u=e.ref(20),d=e.computed((()=>"connected"===a.value)),m=e.computed((()=>"connecting"===a.value)),v=e.computed((()=>"disconnected"===a.value)),p=e.computed((()=>"error"===a.value)),f=e.computed((()=>n.value[n.value.length-1]));function h(e,a){const n=new Date,o=`${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}`;r.value.push({type:e,connect:a,time:o}),r.value.length>u.value&&(r.value=r.value.slice(-u.value)),t("log","at stores/friend-socket.js:57",`[${e.toUpperCase()}] ${a}`)}function g(){a.value="connected",h("success","连接成功!"),async function(){const e={version:"1.1",body:{command:7,sender:b(),avatar:"",sessionId:"",message:"",callBackMessage:!1}};try{await Y.send(e),h("send","string"==typeof e?e:JSON.stringify(e))}catch(t){throw h("error",`发送验证失败: ${t.message||t}`),t}}()}function w(){"disconnected"!==a.value&&(a.value="disconnected",h("warn","连接已断开"))}function k(e){h("error",`Socket错误: ${JSON.stringify(e)}`),a.value="error"}function y(e){a.value="connecting",h("warn",`重连中... (${e}/5)`)}function E(e){h("receive",`收到: ${JSON.stringify(e)}`);const a=e.body||e,{callBackMessage:n,groupName:o,command:l,groupId:r}=a||{};switch(l){case 3:s.value=l,c.value=r;break;case 7:s.value=l;break;case 1:t("log","at stores/friend-socket.js:199","有好友消息"),i.value=!0;break;case 9:t("log","at stores/friend-socket.js:204","群消息发送成功/有新群消息"),i.value=!0;break;default:h("info","未知事件类型")}}return{connectionStatus:a,messageString:o,logs:r,config:l,command:s,groupId:c,MessageReceived:i,isConnected:d,isConnecting:m,isDisconnected:v,isError:p,lastMessage:f,connect:function(e={}){n.value=[],o.value="",l.value={...l.value,...e},h("info",`准备连接FriendsWebSocket。Token:${l.value.token||"未设置"}。UserId: ${l.value.UserId||"未设置"}`),l.value.token&&l.value.UserId?(a.value="connecting",Y.connect({token:l.value.token,UserId:l.value.UserId,onMessage:E,onError:k,onOpen:g,onClose:w,onReconnect:y}),setTimeout((()=>{"connecting"===a.value&&(a.value="error",h("error","连接超时(10s)"))}),1e4)):h("error","Token和UserId都不能为空")},disconnect:function(){Y.close(),a.value="disconnected",h("warn","已主动断开连接")},send:async function(e){if(!d.value)throw h("error","发送失败: 连接未建立"),new Error("连接未建立");try{return await Y.send(e),h("send","string"==typeof e?e:JSON.stringify(e)),!0}catch(t){throw h("error",`发送失败: ${t.message||t}`),t}},addLog:h,clearLogs:function(){r.value=[]},getStatusText:function(){return{connecting:"连接中",connected:"已连接",disconnected:"未连接",error:"连接错误"}[a.value]||"未知状态"}}})),{registerUTSInterface:Z,initUTSProxyClass:ee,initUTSProxyFunction:te,initUTSPackageName:ae,initUTSIndexClassName:ne,initUTSClassName:oe}=uni,le="limeChooseFile",se=te(!1,{moduleName:"lime-choose-file 文件选择",moduleType:"",errMsg:"",main:!0,package:ae(le,true),class:ne(le,true),name:"chooseFileByJs",keepAlive:!1,params:[{name:"options",type:"UTSSDKModulesLimeChooseFileChooseFileOptionJSONObject"}],return:""}),ce=g({__name:"Chat",setup(n){const c=Q(),u=()=>{c.isConnected||(le.value&&ce.value?c.connect({token:le.value,UserId:ce.value}):t("warn","at pages/Chat/Chat.vue:314","Token或UserId未准备好"))},d=J(),m=e.ref(0),v=(e,t)=>{let a='';return e.forEach(((e,n)=>{const o=0===n?"th":"td",l=e.split("|").filter((e=>""!==e.trim()));a+="",l.forEach(((e,n)=>{const l=t[n]?` style="text-align:${t[n]}"`:"";a+=`<${o}${l} style="padding:6px 10px;border:1px solid #ddd">${e.trim()}`})),a+=""})),a+="
    ",a},p=e=>{if(!e)return"";e=f(e);try{e=(e=>{const t=e.split("\n");let a=[],n=!1,o=[],l=[];for(let s=0;se.trim())).map((e=>e.trim().startsWith(":")&&e.trim().endsWith(":")?"center":e.trim().endsWith(":")?"right":"left"));continue}o.push(e),n=!0}else n&&o.length>0&&(a.push(v(o,l)),o=[],l=[],n=!1),a.push(e)}return n&&o.length>0&&a.push(v(o,l)),a.join("\n")})(e);return x(e)}catch(a){return t("error","at pages/Chat/Chat.vue:413","解析失败",a),e}},f=e=>{const t=/]*>([\s\S]*?)<\/script>/i.test(e),a=/<(form|input|select|textarea|button)\b[^>]*>/i.test(e);let n=e.replace(/]*>([\s\S]*?)<\/script>/gi,"");if(n=n.replace(/<\/?minimax:tool_call>/g,(e=>e.replace(//g,">"))).replace(/<\|[\w]+?\|>/g,(e=>e.replace(//g,">"))),t||a){return'

    表单仅预览,不可操作!!!

    '+n}return n},h=e=>{uni.previewImage({urls:[e]})},g=e=>{uni.downloadFile({url:e,success:e=>{uni.openDocument({filePath:e.tempFilePath,showMenu:!0})}})},w=e=>e?e<1?(1024*e).toFixed(0)+"KB":e.toFixed(2)+"MB":"0KB",k=e=>{if(!e||"string"!=typeof e)return{textContent:e||"",files:[]};const a=e.match(/\[文件信息:(\[.*?\])\]/);if(!a)return{textContent:e,files:[]};try{const t=JSON.parse(a[1]);return{textContent:e.replace(a[0],"").trim(),files:t}}catch(n){return t("error","at pages/Chat/Chat.vue:490","解析文件信息失败:",n),{textContent:e,files:[]}}},N=async()=>{try{const e="0123456789abcdef";let t="";for(let s=0;s<24;s++)t+=e[Math.floor(Math.random()*e.length)];const a=await(async(e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/create_workspace`,method:"POST",data:{access_token:e,name:t},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data.workspace_id;if(t)a(t);else{const t=e.data.error||"创建工作区id出错啦";n(t)}}else n(`创建工作区id失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(le.value,t);if(!a)return void uni.showToast({title:"工作区创建失败",icon:"none"});const n=uni.getStorageSync("yxd_login_info");let o="";n&&(o=n.username||"");const l=await(async(e,t,a,n)=>new Promise(((o,l)=>{uni.request({url:`${s}/create_conversation`,method:"POST",data:{access_token:e,workspace_id:t,title:a,sender:n},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data.conversation_id;if(t)o(t);else{const t=e.data.error||"创建新对话id出错啦";l(t)}}else l(`创建新对话失败:${e.statusCode}`)}})})))(le.value,a,"新会话",o);if(!l)return void uni.showToast({title:"新会话创建失败",icon:"none"});ue()}catch(e){t("error","at pages/Chat/Chat.vue:535","新建普通会话失败:",e),uni.showToast({title:"创建会话失败,请重试",icon:"none"})}},b=e.ref(!1),_=()=>{b.value=!1},B=e.ref(!1),S=()=>{B.value=!B.value},T=()=>{oe.value&&uni.setStorageSync("currentSessionId",oe.value),uni.navigateTo({url:"/pages/WorkSpace/WorkSpace"})},D=()=>{oe.value&&uni.setStorageSync("currentSessionId",oe.value),uni.navigateTo({url:"/pages/CloudDatabase/CloudDatabase"})},P=()=>{uni.reLaunch({url:"/pages/Login/Login"})},j=e.ref([]),$=e.ref([]),L=()=>new Promise(((t,a)=>{if(d.isConnected)return t();const n=e.watch((()=>d.isConnected),(e=>{e&&(n(),t())})),o=e.watch((()=>d.connectionStatus),(e=>{"error"===e&&(n(),o(),a(new Error("连接失败")))}));d.connect({token:le.value,conversationId:oe.value})})),M=e.ref(!1),I=e.ref(!1),z=e.ref(!1),F=e.ref([]),O=e.ref(null),A=e.ref(!1),U=e.ref(""),q=e.ref([]),W=e=>{U.value=e.content||"",q.value=(e=>{const t=e.match(/https?:\/\/[^\s<>"{}|\\^`[\]]+/gi);return t?[...new Set(t)]:[]})(U.value),A.value=!0},R=()=>{A.value=!1,U.value="",q.value=[]},Y=async()=>{c.isConnecting||await u();const e=uni.getStorageSync("receiverId"),t=F.value.length>0,a={command:1,sender:ce.value,receiver:e,avatar:"",sessionId:oe.value,message:ae.value,callBackMessage:!1};t&&(a.contentType=1,a.uploadVos=F.value);const n={version:"1.1",body:a};c.send(n);const o={sender:ce.value,receiver:e,content:ae.value,taskId:null,avatar:null,createTime:"",messageType:"null",contentJson:t?JSON.stringify(F.value):"null"};ge.value=[...ge.value,o],ae.value="",F.value=[],setTimeout((()=>{Ce()}),1e3)},Z=async()=>{c.isConnecting||await u();const e=F.value.length>0,t={command:9,groupId:oe.value,message:ae.value||"",callBackMessage:!e,messageType:e?1:0,sender:ce.value};e&&(t.uploadVos=F.value);const a={version:"1.1",body:t};c.send(a);const n={id:ge.value.length+1,message:ae.value,messageType:e?1:0,groupId:null,createTime:"",contentJson:e?JSON.stringify(F.value):"",sender:ce.value};ge.value=[...ge.value,n],ae.value="",F.value=[],setTimeout((()=>{Ne()}),1e3)},ee=async()=>{try{await L();let e=ae.value;if(F.value.length){const t=JSON.stringify(F.value);e=e?`${e}\n[文件信息:${t}]`:`[文件信息:${t}]`}const t={type:"chat",conversation_id:oe.value,content:e};d.send(t),M.value=!0,I.value=!0,ge.value=[...ge.value,{role:"user",content:e}],O.value="streaming-"+Date.now(),ge.value=[...ge.value,{role:"assistant",content:"",_streaming:!0,_id:O.value}],ae.value="",F.value=[],Ve()}catch(e){M.value=!1,uni.showToast({title:`用户发送消息失败${e}`,icon:"error"})}},te=async()=>{t("log","at pages/Chat/Chat.vue:895","中断对话 - 当前会话ID:",oe.value);try{await d.send({type:"stop",conversation_id:oe.value}),t("log","at pages/Chat/Chat.vue:901","中断指令已发送成功")}catch(e){t("error","at pages/Chat/Chat.vue:903","中断指令发送失败:",e)}O.value&&(ge.value=ge.value.filter((e=>e._id!==O.value)),O.value=null),M.value=!1,d.isThinking=!1,I.value=!1,ae.value="",F.value=[],uni.showToast({title:"已中断",icon:"none",duration:1500})};e.watch((()=>d.isThinking),((e,a)=>{if(t("log","at pages/Chat/Chat.vue:927","isThinking 变化:",a,"→",e,"messageString:",d.messageString),!a&&e)return t("log","at pages/Chat/Chat.vue:930","AI开始回复(跨设备同步),锁定输入框"),M.value=!0,void(O.value||(O.value="streaming-"+Date.now(),ge.value=[...ge.value,{role:"assistant",content:"",_streaming:!0,_id:O.value}]));a&&!e&&(t("log","at pages/Chat/Chat.vue:946","AI回复结束(正常/中断),解锁并刷新消息列表"),O.value&&(ge.value=ge.value.filter((e=>e._id!==O.value)),O.value=null),Ee(),M.value=!1,I.value=!1,ae.value="",F.value=[])})),e.watch((()=>d.authFailReason),(t=>{"pc offline"===t&&(M.value=!1,d.authFailReason="",e.nextTick((()=>{uni.showModal({title:"提示",content:"PC端不在线,不可聊天",showCancel:!1,confirmText:"知道了"})})))})),e.watch((()=>d.messageString),(e=>{if(!O.value||!d.isThinking)return;const t=ge.value.findIndex((e=>e._id===O.value));if(t>=0){const a={...ge.value[t],content:e};ge.value.splice(t,1,a),Ve()}}));const ae=e.ref(""),ne=e.ref([]),oe=e.ref(""),le=e.ref(""),ce=e.ref(""),ie=e.ref(""),re=e.ref(null),ue=async()=>{try{le.value=E(),t("log","at pages/Chat/Chat.vue:1020","token:",le.value),ne.value=await(async e=>new Promise(((t,a)=>{uni.request({url:`${s}/get_user_conversations`,method:"POST",data:{access_token:e},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const a=e.data.conversations;t(a)}else a(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(le.value)||[];const e=C();e&&ne.value.some((t=>t._id===e))?oe.value=e:ne.value.length>0?oe.value=ne.value[0]._id:oe.value="",t("log","at pages/Chat/Chat.vue:1032","保存会话id:",oe.value),uni.setStorageSync("currentSessionId",oe.value)}catch(e){uni.showToast({title:`获取会话列表失败${e}`,icon:"error"})}},de=e.ref([]),me=e=>{if(!e)return null;const t=de.value.find((t=>t.receiver===e));return(null==t?void 0:t.avatar)||null},ve=async e=>{if(!(null==e?void 0:e.length))return[];try{const t=e.map((e=>e.receiver)),a=await r(le.value,t),n=new Map(a.map((e=>[e.user_id,e]))||[]);return e.map((e=>{const t=n.get(e.receiver);return{...e,avatar:(null==t?void 0:t.avatar)||null}}))}catch(a){return t("error","at pages/Chat/Chat.vue:1088","获取好友头像失败",a),e}},pe=e.ref([]),fe=e.ref([]),he=e=>{if(!e)return null;const t=fe.value.find((t=>t.groupContactId===e));return(null==t?void 0:t.avatar)||null},ge=e.ref([]),we=e.ref(""),ke=e.ref(!1);e.ref(!1),e.ref(1);const ye=e.computed((()=>ge.value)),Ee=async()=>{try{ge.value=await(async(e,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/get_conversation_messages`,method:"POST",data:{access_token:e,login_type:"phone",conversation_id:a},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const a=e.data;if(a){t("log","at utils/cloud-api.js:93","工作区id为:",a.workspace_id||"(无)"),a.workspace_id&&uni.setStorageSync("workspace_id",a.workspace_id);const e=(a.messages||[]).filter((e=>"tool"!==e.role));n(e)}else{const t=e.data.error||"获取消息出错啦";o(t)}}else o(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(le.value,oe.value)||[],Ve()}catch(e){uni.showToast({title:`获取ai会话内容失败${e}`,icon:"none"})}},Ce=async()=>{try{ge.value=await(async(e,a=1)=>(t("log","at utils/friend-api.js:88","请求的好友消息id:",e),new Promise(((t,n)=>{uni.request({url:`${H}/api/message/list`,method:"POST",data:{sessionId:e,size:100,current:a,beginTime:"",endTime:""},header:{"Content-Type":"application/json"},success:e=>{var a;if(200===e.statusCode){const o=e.data;if(0===o.code){const e=((null==(a=null==o?void 0:o.data)?void 0:a.records)||[]).reverse();t(e)}else{const t=e.data.error||"获取好友消息出错啦";n(t)}}else n(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})}))))(oe.value)||[],t("log","at pages/Chat/Chat.vue:1181","好友消息:",JSON.stringify(ge.value)),Ve()}catch(e){uni.showToast({title:`获取好友会话消息失败${e}`,icon:"none"})}},Ne=async()=>{try{ge.value=await(async(e,a=1)=>(t("log","at utils/friend-api.js:134","请求的群聊消息id:",e),new Promise(((n,o)=>{uni.request({url:`${H}/api/group/getGroupList`,method:"POST",data:{current:a,size:100,groupId:e,beginTime:"",endTime:""},header:{"Content-Type":"application/json"},success:e=>{var a;if(200===e.statusCode){const l=e.data;if(t("log","at utils/friend-api.js:152","获取到的群聊信息:",l),0===l.code){const e=((null==(a=null==l?void 0:l.data)?void 0:a.records)||[]).reverse();n(e)}else{const t=e.data.error||"获取群聊消息出错啦";o(t)}}else o(`请求失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})}))))(oe.value)||[],t("log","at pages/Chat/Chat.vue:1194","群聊消息:",ge.value);const e=await(async e=>new Promise(((t,a)=>{uni.request({url:`${H}/api/group/getGroupMemberList`,method:"POST",header:{"Content-Type":"application/json"},data:{groupId:e,current:1,size:100},success:e=>{if(200===e.statusCode){const n=e.data;if(0===n.code){const e=n.data.records;t(e)}else{const t=e.data.error||"获取群成员出错啦";a(t)}}else a(`请求群成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(oe.value);t("log","at pages/Chat/Chat.vue:1197","获取到的群成员列表:",e),e&&e.length?(fe.value=await(async e=>{if(!(null==e?void 0:e.length))return[];try{const a=e.map((e=>e.groupContactId));t("log","at pages/Chat/Chat.vue:1117","请求头像的ID列表:",a);const n=await r(le.value,a);t("log","at pages/Chat/Chat.vue:1119","头像接口返回数据:",n);const o=new Map(n.map((e=>[e.user_id,e]))||[]);return t("log","at pages/Chat/Chat.vue:1122","userMap的keys:",Array.from(o.keys())),e.map((e=>{const a=e.groupContactId,n=o.get(a);return t("log","at pages/Chat/Chat.vue:1127",`查找 ${a} 的头像:`,n),{...e,avatar:(null==n?void 0:n.avatar)||null}}))}catch(a){return t("error","at pages/Chat/Chat.vue:1134","获取群成员头像失败",a),e}})(e),t("log","at pages/Chat/Chat.vue:1200","群成员列表(带头像):",fe.value)):fe.value=[],Ve()}catch(e){uni.showToast({title:`获取群聊会话失败${e}`,icon:"none"})}},be=e=>{},Ve=async()=>{await e.nextTick(),ye.value.length>0&&(ke.value=!ke.value,we.value=ke.value?"chat-bottom-a":"chat-bottom-b")};return e.watch((()=>c.MessageReceived),(e=>{if(t("log","at pages/Chat/Chat.vue:1245","收到了好友消息"),e)switch(t("log","at pages/Chat/Chat.vue:1247","ChatType:",m.value),m.value){case 0:Ee(),c.MessageReceived=!1;break;case 1:Ce(),c.MessageReceived=!1;break;case 2:Ne(),c.MessageReceived=!1;break;default:t("log","at pages/Chat/Chat.vue:1263","default 分支"),c.MessageReceived=!1}}),{immediate:!0}),e.watch(oe,(e=>{if(e)switch(uni.setStorageSync("currentSessionId",oe.value),m.value){case 0:Ee(),d.disconnect(),L();break;case 1:Ce();break;case 2:Ne();break;default:Ee()}}),{immediate:!0}),e.onMounted((()=>{})),o((async()=>{await(async()=>{try{le.value=E(),re.value=await i(le.value),ce.value=re.value._id,ie.value=re.value.avatar||"",t("log","at pages/Chat/Chat.vue:1010","用户信息已加载:",ce.value,ie.value)}catch(e){t("error","at pages/Chat/Chat.vue:1012","获取用户信息失败:",e)}})();const e=uni.getStorageSync("chatType");m.value=e;const a=C();a&&(oe.value=a),0===e?(await ue(),oe.value&&Ee(),le.value&&oe.value&&!d.isConnected&&L()):1===e?(await(async()=>{try{t("log","at pages/Chat/Chat.vue:1047","开始获取好友列表");const e=await G(ce.value);t("log","at pages/Chat/Chat.vue:1050","friendList:",e),e&&e.length?de.value=await ve(e):(de.value=[],t("log","at pages/Chat/Chat.vue:1055","好友列表为空"))}catch(e){t("error","at pages/Chat/Chat.vue:1058","获取好友列表失败:",e),de.value=[]}finally{ne.value=de.value}})(),Ce(),u()):2===e&&(await(async()=>{try{t("log","at pages/Chat/Chat.vue:1098","开始获取群聊列表"),pe.value=await K(ce.value)}catch(e){t("error","at pages/Chat/Chat.vue:1103","获取群聊列表失败:",e),pe.value=[]}finally{ne.value=pe.value}})(),await u(),await Ne())})),l((()=>{d.disconnect()})),(n,o)=>{const l=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),b.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ncd-overlay",onClick:_},[e.createElementVNode("view",{class:"ncd-card",onClick:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"ncd-header"},[e.createElementVNode("view",{class:"ncd-title-eng"},[e.createElementVNode("text",null,"NEW")]),e.createElementVNode("text",{class:"ncd-title-zh"},"创建对话"),e.createVNode(l,{type:"closeempty",color:"#ff0000",size:"24",onClick:_})]),e.createElementVNode("text",null,"选择对话类型,开启全新会话体验"),e.createElementVNode("view",{class:"ncd-options"},[e.createElementVNode("view",{class:"ncd-option ncd-normal"},[e.createElementVNode("view",{class:"ncd-opt-icon"},[e.createVNode(l,{type:"chat",color:"#000000",size:"30"})]),e.createElementVNode("view",{class:"ncd-opt-title",onClick:N},[e.createElementVNode("view",{class:"ncd-opt-title-1"},"普通会话"),e.createElementVNode("view",{class:"ncd-opt-title-2"},"与AI自由对话,探索任何话题")]),e.createVNode(l,{type:"arrow-right",class:"arrow-right-style"})]),e.createElementVNode("view",{class:"ncd-option ncd-intelligence"},[e.createElementVNode("view",{class:"ncd-opt-icon"},[e.createVNode(l,{type:"star",color:"#ffffff",size:"30"})]),e.createElementVNode("view",{class:"ncd-opt-title"},[e.createElementVNode("view",{class:"ncd-opt-title-1"},"智能体会话"),e.createElementVNode("view",{class:"ncd-opt-title-2"},"选择专属智能体,获得精准专业服务")]),e.createVNode(l,{type:"arrow-right",class:"arrow-right-style"})])])])])):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"ncd-overlay",onClick:R},[e.createElementVNode("view",{class:"ncd-card message-detail-card",onClick:o[1]||(o[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"ncd-header"},[e.createElementVNode("text",{class:"ncd-title-zh"},"消息详情"),e.createVNode(l,{type:"closeempty",color:"#ff0000",size:"24",onClick:R})]),e.createElementVNode("scroll-view",{class:"message-detail-content","scroll-y":""},[e.createElementVNode("text",null,e.toDisplayString(U.value),1),q.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"detail-links-section"},[e.createElementVNode("view",{class:"detail-links-title"},"链接 ("+e.toDisplayString(q.value.length)+")",1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"detail-link-item",onClick:e=>{return a=t,void plus.runtime.openURL(a);var a}},[e.createElementVNode("text",{class:"link-text"},e.toDisplayString(t),1)],8,["onClick"])))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"chat-page page-container"},[B.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mask",onClick:S})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["chat-sidebar",{"sidebar-show":B.value}])},[e.createVNode(V,{chatList:ne.value,showNewChatModal:b.value,"onUpdate:showNewChatModal":o[2]||(o[2]=e=>b.value=e),currentSessionId:oe.value,"onUpdate:currentSessionId":o[3]||(o[3]=e=>oe.value=e),chatType:m.value,"onUpdate:chatType":o[4]||(o[4]=e=>m.value=e),onRefreshConversations:ue},null,8,["chatList","showNewChatModal","currentSessionId","chatType"])],2),e.createElementVNode("view",{class:"chat-wrapper"},[e.createElementVNode("view",{class:"chat-hearder"},[e.createElementVNode("view",{class:"chat-btn-group"},[e.createElementVNode("view",{class:"head-btn",onClick:S},[e.createElementVNode("view",{class:"iconfont icon-caidan"})]),e.createElementVNode("view",{class:"head-btn",onClick:T},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"})]),e.createElementVNode("view",{class:"head-btn",onClick:D},[e.createElementVNode("view",{class:"iconfont icon-cloud"})]),e.createElementVNode("view",{class:"head-btn log-out",onClick:P},[e.createElementVNode("view",{class:"iconfont icon-tuichu"})])])]),e.createElementVNode("view",{class:"main-chat"},[e.createElementVNode("scroll-view",{class:"chat-messages",direction:"vertical","scroll-y":"","scroll-into-view":we.value,"upper-threshold":0,"scroll-with-animation":!0,onScroll:be},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ye.value,((t,a)=>{var n;return e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[0===m.value&&"tool"!==t.role?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["chat-message",{"message-user":"user"===t.role}]),id:"msg-"+a},["user"===t.role?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["chat-avatar",{"chat-avatar-user":"user"===t.role}])},["user"===t.role&&(null==(n=re.value)?void 0:n.avatar)?(e.openBlock(),e.createElementBlock("image",{key:0,src:re.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"iconfont icon-yonghuziliao"}))],2)):e.createCommentVNode("",!0),t.content&&""!==String(t.content).trim()||t._streaming?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["chat-content",{"chat-content-user":"user"===t.role,"chat-content-assistant":"assistant"===t.role}]),onClick:e=>W(t)},[!t._streaming||t.content&&""!==String(t.content).trim()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"bubble-loading-dots"},[e.createElementVNode("view",{class:"bubble-dot"}),e.createElementVNode("view",{class:"bubble-dot"}),e.createElementVNode("view",{class:"bubble-dot"})])),k(t.content).textContent?(e.openBlock(),e.createElementBlock("view",{key:1,innerHTML:p(k(t.content).textContent)},null,8,["innerHTML"])):e.createCommentVNode("",!0),k(t.content).files.length>0?(e.openBlock(),e.createElementBlock("view",{key:2,class:"message-file-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k(t.content).files,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"file-item"},[["jpg","jpeg","png","gif","webp","bmp"].includes(t.extendName.toLowerCase())?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.url,mode:"widthFix",class:"message-image",onClick:e=>h(t.url)},null,8,["src","onClick"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file",onClick:e=>g(t.url)},[e.createElementVNode("view",{class:"file-icon"},"📄"),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-size"},e.toDisplayString(w(t.fileSize)),1)],8,["onClick"]))])))),128))])):e.createCommentVNode("",!0)],10,["onClick"])):e.createCommentVNode("",!0)],10,["id"])):e.createCommentVNode("",!0)],64)})),128)),1===m.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(ye.value,((t,a)=>{var n;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["chat-message",{"message-user":t.sender===ce.value}]),key:a,id:"msg-"+a},[e.createElementVNode("view",{class:e.normalizeClass(["chat-avatar",{"chat-avatar-user":t.sender===ce.value}])},[t.sender===ce.value&&(null==(n=re.value)?void 0:n.avatar)?(e.openBlock(),e.createElementBlock("image",{key:0,src:re.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):me(t.sender)?(e.openBlock(),e.createElementBlock("image",{key:1,src:me(t.sender),class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"iconfont icon-yonghuziliao"}))],2),e.createElementVNode("view",{class:e.normalizeClass(["chat-content",{"chat-content-user":t.sender===ce.value}])},[t.content&&""!==String(t.content).trim()?(e.openBlock(),e.createElementBlock("view",{key:0,innerHTML:p(t.content)},null,8,["innerHTML"])):e.createCommentVNode("",!0),t.contentJson?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.contentJson),((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"file-item"},[["jpg","jpeg","png","gif","webp","bmp"].includes(t.extendName.toLowerCase())?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.url,mode:"widthFix",class:"message-image",onClick:e=>h(t.url)},null,8,["src","onClick"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file",onClick:e=>g(t.url)},[e.createElementVNode("view",{class:"file-icon"},"📄"),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-size"},e.toDisplayString(w(t.fileSize)),1)],8,["onClick"]))])))),128))])):e.createCommentVNode("",!0)],2)],10,["id"])})),128)):e.createCommentVNode("",!0),2===m.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(ye.value,((t,a)=>{var n;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["chat-message",{"message-user":t.sender===ce.value}]),key:a,id:"msg-"+a},[e.createElementVNode("view",{class:e.normalizeClass(["chat-avatar",{"chat-avatar-user":t.sender===ce.value}])},[t.sender===ce.value&&(null==(n=re.value)?void 0:n.avatar)?(e.openBlock(),e.createElementBlock("image",{key:0,src:re.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):fe.value.length>0&&he(t.sender)?(e.openBlock(),e.createElementBlock("image",{key:1,src:he(t.sender),class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"iconfont icon-yonghuziliao"}))],2),e.createElementVNode("view",{class:e.normalizeClass(["chat-content",{"chat-content-user":t.sender===ce.value}])},[t.message&&""!==String(t.message).trim()?(e.openBlock(),e.createElementBlock("view",{key:0,innerHTML:p(t.message)},null,8,["innerHTML"])):e.createCommentVNode("",!0),t.contentJson?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.contentJson),((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"file-item"},[["jpg","jpeg","png","gif","webp","bmp"].includes(t.extendName.toLowerCase())?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.url,mode:"widthFix",class:"message-image",onClick:e=>h(t.url)},null,8,["src","onClick"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-file",onClick:e=>g(t.url)},[e.createElementVNode("view",{class:"file-icon"},"📄"),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-size"},e.toDisplayString(w(t.fileSize)),1)],8,["onClick"]))])))),128))])):e.createCommentVNode("",!0)],2)],10,["id"])})),128)):e.createCommentVNode("",!0),e.createElementVNode("view",{id:"chat-bottom-a",style:{height:"1rpx"}}),e.createElementVNode("view",{id:"chat-bottom-b",style:{height:"1rpx"}})],40,["scroll-into-view"]),e.createElementVNode("view",{class:e.normalizeClass(["chat-interactive-container",{"interactive-disabled":M.value}])},[e.createElementVNode("view",{class:"chat-interactive-group"},[e.createElementVNode("view",{class:e.normalizeClass(["chat-interactive-btn",{disabled:M.value}]),onClick:o[5]||(o[5]=e=>!M.value&&(t("log","at pages/Chat/Chat.vue:584","点击了拍照上传"),void uni.chooseImage({count:1,sourceType:["camera","album"],success:e=>{const t=e.tempFiles,a=e.tempFilePaths;t.forEach(((e,t)=>{j.value.push({path:a[t],name:e.name||`photo_${Date.now()}_${t}.jpg`,size:e.size,type:"image",tempFile:e})}))},fail:e=>{t("error","at pages/Chat/Chat.vue:602","选择图片失败",e)}})))},"拍照上传",2),e.createElementVNode("view",{class:e.normalizeClass(["chat-interactive-btn",{disabled:M.value}]),onClick:o[6]||(o[6]=e=>!M.value&&(t("log","at pages/Chat/Chat.vue:613","点击了上传文件"),void se({count:5,type:"all",success:e=>{t("log","at pages/Chat/Chat.vue:618","成功了"),$.value=e.tempFiles,j.value.push(...e.tempFiles),uni.showToast({title:`已选择 ${e.tempFiles.length} 个文件`,icon:"success"})},fail:e=>{t("error","at pages/Chat/Chat.vue:629","选择失败:",e),uni.showToast({title:"选择失败",icon:"error"})}})))},"上传文件",2)]),j.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"image-list"},[e.createElementVNode("view",{class:"image-tags"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"image-tag",key:a},[e.createElementVNode("text",{class:"tag-name"},e.toDisplayString(t.name),1),e.createElementVNode("text",{class:"tag-close",onClick:e.withModifiers((e=>(e=>{j.value.splice(e,1)})(a)),["stop"])},"×",8,["onClick"])])))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["chat-input-container",{"input-disabled":M.value}])},[e.withDirectives(e.createElementVNode("textarea",{class:"message-input",placeholder:M.value?I.value?"AI 正在回复中...":"电脑正在运行,请稍后":"输入消息...",disabled:M.value,"onUpdate:modelValue":o[7]||(o[7]=e=>ae.value=e),"auto-height":""},null,8,["placeholder","disabled"]),[[e.vModelText,ae.value]]),M.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"input-btn-group stop-message-btn",onClick:te},[e.createElementVNode("view",{class:"iconfont icon-tingzhi"})])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"input-btn-group send-message-btn",onClick:o[8]||(o[8]=e=>(async()=>{if(ae.value.trim()||0!==j.value.length){if(j.value.length>0){z.value=!0,uni.showLoading({title:"上传文件中...",mask:!0});try{const e=[];for(const t of j.value){const a=await X(t.path);e.push(a)}F.value=e,j.value=[]}catch(e){return uni.hideLoading(),t("error","at pages/Chat/Chat.vue:726","文件上传失败:",e),uni.showToast({title:"文件上传失败,请重试",icon:"error"}),void(z.value=!1)}uni.hideLoading(),z.value=!1}0===m.value&&ee(),1===m.value&&Y(),2===m.value&&Z()}})())},[e.createElementVNode("view",{class:"iconfont icon-fasong"})]))],2)],2)])])])],64)}}},[["__scopeId","data-v-af7545bf"]]),ie=g({__name:"WorkSpace",setup(n){const o=e.ref(""),l=e.ref(""),c=e.ref(""),i=e.ref("工作区"),r=e.ref(!1),u=e.ref([]),v=e.ref(!1),p=e.ref(!1),f=e.ref(""),h=()=>{v.value=!1,f.value=""},g=()=>{se({count:10,type:"all",success:async e=>{const t=e.tempFiles||[];0!==t.length?await w(t):uni.showToast({title:"未选择文件",icon:"none"})},fail:e=>{t("error","at pages/WorkSpace/WorkSpace.vue:176","选择文件失败:",e)}})},w=async e=>{uni.showLoading({title:"上传中..."});try{const a=M.value.length>0?"./"+M.value.map((e=>e.name)).join("/")+"/":"/",n=await((e,a,n)=>new Promise(((o,l)=>{const c=(Array.isArray(a)?a:[a]).map((e=>({name:"files",uri:"string"==typeof e?e:e.tempFilePath||e.path||e})));t("log","at utils/cloud-api.js:595","uploadFileToShortStorage 参数:",{workspacesId:e,fileCount:c.length,filePath:n}),uni.uploadFile({url:`${s}/cloud_api/file/temp/upload`,method:"POST",formData:{workspaces_id:e,file_path:n||"/",overwrite:"true"},files:c,success:e=>{if(t("log","at utils/cloud-api.js:607","uploadFileToShortStorage 响应状态:",e.statusCode,"数据:",e.data),200===e.statusCode)try{const t=JSON.parse(e.data);if(Array.isArray(t)&&t.length>0)o(t);else if(t.success)o([{url:t.url||t.message,success:!0}]);else{const e=(null==t?void 0:t.error)||(null==t?void 0:t.message)||"上传文件(到短存云端)获取URL出错啦";l(e)}}catch(a){l("接口返回数据格式异常: "+e.data)}else l(`上传文件(到短存云端)获取URL失败:${e.statusCode} - ${e.data}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(l.value,e,a),c=n.filter((e=>e.success)).map((e=>e.url));if(0===c.length){const e=n.filter((e=>!e.success)).map((e=>e.error)).join("; ");throw new Error(e||"所有文件上传失败")}await((e,t,a,n)=>new Promise(((o,l)=>{const c=Array.isArray(a)?a:a?[a]:[];uni.request({url:`${s}/cloud_api/phone/workspace/upload`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:t,dir_path:n||"/",urls:c},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)o(t);else{const e=(t.results||[]).filter((e=>!e.success)).map((e=>e.error||"未知错误")),a=e.length>0?`上传失败 ${t.failed_count}/${t.total_files}:${e[0]}`:t.summary||(null==t?void 0:t.error)||"上传文件到工作区出错啦";l(a)}}else l(`上传文件到工作区失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(o.value,l.value,c,a),uni.hideLoading();const i=e.length,r=i-c.length,u=r>0?`上传完成:成功 ${c.length},失败 ${r}`:`成功上传 ${i} 个文件`;uni.showToast({title:u,icon:c.length>0?"success":"error"}),F()}catch(a){uni.hideLoading(),t("error","at pages/WorkSpace/WorkSpace.vue:229","上传文件失败:",a),uni.showToast({title:"string"==typeof a?a:"上传失败,请重试",icon:"error"})}},k=e.computed((()=>0===M.value.length?"根目录":"/"+M.value.map((e=>e.name)).join("/"))),C=e.computed((()=>{const e=M.value.map((e=>e.name)).join("/"),t=f.value.trim();return t?e?`./${e}/${t}`:`./${t}`:e?`./${e}/`:"./"})),N=async()=>{const e=f.value.trim();if(e)try{const t=M.value.map((e=>e.name)).join("/"),a=t?`./${t}/${e}`:`./${e}`;await m(o.value,l.value,a),uni.showToast({title:"创建成功",icon:"success"}),h(),F()}catch(a){t("error","at pages/WorkSpace/WorkSpace.vue:275","创建文件夹失败:",a),uni.showToast({title:"创建失败,请重试",icon:"error"})}else uni.showToast({title:"请输入目录名称",icon:"none"})},b=async e=>{var a,n,c;if("directory"!==e.type)try{uni.showLoading({title:"获取下载链接..."});const i=e.path.startsWith("./")?e.path.slice(2):e.path,r=await(a=o.value,n=l.value,c=i,new Promise(((e,t)=>{uni.request({url:`${s}/cloud_api/phone/workspace/downloadFile`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:a,workspaces_id:n,file_path:c},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.message||n.data);else if(Array.isArray(n))e(n);else{const e=(null==n?void 0:n.error)||"获取工作区文URL出错啦";t(e)}}else t(`获取工作区文URL失败:${a.statusCode}`)}})})));uni.hideLoading();const u=Array.isArray(r)?r[0]:r;if(!u||!u.url)return void uni.showToast({title:"获取下载链接失败",icon:"error"});const d=u.url,m=e.name;uni.showLoading({title:"下载中..."}),uni.downloadFile({url:d,name:m,success:e=>{if(uni.hideLoading(),200===e.statusCode){const t=e.tempFilePath;V(m,t)}else uni.showToast({title:"下载失败",icon:"error"})},fail:e=>{uni.hideLoading(),t("error","at pages/WorkSpace/WorkSpace.vue:406","下载文件失败:",e),uni.showToast({title:"下载失败,请重试",icon:"error"})}})}catch(i){uni.hideLoading(),t("error","at pages/WorkSpace/WorkSpace.vue:415","获取下载链接失败:",i),uni.showToast({title:"获取下载链接失败,请重试",icon:"error"})}else uni.showToast({title:"暂不支持下载目录",icon:"none"})},V=(e,a)=>{const n="/storage/emulated/0/yxd/";var o;o=o=>{plus.io.resolveLocalFileSystemURL(a,(l=>{l.copyTo(o,e,(()=>{const a=n+e;t("log","at pages/WorkSpace/WorkSpace.vue:464","文件已保存到:",a),_(e,a)}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:468","复制文件失败:",JSON.stringify(n)),_(e,a)}))}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:473","读取临时文件失败:",JSON.stringify(n)),_(e,a)}))},plus.io.resolveLocalFileSystemURL(n,(e=>{o(e)}),(()=>{plus.io.resolveLocalFileSystemURL("/storage/emulated/0/",(n=>{n.getDirectory("yxd",{create:!0},(e=>{o(e)}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:439","创建 yxd 目录失败:",JSON.stringify(n)),uni.showToast({title:"创建目录失败",icon:"error"}),_(e,a)}))}),(n=>{t("error","at pages/WorkSpace/WorkSpace.vue:447","访问外部存储根目录失败:",JSON.stringify(n)),uni.showToast({title:"无法访问存储目录",icon:"error"}),_(e,a)}))}))},_=(e,t)=>{uni.showActionSheet({title:`${e} 下载完成`,itemList:["打开文件","选择其他应用打开","仅保存"],success:e=>{switch(e.tapIndex){case 0:B(t);break;case 1:S(t);break;case 2:uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}},fail:()=>{uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}})},B=e=>{uni.openDocument({filePath:e,success:()=>uni.showToast({title:"打开成功",icon:"success"}),fail:e=>{t("error","at pages/WorkSpace/WorkSpace.vue:530","打开文件失败:",e),uni.showToast({title:"无法打开此文件",icon:"error"})}})},S=e=>{uni.openDocument({filePath:e,showMenu:!0,success:()=>uni.showToast({title:"打开成功",icon:"success"}),fail:e=>{t("error","at pages/WorkSpace/WorkSpace.vue:549","打开文件失败:",e),uni.showToast({title:"无法打开此文件",icon:"error"})}})},x=e=>{uni.showModal({title:"提示",content:`确定要删除"${e.name}"吗?`,success:async a=>{if(a.confirm)try{const a=`./${e.path}`;t("log","at pages/WorkSpace/WorkSpace.vue:568","删除的是:",a),await d(o.value,l.value,a),uni.showToast({title:"删除成功",icon:"success"}),F()}catch(n){t("error","at pages/WorkSpace/WorkSpace.vue:576","删除失败:",n),uni.showToast({title:"删除失败,请重试",icon:"error"})}}})},T=e.ref(!1),D=()=>{T.value=!T.value},P=e.ref(""),j=e.ref(!1),$=()=>{j.value=!j.value},L=e.ref({}),M=e.ref([]),I=e.ref([]),z=()=>{var e,a;t("log","at pages/WorkSpace/WorkSpace.vue:657","当前路径为:",JSON.stringify(M.value));const n=M.value.length>0?M.value[M.value.length-1].path:".";if("."===n)return(null==(e=L.value)?void 0:e.children)||[];const o=(e,t)=>{var a;for(const n of e){if(n.path===t)return n;if("directory"===n.type&&(null==(a=n.children)?void 0:a.length)){const e=o(n.children,t);if(e)return e}}return null},l=o((null==(a=L.value)?void 0:a.children)||[],n);return l?l.children:[]},F=async()=>{var e,a;l.value=uni.getStorageSync("workspace_id"),o.value=E(),t("log","at pages/WorkSpace/WorkSpace.vue:684","getWorkspaceId:",l.value),L.value=await(e=o.value,a=l.value,new Promise(((t,n)=>{uni.request({url:`${s}/cloud_api/phone/workspace/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,workspaces_id:a,format:"tree",parent_path:"",filter_type:""},success:e=>{if(200===e.statusCode){const a=e.data;if(a.success)t(a.data);else{const e=(null==a?void 0:a.error)||"获取工作区文件目录出错啦";n(e)}}else n(`获取工作区文件目录失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})}))),I.value=z()},O=()=>{r.value?u.value.length===I.value.length?u.value=[]:u.value=I.value.map((e=>e.path)):M.value.length>0?(M.value.pop(),0===M.value.length?(i.value="工作区",c.value=null):(i.value=M.value[M.value.length-1].name,c.value=M.value.length>1?M.value[M.value.length-2].name:"工作区"),F(),P.value="",j.value=!1):uni.navigateBack({delta:1,fail(){t("log","at pages/WorkSpace/WorkSpace.vue:741","返回失败,进入兜底跳转"),uni.reLaunch({url:"/pages/Chat/Chat"})}})};return e.onMounted((()=>{F()})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay",onClick:h},[e.createElementVNode("view",{class:"popup-card",onClick:n[3]||(n[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:h},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"新建工作区目录"),e.createElementVNode("view",{class:"new-folder-name"},"目录名称"),e.createElementVNode("view",{class:e.normalizeClass(["create-folder-name",{"has-value":p.value||f.value}])},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>f.value=e),onFocus:n[1]||(n[1]=e=>p.value=!0),onBlur:n[2]||(n[2]=e=>p.value=!1),type:"text",placeholder:"输入目录名称,如:项目资料/设计图"},null,544),[[e.vModelText,f.value]])],2),e.createElementVNode("view",{class:"nf-path-label"},"当前路径"),e.createElementVNode("view",{class:"nf-path-display"},e.toDisplayString(k.value),1),e.createElementVNode("view",{class:"nf-path-label"},"路径预览"),e.createElementVNode("view",{class:"nf-path-preview"},e.toDisplayString(C.value),1),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:h},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:N},"确认")])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"workspace-container page-container"},[e.createElementVNode("view",{class:"workspace-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:n[4]||(n[4]=(...e)=>O&&O(...e))},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"}),e.createElementVNode("view",{class:"navbar-before-title workspace-text"},e.toDisplayString(r.value?"全选":c.value),1)]),e.createElementVNode("view",{class:"navbar-title workspace-text"},e.toDisplayString(i.value),1),e.createElementVNode("view",{class:"navbar-right"},[r.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-right-text workspace-text",onClick:n[5]||(n[5]=e=>(r.value&&(u.value=[]),void(r.value=!r.value)))}," 完成")):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["iconfont icon-gengduo",T.value?"menu-open":"custom-navbar-icon"]),onClick:D},null,2))]),T.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:n[6]||(n[6]=e=>{g(),D()})},"上传文件"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item",onClick:n[7]||(n[7]=e=>{v.value=!0,D()})},"新建文件夹")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"search-file-warpper"},[e.createElementVNode("view",{class:"search-file"},[e.createElementVNode("view",{class:"iconfont icon-sousuo"}),e.withDirectives(e.createElementVNode("input",{class:"search-file-input",placeholder:"搜索",onFocus:$,"onUpdate:modelValue":n[8]||(n[8]=e=>P.value=e)},null,544),[[e.vModelText,P.value]])]),j.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"cancel-search",onClick:$},"取消")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"workspace-content"},[0===I.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createTextVNode(" 文件夹为空 ")])):e.createCommentVNode("",!0),I.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"folder-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(t=>{return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["folder-item",{"select-folder":u.value.includes(t.path)}]),key:t.path,onClick:e=>r.value?(e=>{const t=u.value.indexOf(e);-1!==t?u.value.splice(t,1):u.value.push(e)})(t.path):(e=>{"directory"===e.type&&(M.value.push({path:e.path,name:e.name}),i.value=e.name,c.value=M.value.length>1?M.value[M.value.length-2].name:"工作区",I.value=z(),P.value="",j.value=!1)})(t),onLongpress:e=>(e=>{r.value||uni.showActionSheet({itemList:["下载","删除"],success:t=>{switch(t.tapIndex){case 0:b(e);break;case 1:x(e)}}})})(t)},["directory"===t.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:"iconfont icon-a-wenjianjiawenjian folder-item-style"})):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["iconfont folder-item-style",(a=t.extension,{".png":"icon-wenjiantupian",".jpg":"icon-wenjiantupian",".jpeg":"icon-wenjiantupian",".gif":"icon-wenjiantupian",".svg":"icon-SVG",".bmp":"icon-wenjiantupian",".webp":"icon-wenjiantupian",".mp4":"icon-wenjianshipin",".avi":"icon-wenjianshipin",".mov":"icon-wenjianshipin",".wmv":"icon-wenjianshipin",".flv":"icon-wenjianshipin",".mkv":"icon-wenjianshipin",".mp3":"icon-wenjianyinpin",".wav":"icon-wenjianyinpin",".flac":"icon-wenjianyinpin",".aac":"icon-wenjianyinpin",".pdf":"icon-PDF1",".doc":"icon-word",".docx":"icon-word",".xls":"icon-execl",".xlsx":"icon-execl",".ppt":"icon-PPT1",".pptx":"icon-PPT1",".txt":"icon-TXT1",".md":"icon-file-markdown-fill",".zip":"icon-wenjianyasuo",".rar":"icon-wenjianyasuo",".7z":"icon-wenjianyasuo",".tar":"icon-wenjianyasuo",".gz":"icon-wenjianyasuo",".js":"icon-JS",".ts":"icon-daimawenjia",".vue":"icon-daimawenjia",".html":"icon-HTML",".css":"icon-CSS",".py":"icon-daima",".java":"icon-daima",".json":"icon-JSON"}[null==a?void 0:a.toLowerCase()]||"icon-qitalingyu")])},null,2)),e.createElementVNode("view",{class:"folder-name"},e.toDisplayString(t.name),1),r.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(["folder-checkbox",{"select-folder":u.value.includes(t.path)}])},[u.value.includes(t.path)?(e.openBlock(),e.createBlock(o,{key:0,type:"checkmarkempty",color:"#fff"})):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],42,["onClick","onLongpress"]);var a})),128))])):e.createCommentVNode("",!0)]),r.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["workspace-footer",{"folder-actions":u.value.length>0}])},[e.createElementVNode("view",{class:"iconfont icon-shangchuan",onClick:g}),e.createElementVNode("view",{class:"iconfont icon-del"})],2)):e.createCommentVNode("",!0)])],64)}}},[["__scopeId","data-v-8cbb38c0"]]),re=g({__name:"UserProfileModal",setup(n){const o=()=>{t("log","at pages/UserProfileModal/UserProfileModal.vue:55","点击了返回"),uni.navigateBack({delta:1,fail(){uni.reLaunch({url:"/pages/Chat/Chat"})}})},l=async()=>{if(d.value.trim()){uni.showLoading({title:"保存中...",mask:!0});try{await(e=c.value,a=r.value,n=d.value.trim(),l=m.value.trim(),i=u.value,new Promise(((t,o)=>{uni.request({url:`${s}/cloud_api/update_user_profile`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,user_id:a,username:n,"email:":l,avatar:i},success:e=>{if(200===e.statusCode){const a=e.data;if(a.success)t(a.message);else{const e=(null==a?void 0:a.error)||"修改用户信息出错啦";o(e)}}else o(`修改用户信息失败:${e.statusCode}`)}})}))),uni.hideLoading(),uni.showToast({title:"保存成功",icon:"success"}),setTimeout((()=>{o()}),800)}catch(v){uni.hideLoading();const e="string"==typeof v?v:"保存失败,请稍后重试";uni.showToast({title:e,icon:"none"}),t("error","at pages/UserProfileModal/UserProfileModal.vue:93","保存用户信息失败:",v)}var e,a,n,l,i}else uni.showToast({title:"用户名不能为空",icon:"none"})},c=e.ref(""),r=e.ref(""),u=e.ref(""),d=e.ref(""),m=e.ref(""),v=e.ref(!1),p=e.ref(!1),f=()=>{uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:e=>{const t=e.tempFilePaths[0];h(t)},fail:e=>{t("log","at pages/UserProfileModal/UserProfileModal.vue:116","选择图片失败",e)}})},h=e=>{u.value=e};return e.onMounted((async()=>{c.value=E();try{const e=await i(c.value);r.value=e._id||"",u.value=e.avatar||"",d.value=e.username||"",m.value=e.email||""}catch(e){t("error","at pages/UserProfileModal/UserProfileModal.vue:135","获取用户信息失败:",e),uni.showToast({title:"加载用户信息失败",icon:"none"})}})),(t,n)=>{const s=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"user-profile page-container"},[e.createElementVNode("view",{class:"modal-header"},[e.createElementVNode("view",{class:"modal-left",onClick:o},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"})]),e.createElementVNode("view",{class:"modal-title"},[e.createElementVNode("view",{class:"title-text"},"编辑资料")]),e.createElementVNode("view",{class:"modal-right",onClick:l},[e.createElementVNode("view",{class:"save-btn"},"保存")])]),e.createElementVNode("view",{class:"modal-body"},[e.createElementVNode("view",{class:"avatar-upload-section",onClick:f},[e.createElementVNode("view",{class:"avatar-upload-container"},[u.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"avatar-preview"},[e.createElementVNode("image",{src:u.value,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"avatar-placeholder"},[e.createVNode(s,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))])]),e.createElementVNode("view",{class:"form-card"},[e.createElementVNode("view",{class:"form-field"},[e.createElementVNode("view",{class:"form-text"},"用户名"),e.withDirectives(e.createElementVNode("input",{"adjust-position":"false",class:e.normalizeClass(["form-field-input form-field-username",{"edit-input-focus":v.value}]),"onUpdate:modelValue":n[0]||(n[0]=e=>d.value=e),onFocus:n[1]||(n[1]=e=>v.value=!0),onBlur:n[2]||(n[2]=e=>v.value=!1)},null,34),[[e.vModelText,d.value]])]),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"form-field"},[e.createElementVNode("view",{class:"form-text"},"邮箱"),e.withDirectives(e.createElementVNode("input",{"adjust-position":"false",class:e.normalizeClass(["form-field-input form-field-emile",{"edit-input-focus":p.value}]),"onUpdate:modelValue":n[3]||(n[3]=e=>m.value=e),onFocus:n[4]||(n[4]=e=>p.value=!0),onBlur:n[5]||(n[5]=e=>p.value=!1)},null,34),[[e.vModelText,m.value]])])]),e.createElementVNode("view",{class:"prompt-content"},"*保存后再返回哟")])])],64)}}},[["__scopeId","data-v-8fad524d"]]),ue=g({__name:"ContactPages",setup(n){const o=Q(),l=()=>{uni.navigateBack({delta:1,fail(){uni.reLaunch({url:"/pages/Chat/Chat"})}})},s=(e,t="")=>{uni.setStorageSync("chatType",e),t&&uni.setStorageSync("currentSessionId",t),uni.reLaunch({url:"/pages/Chat/Chat"})},c=e.ref(0),d=e.reactive([{name:"contacts",label:"通讯录",icon:"📞"},{name:"createGroup",label:"新建群聊",icon:"👥"},{name:"addFriend",label:"添加好友",icon:"➕"},{name:"friendRequest",label:"好友申请",icon:"📨"}]),m=e=>{c.value=e.detail.current},v=e.ref(""),p=e.ref(""),f="宇恒一号",h=e.ref([]),g=async()=>{try{t("log","at pages/ContactPages/ContactPages.vue:442","开始获取好友列表"),v.value=E();const e=await i(v.value);p.value=e._id,t("log","at pages/ContactPages/ContactPages.vue:446","UserId.value:",p.value);const a=await G(p.value);t("log","at pages/ContactPages/ContactPages.vue:448","friendList:",a),a&&a.length?h.value=await w(a):(h.value=[],t("log","at pages/ContactPages/ContactPages.vue:453","好友列表为空"))}catch(e){t("error","at pages/ContactPages/ContactPages.vue:456","获取好友列表失败:",e),h.value=[]}},w=async e=>{if(!(null==e?void 0:e.length))return[];try{const t=e.map((e=>e.receiver)),a=await r(v.value,t),n=new Map(a.map((e=>[e.user_id,e]))||[]);return e.map((e=>{const t=n.get(e.receiver);return{...e,avatar:(null==t?void 0:t.avatar)||null}}))}catch(a){return t("error","at pages/ContactPages/ContactPages.vue:477","获取好友头像失败",a),e}};e.onMounted((async()=>{await g(),await C(),await z(),o.isConnected||(v.value&&p.value?o.connect({token:v.value,UserId:p.value}):t("warn","at pages/ContactPages/ContactPages.vue:341","Token或UserId未准备好"))}));const k=e.ref([]),C=async()=>{try{t("log","at pages/ContactPages/ContactPages.vue:494","开始获取群聊列表"),v.value=E();const e=await i(v.value);p.value=e._id,t("log","at pages/ContactPages/ContactPages.vue:498","UserId.value:",p.value),k.value=await K(p.value)}catch(e){t("error","at pages/ContactPages/ContactPages.vue:501","获取群聊列表失败:",e),k.value=[]}},N=e.ref(""),b=e.ref(),V=async()=>{try{if(!N.value)return void uni.showToast({title:"群名称不能为空",icon:"none"});if(0===B.value.length)return void uni.showToast({title:"请选择群成员",icon:"none"});await new Promise(((e,a)=>{if(o.isConnected)return void e();if(!v.value||!p.value)return void a(new Error("Token或UserId未准备好"));t("log","at pages/ContactPages/ContactPages.vue:522","friendSocket 未连接,正在建立连接..."),o.connect({token:v.value,UserId:p.value});const n=setInterval((()=>{o.isConnected&&(clearInterval(n),t("log","at pages/ContactPages/ContactPages.vue:531","friendSocket 连接已建立"),e())}),100);setTimeout((()=>{clearInterval(n),o.isConnected||a(new Error("连接超时"))}),1e4)}));const e=B.value.map((e=>e.id));b.value={version:"1.1",body:{command:3,userIds:e,message:"我来邀请你们了",sender:p.value,callBackMessage:!0,groupName:N.value,teamCreateReq:{access_token:v.value}}};await o.send(b.value)?await _():t("log","at pages/ContactPages/ContactPages.vue:587","发送新建群聊消息失败")}catch(e){t("log","at pages/ContactPages/ContactPages.vue:590",e),uni.showToast({title:`新建群聊失败${e}`,icon:"none"})}},_=()=>new Promise(((a,n)=>{const l=setTimeout((()=>{n(new Error("超时未返回群聊创建结果"))}),18e4),s=e.watch((()=>o.command),(async e=>{if(t("log","at pages/ContactPages/ContactPages.vue:609","创建一个一次性监听器"),e&&3===o.command){t("log","at pages/ContactPages/ContactPages.vue:611","监听到command的值是3,检查群聊是否创建成功",o.command);try{await C();const e=k.value.find((e=>e.id===o.groupId));e?(t("log","at pages/ContactPages/ContactPages.vue:618","✅ 新建群聊成功",e),B.value=[],c.value=0):t("log","at pages/ContactPages/ContactPages.vue:623","❌ 新建群聊失败 / 群组不存在")}catch(a){t("error","at pages/ContactPages/ContactPages.vue:627","保存AI回复失败:",a),n(a)}finally{o.command=null,o.groupId=null,s(),clearTimeout(l)}}}))})),B=e.ref([]),S=e.ref(!1),x=e.ref(""),T=e.ref([]),D=async()=>{if(!x.value.trim())return void(T.value=[]);const e=x.value.toLowerCase().trim();T.value=await u(v.value,e),t("log","at pages/ContactPages/ContactPages.vue:676","searchResultList.value:",JSON.stringify(T.value))},P=()=>{S.value=!S.value},j=e.ref(null),$=()=>{j.value=null,M.value=!1},L=e.ref("");e.ref(!1),e.ref(!1);const M=e.ref(!1),I=e.ref([]),z=async()=>{try{if(!p.value)return;const e=await(async e=>new Promise(((t,a)=>{uni.request({url:`${H}/api/friendship/getFriendship`,method:"POST",data:{current:1,size:100,sendId:e},success:e=>{var n;if(200===e.statusCode){const o=e.data;if(0===(null==o?void 0:o.code)||"成功"===(null==o?void 0:o.msg)){const e=(null==(n=null==o?void 0:o.data)?void 0:n.records)||[];t(e)}else{const t=e.data.msg||"获取添加我的好友出错啦";a(t)}}else a(`获取添加我的好友失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(p.value);e&&e.length?I.value=await F(e):I.value=[]}catch(e){t("error","at pages/ContactPages/ContactPages.vue:732","获取好友申请列表失败:",e),I.value=[]}},F=async e=>{if(!(null==e?void 0:e.length))return[];try{const t=e.map((e=>e.sendId)),a=await r(v.value,t),n=new Map(a.map((e=>[e.user_id,e]))||[]);return e.map((e=>{const t=n.get(e.sendId);return{...e,avatar:(null==t?void 0:t.avatar)||null}}))}catch(a){return t("error","at pages/ContactPages/ContactPages.vue:751","获取申请人头像失败",a),e}},O=async()=>{if(M.value)try{const e=j.value.sendId,t=L.value||j.value.friendNickName||"",a=j.value.sessionId||Date.now(),n=j.value.id;await(async e=>new Promise(((t,a)=>{uni.request({url:`${H}/api/chatList/save`,method:"POST",header:{"Content-Type":"application/json"},data:e,success:e=>{if(200===e.statusCode){const n=e.data;if(0===(null==n?void 0:n.code)||"成功"===(null==n?void 0:n.msg))t("保存好友成功");else{const e=(null==n?void 0:n.msg)||"保存好友出错啦";a(e)}}else a(`保存好友失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))([{friendNickName:t,sender:p.value,receiver:e,sessionId:a,friendRelationshipId:n},{friendNickName:"",sender:e,receiver:p.value,sessionId:a,friendRelationshipId:n}]),uni.showToast({title:"已同意好友申请",icon:"none"});const o=I.value.find((t=>t.sendId===e));o&&(o.status=1),$(),await g()}catch(e){t("error","at pages/ContactPages/ContactPages.vue:795","同意好友申请失败:",e),uni.showToast({title:"操作失败",icon:"none"})}else try{const e=j.value._id,a=await(async(e,a,n)=>new Promise(((o,l)=>{t("log","at utils/friend-api.js:239","进入sendFriendRequest"),uni.request({url:`${H}/api/friendship/saveShip`,method:"POST",data:{sendId:e,friendNickName:a,recipientId:n},success:e=>{if(200===e.statusCode){const t=e.data;if(0===(null==t?void 0:t.code)||"成功"===(null==t?void 0:t.msg))o("已成功发送好友申请");else{const t=e.data.msg||"发送好友申请出错啦";l(t)}}else l(`发送好友申请失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(p.value,L.value,e);uni.showToast({title:a,icon:"none"}),$()}catch(e){t("error","at pages/ContactPages/ContactPages.vue:806","发送好友申请失败:",e),uni.showToast({title:"发送申请失败",icon:"none"})}};return(n,o)=>{const i=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),j.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay"},[e.createElementVNode("view",{class:"popup-card"},[e.createElementVNode("view",{class:"close-popup-card",onClick:$},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},e.toDisplayString(M.value?"通过好友申请":"申请添加朋友"),1),e.createElementVNode("view",{class:"friend-card"},[e.createElementVNode("view",{class:"friend-card-left"},[j.value.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:j.value.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(i,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(j.value.username),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(j.value.sessionId),1)])]),e.createElementVNode("view",{class:"nickname-wrapper"},[e.createElementVNode("view",null,"好友备注"),e.withDirectives(e.createElementVNode("input",{class:"input-nickname",placeholder:"请输入好友名称","onUpdate:modelValue":o[0]||(o[0]=e=>L.value=e)},null,512),[[e.vModelText,L.value]])]),e.createElementVNode("view",{class:"text-btn confirm-btn",onClick:O},e.toDisplayString(M.value?"确认通过":"发送申请"),1)])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"tabbar-page page-container"},[e.createElementVNode("swiper",{class:"content-swiper",current:c.value,duration:300,onChange:m},[e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"通讯录")]),e.createElementVNode("view",{class:"tabpage-body"},[e.createElementVNode("scroll-view",{class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[e.createElementVNode("view",{class:"friend-card",onClick:o[1]||(o[1]=e=>s(0))},[e.createElementVNode("view",{class:"friend-card-left"},[e.createElementVNode("view",{class:"friend-avatar",style:{"background-color":"#38bdf8"}},[e.createElementVNode("view",{class:"iconfont icon-Robot",style:{"font-size":"80rpx",color:"#fff"}})])]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(f),1),e.createElementVNode("view",{class:"friend-label"})]),e.createElementVNode("view",{class:"friend-card-right"},[e.createVNode(i,{type:"right"})])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:t.sessionId,onClick:e=>s(t.type,t.sessionId)},[e.createElementVNode("view",{class:"friend-card-left"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(i,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(t.friendNickName),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(t.sessionId),1)]),e.createElementVNode("view",{class:"friend-card-right"},[e.createVNode(i,{type:"right"})])],8,["onClick"])))),128)),e.createElementVNode("view",null,"群聊"),e.createElementVNode("view",{class:"solid-line"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:t.id,onClick:e=>s(t.type,t.id)},[e.createElementVNode("view",{class:"friend-card-left"},[e.createElementVNode("view",{class:"friend-avatar",style:{"background-color":"#ffaaff"}},[e.createElementVNode("view",{class:"iconfont icon-qunliao",style:{"font-size":"80rpx",color:"#fff"}})])]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(t.createTime),1)]),e.createElementVNode("view",{class:"friend-card-right"},[e.createVNode(i,{type:"right"})])],8,["onClick"])))),128))])])])])]),e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"新建群聊")]),e.createElementVNode("view",{class:"tabpage-body"},[e.createElementVNode("view",{class:"group-info"},[e.createElementVNode("view",{class:"group-name"},[e.createElementVNode("view",null,"群名称"),e.withDirectives(e.createElementVNode("input",{class:"input",placeholder:"请输入群名称","onUpdate:modelValue":o[2]||(o[2]=e=>N.value=e)},null,512),[[e.vModelText,N.value]])]),e.createElementVNode("view",{class:"group-member-wrapper"},[e.createElementVNode("view",{class:"member-title"},"群成员"),e.createElementVNode("view",{class:"group-ismember-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"group-ismember-info",key:a},[e.createElementVNode("view",{class:"group-ismember-name"},e.toDisplayString(t.friendNickName),1)])))),128))])]),e.createElementVNode("view",{class:"create-group-btn",onClick:V},"创建群聊")]),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("scroll-view",{class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a=>{var n;return e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:a.receiver},[e.createElementVNode("view",{class:"friend-card-left"},[a.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:a.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(i,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(a.friendNickName),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(a.email),1)]),e.createElementVNode("view",{class:"friend-card-right",onClick:e=>(e=>{t("log","at pages/ContactPages/ContactPages.vue:648","选择的好友id:",e),t("log","at pages/ContactPages/ContactPages.vue:649","selectGroupMember.value=",JSON.stringify(B.value));const a=B.value.findIndex((t=>t.id===e));if(-1===a){const t=h.value.find((t=>t.receiver===e));t&&B.value.push({id:t.receiver,friendNickName:t.friendNickName})}else B.value.splice(a,1)})(a.receiver)},[e.createElementVNode("view",{class:"friend-checkbox"},[(null==(n=B.value)?void 0:n.find((e=>e.id===a.receiver)))?(e.openBlock(),e.createBlock(i,{key:0,type:"checkmarkempty"})):e.createCommentVNode("",!0)])],8,["onClick"])])})),128))])])])])]),e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"添加好友")]),e.createElementVNode("view",{class:"tabpage-body"},[e.createElementVNode("view",{class:"search-warpper"},[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(["search-file-input",{active:S.value}]),onFocus:P,onBlur:P,"onUpdate:modelValue":o[3]||(o[3]=e=>x.value=e),"confirm-type":"search",onConfirm:D},null,34),[[e.vModelText,x.value]]),e.createElementVNode("view",{class:"iconfont icon-sousuo",onClick:D})]),x.value?T.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"search-result"},[e.createElementVNode("scroll-view",{class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(a=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:a.id},[e.createElementVNode("view",{class:"friend-card-left"},[e.createElementVNode("view",{class:"friend-avatar"},[e.createElementVNode("image",{class:"friend-avatar",src:a.avatar,mode:"aspectFill"},null,8,["src"])])]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(a.nickname),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(a.email),1)]),e.createElementVNode("view",{class:"friend-card-right",onClick:e=>(e=>{const a=T.value.find((t=>t._id===e));a?j.value={...a}:(t("warn","at pages/ContactPages/ContactPages.vue:697","未找到该好友"),j.value=null)})(a._id)},[e.createElementVNode("view",{class:"add-btn text-btn"},"添加")],8,["onClick"])])))),128))])])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-result"},"未找到相关用户,请尝试其他关键词")):(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-tip"},"请输入用户名或邮箱进行搜索"))])])]),e.createElementVNode("swiper-item",{class:"content-swiper-item"},[e.createElementVNode("view",{class:"tabpage-containner"},[e.createElementVNode("view",{class:"tabpage-header"},[e.createElementVNode("view",{class:"iconfont icon-fanhui",onClick:l}),e.createElementVNode("view",{class:"tabpage-title"},"好友申请")]),e.createElementVNode("view",{class:"tabpage-body"},[I.value.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:1,class:"group-member",direction:"vertical","scroll-y":"true"},[e.createElementVNode("view",{class:"friend-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"friend-card",key:t.id},[e.createElementVNode("view",{class:"friend-card-left"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"friend-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-avatar"},[e.createVNode(i,{type:"person-filled",size:"100rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"friend-card-middle"},[e.createElementVNode("view",{class:"friend-name"},e.toDisplayString(t.friendNickName||t.sendId),1),e.createElementVNode("view",{class:"friend-label"},e.toDisplayString(t.message||"请求添加你为好友"),1)]),e.createElementVNode("view",{class:"friend-card-right"},[0===t.state?(e.openBlock(),e.createElementBlock("view",{key:0,class:"friend-option"},[e.createElementVNode("view",{class:"agree-btn text-btn",onClick:e=>(e=>{M.value=!0,j.value={...e,username:e.friendNickName||e.sendId}})(t)},"同意",8,["onClick"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"friend-status agreed"},"已同意"))])])))),128))])])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-result"},"暂无好友申请"))])])])],40,["current"]),e.createElementVNode("view",{class:"bottom-tabbar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:t.name,onClick:e=>(e=>{c.value=e})(a),class:"tab-item"},[e.createElementVNode("view",{class:"tab-icon"},e.toDisplayString(t.icon),1),e.createElementVNode("view",{class:"tab-label"},e.toDisplayString(t.label),1)],8,["onClick"])))),128))])])],64)}}},[["__scopeId","data-v-d6fd7c06"]]),de=g({__name:"TemplateSpace",setup(a){const n=e=>{if(!e)return"";const t=Math.floor(e),a=new Date(1e3*t);return`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")} ${a.getHours().toString().padStart(2,"0")}:${a.getMinutes().toString().padStart(2,"0")}:${a.getSeconds().toString().padStart(2,"0")}`},o=e=>{if(!e||0===e)return"0 B";const t=["B","KB","MB","GB","TB"];let a=e,n=0;for(;a>=1024&&n{t("log","at pages/WorkSpace/TemplateSpace/TemplateSpace.vue:188","点击了编辑模板")},c=e.ref(""),i=e.ref([]),r=e=>{c.value=e,"all"===e&&(d.value="全部模板",i.value=y.value),"like"===e&&(d.value="收藏模板",i.value=y.value.filter((e=>!0===e.is_favorite)))},u=e.ref(""),d=e.ref("模板区"),m=e.ref(!1),v=e.ref([]),p=()=>{m.value&&(v.value=[]),m.value=!m.value},f=e.ref(!1),h=()=>{f.value=!f.value},g=e.ref(""),w=e.ref(!1),k=()=>{w.value=!w.value},y=e.ref([{name:"SKILL.md",type:"file",path:"SKILL.md",children:[],file_count:0,directory_count:0,size:4768,modified_time:1776827361.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"该回家看了的法国红酒看来法帝国海军快来尝尝v吧给v复仇计划曝光vi计划日方提供与i哦的风格和健康"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"的法国红酒看来法帝国海军快来尝尝v吧给"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:""},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"},{name:"222.md",type:"file",path:"222.md",children:[],file_count:0,directory_count:0,size:5558,modified_time:1776827666.9123552,extension:".md",is_favorite:!1,usage_count:0,sort:0,content:"khgvshbbthvgbihepiubjhrviifdhiuhrviuehrviuawhiuvrhy"}]),E=()=>{m.value?v.value.length===i.value.length?v.value=[]:v.value=i.value.map((e=>e.id)):(!m.value&&i.value&&(i.value=[],c.value="",d.value="模板区"),m.value||i.value||uni.navigateBack({delta:1,fail(){t("log","at pages/WorkSpace/TemplateSpace/TemplateSpace.vue:468","返回失败,进入兜底跳转"),uni.reLaunch({url:"/pages/Chat/Chat"})}}))};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),e.createElementVNode("view",{class:"popup-overlay"},[e.createElementVNode("view",{class:"popup-card"},[e.createElementVNode("view",{class:"close-popup-card"},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"编辑模板"),e.createElementVNode("view",{class:"edit-template-wrapper"},[e.createElementVNode("view",{class:"edit-template-name"},[e.createElementVNode("view",null,"模板名称"),e.withDirectives(e.createElementVNode("input",{"placeholder-style":"请输入模板名称","onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e)},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"edit-template-name"},[e.createElementVNode("view",null,"模板内容"),e.createElementVNode("view",{class:"markdown-editor-pane"},[e.createElementVNode("view",{class:"markdown-pane-header"}," 编辑 "),e.createElementVNode("textarea")]),e.createElementVNode("view",{class:"markdown-preview-pane"},[e.createElementVNode("view",{class:"markdown-pane-header"}," 预览 "),e.createElementVNode("view")])])])])]),e.createElementVNode("view",{class:"workspace-container page-container"},[e.createElementVNode("view",{class:"workspace-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:a[1]||(a[1]=(...e)=>E&&E(...e))},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"}),e.createElementVNode("view",{class:"navbar-before-title workspace-text"},e.toDisplayString(m.value?"全选":u.value),1)]),e.createElementVNode("view",{class:"navbar-title workspace-text"},e.toDisplayString(d.value),1),c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-right"},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-right-text workspace-text",onClick:a[2]||(a[2]=e=>p())}," 完成")):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["iconfont icon-gengduo",f.value?"menu-open":"custom-navbar-icon"]),onClick:h},null,2))])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:a[3]||(a[3]=e=>{p(),h()})},"选择"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item"},"新建模板"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item"},"上传模板")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"search-file-warpper"},[e.createElementVNode("view",{class:"search-file"},[e.createElementVNode("view",{class:"iconfont icon-sousuo"}),e.withDirectives(e.createElementVNode("input",{class:"search-file-input",placeholder:"搜索",onFocus:k,"onUpdate:modelValue":a[4]||(a[4]=e=>g.value=e)},null,544),[[e.vModelText,g.value]])]),w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"cancel-search",onClick:k},"取消")):e.createCommentVNode("",!0)])]),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-grid"},[e.createElementVNode("view",{class:"folder-item",onClick:a[5]||(a[5]=e=>r("all"))},[e.createElementVNode("view",{class:"iconfont icon-a-wenjianjiawenjian folder-item-style"}),e.createElementVNode("view",{class:"folder-name"},"全部模板")]),e.createElementVNode("view",{class:"folder-item",onClick:a[6]||(a[6]=e=>r("like"))},[e.createElementVNode("view",{class:"iconfont icon-a-wenjianjiawenjian folder-item-style"}),e.createElementVNode("view",{class:"folder-name"},"收藏模板")])])),c.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"workspace-content"},[0===i.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createTextVNode(" 暂无模板 ")])):e.createCommentVNode("",!0),i.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"template-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"template-card",key:a},[e.createElementVNode("view",{class:"template-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"template-content"},[e.createElementVNode("view",{class:"template-content-text"},e.toDisplayString(t.content),1)]),e.createElementVNode("view",{class:"template-info-wrapper"},[e.createElementVNode("view",{class:"template-item"},[e.createElementVNode("view",{class:"template-time background-style"},e.toDisplayString(n(t.modified_time)),1),e.createElementVNode("view",{class:"template-cache background-style"},e.toDisplayString(o(t.size)),1)]),e.createElementVNode("view",{class:"template-option"},[e.createElementVNode("view",{class:e.normalizeClass(["iconfont",t.is_favorite?"icon-favorite-fill":"icon-favorite"]),onClick:e=>(e=>{let t;"all"===c.value?t=y.value[e]:"like"===c.value&&(t=y.value.filter((e=>e.is_favorite))[e]);t&&(t.is_favorite=!t.is_favorite),"all"===c.value?i.value=[...y.value]:i.value=y.value.filter((e=>e.is_favorite))})(a)},null,10,["onClick"]),e.createElementVNode("view",{class:"iconfont icon-edit-fill",onClick:s}),e.createElementVNode("view",{class:"iconfont icon-choose-fill"})])])])))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(["workspace-footer",{"folder-actions":v.value.length>0}])},[e.createElementVNode("view",{class:"iconfont icon-shangchuan"}),e.createElementVNode("view",{class:"iconfont icon-fuzhi"}),e.createElementVNode("view",{class:"iconfont icon-wenjian"}),e.createElementVNode("view",{class:"iconfont icon-del"}),e.createElementVNode("view",{class:"iconfont icon-gengduo"})],2)):e.createCommentVNode("",!0)])],64))}},[["__scopeId","data-v-2acd55d4"]]),me={__name:"text",setup(t){const a=e.ref("");return e.onMounted((()=>{a.value='\n明白了!您希望在我的回复中直接嵌入可编辑的表单卡片。让我试试:\n\n---\n\n
    \n

    \n✏️ 直接在下方编辑任务\n

    \n\n
    \n
    \n\n\n
    \n\n
    \n\n\n
    \n\n
    \n
    \n\n\n
    \n
    \n\n\n
    \n
    \n\n
    \n\n\n
    \n\n
    \n\n
    \n\n\n\n
    \n
    \n\n
    \n\n
    \n\n\n\n\n
    \n
    \n\n
    \n\n\n
    \n
    \n
    \n\n\n\n---\n\n**✅ 您现在可以直接在上方的卡片中填写任务信息,点击"添加任务"即可!**\n\n填写完成后告诉我"已填好"或"添加",我会帮您确认是否成功!\n'})),(t,n)=>{return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{innerHTML:(o=a.value,o.replace(/<\/?script>/gi,(e=>{let t="";for(let a=0;a{const e=n.connectionStatus;return{"status-connected":"connected"===e,"status-connecting":"connecting"===e,"status-error":"error"===e,"status-disconnected":"disconnected"===e}})),i=()=>{o.value.token?n.connect({token:o.value.token,conversationId:C()}):uni.showToast({title:"请输入Token",icon:"none"})},r=()=>{n.disconnect()},u=async()=>{try{await n.sendPing()}catch(e){uni.showToast({title:"发送失败",icon:"none"})}},d=async()=>{if(l.value.trim())try{const e={ws_event:"message",data:{task_call_id:N(),result:{tools:[]}}};await n.send(e),l.value=""}catch(e){uni.showToast({title:"发送失败",icon:"none"})}},m=()=>{if(l.value.trim())try{const e=JSON.parse(l.value);l.value=JSON.stringify(e,null,2)}catch{uni.showToast({title:"不是有效的JSON",icon:"none"})}},v=()=>{};return e.watch((()=>n.isDisconnected),(e=>{e&&n.messageString&&t("log","at pages/text/text2.vue:253",n.messageString)})),e.onMounted((()=>{n.addLog("info","=== Socket测试页面 ==="),n.addLog("info","页面已加载"),n.isConnected&&n.addLog("info","当前已处于连接状态")})),e.onUnmounted((()=>{n.addLog("info","页面卸载")})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"status-card"},[e.createElementVNode("text",{class:"status-label"},"连接状态"),e.createElementVNode("view",{class:e.normalizeClass(["status-value",c.value])},[e.createElementVNode("text",null,e.toDisplayString(e.unref(n).getStatusText()),1)],2),e.unref(n).reconnectAttempts>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status-info"},[e.createElementVNode("text",{class:"reconnect-info"},"重连次数: "+e.toDisplayString(e.unref(n).reconnectAttempts),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"config-card"},[e.createElementVNode("text",{class:"section-title"},"连接配置"),e.createElementVNode("view",{class:"input-group"},[e.createElementVNode("text",{class:"input-label"},"Token"),e.withDirectives(e.createElementVNode("input",{class:"input-field","onUpdate:modelValue":a[0]||(a[0]=e=>o.value.token=e),placeholder:"请输入Token"},null,512),[[e.vModelText,o.value.token]])]),e.createElementVNode("view",{class:"input-group"},[e.createElementVNode("text",{class:"input-label"},"Conversation ID"),e.withDirectives(e.createElementVNode("input",{class:"input-field","onUpdate:modelValue":a[1]||(a[1]=e=>o.value.conversationId=e),placeholder:"请输入会话ID(可选)"},null,512),[[e.vModelText,o.value.conversationId]])])]),e.createElementVNode("view",{class:"control-card"},[e.createElementVNode("button",{class:"btn btn-primary",disabled:e.unref(n).isConnected||e.unref(n).isConnecting,onClick:i},e.toDisplayString(e.unref(n).isConnecting?"连接中...":"连接"),9,["disabled"]),e.createElementVNode("button",{class:"btn btn-danger",disabled:!e.unref(n).isConnected,onClick:r}," 断开 ",8,["disabled"]),e.createElementVNode("button",{class:"btn btn-secondary",onClick:u,disabled:!e.unref(n).isConnected}," Ping ",8,["disabled"])]),e.createElementVNode("view",{class:"send-card"},[e.createElementVNode("text",{class:"section-title"},"发送消息"),e.createElementVNode("view",{class:"send-input-wrapper"},[e.withDirectives(e.createElementVNode("textarea",{class:"send-input","onUpdate:modelValue":a[2]||(a[2]=e=>l.value=e),placeholder:"输入要发送的消息(JSON格式)",disabled:!e.unref(n).isConnected},null,8,["disabled"]),[[e.vModelText,l.value]]),e.createElementVNode("view",{class:"send-buttons"},[e.createElementVNode("button",{class:"btn btn-primary btn-small",disabled:!e.unref(n).isConnected||!l.value.trim(),onClick:d}," 发送 ",8,["disabled"]),e.createElementVNode("button",{class:"btn btn-outline btn-small",disabled:!l.value.trim(),onClick:m}," 格式化 ",8,["disabled"])])]),e.createElementVNode("view",{class:"quick-messages"},[e.createElementVNode("text",{class:"quick-label"},"快捷消息:"),e.createElementVNode("view",{class:"quick-btns"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(t=>(e.openBlock(),e.createElementBlock("button",{key:t.label,class:"quick-btn",disabled:!e.unref(n).isConnected,onClick:e=>(async e=>{const t={ws_event:"message",data:{task_call_id:N(),token:E(),conversation_id:C()}};try{await n.send(t)}catch(a){uni.showToast({title:"发送失败",icon:"none"})}})(t.data)},e.toDisplayString(t.label),9,["disabled","onClick"])))),128))])])]),e.createElementVNode("view",{class:"log-card"},[e.createElementVNode("view",{class:"log-header"},[e.createElementVNode("view",{class:"log-title-wrapper"},[e.createElementVNode("text",{class:"section-title"},"日志"),e.createElementVNode("text",{class:"log-count"},"("+e.toDisplayString(e.unref(n).logs.length)+")",1)]),e.createElementVNode("view",{class:"log-actions"},[e.createElementVNode("button",{class:"btn btn-small btn-secondary",onClick:a[3]||(a[3]=(...t)=>e.unref(n).clearLogs&&e.unref(n).clearLogs(...t))},"清空")])]),e.createElementVNode("scroll-view",{class:"log-list","scroll-y":"",onScrolltoupper:v},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).logs,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass(["log-item","log-"+t.type])},[e.createElementVNode("text",{class:"log-time"},e.toDisplayString(t.time),1),e.createElementVNode("text",{class:"log-content"},e.toDisplayString(t.content),1)],2)))),128))],32)])]))}},[["__scopeId","data-v-939e1d1d"]]),pe=g({__name:"CloudDatabase",setup(n){const o=e.ref(""),l=e.ref(""),c=e.ref(""),r=e.ref("user"),h=e=>{r.value=e,T.value=[],M()},g=e.ref("云端数据"),w=e.ref(!1),k=e.ref(!1),C=e.ref([]),N=()=>{w.value=!w.value},b=e.computed((()=>{var e;return 0===T.value.length?"":1===T.value.length?"云端数据":(null==(e=T.value[T.value.length-2])?void 0:e.name)||"云端数据"})),V=()=>{T.value.length>0?(T.value.pop(),g.value=T.value.length>0?T.value[T.value.length-1].name:"云端数据",M()):uni.navigateBack({delta:1,fail(){uni.reLaunch({url:"/pages/Chat/Chat"})}})},_=e.ref([]),B=e.ref([]),S=e.ref([]),x=e.ref([]),T=e.ref([]),D=e=>"folder"===e.type,P=e=>{if(D(e))return"icon-a-wenjianjiawenjian";const t=(e=>{if(D(e))return"folder";const t=e.name||"",a=t.lastIndexOf(".");return-1===a?"":t.slice(a).toLowerCase()})(e),a=(e.type||"").toLowerCase(),n={".png":"icon-wenjiantupian",".jpg":"icon-wenjiantupian",".jpeg":"icon-wenjiantupian",".gif":"icon-wenjiantupian",".svg":"icon-SVG",".bmp":"icon-wenjiantupian",".webp":"icon-wenjiantupian",".mp4":"icon-wenjianshipin",".avi":"icon-wenjianshipin",".mov":"icon-wenjianshipin",".wmv":"icon-wenjianshipin",".flv":"icon-wenjianshipin",".mkv":"icon-wenjianshipin",".mp3":"icon-wenjianyinpin",".wav":"icon-wenjianyinpin",".flac":"icon-wenjianyinpin",".aac":"icon-wenjianyinpin",".pdf":"icon-PDF",".doc":"icon-DOC",".docx":"icon-DOC",".xls":"icon-XLS",".xlsx":"icon-XLS",".ppt":"icon-PPT",".pptx":"icon-PPT",".txt":"icon-TXT",".md":"icon-file-markdown-fill",".zip":"icon-wenjianyasuo",".rar":"icon-wenjianyasuo",".7z":"icon-wenjianyasuo",".tar":"icon-wenjianyasuo",".gz":"icon-wenjianyasuo",".js":"icon-JS",".ts":"icon-daimawenjia",".vue":"icon-daimawenjia",".html":"icon-HTML",".css":"icon-CSS",".py":"icon-daimawenjian",".java":"icon-daimawenjian",".json":"icon-JSON"};return t&&n[t]?n[t]:a.startsWith("image/")?"icon-wenjiantupian":a.startsWith("video/")?"icon-wenjianshipin":a.startsWith("audio/")?"icon-wenjianyinpin":a.includes("spreadsheet")||a.includes("excel")?"icon-XLS":a.includes("document")||a.includes("word")?"icon-DOC":a.includes("presentation")||a.includes("powerpoint")?"icon-PPT":a.includes("pdf")?"icon-PDF":a.includes("zip")||a.includes("rar")||a.includes("tar")||a.includes("gzip")?"icon-wenjianyasuo":"icon-qitawenjian"},j=e=>e?e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB":"",$=e.computed((()=>0===T.value.length?"根目录 (/)":"/"+T.value.map((e=>e.name)).join("/"))),L=e.computed((()=>_.value.length)),M=()=>{const e="user"===r.value?_.value:B.value;if(0===T.value.length)"user"===r.value?S.value=e:x.value=e;else{const e=T.value[T.value.length-1].children||[];"user"===r.value?S.value=e:x.value=e}},I=async()=>{try{o.value=E();const e=await i(o.value);l.value=e._id,c.value=uni.getStorageSync("workspace_id")||"";const t=await v(o.value,"user");_.value=t||[],"user"===r.value&&(S.value=t||[])}catch(e){t("error","at pages/CloudDatabase/CloudDatabase.vue:689","获取文件列表失败:",e),_.value=[],S.value=[]}},z=async e=>{try{e=null==e?"":String(e);const a=await v(o.value,"team","/",e);t("log","at pages/CloudDatabase/CloudDatabase.vue:700","团队云端文件:",JSON.stringify(a)),B.value=a||[],x.value=a||[]}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:704","获取团队文件列表失败:",a),B.value=[],x.value=[]}},F=e=>{D(e)?(T.value.push({path:e.path,name:e.name,children:e.children||[]}),g.value=e.name,M()):A(e)},O=e=>{if(k.value){const t=C.value.indexOf(e.id);return void(-1!==t?C.value.splice(t,1):C.value.push(e.id))}const t=D(e)?["重命名","删除"]:["下载","重命名","删除"];uni.showActionSheet({itemList:t,success:t=>{if(D(e))switch(t.tapIndex){case 0:J(e);break;case 1:H(e)}else switch(t.tapIndex){case 0:A(e);break;case 1:J(e);break;case 2:H(e)}}})},A=async e=>{var a,n;if(D(e))uni.showToast({title:"暂不支持下载目录",icon:"none"});else try{uni.showLoading({title:"获取下载链接..."});const t=await(a=o.value,n=e.id,new Promise(((e,t)=>{uni.request({url:`${s}/cloud_api/file/download`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:a,file_id:n},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.data.download_url);else{const e=(null==n?void 0:n.error)||"获取云端文件url出错啦";t(e)}}else t(`获取云端文件url失败:${a.statusCode}`)},fail:e=>{const a=e.errMsg||"网络错误";t(a)}})})));if(uni.hideLoading(),!t)return void uni.showToast({title:"获取下载链接失败",icon:"error"});uni.showLoading({title:"下载中..."}),uni.downloadFile({url:t,success:t=>{if(uni.hideLoading(),200===t.statusCode){const a=t.tempFilePath;U(e.name,a)}else uni.showToast({title:"下载失败",icon:"error"})},fail:()=>{uni.hideLoading(),uni.showToast({title:"下载失败,请重试",icon:"error"})}})}catch(l){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:821","下载失败:",l),uni.showToast({title:"下载失败,请重试",icon:"error"})}},U=(e,a)=>{const n="/storage/emulated/0/yxd/";var o;o=o=>{plus.io.resolveLocalFileSystemURL(a,(l=>{l.copyTo(o,e,(()=>{const a=n+e;t("log","at pages/CloudDatabase/CloudDatabase.vue:864","文件已保存到:",a),q(e,a)}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:868","复制文件失败:",JSON.stringify(n)),q(e,a)}))}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:873","读取临时文件失败:",JSON.stringify(n)),q(e,a)}))},plus.io.resolveLocalFileSystemURL(n,(e=>{o(e)}),(()=>{plus.io.resolveLocalFileSystemURL("/storage/emulated/0/",(n=>{n.getDirectory("yxd",{create:!0},(e=>{o(e)}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:845","创建 yxd 目录失败:",JSON.stringify(n)),uni.showToast({title:"创建目录失败",icon:"error"}),q(e,a)}))}),(n=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:850","访问外部存储根目录失败:",JSON.stringify(n)),uni.showToast({title:"无法访问存储目录",icon:"error"}),q(e,a)}))}))},q=(e,t)=>{uni.showActionSheet({title:`${e} 下载完成`,itemList:["打开文件","选择其他应用打开","仅保存"],success:e=>{switch(e.tapIndex){case 0:W(t);break;case 1:R(t);break;case 2:uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}},fail:()=>{uni.showToast({title:"文件已保存到 yxd 目录",icon:"success"})}})},W=e=>{uni.openDocument({filePath:e,success:()=>uni.showToast({title:"打开成功",icon:"success"}),fail:a=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:936","打开文件失败:",a),R(e)}})},R=e=>{plus.runtime.openFile(e,{},(e=>{t("log","at pages/CloudDatabase/CloudDatabase.vue:948","文件打开成功")}))},J=e=>{uni.showModal({title:"重命名",content:"请输入新名称",editable:!0,placeholderText:e.name,success:e=>{e.confirm&&e.content&&(uni.showToast({title:"重命名成功",icon:"success"}),G())}})},H=e=>{const a=D(e)?`确定要删除目录"${e.name}"吗?目录内所有文件将被一并删除。`:`确定要删除文件"${e.name}"吗?`;uni.showModal({title:"删除确认",content:a,confirmText:"删除",confirmColor:"#e74c3c",success:async a=>{if(a.confirm){uni.showLoading({title:"删除中..."});try{await(n=o.value,l=e.id,new Promise(((e,t)=>{uni.request({url:`${s}/cloud_api/file/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:n,file_id:l},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.message);else{const e=(null==n?void 0:n.error)||"删除云端文件出错啦";t(e)}}else t(`删除云端文件失败:${a.statusCode}`)},fail:e=>{const a=e.errMsg||"网络错误";t(a)}})}))),uni.hideLoading(),uni.showToast({title:"删除成功",icon:"success"}),G()}catch(i){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1014","deleteCloudFile 失败,尝试 daleteWorkspace:",i);try{const t=e.path||"/"+e.name;c.value&&await d(o.value,c.value,t),uni.showToast({title:"删除成功",icon:"success"}),G()}catch(r){t("error","at pages/CloudDatabase/CloudDatabase.vue:1026","删除失败:",r),uni.showToast({title:"删除失败,请重试",icon:"error"})}}}var n,l}})},G=async()=>{"user"===r.value?await I():await z(Te.value)},K=e.ref(!1),X=e.ref(""),Y=()=>{K.value=!1,X.value=""},Q=async()=>{const e=X.value.trim();if(e)try{if(c.value){const t=("根目录 (/)"===$.value?"/":$.value)+e;await m(o.value,c.value,t)}uni.showToast({title:"创建成功",icon:"success"}),Y(),G()}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:1083","创建文件夹失败:",a),uni.showToast({title:"创建失败,请重试",icon:"error"})}else uni.showToast({title:"请输入目录名称",icon:"none"})},Z=e.ref(!1),ee=e.ref("/"),te=()=>{Z.value=!0,ee.value="/"},ae=()=>{Z.value=!1},ne=()=>{ee.value.trim()||(ee.value="/"),Z.value=!1,oe()},oe=()=>{se({count:10,type:"all",success:e=>{const t=(e.tempFiles||[]).map((e=>({tempFilePath:e.path||e.tempFilePath,name:e.name})));0!==t.length?le(t):uni.showToast({title:"未选择文件",icon:"none"})},fail:e=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:1133","选择文件失败:",e)}})},le=async e=>{uni.showLoading({title:"上传中..."});try{const t=ee.value.trim()||"/",a="user"===r.value?"user":"team",n="team"===r.value?Te.value:"";await((e,t,a,n,o)=>new Promise(((l,c)=>{const i=null==o?"":String(o);uni.uploadFile({url:`${s}/cloud_api/file/upload`,method:"POST",header:{},formData:{access_token:e,path:a||"/",type:t,team_id:i},files:n.map((e=>({uri:e.tempFilePath,name:"files"}))),success:e=>{if(200===e.statusCode)try{const t=JSON.parse(e.data);if(t.success)l(t.message);else{const e=(null==t?void 0:t.error)||"获取云端文件url出错啦";c(e)}}catch(t){c("接口返回数据格式异常")}else c(`获取云端文件url失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(o.value,a,t,e,n),uni.hideLoading(),uni.showToast({title:"上传成功",icon:"success"}),G()}catch(a){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1159","上传文件失败:",a),uni.showToast({title:"上传失败,请重试",icon:"error"})}},ce=e.ref([]),ie=e.ref(!1),re=e.computed((()=>ce.value)),ue=e.computed((()=>ce.value.filter((e=>e.team_id&&String(e.team_id)===String(Te.value))))),de=e.ref(!1),me=e.ref(""),ve=async()=>{ie.value=!0;try{const e=E(),t=await(e=>new Promise(((t,a)=>{uni.request({url:`${s}/cloud_api/database/list`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e},success:e=>{if(200===e.statusCode){const n=e.data;if(n.success)t(n.databases);else{const e=(null==n?void 0:n.error)||"获取用户可访问的数据库列表出错啦";a(e)}}else a(`获取用户可访问的数据库列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";a(t)}})})))(e);ce.value=t||[]}catch(e){t("error","at pages/CloudDatabase/CloudDatabase.vue:1185","获取数据库列表失败:",e),ce.value=[]}finally{ie.value=!1}},pe=()=>{de.value=!0,me.value=""},fe=()=>{de.value=!1,me.value=""},he=async()=>{const e=me.value.trim();if(e){uni.showLoading({title:"创建中..."});try{const t=E();await((e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/cloud_api/database/create`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_name:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.message);else{const e=(null==t?void 0:t.error)||"创建数据库出错啦";n(e)}}else n(`创建数据库失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(t,e),uni.hideLoading(),uni.showToast({title:"创建成功",icon:"success"}),fe(),await ve()}catch(a){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1216","创建数据库失败:",a),uni.showToast({title:"创建失败,请重试",icon:"error"})}}else uni.showToast({title:"请输入数据库名称",icon:"none"})},ge=e.ref(!1),we=e.ref(""),ke=e.ref(""),ye=()=>{ge.value=!0,we.value="",ke.value=""},Ee=()=>{ge.value=!1},Ce=()=>{se({count:1,type:"all",success:e=>{const t=e.tempFiles[0];we.value=t.name||"unknown",ke.value=t.path},fail:e=>{t("error","at pages/CloudDatabase/CloudDatabase.vue:1245","选择文件失败:",e),uni.showToast({title:"选择文件失败",icon:"none"})}})},Ne=async()=>{var e;if(!ke.value)return void uni.showToast({title:"请选择数据库文件",icon:"none"});const a=null==(e=we.value.split(".").pop())?void 0:e.toLowerCase();if(["db","sqlite","sqlite3"].includes(a)){uni.showLoading({title:"上传中..."});try{const e=E();await((e,t)=>new Promise(((a,n)=>{const o="string"==typeof t?t:t.tempFilePath||t.path||t,l="string"==typeof t?t.split("/").pop()||"database.db":t.name||"database.db";uni.uploadFile({url:`${s}/cloud_api/database/upload/db`,method:"POST",header:{},formData:{access_token:e},file:{name:l,uri:o},files:[{name:"file",uri:o}],success:e=>{if(200===e.statusCode)try{const t=JSON.parse(e.data);if(t.success)a(t.message);else{const e=(null==t?void 0:t.error)||"上传db出错啦";n(e)}}catch(t){n("接口返回数据格式异常")}else n(`上传db失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(e,ke.value),uni.hideLoading(),uni.showToast({title:"上传成功",icon:"success"}),Ee(),await ve()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1273","上传数据库失败:",n),uni.showToast({title:"上传失败,请重试",icon:"error"})}}else uni.showToast({title:"仅支持 .db / .sqlite / .sqlite3 文件",icon:"none"})},be=e=>{uni.showModal({title:"删除数据库",content:`确定要删除数据库"${e.database_name}"吗?此操作不可恢复。`,success:async a=>{if(a.confirm){uni.showLoading({title:"删除中..."});try{const t=E();await((e,t)=>new Promise(((a,n)=>{uni.request({url:`${s}/cloud_api/database/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_id:t},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)a(t.message);else{const e=(null==t?void 0:t.error)||"删除数据库出错啦";n(e)}}else n(`删除数据库失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";n(t)}})})))(t,e.database_id),uni.hideLoading(),uni.showToast({title:"删除成功",icon:"success"}),await ve()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1293","删除数据库失败:",n),uni.showToast({title:"删除失败,请重试",icon:"error"})}}}})},Ve=e=>{uni.navigateTo({url:`/pages/CloudDbDetail/CloudDbDetail?databaseId=${e.database_id}&databaseName=${encodeURIComponent(e.database_name)}&teamId=${e.team_id||""}`})},_e=e=>{if(!e)return"";const t=new Date(1e3*e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},Be=e=>({0:"无权限",1:"只读",2:"读写",3:"管理"}[e]||"未知"),Se=e.ref(!1),xe=e.ref([]),Te=e.ref(""),De=e.ref([]),Pe=e.ref(""),je=e.computed((()=>{if(!Te.value)return"";const e=xe.value.find((e=>e.id===Te.value));return(null==e?void 0:e.description)||""})),$e=e.computed((()=>{if(!Te.value)return"";const e=xe.value.find((e=>e.id===Te.value));return(null==e?void 0:e.type)||""})),Le=e.computed((()=>{if(!l.value||0===De.value.length)return"member";const e=De.value.find((e=>e.receiver===l.value||e.user_id===l.value));return(null==e?void 0:e.role)||"member"}));e.computed((()=>{const e=Le.value;return"admin"===e||"owner"===e}));const Me=async()=>{try{const e=E(),t=await p(e);xe.value=t||[]}catch(e){t("error","at pages/CloudDatabase/CloudDatabase.vue:1362","获取团队列表失败:",e),xe.value=[]}},Ie=async e=>{t("log","at pages/CloudDatabase/CloudDatabase.vue:1368","团队id为",e),Te.value=e;try{const t=E(),a=await f(t,e);De.value=(a||[]).map((e=>{var t,a,n,o,l;return{id:e._id,receiver:e.user_id,user_id:e.user_id,friendNickName:(null==(t=e.user)?void 0:t.username)||"",username:(null==(a=e.user)?void 0:a.username)||"",avatar:(null==(n=e.user)?void 0:n.avatar)||"",email:(null==(o=e.user)?void 0:o.email)||"",role:e.role||(null==(l=e.user)?void 0:l.role)||"member"}}))}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:1385","获取团队成员失败:",a),De.value=[]}T.value=[],g.value="云端数据",await z(e)},ze=async()=>{if(Te.value)try{const e=E(),t=await f(e,Te.value),a=(t||[]).find((e=>e.user_id===l.value)),n=(null==a?void 0:a.role)||"member";if("admin"!==n&&"owner"!==n)return void uni.showToast({title:"仅管理员可管理团队",icon:"none"});De.value=(t||[]).map((e=>{var t,a,n,o,l;return{id:e._id,receiver:e.user_id,user_id:e.user_id,friendNickName:(null==(t=e.user)?void 0:t.username)||"",username:(null==(a=e.user)?void 0:a.username)||"",avatar:(null==(n=e.user)?void 0:n.avatar)||"",email:(null==(o=e.user)?void 0:o.email)||"",role:e.role||(null==(l=e.user)?void 0:l.role)||"member"}}))}catch(e){return t("error","at pages/CloudDatabase/CloudDatabase.vue:1419","获取团队成员失败:",e),void uni.showToast({title:"获取团队信息失败",icon:"none"})}else if(xe.value.length>0){await Ie(xe.value[0].id),Se.value=!0;const e=De.value.find((e=>(e.receiver||e.user_id)===l.value)),t=(null==e?void 0:e.role)||"member";if("admin"!==t&&"owner"!==t)return Se.value=!1,void uni.showToast({title:"仅管理员可管理团队",icon:"none"})}Se.value=!0},Fe=()=>{Se.value=!1,Pe.value="",Xe.value=[],Ye.value=!1},Oe=e.ref(!1),Ae=e.ref(""),Ue=e.ref(""),qe=e.ref(""),We=()=>{const e=xe.value.find((e=>e.id===Te.value));e?(Ae.value=e.name||"",Ue.value=e.description||"",qe.value=e.type||"",Oe.value=!0):uni.showToast({title:"请先选择团队",icon:"none"})},Re=()=>{Oe.value=!1},Je=async()=>{const e=Ae.value.trim();if(e){uni.showLoading({title:"修改中..."});try{const t=E();await((e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/team/update`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,...a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"修改团队信息出错啦";o(e)}}else o(`修改团队信息失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(t,Te.value,{team_name:e,team_description:Ue.value.trim(),team_type:qe.value.trim()}),uni.hideLoading(),uni.showToast({title:"修改成功",icon:"success"}),Re(),await Me(),Te.value=Te.value}catch(a){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1491","修改团队信息失败:",a),uni.showToast({title:"修改失败,请重试",icon:"error"})}}else uni.showToast({title:"请输入团队名称",icon:"none"})},He=async(e,a)=>{const n=e.friendNickName||e.username||e.name;uni.showModal({title:"admin"===a?"设为管理员":"降为成员",content:`确定将"${n}"${"admin"===a?"设为管理员":"降为普通成员"}吗?`,success:async n=>{if(n.confirm){uni.showLoading({title:"操作中..."});try{const t=E(),n=e.receiver||e.user_id;await((e,t,a,n)=>new Promise(((o,l)=>{uni.request({url:`${s}/cloud_api/team/adjust_member_role`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,user_id:a,role:n},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)o(t.message);else{const e=(null==t?void 0:t.error)||"调整团员身份出错啦";l(e)}}else l(`调整团员身份失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(t,Te.value,n,a),uni.hideLoading(),uni.showToast({title:"已"+("admin"===a?"设为管理员":"降为成员"),icon:"success"}),await Ke()}catch(o){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1516","调整成员身份失败:",o),uni.showToast({title:"操作失败,请重试",icon:"error"})}}}})},Ge=async e=>{const a=e.friendNickName||e.username||e.name;uni.showModal({title:"移除成员",content:`确定要移除"${a}"吗?`,success:async a=>{if(a.confirm){uni.showLoading({title:"移除中..."});try{const t=E(),a=e.receiver||e.user_id;await((e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/team/remove_member`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,user_ids:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"移除团队成员出错啦";o(e)}}else o(`移除团队成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(t,Te.value,[a]),uni.hideLoading(),uni.showToast({title:"已移除",icon:"success"}),await Ke()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1542","移除团队成员失败:",n),uni.showToast({title:"移除失败,请重试",icon:"error"})}}}})},Ke=async()=>{const e=E(),t=await f(e,Te.value);De.value=(t||[]).map((e=>{var t,a,n,o;return{id:e._id,receiver:e.user_id,user_id:e.user_id,friendNickName:(null==(t=e.user)?void 0:t.username)||"",username:(null==(a=e.user)?void 0:a.username)||"",avatar:(null==(n=e.user)?void 0:n.avatar)||"",email:(null==(o=e.user)?void 0:o.email)||"",role:e.role||"member"}}))},Xe=e.ref([]),Ye=e.ref(!1),Qe=async()=>{const e=Pe.value.trim();if(e)try{const t=E(),a=await u(t,e);Xe.value=a||[],Ye.value=!0,Xe.value.length}catch(a){t("error","at pages/CloudDatabase/CloudDatabase.vue:1584","搜索用户失败:",a),Xe.value=[],Ye.value=!0}else uni.showToast({title:"请输入用户名或邮箱",icon:"none"})},Ze=e=>{uni.showModal({title:"添加成员",content:`确定将"${e.username}"添加到当前团队吗?`,success:async a=>{if(a.confirm){uni.showLoading({title:"添加中..."});try{const t=E();await((e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/team/add_member`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,team_id:t,user_ids:a,role:"admin"},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.message);else{const e=(null==t?void 0:t.error)||"添加团队成员出错啦";o(e)}}else o(`添加团队成员失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(t,Te.value,[e._id]),uni.hideLoading(),uni.showToast({title:"添加成功",icon:"success"}),Pe.value="",Xe.value=[],Ye.value=!1,await Ke()}catch(n){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1610","添加团队成员失败:",n),uni.showToast({title:"添加失败,请重试",icon:"error"})}}}})},et=()=>{const e=xe.value.find((e=>e.id===Te.value)),a=e?e.name:"当前团队";uni.showModal({title:"删除团队",content:`确定要删除团队"${a}"吗?此操作不可撤销,团队内所有文件和数据将被永久删除。`,confirmText:"删除",confirmColor:"#e74c3c",success:async e=>{if(e.confirm){uni.showLoading({title:"删除中..."});try{await(a=o.value,n=Te.value,new Promise(((e,t)=>{uni.request({url:`${s}/cloud_api/team/delete`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:a,team_id:n},success:a=>{if(200===a.statusCode){const n=a.data;if(n.success)e(n.message);else{const e=(null==n?void 0:n.error)||"删除团队出错啦";t(e)}}else t(`删除团队失败:${a.statusCode}`)},fail:e=>{const a=e.errMsg||"网络错误";t(a)}})}))),uni.hideLoading(),uni.showToast({title:"团队已删除",icon:"success"}),Te.value="",De.value=[],x.value=[],T.value=[],g.value="云端数据",await Me(),Fe()}catch(l){uni.hideLoading(),t("error","at pages/CloudDatabase/CloudDatabase.vue:1644","删除团队失败:",l),uni.showToast({title:"删除失败,请重试",icon:"error"})}}var a,n}})};return e.onMounted((async()=>{await I(),await Me(),await ve()})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"status-bar"}),Se.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay",onClick:Fe},[e.createElementVNode("view",{class:"popup-card",onClick:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Fe},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"团队管理"),e.createElementVNode("scroll-view",{class:"team-manage-body","scroll-y":""},[0===De.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},"暂无团队成员")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"member-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(De.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"member-item",key:t._id||t.receiver},[e.createElementVNode("view",{class:"member-avatar"},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"default-avatar"},[e.createVNode(o,{type:"person-filled",size:"60rpx",color:"#ffffff"})]))]),e.createElementVNode("view",{class:"member-info"},[e.createElementVNode("view",{class:"member-name"},e.toDisplayString(t.friendNickName||t.username||t.name),1),e.createElementVNode("view",{class:"member-label"},e.toDisplayString(t.email||t.sessionId||""),1)]),e.createElementVNode("view",{class:"member-actions"},[(t.receiver||t.user_id)===l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["member-role",Le.value])},e.toDisplayString("owner"===Le.value?"创建者":"管理员"),3)):"owner"===t.role?(e.openBlock(),e.createElementBlock("view",{key:1,class:"member-role owner"},"创建者")):"admin"===t.role?(e.openBlock(),e.createElementBlock("view",{key:2,class:"member-actions-right"},[e.createElementVNode("view",{class:"member-action-btn demote-admin",onClick:e=>He(t,"member")},"降为成员",8,["onClick"]),e.createElementVNode("view",{class:"member-action-btn remove-member",onClick:e=>Ge(t)},"移除",8,["onClick"])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"member-actions-right"},[e.createElementVNode("view",{class:"member-action-btn set-admin",onClick:e=>He(t,"admin")},"设为管理",8,["onClick"]),e.createElementVNode("view",{class:"member-action-btn remove-member",onClick:e=>Ge(t)},"移除",8,["onClick"])]))])])))),128))]))]),e.createElementVNode("view",{class:"invite-section"},[e.createElementVNode("view",{class:"invite-input-wrapper"},[e.withDirectives(e.createElementVNode("input",{class:"invite-input",placeholder:"输入用户名或邮箱搜索","onUpdate:modelValue":n[0]||(n[0]=e=>Pe.value=e),onConfirm:Qe},null,544),[[e.vModelText,Pe.value]]),e.createElementVNode("view",{class:"invite-btn text-btn",onClick:Qe},"搜索")]),Xe.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-result-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Xe.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"search-result-item",key:t._id,onClick:e=>Ze(t)},[t.avatar?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.avatar,class:"result-avatar",mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"result-default-avatar"},[e.createVNode(o,{type:"person-filled",size:"40rpx",color:"#fff"})])),e.createElementVNode("view",{class:"result-info"},[e.createElementVNode("text",{class:"result-name"},e.toDisplayString(t.username),1),e.createElementVNode("text",{class:"result-email"},e.toDisplayString(t.email),1)]),e.createElementVNode("view",{class:"result-add-btn"},"添加")],8,["onClick"])))),128))])):Pe.value&&Ye.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"search-empty"},"未找到匹配用户")):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"edit-team-section"},[e.createElementVNode("view",{class:"edit-team-btn",onClick:We},"修改团队信息")]),e.createElementVNode("view",{class:"delete-team-section"},[e.createElementVNode("view",{class:"delete-team-btn",onClick:et},"删除团队")])])])):e.createCommentVNode("",!0),Oe.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-overlay",onClick:Re},[e.createElementVNode("view",{class:"popup-card",onClick:n[4]||(n[4]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Re},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"修改团队信息"),e.createElementVNode("view",{class:"edit-team-form"},[e.createElementVNode("view",{class:"form-label"},"团队名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[2]||(n[2]=e=>Ae.value=e),type:"text",placeholder:"输入团队名称"},null,512),[[e.vModelText,Ae.value]])]),e.createElementVNode("view",{class:"form-label"},"团队描述"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=e=>Ue.value=e),type:"text",placeholder:"输入团队描述"},null,512),[[e.vModelText,Ue.value]])])]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:Re},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:Je},"确认修改")])])])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"popup-overlay",onClick:Y},[e.createElementVNode("view",{class:"popup-card",onClick:n[6]||(n[6]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Y},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"新建"+e.toDisplayString("user"===r.value?"个人":"团队")+"目录",1),e.createElementVNode("view",{class:"new-folder-name"},"目录名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[5]||(n[5]=e=>X.value=e),type:"text",placeholder:"输入目录名称"},null,512),[[e.vModelText,X.value]])]),e.createElementVNode("view",{class:"nf-path-label"},"当前路径"),e.createElementVNode("view",{class:"nf-path-display"},e.toDisplayString($.value),1),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:Y},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:Q},"确认")])])])):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"popup-overlay",onClick:ae},[e.createElementVNode("view",{class:"popup-card",onClick:n[8]||(n[8]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:ae},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"上传文件"),e.createElementVNode("view",{class:"upload-path-label"},"上传路径"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[7]||(n[7]=e=>ee.value=e),type:"text",placeholder:"输入上传路径,如:/myfolder"},null,512),[[e.vModelText,ee.value]])]),e.createElementVNode("view",{class:"upload-path-hint"},"默认为根目录 /,后端会自动创建不存在的文件夹"),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:ae},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:ne},"确认上传")])])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"popup-overlay",onClick:fe},[e.createElementVNode("view",{class:"popup-card",onClick:n[10]||(n[10]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:fe},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"新建个人数据库"),e.createElementVNode("view",{class:"new-folder-name"},"数据库名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[9]||(n[9]=e=>me.value=e),type:"text",placeholder:"输入数据库名称"},null,512),[[e.vModelText,me.value]])]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:fe},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:he},"确认")])])])):e.createCommentVNode("",!0),ge.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"popup-overlay",onClick:Ee},[e.createElementVNode("view",{class:"popup-card",onClick:n[11]||(n[11]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:Ee},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"上传数据库文件"),e.createElementVNode("view",{class:"upload-db-hint"},"支持 .db / .sqlite / .sqlite3 格式的 SQLite 数据库文件"),e.createElementVNode("view",{class:"upload-file-area",onClick:Ce},[we.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"selected-file"},e.toDisplayString(we.value),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload-hint"},"点击选择数据库文件"))]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:Ee},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:Ne},"确认上传")])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"cloud-db-container page-container"},[e.createElementVNode("view",{class:"cloud-db-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:V},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"}),T.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"navbar-before-title"},e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"navbar-title"},e.toDisplayString(g.value),1),e.createElementVNode("view",{class:"navbar-right"}),w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:n[12]||(n[12]=e=>{k.value=!k.value,k.value||(C.value=[]),N()})},"选择"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item",onClick:n[13]||(n[13]=e=>{K.value=!0,X.value="",N()})},"新建文件夹")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"category-tabs"},[e.createElementVNode("view",{class:e.normalizeClass(["category-tab",{active:"user"===r.value}]),onClick:n[14]||(n[14]=e=>h("user"))}," 个人 ",2),e.createElementVNode("view",{class:e.normalizeClass(["category-tab",{active:"team"===r.value}]),onClick:n[15]||(n[15]=e=>h("team"))}," 团队 ",2)])]),e.createElementVNode("scroll-view",{class:"cloud-db-content","scroll-y":""},["user"===r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"云端文件"),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(L.value>0?"("+L.value+")":""),1)]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("view",{class:"action-btn",onClick:te},[e.createVNode(o,{type:"upload",size:"16"}),e.createElementVNode("text",null,"上传文件")])])]),e.createElementVNode("view",{class:"section-body"},[0===S.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"暂无云端文件")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"file-item",key:t.id,onClick:e=>F(t),onLongpress:e=>O(t)},[e.createElementVNode("view",{class:e.normalizeClass(["file-icon",D(t)?"is-directory":"is-file"])},[e.createElementVNode("view",{class:e.normalizeClass(["iconfont",P(t)])},null,2)],2),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-meta"},[e.createElementVNode("text",{class:"file-type-tag"},e.toDisplayString(D(t)?"目录":"文件"),1),t.size?(e.openBlock(),e.createElementBlock("text",{key:0,class:"file-size"},e.toDisplayString(j(t.size)),1)):e.createCommentVNode("",!0)])],40,["onClick","onLongpress"])))),128))]))])]),e.createElementVNode("view",{class:"section-divider"}),e.createElementVNode("view",{class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"云端数据库"),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(!ie.value&&re.value.length>0?"("+re.value.length+")":""),1)]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("view",{class:"action-btn",onClick:ye},[e.createVNode(o,{type:"upload",size:"16"}),e.createElementVNode("text",null,"上传数据库")]),e.createElementVNode("view",{class:"action-btn",onClick:pe},[e.createVNode(o,{type:"plus",size:"16"}),e.createElementVNode("text",null,"新建数据库")])])]),e.createElementVNode("view",{class:"section-body"},[ie.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-area"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):0===re.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"暂无数据库")])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"table-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"table-item",key:t.database_id,onClick:e=>Ve(t),onLongpress:e=>be(t)},[e.createElementVNode("view",{class:"table-icon"},[e.createVNode(o,{type:"compose",size:"22",color:"#3b86ff"})]),e.createElementVNode("view",{class:"table-info"},[e.createElementVNode("view",{class:"table-name"},[e.createTextVNode(e.toDisplayString(t.database_name)+" ",1),e.createElementVNode("text",{class:e.normalizeClass(["db-tag",t.team_id?"tag-team":"tag-personal"])},e.toDisplayString(t.team_id?"团队共享":"个人私有"),3)]),e.createElementVNode("view",{class:"table-desc"},e.toDisplayString(t.table_count||0)+" 张表 · "+e.toDisplayString(Be(t.access_level)),1)]),e.createElementVNode("view",{class:"table-meta"},[e.createElementVNode("text",{class:"table-rows"},e.toDisplayString(_e(t.modified_time)),1),e.createVNode(o,{type:"right",size:"14",color:"#999"})])],40,["onClick","onLongpress"])))),128))]))])])],64)):e.createCommentVNode("",!0),"team"===r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"section-block team-manage-block",onClick:ze},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-qunliao"}),e.createElementVNode("text",null,"团队管理")]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("text",{class:"team-count"},e.toDisplayString(xe.value.length)+" 个团队",1),e.createVNode(o,{type:"right",size:"14",color:"#999"})])])]),e.createElementVNode("view",{class:"section-divider"}),xe.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"team-selector"},[e.createElementVNode("scroll-view",{"scroll-x":"",class:"team-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(xe.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["team-chip",{active:Te.value===t.id}]),key:t.id,onClick:e=>Ie(t.id)},e.toDisplayString(t.name),11,["onClick"])))),128))]),$e.value||je.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"team-info"},[$e.value?(e.openBlock(),e.createElementBlock("text",{key:0,class:"team-type-tag"},e.toDisplayString($e.value),1)):e.createCommentVNode("",!0),je.value?(e.openBlock(),e.createElementBlock("text",{key:1,class:"team-desc-text"},e.toDisplayString(je.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),!Te.value&&xe.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip select-team-tip"},[e.createElementVNode("view",{class:"iconfont icon-qunliao"}),e.createElementVNode("text",null,"请选择一个团队")])):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"团队云端文件")]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("view",{class:"action-btn",onClick:te},[e.createVNode(o,{type:"upload",size:"16"}),e.createElementVNode("text",null,"上传文件")])])]),e.createElementVNode("view",{class:"section-body"},[0===x.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-wenjianjia"}),e.createElementVNode("text",null,"暂无团队云端文件")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-grid"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"file-item",key:t.id,onClick:e=>F(t),onLongpress:e=>O(t)},[e.createElementVNode("view",{class:e.normalizeClass(["file-icon",D(t)?"is-directory":"is-file"])},[e.createElementVNode("view",{class:e.normalizeClass(["iconfont",P(t)])},null,2)],2),e.createElementVNode("view",{class:"file-name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"file-meta"},[e.createElementVNode("text",{class:"file-type-tag"},e.toDisplayString(D(t)?"目录":"文件"),1),t.size?(e.openBlock(),e.createElementBlock("text",{key:0,class:"file-size"},e.toDisplayString(j(t.size)),1)):e.createCommentVNode("",!0)])],40,["onClick","onLongpress"])))),128))]))])])):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"section-divider"})):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"团队云端数据库")])]),e.createElementVNode("view",{class:"section-body"},[ie.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-area"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):0===ue.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"暂无团队数据库")])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"table-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"table-item",key:t.database_id,onClick:e=>Ve(t)},[e.createElementVNode("view",{class:"table-icon"},[e.createVNode(o,{type:"compose",size:"22",color:"#3b86ff"})]),e.createElementVNode("view",{class:"table-info"},[e.createElementVNode("view",{class:"table-name"},[e.createTextVNode(e.toDisplayString(t.database_name)+" ",1),e.createElementVNode("text",{class:"db-tag tag-team"},"团队共享")]),e.createElementVNode("view",{class:"table-desc"},e.toDisplayString(t.table_count||0)+" 张表 · "+e.toDisplayString(Be(t.access_level)),1)]),e.createElementVNode("view",{class:"table-meta"},[e.createElementVNode("text",{class:"table-rows"},e.toDisplayString(_e(t.modified_time)),1),e.createVNode(o,{type:"right",size:"14",color:"#999"})])],8,["onClick"])))),128))]))])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])])],64)}}},[["__scopeId","data-v-2d96f7d1"]]),fe=g({__name:"CloudDbDetail",props:{databaseId:{type:String,default:""},databaseName:{type:String,default:""},teamId:{type:String,default:""}},setup(n){const o=n,l=e.ref(o.databaseId||""),c=e.ref(o.databaseName||""),i=e.ref(o.teamId||""),r=e.ref(2),u=e.ref(0),d=e.ref([]),m=e.ref(!1),v=e.ref(null),f=e.ref([]),g=e.computed((()=>{var e;if(f.value.length>0){const e=new Set;return f.value.forEach((t=>Object.keys(t).forEach((t=>e.add(t))))),Array.from(e).filter((e=>"_row_id"!==e&&"_id"!==e))}return(null==(e=v.value)?void 0:e.columns)?v.value.columns.map((e=>e.name)).filter((e=>"_row_id"!==e)):[]})),w=e.ref(!1),k=()=>{w.value=!w.value},C=()=>{uni.navigateBack()},N=async()=>{m.value=!0;try{const e=E(),t=await((e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/database/tables`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_id:t,is_detail:a},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)n(t.tables);else{const e=(null==t?void 0:t.error)||"获取用户可访问的数据库列表出错啦";o(e)}}else o(`获取用户可访问的数据库列表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(e,l.value,!0);d.value=(t||[]).map((e=>({table_name:e.name,row_count:e.row_count||0,columns:e.columns||[]}))),u.value=d.value.length}catch(e){t("error","at pages/CloudDbDetail/CloudDbDetail.vue:282","获取表列表失败:",e),d.value=[]}finally{m.value=!1}},V=async e=>{v.value=e,f.value=[],uni.showLoading({title:"加载中..."});try{const t=E(),a=await((e,t,a,n="20",o="0")=>new Promise(((l,c)=>{uni.request({url:`${s}/cloud_api/database/table/data`,method:"POST",header:{"Content-Type":"application/json"},data:{access_token:e,database_id:t,table_name:a,limit:n,offset:o},success:e=>{if(200===e.statusCode){const t=e.data;if(t.success)l(t.data);else{const e=(null==t?void 0:t.error)||"获取表数据出错啦";c(e)}}else c(`获取表数据失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,l.value,e.table_name);f.value=a||[],uni.hideLoading()}catch(t){uni.hideLoading(),uni.showToast({title:"string"==typeof t?t:"加载表数据失败",icon:"none"}),f.value=[]}},_=e=>{uni.showModal({title:"删除表",content:`确定要删除表"${e.table_name}"吗?此操作不可恢复。`,success:async a=>{var n;if(a.confirm){uni.showLoading({title:"删除中..."});try{const t=E();await(async(e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/database/table/drop`,method:"POST",data:{access_token:e,database_id:t,table_name:a},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)n(t.message);else{const e=t.error||"删除数据库中的表出错啦";o(e)}}else o(`删除数据库中的表失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(t,l.value,e.table_name),uni.hideLoading(),uni.showToast({title:"删除成功",icon:"success"}),(null==(n=v.value)?void 0:n.table_name)===e.table_name&&(v.value=null,f.value=[]),await N()}catch(o){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:335","删除表失败:",o),uni.showToast({title:"删除失败,请重试",icon:"error"})}}}})},B=e=>{const a=e._row_id||e._id;if(!a)return void uni.showToast({title:"无法识别该行",icon:"none"});const n=g.value;if(0===n.length)return void uni.showToast({title:"无可用列",icon:"none"});const o=n[0];uni.showModal({title:`编辑 ${o}`,editable:!0,placeholderText:e[o]||"",content:"",success:async n=>{if(n.confirm&&void 0!==n.content){uni.showLoading({title:"更新中..."});try{const t=E();await((e,t,a,n,o)=>new Promise(((l,c)=>{uni.request({url:`${s}/cloud_api/database/table/update/by/id`,method:"POST",data:{access_token:e,database_id:t,table_name:a,where_data:n,update_data:o},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)l(t.message);else{const e=t.error||"更新表数据出错啦";c(e)}}else c(`更新表数据失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,l.value,v.value.table_name,{_row_id:a},{[o]:n.content}),uni.hideLoading(),uni.showToast({title:"更新成功",icon:"success"}),e[o]=n.content}catch(c){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:397","更新失败:",c),uni.showToast({title:c,icon:"error"})}}}})},S=e.ref(!1),x=e.ref(""),T=e.ref(""),D=e.ref(""),P=()=>{S.value=!1},j=()=>{se({count:1,type:"all",success:e=>{const t=e.tempFiles[0];T.value=t.name||"unknown",D.value=t.path},fail:e=>{t("error","at pages/CloudDbDetail/CloudDbDetail.vue:434","选择文件失败:",e),uni.showToast({title:"选择文件失败",icon:"none"})}})},$=async()=>{const e=x.value.trim()||"";if(D.value){uni.showLoading({title:"导入中..."});try{const t=E();await((e,t,a,n,o)=>new Promise(((l,c)=>{const i="string"==typeof n?n:n.tempFilePath||n.path||n,r="string"==typeof n?n.split("/").pop()||"file":n.name||"file";uni.uploadFile({url:`${s}/cloud_api/database/import`,method:"POST",header:{},formData:{access_token:e,force_overwrite:t,database_id:a,table_name:o},file:{name:r,uri:i},files:[{name:"file",uri:i}],success:e=>{if(200===e.statusCode)try{const t=JSON.parse(e.data);if(t.success)l(t.message);else{const e=(null==t?void 0:t.error)||"导入文件到数据库出错啦";c(e)}}catch(t){c("接口返回数据格式异常")}else c(`导入文件到数据库失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,!1,l.value,D.value,e),uni.hideLoading(),uni.showToast({title:"导入成功",icon:"success"}),P(),await N()}catch(a){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:474","导入失败:",a),"table_exists"===a?uni.showToast({title:"文件已存在",icon:"error"}):uni.showToast({title:"导入失败,请重试",icon:"error"})}}else uni.showToast({title:"请选择文件",icon:"none"})},L=e.ref(!1),M=e.ref([]),I=async()=>{L.value=!0,uni.showLoading({title:"加载中..."});try{const e=E();let t;t=i.value?await h(e,l.value,"team_id",i.value):await h(e,l.value,"user_id",b());const a=Array.isArray(t)?t:[];M.value=a.map((e=>{var t,a,n;return e.team?{_id:e._id,database_id:e.database_id,access_level:e.access_level,permType:"team_id",id:e.team._id||e.team.id,name:e.team.name}:e.team_id?{database_id:e.database_id,access_level:e.access_level,permType:"team_id",id:e.team_id,name:(null==(t=e.database)?void 0:t.database_name)||""}:{database_id:e.database_id,access_level:e.access_level,permType:"user_id",id:e.user_id||(null==(a=e.database)?void 0:a.user_id)||b(),name:(null==(n=e.database)?void 0:n.database_name)||""}}))}catch(e){t("error","at pages/CloudDbDetail/CloudDbDetail.vue:544","获取权限失败:",e),M.value=[]}uni.hideLoading()},z=()=>{L.value=!1},F=(e,a)=>{if("delete"===a)uni.showModal({title:"移除权限",content:`确定要移除"${e.name}"的权限吗?`,success:async a=>{if(a.confirm){uni.showLoading({title:"移除中..."});try{const t=E();await((e,t,a,n)=>new Promise(((o,l)=>{const c={access_token:e,database_id:t};"user_id"===a?c.user_id=n:"team_id"===a&&(c.team_id=n),uni.request({url:`${s}/cloud_api/database/permission/delete`,method:"POST",data:c,header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)o(t.message);else{const e=t.error||"删除 团队/用户 对数据库权限出错啦";l(e)}}else l(`删除 团队/用户 对数据库权限失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";l(t)}})})))(t,l.value,e.permType,e.id),uni.hideLoading(),uni.showToast({title:"已移除",icon:"success"}),await I()}catch(n){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:574","移除权限失败:",n),uni.showToast({title:"操作失败,请重试",icon:"error"})}}}});else{const a=["无权限访问","仅访问","管理员完全控制","团队完全控制"],n=e.access_level||0;uni.showActionSheet({title:"选择权限级别",itemList:a.map(((e,t)=>`${t}. ${e}`)),success:async a=>{const o=a.tapIndex;if(o!==n){uni.showLoading({title:"更新中..."});try{const t=E();await((e,t,a,n,o)=>new Promise(((l,c)=>{const i={access_token:e,database_id:t,access_level:o};"user_id"===a?i.user_id=n:"team_id"===a&&(i.team_id=n),uni.request({url:`${s}/cloud_api/database/permission/update`,method:"POST",data:i,header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)l(t.message);else{const e=t.error||"修改/增加 团队/用户 对数据库权限出错啦";c(e)}}else c(`修改/增加 团队/用户 对数据库权限失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";c(t)}})})))(t,l.value,e.permType,e.id,o),uni.hideLoading(),uni.showToast({title:"已更新",icon:"success"}),await I()}catch(c){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:608","更新权限失败:",c),uni.showToast({title:"操作失败,请重试",icon:"error"})}}}})}},O=e.ref(!1),A=e.ref([]),U=e.ref(""),q=()=>{O.value=!1},W=async()=>{U.value?uni.showModal({title:"确认移交",content:"移交后数据库将归属于该团队,确定继续吗?",success:async e=>{if(e.confirm){uni.showLoading({title:"移交中..."});try{const e=E();await(async(e,t,a)=>new Promise(((n,o)=>{uni.request({url:`${s}/cloud_api/database/transfer_to_team`,method:"POST",data:{access_token:e,database_id:t,team_id:a},header:{"Content-Type":"application/json"},success:e=>{if(200===e.statusCode){const t=e.data;if(null==t?void 0:t.success)n(t.message);else{const e=t.error||"个人数据库移交团队出错啦";o(e)}}else o(`个人数据库移交团队失败:${e.statusCode}`)},fail:e=>{const t=e.errMsg||"网络错误";o(t)}})})))(e,l.value,U.value),uni.hideLoading(),uni.showToast({title:"移交成功",icon:"success"}),q(),setTimeout((()=>{uni.navigateBack()}),1e3)}catch(a){uni.hideLoading(),t("error","at pages/CloudDbDetail/CloudDbDetail.vue:670","移交失败:",a),uni.showToast({title:"移交失败,请重试",icon:"error"})}}}}):uni.showToast({title:"请选择目标团队",icon:"none"})},R=e=>({0:"无权限访问",1:"仅访问",2:"管理员完全控制",3:"团队完全控制"}[e]||"未知");return e.onMounted((()=>{var e;const t=getCurrentPages(),a=t[t.length-1],n=(null==(e=a.$page)?void 0:e.options)||a.options||{};l.value=n.databaseId||"",c.value=decodeURIComponent(n.databaseName||"数据库详情"),i.value=n.teamId||"",l.value&&N()})),(n,o)=>{const l=a(e.resolveDynamicComponent("uni-icons"),y);return e.openBlock(),e.createElementBlock("view",{class:"cloud-db-detail-wrapper"},[e.createElementVNode("view",{class:"status-bar"}),S.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay",onClick:P},[e.createElementVNode("view",{class:"popup-card",onClick:o[1]||(o[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:P},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"导入文件到数据库"),e.createElementVNode("view",{class:"new-folder-name"},"表名称"),e.createElementVNode("view",{class:"create-folder-name"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>x.value=e),type:"text",placeholder:"输入表名称"},null,512),[[e.vModelText,x.value]])]),e.createElementVNode("view",{class:"new-folder-name"},"文件"),e.createElementVNode("view",{class:"upload-file-area",onClick:j},[T.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"selected-file"},e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload-hint"},"点击选择文件(支持 CSV/Excel/SQLite)"))]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:P},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:$},"确认导入")])])])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-overlay",onClick:z},[e.createElementVNode("view",{class:"popup-card",onClick:o[2]||(o[2]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:z},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"权限管理"),e.createElementVNode("scroll-view",{class:"permission-body","scroll-y":""},[0===M.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},"暂无权限记录")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"permission-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"permission-item",key:t._id||t.id},[e.createElementVNode("view",{class:"perm-info"},[e.createElementVNode("text",{class:"perm-type"},e.toDisplayString("team_id"===t.permType?"团队":"个人"),1)]),e.createElementVNode("view",{class:"perm-level"},e.toDisplayString(R(t.access_level)),1),e.createElementVNode("view",{class:"perm-actions"},[e.createElementVNode("view",{class:"perm-action-btn",onClick:e=>F(t,"change")},"修改",8,["onClick"]),e.createElementVNode("view",{class:"perm-action-btn delete",onClick:e=>F(t,"delete")},"移除",8,["onClick"])])])))),128))]))]),e.createElementVNode("view",{class:"close-permission-btn",onClick:z},"关闭")])])):e.createCommentVNode("",!0),O.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"popup-overlay",onClick:q},[e.createElementVNode("view",{class:"popup-card",onClick:o[3]||(o[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"close-popup-card",onClick:q},[e.createElementVNode("view",{class:"iconfont icon-quxiao"})]),e.createElementVNode("view",{class:"popup-title"},"移交数据库到团队"),e.createElementVNode("scroll-view",{class:"transfer-body","scroll-y":""},[0===A.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"folder-null"},"暂无可用团队")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"transfer-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["transfer-item",{active:U.value===t.id}]),key:t.id,onClick:e=>U.value=t.id},[e.createElementVNode("text",{class:"transfer-name"},e.toDisplayString(t.name),1),U.value===t.id?(e.openBlock(),e.createBlock(l,{key:0,type:"checkmarkempty",size:"20",color:"#3b86ff"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]))]),e.createElementVNode("view",{class:"option-wrapper"},[e.createElementVNode("view",{class:"opt-btn opt-cancel",onClick:q},"取消"),e.createElementVNode("view",{class:"opt-btn opt-confirm",onClick:W},"确认移交")])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"cloud-db-detail page-container"},[e.createElementVNode("view",{class:"cloud-db-header"},[e.createElementVNode("view",{class:"custom-navbar"},[e.createElementVNode("view",{class:"navbar-left",onClick:C},[e.createElementVNode("view",{class:"iconfont icon-fanhui custom-navbar-icon"})]),e.createElementVNode("view",{class:"navbar-title"},e.toDisplayString(c.value),1),e.createElementVNode("view",{class:"navbar-right"},[e.createElementVNode("view",{class:"iconfont icon-gengduo custom-navbar-icon",onClick:k})])]),w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu-card"},[e.createElementVNode("view",{class:"menu-card-item",onClick:o[4]||(o[4]=e=>{S.value=!0,x.value="",T.value="",D.value="",k()})},"导入文件"),e.createElementVNode("view",{class:"solid-line"}),e.createElementVNode("view",{class:"menu-card-item",onClick:o[5]||(o[5]=e=>{I(),k()})},"权限管理"),i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"solid-line"})),i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"menu-card-item",onClick:o[6]||(o[6]=e=>{(async()=>{O.value=!0,U.value="";try{const e=E(),t=await p(e);A.value=t||[]}catch(e){t("error","at pages/CloudDbDetail/CloudDbDetail.vue:632","获取团队列表失败:",e),A.value=[]}})(),k()})},"移交团队"))])):e.createCommentVNode("",!0)]),e.createElementVNode("scroll-view",{class:"cloud-db-content","scroll-y":""},[e.createElementVNode("view",{class:"db-info-bar"},[e.createElementVNode("text",{class:"db-info-text"},e.toDisplayString(u.value)+" 张表",1),e.createElementVNode("text",{class:"db-info-text"},"权限:"+e.toDisplayString(R(r.value)),1)]),e.createElementVNode("view",{class:"section-block"},[e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-biaoge"}),e.createElementVNode("text",null,"数据表")])]),e.createElementVNode("view",{class:"section-body"},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-area"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):0===d.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-tip"},[e.createElementVNode("view",{class:"iconfont icon-shujuku"}),e.createElementVNode("text",null,"暂无数据表")])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"table-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t=>(e.openBlock(),e.createElementBlock("view",{class:"table-item",key:t.table_name,onClick:e=>V(t),onLongpress:e=>_(t)},[e.createElementVNode("view",{class:"table-icon"},[e.createVNode(l,{type:"compose",size:"22",color:"#3b86ff"})]),e.createElementVNode("view",{class:"table-info"},[e.createElementVNode("view",{class:"table-name"},e.toDisplayString(t.table_name),1),e.createElementVNode("view",{class:"table-desc"},e.toDisplayString(t.row_count||0)+" 条记录",1)]),e.createElementVNode("view",{class:"table-meta"},[e.createVNode(l,{type:"right",size:"14",color:"#999"})])],40,["onClick","onLongpress"])))),128))]))])]),v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"section-block"},[e.createElementVNode("view",{class:"section-divider"}),e.createElementVNode("view",{class:"section-header"},[e.createElementVNode("view",{class:"section-title"},[e.createElementVNode("view",{class:"iconfont icon-biaoge"}),e.createElementVNode("text",null,e.toDisplayString(v.value.table_name),1)]),e.createElementVNode("view",{class:"section-actions"},[e.createElementVNode("text",{class:"row-count"},e.toDisplayString(f.value.length)+" / "+e.toDisplayString(v.value.row_count||0)+" 条",1)])]),e.createElementVNode("view",{class:"section-body"},[0===f.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"empty-tip"},[e.createElementVNode("text",null,"暂无数据")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"data-table-wrapper"},[e.createElementVNode("scroll-view",{"scroll-x":"",class:"data-table-scroll"},[e.createElementVNode("view",{class:"data-table"},[e.createElementVNode("view",{class:"data-row data-header"},[e.createElementVNode("view",{class:"data-cell index-cell"},"#"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t,class:"data-cell"},e.toDisplayString(t),1)))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"data-row",key:t._row_id||a,onClick:e=>B(t)},[e.createElementVNode("view",{class:"data-cell index-cell"},e.toDisplayString(a+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a=>{return e.openBlock(),e.createElementBlock("view",{key:a,class:"data-cell"},e.toDisplayString(null==(n=t[a])?"":"object"==typeof n?JSON.stringify(n):String(n)),1);var n})),128))],8,["onClick"])))),128))])])]))])])):e.createCommentVNode("",!0)])])])}}},[["__scopeId","data-v-144a6cf9"]]);__definePage("pages/Login/Login",w),__definePage("pages/Chat/Chat",ce),__definePage("pages/WorkSpace/WorkSpace",ie),__definePage("pages/UserProfileModal/UserProfileModal",re),__definePage("pages/ContactPages/ContactPages",ue),__definePage("pages/WorkSpace/TemplateSpace/TemplateSpace",de),__definePage("pages/text/text",me),__definePage("pages/text/text2",ve),__definePage("pages/CloudDatabase/CloudDatabase",pe),__definePage("pages/CloudDbDetail/CloudDbDetail",fe);const he={onLaunch:function(){t("log","at App.vue:4","App Launch")},onShow:function(){t("log","at App.vue:7","App Show")},onHide:function(){t("log","at App.vue:10","App Hide")}};const{app:ge,Vuex:we,Pinia:ke}=function(){const t=e.createVueApp(he),a=function(){const t=e.effectScope(!0),a=t.run((()=>e.ref({})));let n=[],o=[];const l=e.markRaw({install(e){D(l),l._a=e,e.provide(P,l),e.config.globalProperties.$pinia=l,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:t,_s:new Map,state:a});return l}();return t.use(a),{app:t,pinia:a}}();uni.Vuex=we,uni.Pinia=ke,ge.provide("__globalStyles",__uniConfig.styles),ge._component.mpType="app",ge._component.render=()=>{},ge.mount("#app")}(Vue); diff --git a/unpackage/dist/build/app-plus/app.css b/unpackage/dist/build/app-plus/app.css index 526cbeb..2efa57e 100644 --- a/unpackage/dist/build/app-plus/app.css +++ b/unpackage/dist/build/app-plus/app.css @@ -1,3 +1,3 @@ *{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%;font-size:16px}#app{height:100%}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}@media (prefers-color-scheme: dark){html{--UI-BG-COLOR-ACTIVE: #373737;--UI-BORDER-COLOR-1: #373737;--UI-BG: #000;--UI-BG-0: #191919;--UI-BG-1: #1f1f1f;--UI-BG-2: #232323;--UI-BG-3: #2f2f2f;--UI-BG-4: #606060;--UI-BG-5: #2c2c2c;--UI-FG: #fff;--UI-FG-0: hsla(0, 0%, 100%, .8);--UI-FG-HALF: hsla(0, 0%, 100%, .6);--UI-FG-1: hsla(0, 0%, 100%, .5);--UI-FG-2: hsla(0, 0%, 100%, .3);--UI-FG-3: hsla(0, 0%, 100%, .05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-ad .uni-ad-container{width:100%;height:100%;min-height:1px}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}@media (hover: hover){uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em}.ql-editor li.ql-direction-rtl:before{margin-right:-1.5em}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map.web{position:relative;width:300px;height:150px;display:block}uni-map.web[hidden]{display:none}uni-map.web .amap-marker-label{padding:0;border:none;background-color:transparent}uni-map.web .amap-marker>.amap-icon>img{left:0!important;top:0!important}uni-map.web .uni-map-control{position:absolute;width:0;height:0;top:0;left:0;z-index:999}uni-map.web .uni-map-control-icon{position:absolute;max-width:initial}.uni-system-choose-location{display:block;position:fixed;left:0;top:0;width:100%;height:100%;background:#f8f8f8;z-index:999}.uni-system-choose-location .map{position:absolute;top:0;left:0;width:100%;height:300px}.uni-system-choose-location .map-location{position:absolute;left:50%;bottom:50%;width:32px;height:52px;margin-left:-16px;cursor:pointer;background-size:100%}.uni-system-choose-location .map-move{position:absolute;bottom:50px;right:10px;width:40px;height:40px;box-sizing:border-box;line-height:40px;background-color:#fff;border-radius:50%;pointer-events:auto;cursor:pointer;box-shadow:0 0 5px 1px rgba(0,0,0,.3)}.uni-system-choose-location .map-move>svg{display:block;width:100%;height:100%;box-sizing:border-box;padding:8px}.uni-system-choose-location .nav{position:absolute;top:0;left:0;width:100%;height:calc(44px + var(--status-bar-height));background-color:transparent;background-image:linear-gradient(to bottom,rgba(0,0,0,.3),rgba(0,0,0,0))}.uni-system-choose-location .nav-btn{position:absolute;box-sizing:border-box;top:var(--status-bar-height);left:0;width:60px;height:44px;padding:6px;line-height:32px;font-size:26px;color:#fff;text-align:center;cursor:pointer}.uni-system-choose-location .nav-btn.confirm{left:auto;right:0}.uni-system-choose-location .nav-btn.disable{opacity:.4}.uni-system-choose-location .nav-btn>svg{display:block;width:100%;height:100%;border-radius:2px;box-sizing:border-box;padding:3px}.uni-system-choose-location .nav-btn.confirm>svg{background-color:#007aff;padding:5px}.uni-system-choose-location .menu{position:absolute;top:300px;left:0;width:100%;bottom:0;background-color:#fff}.uni-system-choose-location .search{display:flex;flex-direction:row;height:50px;padding:8px;line-height:34px;box-sizing:border-box;background-color:#fff}.uni-system-choose-location .search-input{flex:1;height:100%;border-radius:5px;padding:0 5px;background:#ebebeb}.uni-system-choose-location .search-btn{margin-left:5px;color:#007aff;font-size:17px;text-align:center}.uni-system-choose-location .list{position:absolute;top:50px;left:0;width:100%;bottom:0;padding-bottom:10px}.uni-system-choose-location .list-loading{display:flex;height:50px;justify-content:center;align-items:center}.uni-system-choose-location .list-item{position:relative;padding:10px 40px 10px 10px;cursor:pointer}.uni-system-choose-location .list-item>svg{display:none;position:absolute;top:50%;right:10px;width:30px;height:30px;margin-top:-15px;box-sizing:border-box;padding:5px}.uni-system-choose-location .list-item.selected>svg{display:block}.uni-system-choose-location .list-item:not(:last-child):after{position:absolute;content:"";height:1px;left:10px;bottom:0;width:100%;background-color:#d3d3d3}.uni-system-choose-location .list-item-title{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-system-choose-location .list-item-detail{font-size:12px;color:gray;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media screen and (min-width: 800px){.uni-system-choose-location .map{top:0;height:100%}.uni-system-choose-location .map-move{bottom:10px;right:320px}.uni-system-choose-location .menu{top:calc(54px + var(--status-bar-height));left:auto;right:10px;width:300px;bottom:10px;max-height:600px;box-shadow:0 0 20px 5px rgba(0,0,0,.3)}}.uni-system-open-location{display:block;position:fixed;left:0;top:0;width:100%;height:100%;background:#f8f8f8;z-index:999}.uni-system-open-location .map{position:absolute;top:0;left:0;width:100%;bottom:80px;height:auto}.uni-system-open-location .info{position:absolute;bottom:0;left:0;width:100%;height:80px;background-color:#fff;padding:15px;box-sizing:border-box;line-height:1.5}.uni-system-open-location .info>.name{font-size:17px;color:#111;padding-right:50px}.uni-system-open-location .info>.address{font-size:14px;color:#666}.uni-system-open-location .info>.nav{position:absolute;top:50%;right:15px;width:50px;height:50px;border-radius:50%;margin-top:-25px;background-color:#007aff}.uni-system-open-location .info>.nav>svg{display:block;width:100%;height:100%;padding:10px;box-sizing:border-box}.uni-system-open-location .map-move{position:absolute;bottom:50px;right:10px;width:40px;height:40px;box-sizing:border-box;line-height:40px;background-color:#fff;border-radius:50%;pointer-events:auto;cursor:pointer;box-shadow:0 0 5px 1px rgba(0,0,0,.3)}.uni-system-open-location .map-move>svg{display:block;width:100%;height:100%;box-sizing:border-box;padding:8px}.uni-system-open-location .nav-btn-back{position:absolute;box-sizing:border-box;top:var(--status-bar-height);left:0;width:44px;height:44px;padding:6px;cursor:pointer}.uni-system-open-location .nav-btn-back>svg{display:block;width:100%;height:100%;border-radius:50%;background-color:rgba(0,0,0,.5);padding:3px;box-sizing:border-box}.uni-system-open-location .map-content{position:absolute;left:0;top:0;width:100%;bottom:0;overflow:hidden}.uni-system-open-location .map-content.fix-position{top:-74px;bottom:-44px}.uni-system-open-location .map-content>iframe{width:100%;height:100%;border:none}.uni-system-open-location .actTonav{position:absolute;right:16px;bottom:56px;width:60px;height:60px;border-radius:60px}.uni-system-open-location .nav-view{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column}.uni-system-open-location .nav-view-top-placeholder{width:100%;height:var(--status-bar-height);background-color:#fff}.uni-system-open-location .nav-view-frame{width:100%;flex:1}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0;left:0;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(0deg,rgba(255,255,255,.95),rgba(255,255,255,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:var(--picker-view-column-indicator-height);overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}@media (hover: hover){uni-radio:not([disabled]) .uni-radio-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar{display:none}.uni-scroll-view-scrollbar-hidden{-moz-scrollbars:none;scrollbar-width:none}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden;flex-shrink:0}.uni-scroll-view-refresher-container{position:absolute;width:100%;bottom:0;display:flex;flex-direction:column-reverse}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}uni-textarea[auto-height=true]{height:-webkit-fit-content!important;height:fit-content!important}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-compute-auto-height{overflow-wrap:break-word}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} -@font-face{font-family:iconfont;src:url(static/iconfont/iconfont.woff2?t=1782200893170) format("woff2"),url(static/iconfont/iconfont.woff?t=1782200893170) format("woff"),url(static/iconfont/iconfont.ttf?t=1782200893170) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-cloud:before{content:"\e988"}.icon-qitawenjian:before{content:"\e7b6"}.icon-wenjianyasuo:before{content:"\e643"}.icon-wenjianshipin:before{content:"\e644"}.icon-wenjianyinpin:before{content:"\e645"}.icon-wenjiantupian:before{content:"\e646"}.icon-daimawenjian:before{content:"\e66a"}.icon-file-markdown-fill:before{content:"\ebb1"}.icon-SVG:before{content:"\e614"}.icon-HTML:before{content:"\e615"}.icon-CSS:before{content:"\e618"}.icon-CSV:before{content:"\e619"}.icon-JSON:before{content:"\e61b"}.icon-JS:before{content:"\e61c"}.icon-PDF:before{content:"\e61e"}.icon-PHP:before{content:"\e621"}.icon-TXT:before{content:"\e622"}.icon-XLS:before{content:"\e623"}.icon-DOC:before{content:"\e624"}.icon-PPT:before{content:"\e626"}.icon-SQL:before{content:"\e627"}.icon-bianji:before{content:"\e605"}.icon-fasong:before{content:"\e705"}.icon-download:before{content:"\e61a"}.icon-edit-fill:before{content:"\e61d"}.icon-favorite-fill:before{content:"\e61f"}.icon-favorite:before{content:"\e620"}.icon-upload:before{content:"\e63e"}.icon-yonghuziliao:before{content:"\e6a1"}.icon-pen-fill:before{content:"\e67c"}.icon-qunliao:before{content:"\e606"}.icon-shipintonghua:before{content:"\e609"}.icon-tianjia:before{content:"\e60d"}.icon-tongxunlu:before{content:"\e612"}.icon-tianjiahaoyou:before{content:"\e613"}.icon-shanchu:before{content:"\e6d3"}.icon-choose-fill:before{content:"\e6a2"}.icon-a-wenjianjiawenjian:before{content:"\e69e"}.icon-sousuo:before{content:"\e6eb"}.icon-Robot:before{content:"\e67d"}.icon-saochu:before{content:"\e6a3"}.icon-fanhui:before{content:"\e765"}.icon-brain-2-fill:before{content:"\e800"}.icon-gengduo:before{content:"\e6c5"}.icon-del:before{content:"\e616"}.icon-zhaoxiangji:before{content:"\e663"}.icon-duoxuan:before{content:"\e630"}.icon-jia:before{content:"\e659"}.icon-quxiao:before{content:"\e625"}.icon-tuichu:before{content:"\e617"}.icon-fuzhi:before{content:"\e6e6"}.icon-shangchuan:before{content:"\e797"}.icon-total_selection:before{content:"\e660"}.icon-tingzhi:before{content:"\e611"}.icon-wenjianjia:before{content:"\e64b"}.icon-caidan:before{content:"\eaf1"}.icon-wenjian:before{content:"\e729"}.icon-biezhen:before{content:"\e647"}.icon-qita:before{content:"\e600"}.status-bar{height:var(--status-bar-height);width:100%}.page-container{width:100%;height:calc(100vh - var(--status-bar-height))}.solid-line{width:100%;border-bottom:.03125rem solid #999}.icon-btn,.text-btn{padding:.3125rem;border-radius:.625rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.switch-box{width:42px;height:20px;background-color:#999;border-radius:10px;display:flex;align-items:center;padding:1px}.switch-box.active{justify-content:flex-end;background-color:#0af}.switch-track{width:20px;height:20px;background-color:#fff;border-radius:50%}.popup-overlay{position:fixed;width:100%;height:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;background-color:rgba(193,193,193,.4);z-index:1000}.popup-card{width:90%;height:auto;background-color:#fff;border-radius:1.5625rem;padding:1.5625rem;box-sizing:border-box;display:flex;flex-direction:column;position:relative}.close-popup-card{position:absolute;top:.3125rem;right:.3125rem;color:red;padding:.3125rem;box-sizing:border-box}.popup-title{width:100%;display:flex;justify-content:center;align-items:center} +@font-face{font-family:iconfont;src:url(static/iconfont/iconfont.woff2?t=1783330740989) format("woff2"),url(static/iconfont/iconfont.woff?t=1783330740989) format("woff"),url(static/iconfont/iconfont.ttf?t=1783330740989) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-daima:before{content:"\e695"}.icon-word:before{content:"\e64c"}.icon-qitalingyu:before{content:"\e62f"}.icon-wenjianjia1:before{content:"\e63a"}.icon-execl:before{content:"\e64d"}.icon-TXT1:before{content:"\e64e"}.icon-PPT1:before{content:"\e64f"}.icon-ZIP:before{content:"\e650"}.icon-PDF1:before{content:"\e651"}.icon-cloud:before{content:"\e988"}.icon-qitawenjian:before{content:"\e7b6"}.icon-wenjianyasuo:before{content:"\e643"}.icon-wenjianshipin:before{content:"\e644"}.icon-wenjianyinpin:before{content:"\e645"}.icon-wenjiantupian:before{content:"\e646"}.icon-daimawenjian:before{content:"\e66a"}.icon-file-markdown-fill:before{content:"\ebb1"}.icon-SVG:before{content:"\e614"}.icon-HTML:before{content:"\e615"}.icon-CSS:before{content:"\e618"}.icon-CSV:before{content:"\e619"}.icon-JSON:before{content:"\e61b"}.icon-JS:before{content:"\e61c"}.icon-PDF:before{content:"\e61e"}.icon-PHP:before{content:"\e621"}.icon-TXT:before{content:"\e622"}.icon-XLS:before{content:"\e623"}.icon-DOC:before{content:"\e624"}.icon-PPT:before{content:"\e626"}.icon-SQL:before{content:"\e627"}.icon-bianji:before{content:"\e605"}.icon-fasong:before{content:"\e705"}.icon-download:before{content:"\e61a"}.icon-edit-fill:before{content:"\e61d"}.icon-favorite-fill:before{content:"\e61f"}.icon-favorite:before{content:"\e620"}.icon-upload:before{content:"\e63e"}.icon-yonghuziliao:before{content:"\e6a1"}.icon-pen-fill:before{content:"\e67c"}.icon-qunliao:before{content:"\e606"}.icon-shipintonghua:before{content:"\e609"}.icon-tianjia:before{content:"\e60d"}.icon-tongxunlu:before{content:"\e612"}.icon-tianjiahaoyou:before{content:"\e613"}.icon-shanchu:before{content:"\e6d3"}.icon-choose-fill:before{content:"\e6a2"}.icon-a-wenjianjiawenjian:before{content:"\e69e"}.icon-sousuo:before{content:"\e6eb"}.icon-Robot:before{content:"\e67d"}.icon-saochu:before{content:"\e6a3"}.icon-fanhui:before{content:"\e765"}.icon-brain-2-fill:before{content:"\e800"}.icon-gengduo:before{content:"\e6c5"}.icon-del:before{content:"\e616"}.icon-zhaoxiangji:before{content:"\e663"}.icon-duoxuan:before{content:"\e630"}.icon-jia:before{content:"\e659"}.icon-quxiao:before{content:"\e625"}.icon-tuichu:before{content:"\e617"}.icon-fuzhi:before{content:"\e6e6"}.icon-shangchuan:before{content:"\e797"}.icon-total_selection:before{content:"\e660"}.icon-tingzhi:before{content:"\e611"}.icon-wenjianjia:before{content:"\e64b"}.icon-caidan:before{content:"\eaf1"}.icon-wenjian:before{content:"\e729"}.icon-biezhen:before{content:"\e647"}.icon-qita:before{content:"\e600"}.status-bar{height:var(--status-bar-height);width:100%;background:linear-gradient(180deg,#fafbff,#f5f6fa)}.page-container{width:100%;height:calc(100vh - var(--status-bar-height));background:linear-gradient(180deg,#f0f2ff,#f5f6fa 40%,#fafbfc)}.solid-line{width:100%;height:.03125rem;background:linear-gradient(90deg,transparent,#d4d4f0,transparent)}.icon-btn{padding:.375rem;border-radius:.5rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center;transition:all .2s ease}.icon-btn:active{background:rgba(170,170,255,.12);transform:scale(.95)}.text-btn{padding:.375rem .625rem;border-radius:.625rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center;transition:all .2s ease;font-size:.8125rem;font-weight:500}.text-btn:active{opacity:.8;transform:scale(.97)}.switch-box{width:48px;height:26px;background-color:#d4d4d8;border-radius:13px;display:flex;align-items:center;padding:2px;transition:all .3s ease}.switch-box.active{justify-content:flex-end;background:linear-gradient(135deg,#aaf,#3b86ff);box-shadow:0 0 .375rem rgba(170,170,255,.4)}.switch-track{width:22px;height:22px;background-color:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:all .3s ease}.popup-overlay{position:fixed;width:100%;height:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;background-color:rgba(30,30,50,.35);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:1000;animation:fadeIn .25s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(1.25rem) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.popup-card{width:90%;height:auto;background-color:#fff;border-radius:1.25rem;padding:1.5rem 1.25rem;box-sizing:border-box;display:flex;flex-direction:column;position:relative;box-shadow:0 .625rem 1.875rem rgba(0,0,0,.08);animation:slideUp .3s ease}.close-popup-card{position:absolute;top:.5rem;right:.5rem;color:#ff4d4f;padding:.3125rem;box-sizing:border-box;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease}.close-popup-card:active{background:rgba(255,77,79,.1)}.popup-title{width:100%;display:flex;justify-content:center;align-items:center;font-size:1.0625rem;font-weight:600;color:#1a1a2e;margin-bottom:.75rem} diff --git a/unpackage/dist/build/app-plus/pages/Chat/Chat.css b/unpackage/dist/build/app-plus/pages/Chat/Chat.css index 56e9e8a..1269526 100644 --- a/unpackage/dist/build/app-plus/pages/Chat/Chat.css +++ b/unpackage/dist/build/app-plus/pages/Chat/Chat.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.chat-sidebar-container[data-v-2a484f8a]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:#f8f8f8;color:#000;box-sizing:border-box}.sidebar-header[data-v-2a484f8a]{padding:1.25rem;width:100%;box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;flex-direction:column;border-bottom:.03125rem solid #bbbbbb}.user-profile-card[data-v-2a484f8a]{padding:.3125rem .625rem;width:100%;display:flex;align-items:center;background-color:#fff;box-sizing:border-box;border-radius:.9375rem;box-shadow:0 0 .25rem #ccc}.user-profile-card .left[data-v-2a484f8a]{flex-shrink:0;display:flex;justify-content:center;align-items:center;margin-right:.3125rem}.user-profile-card .left .avatar-preview[data-v-2a484f8a]{display:flex;justify-content:center;align-items:center;width:3.75rem;height:3.75rem;border-radius:50%;overflow:hidden}.user-profile-card .left .avatar-preview uni-image[data-v-2a484f8a]{width:100%;height:100%;object-fit:cover}.user-profile-card .left .avatar-placeholder[data-v-2a484f8a]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:50%;width:3.75rem;height:3.75rem}.user-profile-card .center[data-v-2a484f8a]{flex:1;height:0;display:flex;flex-direction:column;align-items:start;justify-content:center}.user-profile-card .right[data-v-2a484f8a]{flex-shrink:0;margin-left:.1875rem;display:flex;align-items:center}.user-profile-card .right .status-dot[data-v-2a484f8a]{width:.3125rem;height:.3125rem;border-radius:50%;background-color:#10b981;margin-right:.5rem;animation:statusDotPulse-2a484f8a 2s ease-in-out infinite}@keyframes statusDotPulse-2a484f8a{0%,to{box-shadow:0 0 .46875rem rgba(59,130,246,.8);transform:scale(1)}50%{box-shadow:0 0 .9375rem rgba(59,130,246,.7);transform:scale(1.1)}}.new-chat-btn[data-v-2a484f8a]{margin-top:.625rem;width:100%;padding:.9375rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center;background:linear-gradient(to right,#3b86ff,#2463df);border-radius:.9375rem;box-shadow:0 0 .25rem rgba(59,134,255,.6)}.new-chat-btn uni-text[data-v-2a484f8a]{font-size:.875rem;font-weight:700;color:#fff}.chat-history[data-v-2a484f8a]{width:100%;padding:.625rem 0;box-sizing:border-box;flex:1;height:0;overflow-y:auto;overflow-x:hidden}.chat-history[data-v-2a484f8a]::-webkit-scrollbar{width:.25rem}.chat-history[data-v-2a484f8a]::-webkit-scrollbar-thumb{background:rgba(59,134,255,.4);border-radius:.09375rem}.chat-history[data-v-2a484f8a]::-webkit-scrollbar-track{background:transparent}.history-header[data-v-2a484f8a]{width:100%;padding:.9375rem;box-sizing:border-box;border-bottom:.03125rem solid #bbbbbb;display:flex;justify-content:space-between;align-items:center}.history-header .history-title-section[data-v-2a484f8a]{display:flex;flex-direction:column}.history-header .history-management[data-v-2a484f8a]{display:flex}.history-header .history-management .history-management-btn[data-v-2a484f8a]{margin-left:.625rem;width:1.875rem;height:1.875rem;display:flex;justify-content:center;align-items:center;font-size:.8125rem;background-color:rgba(221,221,221,.5);border-radius:.3125rem}.history-header .history-management .icon-jia-style[data-v-2a484f8a]{background-color:rgba(16,185,129,.2);color:#059669}.history-header .history-management .icon-duoxuan-style[data-v-2a484f8a]{color:#666}.history-header .history-management .icon-saochu-style[data-v-2a484f8a]{color:red}.history-header .history-management .icon-quxiao-style[data-v-2a484f8a]{color:#3b86ff;box-sizing:border-box}.history-header .history-management .icon-total_selection-style[data-v-2a484f8a]{color:#666}.history-header .history-management .icon-total_selection-style.active[data-v-2a484f8a]{color:#2463df;background:rgba(59,134,255,.2)}.history-header .history-management .icon-shanchu-style[data-v-2a484f8a]{color:red}.history-search-wrap[data-v-2a484f8a]{display:flex;flex-direction:column;width:100%;padding:.625rem .9375rem .1875rem;box-sizing:border-box}.history-search-wrap .history-search-inner[data-v-2a484f8a]{display:flex;width:100%;padding:.3125rem .625rem;box-sizing:border-box;align-items:center;background-color:rgba(194,191,211,.1);border-radius:.9375rem}.history-search-wrap .history-search-inner .search-icon[data-v-2a484f8a]{color:#666!important;font-weight:700;font-size:1.125rem!important}.history-search-wrap .history-search-inner .chat-search-icon[data-v-2a484f8a]{color:#aaf!important;font-weight:700;font-size:1.125rem!important}.history-search-wrap .history-search-inner uni-input[data-v-2a484f8a]{margin-left:.3125rem;box-sizing:border-box}.history-search-wrap .history-search-inner.has-value[data-v-2a484f8a]{background-color:#fff;border:.0625rem solid #aaaaff;box-shadow:0 0 .46875rem #aaf}.chat-history-list[data-v-2a484f8a]{padding:.3125rem .9375rem}.chat-history-list .chat-history-card[data-v-2a484f8a]{display:flex;align-items:center;border:.03125rem solid #3b86ff;background-color:#fff;border-radius:.9375rem;padding:.9375rem;margin-top:.3125rem;box-sizing:border-box}.chat-history-list .is-select-chat[data-v-2a484f8a]{box-shadow:0 0 .15625rem #2463df;background-color:rgba(59,134,255,.1)}.chat-history-list .history-chat-checkbox[data-v-2a484f8a]{width:.9375rem;height:.9375rem;border-radius:.3125rem;display:flex;justify-content:center;align-items:center;border:.03125rem solid #3b86ff}.chat-history-list .history-chat-avatar[data-v-2a484f8a]{width:2.0625rem;height:2.0625rem;border-radius:.625rem;display:flex;justify-content:center;align-items:center;background:rgba(59,134,255,.4);margin-left:.625rem;box-sizing:border-box}.chat-history-list .friend-avatar[data-v-2a484f8a]{display:flex;justify-content:center;align-items:center;border-radius:.625rem;width:100%;height:100%;overflow:hidden}.chat-page[data-v-0f1d768b]{position:relative}.mask[data-v-0f1d768b]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:998;animation:fadeIn-0f1d768b 1s ease}@keyframes fadeIn-0f1d768b{0%{opacity:0}to{opacity:1}}.chat-sidebar[data-v-0f1d768b]{position:fixed;top:0;left:0;width:calc(100% - 3.125rem);max-width:21.25rem;height:100%;transform:translate(-100%);transition:transform .5s ease;z-index:999}.chat-sidebar.sidebar-show[data-v-0f1d768b]{transform:translate(0)}.ncd-overlay[data-v-0f1d768b]{position:fixed;width:100%;height:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;background-color:rgba(193,193,193,.4);z-index:1000;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(6px)}.ncd-card[data-v-0f1d768b]{width:90%;height:auto;background-color:#fff;border-radius:1.5625rem;padding:1.5625rem;box-sizing:border-box}.ncd-header[data-v-0f1d768b]{display:flex;justify-content:center;width:100%}.ncd-title-eng[data-v-0f1d768b]{display:flex;flex-shrink:0;background-color:#000;padding:.15625rem .25rem;border-radius:.3125rem;justify-content:center;align-items:center}.ncd-title-eng uni-text[data-v-0f1d768b]{color:#fff;font-weight:700;font-size:.9375rem}.ncd-title-zh[data-v-0f1d768b]{margin-left:.3125rem;display:flex;flex:1;height:0;font-size:1.1875rem;font-weight:700;color:#000}.ncd-header uni-icons[data-v-0f1d768b]{display:flex;flex-shrink:0}.ncd-options[data-v-0f1d768b]{display:flex;flex-direction:column;width:100%;justify-content:center;align-items:center;margin-top:.3125rem;box-sizing:border-box}.ncd-option[data-v-0f1d768b]{width:100%;background:#f8fafc;padding:1.5625rem .9375rem;display:flex;border-radius:1rem;margin-top:.625rem;box-sizing:border-box;justify-content:center;align-items:center}.ncd-normal[data-v-0f1d768b]{border:.03125rem solid #e8edf3}.ncd-opt-icon[data-v-0f1d768b]{width:2.5rem;height:2.5rem;border-radius:.9375rem;padding:.3125rem;box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;align-items:center}.ncd-normal .ncd-opt-icon[data-v-0f1d768b]{background-color:#e2e8f0}.ncd-opt-title[data-v-0f1d768b]{display:flex;flex-direction:column;margin:0 .5rem;box-sizing:border-box;justify-content:center;flex:1;height:0}.ncd-opt-title-1[data-v-0f1d768b]{font-size:.9375rem;font-weight:700;color:#000}.ncd-opt-title-2[data-v-0f1d768b]{font-size:.8125rem;color:#666}.arrow-right-style[data-v-0f1d768b]{display:flex;flex-shrink:0;font-weight:700!important;font-size:.9375rem!important;color:#666!important}.ncd-intelligence[data-v-0f1d768b]{background:linear-gradient(to right,#f5f3ff,#ede9fe);border:.03125rem solid #c4b5fd}.ncd-intelligence .ncd-opt-icon[data-v-0f1d768b]{background-color:#8b5cf6}.close-option-card[data-v-0f1d768b]{width:100%;display:flex;justify-content:flex-end}.close-option-card .iconfont[data-v-0f1d768b]{color:red!important}.chat-option-list[data-v-0f1d768b]{display:flex;width:100%;flex-direction:column}.chat-option[data-v-0f1d768b]{display:flex;justify-content:flex-start;align-items:center;margin:.3125rem 0;box-sizing:border-box}.chat-option .iconfont[data-v-0f1d768b]{font-size:30px}.option-name[data-v-0f1d768b]{font-size:18px;font-weight:400;margin-left:10px;box-sizing:border-box}.chat-wrapper[data-v-0f1d768b]{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.chat-hearder[data-v-0f1d768b]{width:100%;height:auto;padding:.625rem .3125rem;box-sizing:border-box;display:flex;flex-shrink:0;justify-content:flex-start;align-items:center;border-bottom:.03125rem solid #ede9fe}.chat-btn-group[data-v-0f1d768b]{width:100%;height:auto;display:flex;justify-content:flex-start;align-items:center}.head-btn[data-v-0f1d768b]{padding:.3125rem;border:.03125rem solid #ede9fe;border-radius:.625rem;margin:0 .3125rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.chat-btn-group .head-btn:nth-child(1) .iconfont[data-v-0f1d768b]{color:#c4b5fd}.chat-btn-group .head-btn:nth-child(2) .iconfont[data-v-0f1d768b]{color:#6495ed}.head-btn .iconfont[data-v-0f1d768b]{font-size:1.5625rem}.log-out .iconfont[data-v-0f1d768b]{color:red}.main-chat[data-v-0f1d768b]{display:flex;flex:1;height:0;width:100%;flex-direction:column}.chat-messages[data-v-0f1d768b]{display:flex;flex:1;height:0;width:100%;padding:0 .625rem;box-sizing:border-box;flex-direction:column;overflow:auto}.chat-message[data-v-0f1d768b]{display:flex;align-items:flex-start;margin:.3125rem 0;box-sizing:border-box}.message-user[data-v-0f1d768b]{flex-direction:row-reverse}.chat-avatar[data-v-0f1d768b]{display:flex;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;box-sizing:border-box;border-radius:.3125rem;margin-right:.3125rem}.friend-avatar[data-v-0f1d768b]{display:flex;justify-content:center;align-items:center;border-radius:.625rem;width:100%;height:100%;overflow:hidden}.chat-avatar-user[data-v-0f1d768b]{margin-right:0;margin-left:.3125rem}.chat-content[data-v-0f1d768b]{width:auto;max-width:calc(100% - 3.125rem);height:auto;padding:.625rem;box-sizing:border-box;border:.03125rem solid #999;overflow-x:auto}.chat-content-user[data-v-0f1d768b]{background-color:#c4b5fd;color:#fff;border-radius:.625rem}.message-image[data-v-0f1d768b]{max-width:9.375rem;border-radius:.25rem;margin:.1875rem 0}.message-file-list[data-v-0f1d768b]{margin:.25rem 0}.file-item[data-v-0f1d768b]{margin:.1875rem 0}.message-file[data-v-0f1d768b]{display:flex;align-items:center;padding:.375rem .5rem;background:#f7f8fa;border-radius:.25rem;max-width:10.9375rem}.file-icon[data-v-0f1d768b]{font-size:1rem;margin-right:.375rem}.file-name[data-v-0f1d768b]{flex:1;font-size:.8125rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-size[data-v-0f1d768b]{font-size:.6875rem;color:#999;margin-left:.25rem}.chat-interactive-container[data-v-0f1d768b]{display:flex;flex-shrink:0;width:100%;padding:.625rem;box-sizing:border-box;flex-direction:column}.chat-interactive-group[data-v-0f1d768b]{display:flex;width:100%;padding:.625rem;box-sizing:border-box;justify-content:flex-start;align-items:center}.chat-interactive-btn[data-v-0f1d768b]{display:flex;align-items:center;justify-content:center;border:.03125rem solid #000000;border-radius:.3125rem;padding:.3125rem .5rem;margin-right:.625rem;box-sizing:border-box}.chat-input-container[data-v-0f1d768b]{display:flex;width:100%;padding:.625rem;box-sizing:border-box;border:.03125rem solid #c4b5fd;border-radius:.9375rem;align-items:flex-end}.message-input[data-v-0f1d768b]{flex:1;max-height:4.6875rem;min-height:1.875rem;overflow-y:auto;margin:.3125rem;box-sizing:border-box}.input-btn-group[data-v-0f1d768b]{flex-shrink:0;display:flex;justify-content:center;align-items:center;padding:.5rem;box-sizing:border-box;background:#ffd4d4;border:.03125rem solid #ff0000;border-radius:.625rem;width:2.5rem;height:2.5rem}.input-btn-group .iconfont[data-v-0f1d768b]{color:red;font-size:1.25rem}.ai-card[data-v-0f1d768b]{width:auto;border:.03125rem solid #409eff;box-shadow:0 0 .625rem #c4b5fd}.thinking-content[data-v-0f1d768b]{display:flex;flex-direction:column;align-items:center;width:100%}.loading-dots[data-v-0f1d768b]{display:flex;width:100%;align-items:center;justify-content:center}.dot[data-v-0f1d768b]{width:.5rem;height:.5rem;margin:.1875rem;border-radius:50%;background:#409eff;animation:dotBlink-0f1d768b 1.2s infinite ease-in-out}@keyframes dotBlink-0f1d768b{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.dot[data-v-0f1d768b]:nth-child(2){animation-delay:.2s}.dot[data-v-0f1d768b]:nth-child(3){animation-delay:.4s}.thinking-text[data-v-0f1d768b]{margin:.625rem 0;font-size:22px;font-weight:500;color:#409eff}.message-detail-card[data-v-0f1d768b]{width:90%;max-height:80vh;display:flex;flex-direction:column}.message-detail-content[data-v-0f1d768b]{flex:1;max-height:60vh;overflow-y:auto;padding:.625rem 0;font-size:.875rem;line-height:1.6;color:#333;white-space:pre-wrap;word-break:break-all} +.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.chat-sidebar-container[data-v-eed4c646]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background:linear-gradient(180deg,#faf9ff,#f3f2f8,#eeeef5);color:#000;box-sizing:border-box}.sidebar-header[data-v-eed4c646]{padding:1.25rem .9375rem .9375rem;width:100%;box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;flex-direction:column;border-bottom:.03125rem solid rgba(170,170,255,.18)}.user-profile-card[data-v-eed4c646]{padding:.5rem .75rem;width:100%;display:flex;align-items:center;background:linear-gradient(135deg,#fff,#faf9ff);box-sizing:border-box;border-radius:.875rem;box-shadow:0 .125rem .625rem rgba(100,100,150,.08);border:.03125rem solid rgba(170,170,255,.12);transition:all .2s ease}.user-profile-card[data-v-eed4c646]:active{transform:scale(.98);box-shadow:0 .0625rem .3125rem rgba(100,100,150,.12)}.user-profile-card .left[data-v-eed4c646]{flex-shrink:0;display:flex;justify-content:center;align-items:center;margin-right:.5rem}.user-profile-card .left .avatar-preview[data-v-eed4c646]{display:flex;justify-content:center;align-items:center;width:3.125rem;height:3.125rem;border-radius:50%;overflow:hidden;border:.09375rem solid rgba(170,170,255,.3);box-shadow:0 .0625rem .25rem rgba(0,0,0,.06)}.user-profile-card .left .avatar-preview uni-image[data-v-eed4c646]{width:100%;height:100%;object-fit:cover}.user-profile-card .left .avatar-placeholder[data-v-eed4c646]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:50%;width:3.125rem;height:3.125rem;background:linear-gradient(135deg,#f5f3ff,#ede9fe)}.user-profile-card .center[data-v-eed4c646]{flex:1;height:0;display:flex;flex-direction:column;align-items:start;justify-content:center}.user-profile-card .center uni-text[data-v-eed4c646]:first-child{font-size:.6875rem;color:#999;margin-bottom:.0625rem}.user-profile-card .center uni-text[data-v-eed4c646]:last-child{font-size:.9375rem;font-weight:600;color:#1a1a2e}.user-profile-card .right[data-v-eed4c646]{flex-shrink:0;margin-left:.3125rem;display:flex;align-items:center;background:rgba(16,185,129,.06);padding:.25rem .5rem;border-radius:.625rem}.user-profile-card .right .status-dot[data-v-eed4c646]{width:.375rem;height:.375rem;border-radius:50%;background-color:#10b981;margin-right:.3125rem;box-shadow:0 0 .25rem rgba(16,185,129,.5);animation:statusDotPulse-eed4c646 2s ease-in-out infinite}@keyframes statusDotPulse-eed4c646{0%,to{box-shadow:0 0 .25rem rgba(16,185,129,.5);transform:scale(1)}50%{box-shadow:0 0 .5rem rgba(16,185,129,.6);transform:scale(1.15)}}.user-profile-card .right .status-text uni-text[data-v-eed4c646]{font-size:.6875rem;color:#059669;font-weight:500}.new-chat-btn[data-v-eed4c646]{margin-top:.75rem;width:100%;padding:.8125rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#6c63ff,#4a45d1);border-radius:.75rem;box-shadow:0 .1875rem .625rem rgba(108,99,255,.3);transition:all .2s ease}.new-chat-btn[data-v-eed4c646]:active{transform:scale(.97);box-shadow:0 .09375rem .3125rem rgba(108,99,255,.2)}.new-chat-btn uni-text[data-v-eed4c646]{font-size:.875rem;font-weight:600;color:#fff;letter-spacing:.03125rem}.chat-history[data-v-eed4c646]{width:100%;padding:.625rem 0;box-sizing:border-box;flex:1;height:0;overflow-y:auto;overflow-x:hidden}.chat-history[data-v-eed4c646]::-webkit-scrollbar{width:.1875rem}.chat-history[data-v-eed4c646]::-webkit-scrollbar-thumb{background:rgba(108,99,255,.25);border-radius:.09375rem}.chat-history[data-v-eed4c646]::-webkit-scrollbar-track{background:transparent}.history-header[data-v-eed4c646]{width:100%;padding:.625rem .9375rem;box-sizing:border-box;border-bottom:.03125rem solid rgba(170,170,255,.15);display:flex;justify-content:space-between;align-items:center}.history-header .history-title-section[data-v-eed4c646]{display:flex;flex-direction:column}.history-header .history-title-section uni-text[data-v-eed4c646]:first-child{font-size:1rem;font-weight:700;color:#1a1a2e}.history-header .history-title-section uni-text[data-v-eed4c646]:last-child{font-size:.6875rem;color:#999;margin-top:.0625rem}.history-header .history-management[data-v-eed4c646]{display:flex}.history-header .history-management .history-management-btn[data-v-eed4c646]{margin-left:.5rem;width:1.75rem;height:1.75rem;display:flex;justify-content:center;align-items:center;font-size:.8125rem;background-color:rgba(221,221,221,.4);border-radius:.4375rem;transition:all .15s ease}.history-header .history-management .history-management-btn[data-v-eed4c646]:active{transform:scale(.9)}.history-header .history-management .icon-jia-style[data-v-eed4c646]{background:rgba(16,185,129,.12);color:#059669}.history-header .history-management .icon-duoxuan-style[data-v-eed4c646]{color:#666}.history-header .history-management .icon-saochu-style[data-v-eed4c646]{color:#ff4d4f}.history-header .history-management .icon-quxiao-style[data-v-eed4c646]{color:#6c63ff;box-sizing:border-box}.history-header .history-management .icon-total_selection-style[data-v-eed4c646]{color:#666}.history-header .history-management .icon-total_selection-style.active[data-v-eed4c646]{color:#6c63ff;background:rgba(108,99,255,.12)}.history-header .history-management .icon-shanchu-style[data-v-eed4c646]{color:#ff4d4f}.history-search-wrap[data-v-eed4c646]{display:flex;flex-direction:column;width:100%;padding:.5rem .9375rem .1875rem;box-sizing:border-box}.history-search-wrap .history-search-inner[data-v-eed4c646]{display:flex;width:100%;padding:.375rem .6875rem;box-sizing:border-box;align-items:center;background-color:rgba(255,255,255,.6);border-radius:.875rem;border:.0625rem solid transparent;transition:all .25s ease}.history-search-wrap .history-search-inner .search-icon[data-v-eed4c646]{color:#999!important;font-weight:700;font-size:1rem!important}.history-search-wrap .history-search-inner .chat-search-icon[data-v-eed4c646]{color:#6c63ff!important;font-weight:700;font-size:1rem!important}.history-search-wrap .history-search-inner uni-input[data-v-eed4c646]{margin-left:.375rem;box-sizing:border-box;font-size:.8125rem;color:#333}.history-search-wrap .history-search-inner uni-input[data-v-eed4c646]::-webkit-input-placeholder{color:#c0c0d0}.history-search-wrap .history-search-inner uni-input[data-v-eed4c646]::placeholder{color:#c0c0d0}.history-search-wrap .history-search-inner.has-value[data-v-eed4c646]{background-color:#fff;border-color:#6c63ff;box-shadow:0 0 0 .09375rem rgba(108,99,255,.08)}.chat-history-list[data-v-eed4c646]{padding:.3125rem .9375rem}.chat-history-list .chat-history-card[data-v-eed4c646]{display:flex;align-items:center;border:.04688rem solid rgba(108,99,255,.25);background:linear-gradient(135deg,#fff,#faf9ff);border-radius:.75rem;padding:.75rem;margin-top:.375rem;box-sizing:border-box;transition:all .2s ease}.chat-history-list .chat-history-card[data-v-eed4c646]:active{transform:scale(.98)}.chat-history-list .is-select-chat[data-v-eed4c646]{border-color:#6c63ff;box-shadow:0 .125rem .5rem rgba(108,99,255,.15);background:linear-gradient(135deg,rgba(108,99,255,.06),rgba(108,99,255,.02))}.chat-history-list .history-chat-checkbox[data-v-eed4c646]{width:1.125rem;height:1.125rem;border-radius:.3125rem;display:flex;justify-content:center;align-items:center;border:.0625rem solid rgba(108,99,255,.5);margin-right:.375rem;flex-shrink:0}.chat-history-list .history-chat-avatar[data-v-eed4c646]{width:2rem;height:2rem;border-radius:.5625rem;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,rgba(108,99,255,.3),rgba(108,99,255,.15));margin-left:0;margin-right:.5rem;box-sizing:border-box;flex-shrink:0}.chat-history-list .friend-avatar[data-v-eed4c646]{display:flex;justify-content:center;align-items:center;border-radius:.5625rem;width:100%;height:100%;overflow:hidden}.chat-page[data-v-af7545bf]{position:relative;background:linear-gradient(180deg,#f5f4ff,#f8f7fc,#faf9fe)}.mask[data-v-af7545bf]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:998;animation:fadeIn-af7545bf .3s ease}@keyframes fadeIn-af7545bf{0%{opacity:0}to{opacity:1}}.chat-sidebar[data-v-af7545bf]{position:fixed;top:0;left:0;width:calc(100% - 3.125rem);max-width:21.25rem;height:100%;transform:translate(-100%);transition:transform .4s cubic-bezier(.4,0,.2,1);z-index:999;box-shadow:.25rem 0 .9375rem rgba(0,0,0,.06)}.chat-sidebar.sidebar-show[data-v-af7545bf]{transform:translate(0)}.ncd-overlay[data-v-af7545bf]{position:fixed;width:100%;height:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;background-color:rgba(30,30,50,.35);z-index:1000;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:fadeIn-af7545bf .25s ease}.ncd-card[data-v-af7545bf]{width:90%;height:auto;background-color:#fff;border-radius:1.25rem;padding:1.5625rem 1.25rem;box-sizing:border-box;box-shadow:0 .625rem 1.875rem rgba(100,100,200,.12);animation:slideUp-af7545bf .35s ease}@keyframes slideUp-af7545bf{0%{opacity:0;transform:translateY(1.25rem) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.ncd-header[data-v-af7545bf]{display:flex;justify-content:center;align-items:center;width:100%}.ncd-title-eng[data-v-af7545bf]{display:flex;flex-shrink:0;background:linear-gradient(135deg,#6c63ff,#4a45d1);padding:.1875rem .4375rem;border-radius:.375rem;justify-content:center;align-items:center}.ncd-title-eng uni-text[data-v-af7545bf]{color:#fff;font-weight:700;font-size:.875rem}.ncd-title-zh[data-v-af7545bf]{margin-left:.3125rem;display:flex;flex:1;height:0;font-size:1.125rem;font-weight:700;color:#1a1a2e}.ncd-header uni-icons[data-v-af7545bf]{display:flex;flex-shrink:0}.ncd-options[data-v-af7545bf]{display:flex;flex-direction:column;width:100%;justify-content:center;align-items:center;margin-top:.625rem;box-sizing:border-box}.ncd-option[data-v-af7545bf]{width:100%;background:#f8fafc;padding:1.25rem .9375rem;display:flex;border-radius:.875rem;margin-top:.625rem;box-sizing:border-box;justify-content:center;align-items:center;transition:all .2s ease;border:.0625rem solid transparent}.ncd-option[data-v-af7545bf]:active{transform:scale(.98)}.ncd-normal[data-v-af7545bf]{border:.0625rem solid #e8edf3}.ncd-normal[data-v-af7545bf]:active{border-color:#c4c8d0;background:#f0f3f7}.ncd-opt-icon[data-v-af7545bf]{width:2.5rem;height:2.5rem;border-radius:.75rem;padding:.3125rem;box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;align-items:center}.ncd-normal .ncd-opt-icon[data-v-af7545bf]{background:linear-gradient(135deg,#e2e8f0,#d9dfe8)}.ncd-opt-title[data-v-af7545bf]{display:flex;flex-direction:column;margin:0 .5rem;box-sizing:border-box;justify-content:center;flex:1;height:0}.ncd-opt-title-1[data-v-af7545bf]{font-size:.9375rem;font-weight:600;color:#1a1a2e}.ncd-opt-title-2[data-v-af7545bf]{font-size:.75rem;color:#888;margin-top:.125rem}.arrow-right-style[data-v-af7545bf]{display:flex;flex-shrink:0;font-weight:700!important;font-size:.875rem!important;color:#999!important}.ncd-intelligence[data-v-af7545bf]{background:linear-gradient(135deg,#f8f5ff,#efe8ff);border:.0625rem solid #c4b5fd}.ncd-intelligence[data-v-af7545bf]:active{border-color:#a78bfa;background:linear-gradient(135deg,#f3efff,#e8dcff)}.ncd-intelligence .ncd-opt-icon[data-v-af7545bf]{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.close-option-card[data-v-af7545bf]{width:100%;display:flex;justify-content:flex-end}.close-option-card .iconfont[data-v-af7545bf]{color:#ff4d4f!important}.chat-option-list[data-v-af7545bf]{display:flex;width:100%;flex-direction:column}.chat-option[data-v-af7545bf]{display:flex;justify-content:flex-start;align-items:center;margin:.3125rem 0;padding:.5rem .625rem;border-radius:.625rem;box-sizing:border-box;transition:all .15s ease}.chat-option[data-v-af7545bf]:active{background:rgba(170,170,255,.08)}.chat-option .iconfont[data-v-af7545bf]{font-size:30px}.option-name[data-v-af7545bf]{font-size:17px;font-weight:500;margin-left:12px;box-sizing:border-box;color:#333}.chat-wrapper[data-v-af7545bf]{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.chat-hearder[data-v-af7545bf]{width:100%;height:auto;padding:.5rem .3125rem;box-sizing:border-box;display:flex;flex-shrink:0;justify-content:flex-start;align-items:center;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.8));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:.03125rem solid rgba(170,170,255,.15)}.chat-btn-group[data-v-af7545bf]{width:100%;height:auto;display:flex;justify-content:flex-start;align-items:center}.head-btn[data-v-af7545bf]{padding:.375rem .4375rem;border:.04688rem solid rgba(170,170,255,.3);border-radius:.5625rem;margin:0 .3125rem;box-sizing:border-box;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,.7);transition:all .2s ease}.head-btn[data-v-af7545bf]:active{background:rgba(170,170,255,.1);transform:scale(.95)}.chat-btn-group .head-btn:nth-child(1) .iconfont[data-v-af7545bf]{color:#a78bfa}.chat-btn-group .head-btn:nth-child(2) .iconfont[data-v-af7545bf]{color:#6495ed}.head-btn .iconfont[data-v-af7545bf]{font-size:1.5rem}.log-out .iconfont[data-v-af7545bf]{color:#ff4d4f}.main-chat[data-v-af7545bf]{display:flex;flex:1;height:0;width:100%;flex-direction:column}.load-more-tip[data-v-af7545bf]{text-align:center;padding:.625rem 0;font-size:.75rem;color:#999}.chat-messages[data-v-af7545bf]{display:flex;flex:1;height:0;width:100%;padding:.625rem .75rem;box-sizing:border-box;flex-direction:column;overflow:auto}.chat-messages[data-v-af7545bf]::-webkit-scrollbar{width:.1875rem}.chat-messages[data-v-af7545bf]::-webkit-scrollbar-thumb{background:rgba(170,170,255,.3);border-radius:.09375rem}.chat-messages[data-v-af7545bf]::-webkit-scrollbar-track{background:transparent}.chat-message[data-v-af7545bf]{display:flex;align-items:flex-start;margin:.4375rem 0;box-sizing:border-box;animation:msgFadeIn-af7545bf .3s ease}@keyframes msgFadeIn-af7545bf{0%{opacity:0;transform:translateY(.3125rem)}to{opacity:1;transform:translateY(0)}}.message-user[data-v-af7545bf]{flex-direction:row-reverse}.chat-avatar[data-v-af7545bf]{display:flex;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;box-sizing:border-box;border-radius:.5rem;margin-right:.375rem;flex-shrink:0}.friend-avatar[data-v-af7545bf]{display:flex;justify-content:center;align-items:center;border-radius:.5rem;width:100%;height:100%;overflow:hidden}.chat-avatar-user[data-v-af7545bf]{margin-right:0;margin-left:.375rem}.chat-content[data-v-af7545bf]{width:auto;max-width:calc(100% - 3.75rem);height:auto;padding:.625rem .75rem;box-sizing:border-box;border-radius:.75rem;overflow-x:auto;font-size:1rem;line-height:1.65;position:relative;box-shadow:0 .0625rem .25rem rgba(0,0,0,.04);background:#fff;border:.03125rem solid #eeeef5}.chat-content-user[data-v-af7545bf]{background:linear-gradient(135deg,#c4b5fd,#b8a5f0);color:#fff;border:none;box-shadow:0 .125rem .375rem rgba(170,170,255,.3);border-bottom-right-radius:.25rem}.chat-content-assistant[data-v-af7545bf]{max-width:100%}.chat-content[data-v-af7545bf]:not(.chat-content-user){border-bottom-left-radius:.25rem}.message-image[data-v-af7545bf]{max-width:9.375rem;border-radius:.375rem;margin:.25rem 0}.message-file-list[data-v-af7545bf]{margin:.3125rem 0}.file-item[data-v-af7545bf]{margin:.1875rem 0}.message-file[data-v-af7545bf]{display:flex;align-items:center;padding:.4375rem .5625rem;background:rgba(255,255,255,.85);border-radius:.375rem;max-width:10.9375rem;border:.03125rem solid #eeeef5}.chat-content-user .message-file[data-v-af7545bf]{background:rgba(255,255,255,.25);border-color:rgba(255,255,255,.3)}.file-icon[data-v-af7545bf]{font-size:1rem;margin-right:.375rem}.file-name[data-v-af7545bf]{flex:1;font-size:.8125rem;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-content-user .file-name[data-v-af7545bf]{color:#fff}.file-size[data-v-af7545bf]{font-size:.6875rem;color:#999;margin-left:.25rem}.chat-content-user .file-size[data-v-af7545bf]{color:rgba(255,255,255,.7)}.chat-interactive-container[data-v-af7545bf]{display:flex;flex-shrink:0;width:100%;padding:.5rem .75rem .75rem;box-sizing:border-box;flex-direction:column;background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.95));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:.03125rem solid rgba(170,170,255,.12)}.chat-interactive-group[data-v-af7545bf]{display:flex;width:100%;padding:.375rem 0;box-sizing:border-box;justify-content:flex-start;align-items:center}.chat-interactive-btn[data-v-af7545bf]{display:flex;align-items:center;justify-content:center;border:.04688rem solid #d4d4e0;border-radius:.5rem;padding:.375rem .625rem;margin-right:.5rem;box-sizing:border-box;font-size:.75rem;color:#666;background:#fff;transition:all .2s ease}.chat-interactive-btn[data-v-af7545bf]:active{border-color:#aaf;background:rgba(170,170,255,.08);transform:scale(.96)}.chat-interactive-btn.disabled[data-v-af7545bf]{opacity:.45;pointer-events:none;border-color:#e0dfe8;color:#aaa}.chat-input-container[data-v-af7545bf]{display:flex;width:100%;padding:.25rem .25rem .25rem .75rem;box-sizing:border-box;border:.0625rem solid #e0dff5;border-radius:.9375rem;align-items:flex-end;background:#fff;transition:all .25s ease;box-shadow:0 .0625rem .375rem rgba(100,100,150,.06)}.chat-input-container[data-v-af7545bf]:focus-within{border-color:#aaf;box-shadow:0 0 0 .125rem rgba(170,170,255,.12),0 .125rem .5rem rgba(100,100,150,.08)}.message-input[data-v-af7545bf]{flex:1;max-height:4.6875rem;min-height:1.875rem;overflow-y:auto;margin:.125rem .3125rem;box-sizing:border-box;font-size:.875rem;color:#333}.message-input[data-v-af7545bf]::-webkit-input-placeholder{color:#c0c0d0}.message-input[data-v-af7545bf]::placeholder{color:#c0c0d0}.chat-input-container.input-disabled[data-v-af7545bf]{border-color:#eae9f2;background:#f8f7fc}.message-input[disabled][data-v-af7545bf]{opacity:.5;color:#bbb}.input-btn-group.disabled[data-v-af7545bf]{opacity:.4;pointer-events:none;background:#c0c0d0;box-shadow:none}.stop-message-btn[data-v-af7545bf]{background:linear-gradient(135deg,#ff4d4f,#ff6b6b);box-shadow:0 .125rem .375rem rgba(255,77,79,.35);animation:pulseStop-af7545bf 1.8s ease-in-out infinite}.stop-message-btn[data-v-af7545bf]:active{transform:scale(.92);box-shadow:0 .0625rem .1875rem rgba(255,77,79,.25)}.input-btn-group[data-v-af7545bf]{flex-shrink:0;display:flex;justify-content:center;align-items:center;padding:.4375rem;box-sizing:border-box;background:linear-gradient(135deg,#6c63ff,#8b7cfb);border-radius:.6875rem;width:2.25rem;height:2.25rem;box-shadow:0 .125rem .375rem rgba(108,99,255,.35);transition:all .2s ease}.input-btn-group[data-v-af7545bf]:active{transform:scale(.92);box-shadow:0 .0625rem .1875rem rgba(108,99,255,.25)}.input-btn-group .iconfont[data-v-af7545bf]{color:#fff;font-size:1.125rem}.ai-card[data-v-af7545bf]{width:auto;border:.0625rem solid rgba(64,158,255,.3);box-shadow:0 .25rem .9375rem rgba(170,170,255,.2);border-radius:1rem!important}.thinking-content[data-v-af7545bf]{display:flex;flex-direction:column;align-items:center;width:100%}.loading-dots[data-v-af7545bf]{display:flex;width:100%;align-items:center;justify-content:center}.dot[data-v-af7545bf]{width:.4375rem;height:.4375rem;margin:.1875rem;border-radius:50%;background:linear-gradient(135deg,#409eff,#6db2ff);animation:dotBlink-af7545bf 1.2s infinite ease-in-out}@keyframes dotBlink-af7545bf{0%,to{opacity:.3;transform:scale(.7)}50%{opacity:1;transform:scale(1.2)}}.dot[data-v-af7545bf]:nth-child(2){animation-delay:.25s}.dot[data-v-af7545bf]:nth-child(3){animation-delay:.5s}.thinking-text[data-v-af7545bf]{margin:.625rem 0;font-size:20px;font-weight:600;color:#409eff}.stop-thinking-btn[data-v-af7545bf]{display:flex;align-items:center;justify-content:center;width:100%;padding:.6875rem 0;margin-top:.625rem;border-radius:.75rem;font-size:.875rem;font-weight:600;color:#ff4d4f;background:linear-gradient(135deg,rgba(255,77,79,.06),rgba(255,77,79,.02));border:.0625rem solid rgba(255,77,79,.35);transition:all .2s ease;animation:pulseStop-af7545bf 2s ease-in-out infinite}.stop-thinking-btn[data-v-af7545bf]:active{background:rgba(255,77,79,.12);border-color:#ff4d4f;transform:scale(.97)}@keyframes pulseStop-af7545bf{0%,to{border-color:rgba(255,77,79,.35)}50%{border-color:rgba(255,77,79,.65)}}.image-list[data-v-af7545bf]{width:100%;padding:.25rem 0 .0625rem;animation:fadeIn-af7545bf .25s ease}.image-tags[data-v-af7545bf]{display:flex;flex-wrap:wrap;gap:.3125rem}.image-tag[data-v-af7545bf]{display:flex;align-items:center;padding:.1875rem .25rem .1875rem .5rem;background:linear-gradient(135deg,rgba(108,99,255,.07),rgba(108,99,255,.04));border:.03125rem solid rgba(108,99,255,.18);border-radius:.625rem;max-width:6.875rem;transition:all .2s ease;box-shadow:0 .03125rem .125rem rgba(108,99,255,.04)}.image-tag[data-v-af7545bf]:active{transform:scale(.96);border-color:rgba(108,99,255,.4);background:rgba(108,99,255,.1)}.tag-name[data-v-af7545bf]{font-size:.6875rem;color:#5a52d5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;font-weight:500}.tag-close[data-v-af7545bf]{flex-shrink:0;width:1rem;height:1rem;display:flex;align-items:center;justify-content:center;font-size:.875rem;color:#bbb;margin-left:.1875rem;border-radius:50%;line-height:1;transition:all .15s ease}.tag-close[data-v-af7545bf]:active{color:#fff;background:#ff4d4f;transform:scale(1.1)}.message-detail-card[data-v-af7545bf]{width:90%;max-height:80vh;display:flex;flex-direction:column;border-radius:1.25rem}.message-detail-content[data-v-af7545bf]{flex:1;max-height:60vh;overflow-y:auto;padding:.625rem 0;font-size:.875rem;line-height:1.7;color:#333;white-space:pre-wrap;word-break:break-all}.chat-content h1{font-size:1.3125rem;line-height:1.4;margin:.5rem 0 .3125rem}.chat-content h2{font-size:1.1875rem;line-height:1.4;margin:.4375rem 0 .25rem}.chat-content h3{font-size:1.125rem;line-height:1.4;margin:.375rem 0 .25rem}.chat-content h4,.chat-content h5,.chat-content h6{font-size:1.0625rem;line-height:1.5;margin:.3125rem 0 .1875rem}.chat-content p,.chat-content uni-text,.chat-content span{font-size:1.1875rem!important;line-height:1.6;margin:.25rem 0}.bubble-loading-dots{display:flex;align-items:center;justify-content:flex-start;padding:.3125rem 0}.bubble-dot{width:.375rem;height:.375rem;border-radius:50%;background:#a0a0b8;margin-right:.3125rem;animation:bubbleDotBlink 1.2s infinite ease-in-out}.bubble-dot:nth-child(2){animation-delay:.3s}.bubble-dot:nth-child(3){animation-delay:.6s}@keyframes bubbleDotBlink{0%,to{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1.1)}}.detail-links-section{margin-top:.75rem;padding-top:.75rem;border-top:.03125rem solid #eee}.detail-links-title{font-size:.9375rem;font-weight:600;color:#666;margin-bottom:.5rem}.detail-link-item{padding:.5rem .625rem;background:#f5f7fa;border-radius:.375rem;margin-bottom:.375rem}.link-text{font-size:.875rem;color:#007aff;word-break:break-all} diff --git a/unpackage/dist/build/app-plus/pages/CloudDatabase/CloudDatabase.css b/unpackage/dist/build/app-plus/pages/CloudDatabase/CloudDatabase.css index 2c0443e..c0323e0 100644 --- a/unpackage/dist/build/app-plus/pages/CloudDatabase/CloudDatabase.css +++ b/unpackage/dist/build/app-plus/pages/CloudDatabase/CloudDatabase.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.cloud-db-container[data-v-2d96f7d1]{display:flex;flex-direction:column;width:100%;height:100vh;background-color:#f5f6fa}.cloud-db-header[data-v-2d96f7d1]{flex-shrink:0;background-color:#fff;padding-bottom:0}.custom-navbar[data-v-2d96f7d1]{display:flex;align-items:center;justify-content:space-between;padding:.625rem .9375rem;box-sizing:border-box;position:relative}.navbar-left[data-v-2d96f7d1]{display:flex;align-items:center;min-width:5rem}.custom-navbar-icon[data-v-2d96f7d1]{font-size:1.375rem;color:#333}.navbar-title[data-v-2d96f7d1]{font-size:1.125rem;font-weight:600;color:#1a1a2e}.navbar-right[data-v-2d96f7d1]{width:auto;min-width:2.5rem;display:flex;align-items:center;justify-content:flex-end}.navbar-before-title[data-v-2d96f7d1]{font-size:.8125rem;color:#3b86ff;margin-left:.25rem}.navbar-right-text[data-v-2d96f7d1]{font-size:.875rem;color:#3b86ff;font-weight:500}.menu-open[data-v-2d96f7d1]{color:#3b86ff}.menu-card[data-v-2d96f7d1]{position:absolute;top:2.5rem;right:.625rem;background:#fff;border-radius:.5rem;box-shadow:0 .125rem .625rem rgba(0,0,0,.1);padding:.375rem 0;z-index:100;min-width:6.25rem}.menu-card-item[data-v-2d96f7d1]{padding:.625rem 1rem;font-size:.875rem;color:#333}.menu-card-item[data-v-2d96f7d1]:active{background:#f5f6fa}.solid-line[data-v-2d96f7d1]{height:.03125rem;background:#eee;margin:.125rem .625rem}.file-count[data-v-2d96f7d1]{font-size:.75rem;color:#999;font-weight:400}.category-tabs[data-v-2d96f7d1]{display:flex;padding:.3125rem .9375rem 0;gap:1.25rem;border-bottom:.0625rem solid #eee}.category-tab[data-v-2d96f7d1]{font-size:.9375rem;color:#999;padding-bottom:.625rem;position:relative;font-weight:500;transition:color .3s}.category-tab.active[data-v-2d96f7d1]{color:#3b86ff;font-weight:600}.category-tab.active[data-v-2d96f7d1]:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:1.5rem;height:.1875rem;background:#3b86ff;border-radius:.09375rem}.cloud-db-content[data-v-2d96f7d1]{flex:1;min-height:0;padding:.625rem .9375rem;box-sizing:border-box}.section-block[data-v-2d96f7d1]{background:#fff;border-radius:.625rem;padding:.75rem;margin-bottom:.625rem;box-shadow:0 .0625rem .375rem rgba(0,0,0,.04)}.section-header[data-v-2d96f7d1]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.section-title[data-v-2d96f7d1]{display:flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:600;color:#1a1a2e}.section-title .iconfont[data-v-2d96f7d1]{font-size:1.125rem;color:#3b86ff}.section-actions[data-v-2d96f7d1]{display:flex;align-items:center;gap:.3125rem}.action-btn[data-v-2d96f7d1]{display:flex;align-items:center;gap:.1875rem;padding:.3125rem .625rem;background:rgba(59,134,255,.08);color:#3b86ff;border-radius:.9375rem;font-size:.75rem;font-weight:500}.section-divider[data-v-2d96f7d1]{height:.0625rem;margin:.125rem 0 .625rem}.empty-tip[data-v-2d96f7d1]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;color:#bbb;font-size:.8125rem;gap:.5rem}.empty-tip .iconfont[data-v-2d96f7d1]{font-size:2.5rem;color:#ddd}.file-grid[data-v-2d96f7d1]{display:flex;flex-wrap:wrap;gap:.5rem}.file-item[data-v-2d96f7d1]{width:calc(33.33% - .375rem);display:flex;flex-direction:column;align-items:center;padding:.625rem .3125rem;border-radius:.5rem;background:#f8f9fc;border:.0625rem solid transparent;transition:all .2s;box-sizing:border-box}.file-item[data-v-2d96f7d1]:active{border-color:#3b86ff;background:rgba(59,134,255,.04)}.file-icon[data-v-2d96f7d1]{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;border-radius:.5rem;margin-bottom:.3125rem}.file-icon.is-directory[data-v-2d96f7d1]{background:rgba(255,170,0,.12)}.file-icon.is-directory .iconfont[data-v-2d96f7d1]{font-size:1.5rem;color:orange}.file-icon.is-file[data-v-2d96f7d1]{background:rgba(59,134,255,.1)}.file-icon.is-file .iconfont[data-v-2d96f7d1]{font-size:1.375rem;color:#3b86ff}.file-name[data-v-2d96f7d1]{font-size:.75rem;color:#333;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;margin-bottom:.1875rem}.file-meta[data-v-2d96f7d1]{display:flex;gap:.25rem;align-items:center}.file-type-tag[data-v-2d96f7d1]{font-size:.625rem;color:#999;background:#f0f0f0;padding:.0625rem .3125rem;border-radius:.25rem}.file-size[data-v-2d96f7d1]{font-size:.625rem;color:#bbb}.table-list[data-v-2d96f7d1]{display:flex;flex-direction:column;gap:.375rem}.table-item[data-v-2d96f7d1]{display:flex;align-items:center;padding:.625rem;border-radius:.4375rem;background:#f8f9fc;border:.0625rem solid transparent;transition:all .2s}.table-item[data-v-2d96f7d1]:active{border-color:#3b86ff;background:rgba(59,134,255,.03)}.table-icon[data-v-2d96f7d1]{width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:rgba(59,134,255,.08);border-radius:.4375rem;margin-right:.625rem;flex-shrink:0}.table-info[data-v-2d96f7d1]{flex:1;min-width:0}.table-name[data-v-2d96f7d1]{font-size:.875rem;font-weight:600;color:#1a1a2e;margin-bottom:.125rem}.table-desc[data-v-2d96f7d1]{font-size:.6875rem;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-meta[data-v-2d96f7d1]{display:flex;align-items:center;gap:.1875rem;flex-shrink:0}.table-rows[data-v-2d96f7d1]{font-size:.6875rem;color:#bbb}.team-manage-block[data-v-2d96f7d1]{cursor:pointer}.team-count[data-v-2d96f7d1]{font-size:.75rem;color:#999}.team-selector[data-v-2d96f7d1]{padding:0 0 .625rem}.team-scroll[data-v-2d96f7d1]{white-space:nowrap}.team-chip[data-v-2d96f7d1]{display:inline-block;padding:.375rem .875rem;margin-right:.5rem;border-radius:.9375rem;font-size:.8125rem;color:#666;background:#f0f2f5;transition:all .2s}.team-chip.active[data-v-2d96f7d1]{color:#fff;background:#3b86ff;font-weight:500}.team-info[data-v-2d96f7d1]{margin-top:.4375rem;display:flex;align-items:center;flex-wrap:wrap;gap:.375rem}.team-type-tag[data-v-2d96f7d1]{font-size:.6875rem;color:#3b86ff;background:rgba(59,134,255,.1);padding:.1875rem .5rem;border-radius:.25rem;font-weight:500}.team-desc-text[data-v-2d96f7d1]{font-size:.75rem;color:#999;line-height:1.5;flex:1;min-width:0}.select-team-tip[data-v-2d96f7d1]{padding:2.5rem 0}.popup-overlay[data-v-2d96f7d1]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.4);z-index:999;display:flex;align-items:center;justify-content:center}.popup-card[data-v-2d96f7d1]{width:18.75rem;background:#fff;border-radius:.9375rem;padding:1.25rem .9375rem;box-sizing:border-box;position:relative;max-height:80vh;display:flex;flex-direction:column}.close-popup-card[data-v-2d96f7d1]{position:absolute;top:.625rem;right:.625rem;width:1.5625rem;height:1.5625rem;display:flex;align-items:center;justify-content:center}.close-popup-card .iconfont[data-v-2d96f7d1]{font-size:1.25rem;color:#999}.popup-title[data-v-2d96f7d1]{font-size:1.0625rem;font-weight:600;color:#1a1a2e;margin-bottom:.9375rem;text-align:center}.new-folder-name[data-v-2d96f7d1]{font-size:.8125rem;color:#666;margin-bottom:.3125rem}.create-folder-name[data-v-2d96f7d1]{margin-bottom:.625rem}.create-folder-name uni-input[data-v-2d96f7d1]{width:100%;height:auto;padding:.625rem;box-sizing:border-box;border:.03125rem solid #e0e0e0;border-radius:.5rem;font-size:.875rem;background:#f9fafb}.create-folder-name uni-input[data-v-2d96f7d1]:focus{border-color:#3b86ff;background:#fff}.nf-path-label[data-v-2d96f7d1]{font-size:.75rem;color:#999;margin-bottom:.25rem}.nf-path-display[data-v-2d96f7d1]{font-size:.75rem;color:#3b86ff;background:rgba(59,134,255,.06);padding:.375rem .5rem;border-radius:.3125rem;margin-bottom:.625rem}.option-wrapper[data-v-2d96f7d1]{display:flex;gap:.625rem;justify-content:flex-end;margin-top:.3125rem}.opt-btn[data-v-2d96f7d1]{padding:.5rem 1.25rem;border-radius:.9375rem;font-size:.875rem;font-weight:500}.opt-cancel[data-v-2d96f7d1]{color:#999;background:#f0f2f5}.opt-confirm[data-v-2d96f7d1]{color:#fff;background:#3b86ff}.team-manage-body[data-v-2d96f7d1]{flex:1;min-height:0;max-height:15.625rem;margin-bottom:.625rem}.member-list[data-v-2d96f7d1]{display:flex;flex-direction:column;gap:.3125rem}.member-item[data-v-2d96f7d1]{display:flex;align-items:center;padding:.5rem;border-radius:.4375rem;background:#f8f9fc}.member-avatar[data-v-2d96f7d1]{width:2.1875rem;height:2.1875rem;border-radius:50%;overflow:hidden;margin-right:.5rem;flex-shrink:0}.member-avatar uni-image[data-v-2d96f7d1]{width:100%;height:100%}.default-avatar[data-v-2d96f7d1]{width:100%;height:100%;background:#ccc;display:flex;align-items:center;justify-content:center}.member-info[data-v-2d96f7d1]{flex:1;min-width:0}.member-name[data-v-2d96f7d1]{font-size:.875rem;font-weight:500;color:#333}.member-label[data-v-2d96f7d1]{font-size:.6875rem;color:#999;margin-top:.125rem}.member-actions[data-v-2d96f7d1]{flex-shrink:0}.member-role[data-v-2d96f7d1]{font-size:.6875rem;padding:.1875rem .5rem;border-radius:.625rem}.member-role.owner[data-v-2d96f7d1]{color:#e6a23c;background:rgba(230,162,60,.1)}.member-role.admin[data-v-2d96f7d1]{color:#3b86ff;background:rgba(59,134,255,.1)}.member-role.member[data-v-2d96f7d1]{color:#67c23a;background:rgba(103,194,58,.1)}.member-actions-right[data-v-2d96f7d1]{display:flex;gap:.25rem}.member-action-btn[data-v-2d96f7d1]{font-size:.625rem;padding:.25rem .4375rem;border-radius:.5rem}.set-admin[data-v-2d96f7d1]{color:#3b86ff;border:.03125rem solid #3b86ff}.demote-admin[data-v-2d96f7d1]{color:#e6a23c;border:.03125rem solid #e6a23c}.remove-member[data-v-2d96f7d1]{color:#f56c6c;border:.03125rem solid #f56c6c}.invite-section[data-v-2d96f7d1]{border-top:.03125rem solid #eee;padding-top:.625rem}.invite-input-wrapper[data-v-2d96f7d1]{display:flex;align-items:center;gap:.5rem}.invite-input[data-v-2d96f7d1]{flex:1;height:auto;padding:.5625rem .625rem;box-sizing:border-box;border:.03125rem solid #e0e0e0;border-radius:.9375rem;font-size:.8125rem;background:#f9fafb}.invite-btn[data-v-2d96f7d1]{background:#3b86ff;color:#fff;font-size:.75rem;padding:.4375rem 1rem}.search-result-list[data-v-2d96f7d1]{margin-top:.5rem;border-radius:.4375rem;overflow:hidden;background:#f8f9fc}.search-result-item[data-v-2d96f7d1]{display:flex;align-items:center;padding:.5625rem .625rem;border-bottom:.03125rem solid #eee}.search-result-item[data-v-2d96f7d1]:last-child{border-bottom:none}.search-result-item[data-v-2d96f7d1]:active{background:rgba(59,134,255,.05)}.result-avatar[data-v-2d96f7d1]{width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-right:.5rem}.result-default-avatar[data-v-2d96f7d1]{width:2rem;height:2rem;border-radius:50%;background:linear-gradient(135deg,#3b86ff,#6db3ff);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:.5rem}.result-info[data-v-2d96f7d1]{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.result-name[data-v-2d96f7d1]{font-size:.875rem;color:#333;font-weight:500}.result-email[data-v-2d96f7d1]{font-size:.6875rem;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-add-btn[data-v-2d96f7d1]{flex-shrink:0;font-size:.75rem;color:#3b86ff;padding:.3125rem .75rem;border:.03125rem solid #3b86ff;border-radius:.625rem}.search-empty[data-v-2d96f7d1]{margin-top:.5rem;text-align:center;font-size:.75rem;color:#bbb;padding:.625rem 0}.folder-null[data-v-2d96f7d1]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;color:#bbb;font-size:.8125rem;gap:.375rem}.folder-null .iconfont[data-v-2d96f7d1]{font-size:2rem;color:#ddd}.delete-team-section[data-v-2d96f7d1]{border-top:.03125rem solid #eee;padding-top:.625rem;margin-top:.3125rem}.delete-team-btn[data-v-2d96f7d1]{text-align:center;padding:.5625rem;font-size:.8125rem;color:#e74c3c;background:rgba(231,76,60,.06);border-radius:.4375rem;border:.03125rem solid rgba(231,76,60,.2)}.delete-team-btn[data-v-2d96f7d1]:active{background:rgba(231,76,60,.12)}.edit-team-section[data-v-2d96f7d1]{border-top:.03125rem solid #eee;padding-top:.625rem;margin-top:.3125rem}.edit-team-btn[data-v-2d96f7d1]{text-align:center;padding:.5625rem;font-size:.8125rem;color:#3b86ff;background:rgba(59,134,255,.06);border-radius:.4375rem;border:.03125rem solid rgba(59,134,255,.2)}.edit-team-btn[data-v-2d96f7d1]:active{background:rgba(59,134,255,.12)}.edit-team-form[data-v-2d96f7d1]{margin-bottom:.3125rem}.form-label[data-v-2d96f7d1]{font-size:.8125rem;color:#666;margin-bottom:.25rem;margin-top:.5625rem}.text-btn[data-v-2d96f7d1]{padding:.25rem .625rem;border-radius:.9375rem;font-size:14px;font-weight:500}.upload-path-label[data-v-2d96f7d1]{font-size:.8125rem;color:#666;margin-bottom:.3125rem}.upload-path-hint[data-v-2d96f7d1]{font-size:.6875rem;color:#999;margin-bottom:.625rem;text-align:center}.loading-area[data-v-2d96f7d1]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;gap:.5rem}.loading-spinner[data-v-2d96f7d1]{width:1.75rem;height:1.75rem;border:.125rem solid #e8e8e8;border-top-color:#3b86ff;border-radius:50%;animation:spin-2d96f7d1 .8s linear infinite}@keyframes spin-2d96f7d1{to{transform:rotate(360deg)}}.loading-text[data-v-2d96f7d1]{font-size:.75rem;color:#999}.db-tag[data-v-2d96f7d1]{display:inline-block;font-size:.625rem;font-weight:500;padding:.0625rem .375rem;border-radius:.25rem;margin-left:.3125rem;vertical-align:middle}.db-tag.tag-personal[data-v-2d96f7d1]{color:#3b86ff;background:rgba(59,134,255,.08);border:.03125rem solid rgba(59,134,255,.2)}.db-tag.tag-team[data-v-2d96f7d1]{color:#67c23a;background:rgba(103,194,58,.08);border:.03125rem solid rgba(103,194,58,.2)}.upload-db-hint[data-v-2d96f7d1]{font-size:.6875rem;color:#999;margin-bottom:.625rem;text-align:center}.upload-file-area[data-v-2d96f7d1]{padding:1.25rem;border:.0625rem dashed #d0d0d0;border-radius:.5rem;background:#f9fafb;text-align:center;margin-bottom:.625rem}.upload-file-area[data-v-2d96f7d1]:active{border-color:#3b86ff;background:rgba(59,134,255,.03)}.selected-file[data-v-2d96f7d1]{font-size:.8125rem;color:#3b86ff;font-weight:500;word-break:break-all}.upload-hint[data-v-2d96f7d1]{font-size:.75rem;color:#bbb} +.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.cloud-db-container[data-v-2d96f7d1]{display:flex;flex-direction:column;width:100%;height:100vh;background:linear-gradient(180deg,#f0f2ff,#f5f4f9 40%,#faf9fe)}.cloud-db-header[data-v-2d96f7d1]{flex-shrink:0;background-color:rgba(255,255,255,.85);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding-bottom:0;border-bottom:.03125rem solid rgba(170,170,255,.1)}.custom-navbar[data-v-2d96f7d1]{display:flex;align-items:center;justify-content:space-between;padding:.625rem .9375rem;box-sizing:border-box;position:relative}.navbar-left[data-v-2d96f7d1]{display:flex;align-items:center;min-width:5rem}.custom-navbar-icon[data-v-2d96f7d1]{font-size:1.375rem;color:#333}.navbar-title[data-v-2d96f7d1]{font-size:1.125rem;font-weight:600;color:#1a1a2e}.navbar-right[data-v-2d96f7d1]{width:auto;min-width:2.5rem;display:flex;align-items:center;justify-content:flex-end}.navbar-before-title[data-v-2d96f7d1]{font-size:.8125rem;color:#6c63ff;margin-left:.25rem}.navbar-right-text[data-v-2d96f7d1]{font-size:.875rem;color:#6c63ff;font-weight:500}.menu-open[data-v-2d96f7d1]{color:#6c63ff}.menu-card[data-v-2d96f7d1]{position:absolute;top:2.5rem;right:.625rem;background:#fff;border-radius:.5rem;box-shadow:0 .125rem .625rem rgba(0,0,0,.1);padding:.375rem 0;z-index:100;min-width:6.25rem}.menu-card-item[data-v-2d96f7d1]{padding:.625rem 1rem;font-size:.875rem;color:#333}.menu-card-item[data-v-2d96f7d1]:active{background:#f5f6fa}.solid-line[data-v-2d96f7d1]{height:.03125rem;background:#eee;margin:.125rem .625rem}.file-count[data-v-2d96f7d1]{font-size:.75rem;color:#999;font-weight:400}.category-tabs[data-v-2d96f7d1]{display:flex;padding:.3125rem .9375rem 0;gap:1.25rem;border-bottom:.0625rem solid #eee}.category-tab[data-v-2d96f7d1]{font-size:.9375rem;color:#999;padding-bottom:.625rem;position:relative;font-weight:500;transition:color .3s}.category-tab.active[data-v-2d96f7d1]{color:#6c63ff;font-weight:600}.category-tab.active[data-v-2d96f7d1]:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:1.5rem;height:.1875rem;background:linear-gradient(90deg,#6c63ff,#aaf);border-radius:.09375rem}.cloud-db-content[data-v-2d96f7d1]{flex:1;min-height:0;padding:.625rem .9375rem;box-sizing:border-box}.section-block[data-v-2d96f7d1]{background:#fff;border-radius:.625rem;padding:.75rem;margin-bottom:.625rem;box-shadow:0 .0625rem .375rem rgba(0,0,0,.04)}.section-header[data-v-2d96f7d1]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.section-title[data-v-2d96f7d1]{display:flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:600;color:#1a1a2e}.section-title .iconfont[data-v-2d96f7d1]{font-size:1.125rem;color:#6c63ff}.section-actions[data-v-2d96f7d1]{display:flex;align-items:center;gap:.3125rem}.action-btn[data-v-2d96f7d1]{display:flex;align-items:center;gap:.1875rem;padding:.3125rem .625rem;background:rgba(108,99,255,.06);color:#6c63ff;border-radius:.625rem;font-size:.75rem;font-weight:500;transition:all .15s ease}.action-btn[data-v-2d96f7d1]:active{background:rgba(108,99,255,.12)}.section-divider[data-v-2d96f7d1]{height:.0625rem;margin:.125rem 0 .625rem}.empty-tip[data-v-2d96f7d1]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;color:#bbb;font-size:.8125rem;gap:.5rem}.empty-tip .iconfont[data-v-2d96f7d1]{font-size:2.5rem;color:#ddd}.file-grid[data-v-2d96f7d1]{display:flex;flex-wrap:wrap;gap:.5rem}.file-item[data-v-2d96f7d1]{width:calc(33.33% - .375rem);display:flex;flex-direction:column;align-items:center;padding:.625rem .3125rem;border-radius:.5rem;background:#f8f9fc;border:.0625rem solid transparent;transition:all .2s;box-sizing:border-box}.file-item[data-v-2d96f7d1]:active{border-color:#6c63ff;background:rgba(108,99,255,.04)}.file-icon[data-v-2d96f7d1]{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;border-radius:.5rem;margin-bottom:.3125rem}.file-icon.is-directory[data-v-2d96f7d1]{background:rgba(255,170,0,.12)}.file-icon.is-directory .iconfont[data-v-2d96f7d1]{font-size:1.5rem;color:orange}.file-icon.is-file[data-v-2d96f7d1]{background:rgba(108,99,255,.1)}.file-icon.is-file .iconfont[data-v-2d96f7d1]{font-size:1.375rem;color:#6c63ff}.file-name[data-v-2d96f7d1]{font-size:.75rem;color:#333;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;margin-bottom:.1875rem}.file-meta[data-v-2d96f7d1]{display:flex;gap:.25rem;align-items:center}.file-type-tag[data-v-2d96f7d1]{font-size:.625rem;color:#999;background:#f0f0f0;padding:.0625rem .3125rem;border-radius:.25rem}.file-size[data-v-2d96f7d1]{font-size:.625rem;color:#bbb}.table-list[data-v-2d96f7d1]{display:flex;flex-direction:column;gap:.375rem}.table-item[data-v-2d96f7d1]{display:flex;align-items:center;padding:.625rem;border-radius:.4375rem;background:#f8f9fc;border:.0625rem solid transparent;transition:all .2s}.table-item[data-v-2d96f7d1]:active{border-color:#6c63ff;background:rgba(108,99,255,.03)}.table-icon[data-v-2d96f7d1]{width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:rgba(108,99,255,.08);border-radius:.4375rem;margin-right:.625rem;flex-shrink:0}.table-info[data-v-2d96f7d1]{flex:1;min-width:0}.table-name[data-v-2d96f7d1]{font-size:.875rem;font-weight:600;color:#1a1a2e;margin-bottom:.125rem}.table-desc[data-v-2d96f7d1]{font-size:.6875rem;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-meta[data-v-2d96f7d1]{display:flex;align-items:center;gap:.1875rem;flex-shrink:0}.table-rows[data-v-2d96f7d1]{font-size:.6875rem;color:#bbb}.team-manage-block[data-v-2d96f7d1]{cursor:pointer}.team-count[data-v-2d96f7d1]{font-size:.75rem;color:#999}.team-selector[data-v-2d96f7d1]{padding:0 0 .625rem}.team-scroll[data-v-2d96f7d1]{white-space:nowrap}.team-chip[data-v-2d96f7d1]{display:inline-block;padding:.375rem .875rem;margin-right:.5rem;border-radius:.9375rem;font-size:.8125rem;color:#666;background:#f0f2f5;transition:all .2s}.team-chip.active[data-v-2d96f7d1]{color:#fff;background:#6c63ff;font-weight:500}.team-info[data-v-2d96f7d1]{margin-top:.4375rem;display:flex;align-items:center;flex-wrap:wrap;gap:.375rem}.team-type-tag[data-v-2d96f7d1]{font-size:.6875rem;color:#6c63ff;background:rgba(108,99,255,.1);padding:.1875rem .5rem;border-radius:.25rem;font-weight:500}.team-desc-text[data-v-2d96f7d1]{font-size:.75rem;color:#999;line-height:1.5;flex:1;min-width:0}.select-team-tip[data-v-2d96f7d1]{padding:2.5rem 0}.popup-overlay[data-v-2d96f7d1]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.4);z-index:999;display:flex;align-items:center;justify-content:center}.popup-card[data-v-2d96f7d1]{width:18.75rem;background:#fff;border-radius:.9375rem;padding:1.25rem .9375rem;box-sizing:border-box;position:relative;max-height:80vh;display:flex;flex-direction:column}.close-popup-card[data-v-2d96f7d1]{position:absolute;top:.625rem;right:.625rem;width:1.5625rem;height:1.5625rem;display:flex;align-items:center;justify-content:center}.close-popup-card .iconfont[data-v-2d96f7d1]{font-size:1.25rem;color:#999}.popup-title[data-v-2d96f7d1]{font-size:1.0625rem;font-weight:600;color:#1a1a2e;margin-bottom:.9375rem;text-align:center}.new-folder-name[data-v-2d96f7d1]{font-size:.8125rem;color:#666;margin-bottom:.3125rem}.create-folder-name[data-v-2d96f7d1]{margin-bottom:.625rem}.create-folder-name uni-input[data-v-2d96f7d1]{width:100%;height:auto;padding:.625rem;box-sizing:border-box;border:.03125rem solid #e0e0e0;border-radius:.5rem;font-size:.875rem;background:#f9fafb}.create-folder-name uni-input[data-v-2d96f7d1]:focus{border-color:#6c63ff;background:#fff}.nf-path-label[data-v-2d96f7d1]{font-size:.75rem;color:#999;margin-bottom:.25rem}.nf-path-display[data-v-2d96f7d1]{font-size:.75rem;color:#6c63ff;background:rgba(108,99,255,.06);padding:.375rem .5rem;border-radius:.3125rem;margin-bottom:.625rem}.option-wrapper[data-v-2d96f7d1]{display:flex;gap:.625rem;justify-content:flex-end;margin-top:.3125rem}.opt-btn[data-v-2d96f7d1]{padding:.5rem 1.25rem;border-radius:.9375rem;font-size:.875rem;font-weight:500}.opt-cancel[data-v-2d96f7d1]{color:#999;background:#f0f2f5}.opt-confirm[data-v-2d96f7d1]{color:#fff;background:#6c63ff}.team-manage-body[data-v-2d96f7d1]{flex:1;min-height:0;max-height:15.625rem;margin-bottom:.625rem}.member-list[data-v-2d96f7d1]{display:flex;flex-direction:column;gap:.3125rem}.member-item[data-v-2d96f7d1]{display:flex;align-items:center;padding:.5rem;border-radius:.4375rem;background:#f8f9fc}.member-avatar[data-v-2d96f7d1]{width:2.1875rem;height:2.1875rem;border-radius:50%;overflow:hidden;margin-right:.5rem;flex-shrink:0}.member-avatar uni-image[data-v-2d96f7d1]{width:100%;height:100%}.default-avatar[data-v-2d96f7d1]{width:100%;height:100%;background:#ccc;display:flex;align-items:center;justify-content:center}.member-info[data-v-2d96f7d1]{flex:1;min-width:0}.member-name[data-v-2d96f7d1]{font-size:.875rem;font-weight:500;color:#333}.member-label[data-v-2d96f7d1]{font-size:.6875rem;color:#999;margin-top:.125rem}.member-actions[data-v-2d96f7d1]{flex-shrink:0}.member-role[data-v-2d96f7d1]{font-size:.6875rem;padding:.1875rem .5rem;border-radius:.625rem}.member-role.owner[data-v-2d96f7d1]{color:#e6a23c;background:rgba(230,162,60,.1)}.member-role.admin[data-v-2d96f7d1]{color:#6c63ff;background:rgba(108,99,255,.1)}.member-role.member[data-v-2d96f7d1]{color:#67c23a;background:rgba(103,194,58,.1)}.member-actions-right[data-v-2d96f7d1]{display:flex;gap:.25rem}.member-action-btn[data-v-2d96f7d1]{font-size:.625rem;padding:.25rem .4375rem;border-radius:.5rem}.set-admin[data-v-2d96f7d1]{color:#6c63ff;border:.03125rem solid #6c63ff}.demote-admin[data-v-2d96f7d1]{color:#e6a23c;border:.03125rem solid #e6a23c}.remove-member[data-v-2d96f7d1]{color:#f56c6c;border:.03125rem solid #f56c6c}.invite-section[data-v-2d96f7d1]{border-top:.03125rem solid #eee;padding-top:.625rem}.invite-input-wrapper[data-v-2d96f7d1]{display:flex;align-items:center;gap:.5rem}.invite-input[data-v-2d96f7d1]{flex:1;height:auto;padding:.5625rem .625rem;box-sizing:border-box;border:.03125rem solid #e0e0e0;border-radius:.9375rem;font-size:.8125rem;background:#f9fafb}.invite-btn[data-v-2d96f7d1]{background:#6c63ff;color:#fff;font-size:.75rem;padding:.4375rem 1rem}.search-result-list[data-v-2d96f7d1]{margin-top:.5rem;border-radius:.4375rem;overflow:hidden;background:#f8f9fc}.search-result-item[data-v-2d96f7d1]{display:flex;align-items:center;padding:.5625rem .625rem;border-bottom:.03125rem solid #eee}.search-result-item[data-v-2d96f7d1]:last-child{border-bottom:none}.search-result-item[data-v-2d96f7d1]:active{background:rgba(108,99,255,.05)}.result-avatar[data-v-2d96f7d1]{width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-right:.5rem}.result-default-avatar[data-v-2d96f7d1]{width:2rem;height:2rem;border-radius:50%;background:linear-gradient(135deg,#6c63ff,#6db3ff);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:.5rem}.result-info[data-v-2d96f7d1]{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.result-name[data-v-2d96f7d1]{font-size:.875rem;color:#333;font-weight:500}.result-email[data-v-2d96f7d1]{font-size:.6875rem;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-add-btn[data-v-2d96f7d1]{flex-shrink:0;font-size:.75rem;color:#6c63ff;padding:.3125rem .75rem;border:.03125rem solid #6c63ff;border-radius:.625rem}.search-empty[data-v-2d96f7d1]{margin-top:.5rem;text-align:center;font-size:.75rem;color:#bbb;padding:.625rem 0}.folder-null[data-v-2d96f7d1]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;color:#bbb;font-size:.8125rem;gap:.375rem}.folder-null .iconfont[data-v-2d96f7d1]{font-size:2rem;color:#ddd}.delete-team-section[data-v-2d96f7d1]{border-top:.03125rem solid #eee;padding-top:.625rem;margin-top:.3125rem}.delete-team-btn[data-v-2d96f7d1]{text-align:center;padding:.5625rem;font-size:.8125rem;color:#e74c3c;background:rgba(231,76,60,.06);border-radius:.4375rem;border:.03125rem solid rgba(231,76,60,.2)}.delete-team-btn[data-v-2d96f7d1]:active{background:rgba(231,76,60,.12)}.edit-team-section[data-v-2d96f7d1]{border-top:.03125rem solid #eee;padding-top:.625rem;margin-top:.3125rem}.edit-team-btn[data-v-2d96f7d1]{text-align:center;padding:.5625rem;font-size:.8125rem;color:#6c63ff;background:rgba(108,99,255,.06);border-radius:.4375rem;border:.03125rem solid rgba(108,99,255,.2)}.edit-team-btn[data-v-2d96f7d1]:active{background:rgba(108,99,255,.12)}.edit-team-form[data-v-2d96f7d1]{margin-bottom:.3125rem}.form-label[data-v-2d96f7d1]{font-size:.8125rem;color:#666;margin-bottom:.25rem;margin-top:.5625rem}.text-btn[data-v-2d96f7d1]{padding:.25rem .625rem;border-radius:.9375rem;font-size:14px;font-weight:500}.upload-path-label[data-v-2d96f7d1]{font-size:.8125rem;color:#666;margin-bottom:.3125rem}.upload-path-hint[data-v-2d96f7d1]{font-size:.6875rem;color:#999;margin-bottom:.625rem;text-align:center}.loading-area[data-v-2d96f7d1]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;gap:.5rem}.loading-spinner[data-v-2d96f7d1]{width:1.75rem;height:1.75rem;border:.125rem solid #e8e8e8;border-top-color:#6c63ff;border-radius:50%;animation:spin-2d96f7d1 .8s linear infinite}@keyframes spin-2d96f7d1{to{transform:rotate(360deg)}}.loading-text[data-v-2d96f7d1]{font-size:.75rem;color:#999}.db-tag[data-v-2d96f7d1]{display:inline-block;font-size:.625rem;font-weight:500;padding:.0625rem .375rem;border-radius:.25rem;margin-left:.3125rem;vertical-align:middle}.db-tag.tag-personal[data-v-2d96f7d1]{color:#6c63ff;background:rgba(108,99,255,.08);border:.03125rem solid rgba(108,99,255,.2)}.db-tag.tag-team[data-v-2d96f7d1]{color:#67c23a;background:rgba(103,194,58,.08);border:.03125rem solid rgba(103,194,58,.2)}.upload-db-hint[data-v-2d96f7d1]{font-size:.6875rem;color:#999;margin-bottom:.625rem;text-align:center}.upload-file-area[data-v-2d96f7d1]{padding:1.25rem;border:.0625rem dashed #d0d0d0;border-radius:.5rem;background:#f9fafb;text-align:center;margin-bottom:.625rem}.upload-file-area[data-v-2d96f7d1]:active{border-color:#6c63ff;background:rgba(108,99,255,.03)}.selected-file[data-v-2d96f7d1]{font-size:.8125rem;color:#6c63ff;font-weight:500;word-break:break-all}.upload-hint[data-v-2d96f7d1]{font-size:.75rem;color:#bbb} diff --git a/unpackage/dist/build/app-plus/pages/CloudDbDetail/CloudDbDetail.css b/unpackage/dist/build/app-plus/pages/CloudDbDetail/CloudDbDetail.css index 06239d4..966a950 100644 --- a/unpackage/dist/build/app-plus/pages/CloudDbDetail/CloudDbDetail.css +++ b/unpackage/dist/build/app-plus/pages/CloudDbDetail/CloudDbDetail.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.status-bar[data-v-144a6cf9]{height:var(--status-bar-height);background-color:#fff}.page-container[data-v-144a6cf9]{display:flex;flex-direction:column;height:100vh;background-color:#f5f6fa}.cloud-db-header[data-v-144a6cf9]{background-color:#fff;flex-shrink:0;position:relative;z-index:10}.custom-navbar[data-v-144a6cf9]{display:flex;align-items:center;justify-content:space-between;height:2.75rem;padding:0 .9375rem}.navbar-left[data-v-144a6cf9]{display:flex;align-items:center;min-width:3.75rem}.custom-navbar-icon[data-v-144a6cf9]{font-size:1.25rem;color:#333}.navbar-title[data-v-144a6cf9]{font-size:1.0625rem;font-weight:600;color:#333;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navbar-right[data-v-144a6cf9]{min-width:3.75rem;display:flex;justify-content:flex-end}.menu-card[data-v-144a6cf9]{position:absolute;top:2.75rem;right:.625rem;background:#fff;border-radius:.5rem;box-shadow:0 .25rem 1rem rgba(0,0,0,.12);z-index:500;overflow:hidden;min-width:6.25rem}.menu-card-item[data-v-144a6cf9]{padding:.75rem 1.125rem;font-size:.875rem;color:#333;text-align:center}.menu-card-item[data-v-144a6cf9]:active{background-color:#f5f6fa}.solid-line[data-v-144a6cf9]{height:.03125rem;background-color:#eee;margin:0 .625rem}.db-info-bar[data-v-144a6cf9]{display:flex;align-items:center;gap:.75rem;padding:.625rem .9375rem;background:#fff;border-bottom:.03125rem solid #f0f0f0}.db-info-text[data-v-144a6cf9]{font-size:.75rem;color:#999}.cloud-db-content[data-v-144a6cf9]{flex:1;overflow-y:auto}.section-block[data-v-144a6cf9]{margin:.625rem;background:#fff;border-radius:.625rem;overflow:hidden}.section-header[data-v-144a6cf9]{display:flex;align-items:center;justify-content:space-between;padding:.75rem .9375rem;border-bottom:.03125rem solid #f5f6fa}.section-title[data-v-144a6cf9]{display:flex;align-items:center;gap:.375rem;font-size:.9375rem;font-weight:600;color:#333}.section-title .iconfont[data-v-144a6cf9]{font-size:1.125rem;color:#3b86ff}.section-actions[data-v-144a6cf9]{display:flex;align-items:center;gap:.5rem}.row-count[data-v-144a6cf9]{font-size:.75rem;color:#999}.section-divider[data-v-144a6cf9]{height:.03125rem;background-color:#f0f0f0;margin:0 .625rem}.section-body[data-v-144a6cf9]{padding:.5rem 0}.empty-tip[data-v-144a6cf9]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;color:#ccc;font-size:.8125rem}.empty-tip .iconfont[data-v-144a6cf9]{font-size:2.5rem;margin-bottom:.5rem}.table-list[data-v-144a6cf9]{padding:0 .9375rem}.table-item[data-v-144a6cf9]{display:flex;align-items:center;padding:.75rem 0;border-bottom:.03125rem solid #f5f6fa}.table-item[data-v-144a6cf9]:last-child{border-bottom:none}.table-item[data-v-144a6cf9]:active{background-color:#fafbfc;margin:0 -.9375rem;padding-left:.9375rem;padding-right:.9375rem}.table-icon[data-v-144a6cf9]{width:2.25rem;height:2.25rem;border-radius:.5rem;background:rgba(59,134,255,.08);display:flex;align-items:center;justify-content:center;margin-right:.625rem;flex-shrink:0}.table-info[data-v-144a6cf9]{flex:1;overflow:hidden}.table-name[data-v-144a6cf9]{font-size:.9375rem;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-desc[data-v-144a6cf9]{font-size:.75rem;color:#999;margin-top:.125rem}.table-meta[data-v-144a6cf9]{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.data-table-wrapper[data-v-144a6cf9]{padding:0}.data-table-scroll[data-v-144a6cf9]{width:100%}.data-table[data-v-144a6cf9]{min-width:100%}.data-row[data-v-144a6cf9]{display:flex;flex-direction:row;border-bottom:.03125rem solid #f0f0f0}.data-row[data-v-144a6cf9]:last-child{border-bottom:none}.data-header[data-v-144a6cf9]{background-color:#f8f9fb}.data-cell[data-v-144a6cf9]{padding:.5rem .625rem;font-size:.8125rem;color:#333;min-width:5rem;max-width:9.375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:.03125rem solid #f0f0f0;flex-shrink:0}.data-cell[data-v-144a6cf9]:last-child{border-right:none}.data-header .data-cell[data-v-144a6cf9]{font-weight:600;color:#666;font-size:.75rem}.index-cell[data-v-144a6cf9]{min-width:2.5rem!important;max-width:2.5rem!important;text-align:center;color:#999;font-size:.75rem}.data-row[data-v-144a6cf9]:active{background-color:#f5f7fa}.popup-overlay[data-v-144a6cf9]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:900}.popup-card[data-v-144a6cf9]{width:20rem;background:#fff;border-radius:.75rem;padding:1.25rem 1.125rem .9375rem;position:relative}.close-popup-card[data-v-144a6cf9]{position:absolute;top:.625rem;right:.625rem;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center}.close-popup-card .iconfont[data-v-144a6cf9]{font-size:1.125rem;color:#999}.popup-title[data-v-144a6cf9]{font-size:1.0625rem;font-weight:600;color:#333;text-align:center;margin-bottom:.9375rem}.new-folder-name[data-v-144a6cf9]{font-size:.8125rem;color:#666;margin-bottom:.375rem}.create-folder-name[data-v-144a6cf9]{margin-bottom:.75rem}.create-folder-name uni-input[data-v-144a6cf9]{width:100%;height:2.5rem;border:.0625rem solid #e0e0e0;border-radius:.375rem;padding:0 .625rem;font-size:.875rem;box-sizing:border-box;background:#f8f9fb}.upload-file-area[data-v-144a6cf9]{width:100%;height:3.75rem;border:.0625rem dashed #d0d0d0;border-radius:.375rem;display:flex;align-items:center;justify-content:center;margin-bottom:.75rem;background:#fafbfc}.selected-file[data-v-144a6cf9]{font-size:.8125rem;color:#3b86ff}.upload-hint[data-v-144a6cf9]{font-size:.75rem;color:#999}.option-wrapper[data-v-144a6cf9]{display:flex;gap:.625rem;margin-top:.3125rem}.opt-btn[data-v-144a6cf9]{flex:1;height:2.5rem;border-radius:.375rem;display:flex;align-items:center;justify-content:center;font-size:.9375rem}.opt-cancel[data-v-144a6cf9]{background:#f5f6fa;color:#666}.opt-confirm[data-v-144a6cf9]{background:#3b86ff;color:#fff}.permission-body[data-v-144a6cf9]{max-height:18.75rem;margin-bottom:.625rem}.permission-list[data-v-144a6cf9]{padding:0 .3125rem}.permission-item[data-v-144a6cf9]{display:flex;align-items:center;padding:.625rem .3125rem;border-bottom:.03125rem solid #f0f0f0}.perm-info[data-v-144a6cf9]{flex:1;display:flex;flex-direction:column;gap:.125rem}.perm-name[data-v-144a6cf9]{font-size:.875rem;color:#333}.perm-type[data-v-144a6cf9]{font-size:.6875rem;color:#999}.perm-level[data-v-144a6cf9]{font-size:.75rem;color:#3b86ff;background:rgba(59,134,255,.08);padding:.1875rem .5rem;border-radius:.25rem;margin:0 .5rem}.perm-actions[data-v-144a6cf9]{display:flex;gap:.375rem}.perm-action-btn[data-v-144a6cf9]{font-size:.75rem;color:#3b86ff;padding:.25rem .5rem;border:.03125rem solid #3b86ff;border-radius:.25rem}.perm-action-btn.delete[data-v-144a6cf9]{color:#f56c6c;border-color:#f56c6c}.close-permission-btn[data-v-144a6cf9]{text-align:center;font-size:.875rem;color:#999;padding:.5rem 0}.folder-null[data-v-144a6cf9]{text-align:center;padding:1.25rem 0;font-size:.8125rem;color:#999}.transfer-body[data-v-144a6cf9]{max-height:15.625rem;margin-bottom:.625rem}.transfer-list[data-v-144a6cf9]{padding:0 .3125rem}.transfer-item[data-v-144a6cf9]{display:flex;align-items:center;justify-content:space-between;padding:.75rem .5rem;border-bottom:.03125rem solid #f0f0f0;border-radius:.375rem;margin-bottom:.25rem}.transfer-item.active[data-v-144a6cf9]{background:rgba(59,134,255,.06)}.transfer-name[data-v-144a6cf9]{font-size:.875rem;color:#333}.loading-area[data-v-144a6cf9]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;gap:.5rem}.loading-spinner[data-v-144a6cf9]{width:1.75rem;height:1.75rem;border:.125rem solid #e8e8e8;border-top-color:#3b86ff;border-radius:50%;animation:spin-144a6cf9 .8s linear infinite}@keyframes spin-144a6cf9{to{transform:rotate(360deg)}}.loading-text[data-v-144a6cf9]{font-size:.75rem;color:#999} +.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.status-bar[data-v-144a6cf9]{height:var(--status-bar-height);background:linear-gradient(180deg,#fafbff,#f5f6fa)}.page-container[data-v-144a6cf9]{display:flex;flex-direction:column;height:100vh;background:linear-gradient(180deg,#f0f2ff,#f5f4f9 40%,#faf9fe)}.cloud-db-header[data-v-144a6cf9]{background-color:#fff;flex-shrink:0;position:relative;z-index:10}.custom-navbar[data-v-144a6cf9]{display:flex;align-items:center;justify-content:space-between;height:2.75rem;padding:0 .9375rem}.navbar-left[data-v-144a6cf9]{display:flex;align-items:center;min-width:3.75rem}.custom-navbar-icon[data-v-144a6cf9]{font-size:1.25rem;color:#333}.navbar-title[data-v-144a6cf9]{font-size:1.0625rem;font-weight:600;color:#333;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navbar-right[data-v-144a6cf9]{min-width:3.75rem;display:flex;justify-content:flex-end}.menu-card[data-v-144a6cf9]{position:absolute;top:2.75rem;right:.625rem;background:#fff;border-radius:.5rem;box-shadow:0 .25rem 1rem rgba(0,0,0,.12);z-index:500;overflow:hidden;min-width:6.25rem}.menu-card-item[data-v-144a6cf9]{padding:.75rem 1.125rem;font-size:.875rem;color:#333;text-align:center}.menu-card-item[data-v-144a6cf9]:active{background-color:#f5f6fa}.solid-line[data-v-144a6cf9]{height:.03125rem;background-color:#eee;margin:0 .625rem}.db-info-bar[data-v-144a6cf9]{display:flex;align-items:center;gap:.75rem;padding:.625rem .9375rem;background:#fff;border-bottom:.03125rem solid #f0f0f0}.db-info-text[data-v-144a6cf9]{font-size:.75rem;color:#999}.cloud-db-content[data-v-144a6cf9]{flex:1;overflow-y:auto}.section-block[data-v-144a6cf9]{margin:.625rem;background:#fff;border-radius:.625rem;overflow:hidden}.section-header[data-v-144a6cf9]{display:flex;align-items:center;justify-content:space-between;padding:.75rem .9375rem;border-bottom:.03125rem solid #f5f6fa}.section-title[data-v-144a6cf9]{display:flex;align-items:center;gap:.375rem;font-size:.9375rem;font-weight:600;color:#333}.section-title .iconfont[data-v-144a6cf9]{font-size:1.125rem;color:#3b86ff}.section-actions[data-v-144a6cf9]{display:flex;align-items:center;gap:.5rem}.row-count[data-v-144a6cf9]{font-size:.75rem;color:#999}.section-divider[data-v-144a6cf9]{height:.03125rem;background-color:#f0f0f0;margin:0 .625rem}.section-body[data-v-144a6cf9]{padding:.5rem 0}.empty-tip[data-v-144a6cf9]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;color:#ccc;font-size:.8125rem}.empty-tip .iconfont[data-v-144a6cf9]{font-size:2.5rem;margin-bottom:.5rem}.table-list[data-v-144a6cf9]{padding:0 .9375rem}.table-item[data-v-144a6cf9]{display:flex;align-items:center;padding:.75rem 0;border-bottom:.03125rem solid #f5f6fa}.table-item[data-v-144a6cf9]:last-child{border-bottom:none}.table-item[data-v-144a6cf9]:active{background-color:#fafbfc;margin:0 -.9375rem;padding-left:.9375rem;padding-right:.9375rem}.table-icon[data-v-144a6cf9]{width:2.25rem;height:2.25rem;border-radius:.5rem;background:rgba(59,134,255,.08);display:flex;align-items:center;justify-content:center;margin-right:.625rem;flex-shrink:0}.table-info[data-v-144a6cf9]{flex:1;overflow:hidden}.table-name[data-v-144a6cf9]{font-size:.9375rem;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-desc[data-v-144a6cf9]{font-size:.75rem;color:#999;margin-top:.125rem}.table-meta[data-v-144a6cf9]{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.data-table-wrapper[data-v-144a6cf9]{padding:0}.data-table-scroll[data-v-144a6cf9]{width:100%}.data-table[data-v-144a6cf9]{min-width:100%}.data-row[data-v-144a6cf9]{display:flex;flex-direction:row;border-bottom:.03125rem solid #f0f0f0}.data-row[data-v-144a6cf9]:last-child{border-bottom:none}.data-header[data-v-144a6cf9]{background-color:#f8f9fb}.data-cell[data-v-144a6cf9]{padding:.5rem .625rem;font-size:.8125rem;color:#333;min-width:5rem;max-width:9.375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:.03125rem solid #f0f0f0;flex-shrink:0}.data-cell[data-v-144a6cf9]:last-child{border-right:none}.data-header .data-cell[data-v-144a6cf9]{font-weight:600;color:#666;font-size:.75rem}.index-cell[data-v-144a6cf9]{min-width:2.5rem!important;max-width:2.5rem!important;text-align:center;color:#999;font-size:.75rem}.data-row[data-v-144a6cf9]:active{background-color:#f5f7fa}.popup-overlay[data-v-144a6cf9]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:900}.popup-card[data-v-144a6cf9]{width:20rem;background:#fff;border-radius:.75rem;padding:1.25rem 1.125rem .9375rem;position:relative}.close-popup-card[data-v-144a6cf9]{position:absolute;top:.625rem;right:.625rem;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center}.close-popup-card .iconfont[data-v-144a6cf9]{font-size:1.125rem;color:#999}.popup-title[data-v-144a6cf9]{font-size:1.0625rem;font-weight:600;color:#333;text-align:center;margin-bottom:.9375rem}.new-folder-name[data-v-144a6cf9]{font-size:.8125rem;color:#666;margin-bottom:.375rem}.create-folder-name[data-v-144a6cf9]{margin-bottom:.75rem}.create-folder-name uni-input[data-v-144a6cf9]{width:100%;height:2.5rem;border:.0625rem solid #e0e0e0;border-radius:.375rem;padding:0 .625rem;font-size:.875rem;box-sizing:border-box;background:#f8f9fb}.upload-file-area[data-v-144a6cf9]{width:100%;height:3.75rem;border:.0625rem dashed #d0d0d0;border-radius:.375rem;display:flex;align-items:center;justify-content:center;margin-bottom:.75rem;background:#fafbfc}.selected-file[data-v-144a6cf9]{font-size:.8125rem;color:#3b86ff}.upload-hint[data-v-144a6cf9]{font-size:.75rem;color:#999}.option-wrapper[data-v-144a6cf9]{display:flex;gap:.625rem;margin-top:.3125rem}.opt-btn[data-v-144a6cf9]{flex:1;height:2.5rem;border-radius:.375rem;display:flex;align-items:center;justify-content:center;font-size:.9375rem}.opt-cancel[data-v-144a6cf9]{background:#f5f6fa;color:#666}.opt-confirm[data-v-144a6cf9]{background:#3b86ff;color:#fff}.permission-body[data-v-144a6cf9]{max-height:18.75rem;margin-bottom:.625rem}.permission-list[data-v-144a6cf9]{padding:0 .3125rem}.permission-item[data-v-144a6cf9]{display:flex;align-items:center;padding:.625rem .3125rem;border-bottom:.03125rem solid #f0f0f0}.perm-info[data-v-144a6cf9]{flex:1;display:flex;flex-direction:column;gap:.125rem}.perm-name[data-v-144a6cf9]{font-size:.875rem;color:#333}.perm-type[data-v-144a6cf9]{font-size:.6875rem;color:#999}.perm-level[data-v-144a6cf9]{font-size:.75rem;color:#3b86ff;background:rgba(59,134,255,.08);padding:.1875rem .5rem;border-radius:.25rem;margin:0 .5rem}.perm-actions[data-v-144a6cf9]{display:flex;gap:.375rem}.perm-action-btn[data-v-144a6cf9]{font-size:.75rem;color:#3b86ff;padding:.25rem .5rem;border:.03125rem solid #3b86ff;border-radius:.25rem}.perm-action-btn.delete[data-v-144a6cf9]{color:#f56c6c;border-color:#f56c6c}.close-permission-btn[data-v-144a6cf9]{text-align:center;font-size:.875rem;color:#999;padding:.5rem 0}.folder-null[data-v-144a6cf9]{text-align:center;padding:1.25rem 0;font-size:.8125rem;color:#999}.transfer-body[data-v-144a6cf9]{max-height:15.625rem;margin-bottom:.625rem}.transfer-list[data-v-144a6cf9]{padding:0 .3125rem}.transfer-item[data-v-144a6cf9]{display:flex;align-items:center;justify-content:space-between;padding:.75rem .5rem;border-bottom:.03125rem solid #f0f0f0;border-radius:.375rem;margin-bottom:.25rem}.transfer-item.active[data-v-144a6cf9]{background:rgba(59,134,255,.06)}.transfer-name[data-v-144a6cf9]{font-size:.875rem;color:#333}.loading-area[data-v-144a6cf9]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.875rem 0;gap:.5rem}.loading-spinner[data-v-144a6cf9]{width:1.75rem;height:1.75rem;border:.125rem solid #e8e8e8;border-top-color:#3b86ff;border-radius:50%;animation:spin-144a6cf9 .8s linear infinite}@keyframes spin-144a6cf9{to{transform:rotate(360deg)}}.loading-text[data-v-144a6cf9]{font-size:.75rem;color:#999} diff --git a/unpackage/dist/build/app-plus/pages/ContactPages/ContactPages.css b/unpackage/dist/build/app-plus/pages/ContactPages/ContactPages.css index 79a1ec5..4ecea50 100644 --- a/unpackage/dist/build/app-plus/pages/ContactPages/ContactPages.css +++ b/unpackage/dist/build/app-plus/pages/ContactPages/ContactPages.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.tabbar-page[data-v-d6fd7c06]{display:flex;flex-direction:column}.content-swiper[data-v-d6fd7c06]{width:100%;height:calc(100% - 3.125rem)}.tabpage-content[data-v-d6fd7c06]{display:flex;flex-direction:column;width:100%;height:100%}.tabpage-containner[data-v-d6fd7c06]{width:100%;height:100%;display:flex;align-items:center;flex-direction:column}.tabpage-header[data-v-d6fd7c06]{width:100%;display:flex;align-items:center;flex-shrink:0}.tabpage-header .iconfont[data-v-d6fd7c06]{font-size:1.5625rem;margin-right:.3125rem}.tabpage-title[data-v-d6fd7c06]{font-size:1.25rem}.tabpage-body[data-v-d6fd7c06]{width:100%;display:flex;flex:1;min-height:0;align-items:center;flex-direction:column;padding:.625rem;box-sizing:border-box}.group-info[data-v-d6fd7c06]{width:100%;height:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0}.group-name[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.group-name .input[data-v-d6fd7c06]{width:100%;height:auto;padding:.625rem;box-sizing:border-box;border:.03125rem solid #007aff;border-radius:.9375rem}.group-member-wrapper[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:.625rem;box-sizing:border-box;background-color:rgba(16,185,129,.05);border:.03125rem solid rgba(16,185,129,.2);border-radius:.9375rem;margin:.3125rem 0}.group-member-wrapper .member-title[data-v-d6fd7c06]{color:#059669;font-weight:700}.group-ismember-list[data-v-d6fd7c06]{display:flex;flex-wrap:wrap;margin-top:.3125rem;box-sizing:border-box;max-height:6.25rem;overflow-y:auto}.group-ismember-info[data-v-d6fd7c06]{padding:.3125rem .5rem;box-sizing:border-box;border:.03125rem solid rgba(16,185,129,.8);background-color:#fff;border-radius:.9375rem;margin:.15625rem .3125rem}.group-ismember-name[data-v-d6fd7c06]{font-size:.6875rem;color:#059669}.create-group-btn[data-v-d6fd7c06]{width:100%;background:#007aff;border-radius:.9375rem;padding:.625rem;box-sizing:border-box;font-weight:700;color:#fff;display:flex;justify-content:center;align-items:center;margin-bottom:.3125rem}.group-member[data-v-d6fd7c06]{display:flex;flex-direction:column;flex:1;min-height:0;padding:.3125rem;margin-top:.3125rem;box-sizing:border-box}.friend-list[data-v-d6fd7c06]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.friend-card[data-v-d6fd7c06]{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:.625rem;margin:.3125rem 0;box-sizing:border-box;border:.03125rem solid #aaaaff;border-radius:.9375rem}.friend-card-left[data-v-d6fd7c06]{flex-shrink:0;margin-right:.3125rem}.friend-avatar[data-v-d6fd7c06]{display:flex;justify-content:center;align-items:center;width:3.125rem;height:3.125rem;border-radius:50%;overflow:hidden}.friend-card-middle[data-v-d6fd7c06]{flex:1;height:auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.friend-name[data-v-d6fd7c06]{font-weight:500;font-size:1rem}.friend-card-right[data-v-d6fd7c06]{width:auto;flex-shrink:0;display:flex;justify-content:center;align-items:center}.friend-checkbox[data-v-d6fd7c06]{width:.9375rem;height:.9375rem;border-radius:.3125rem;display:flex;justify-content:center;align-items:center;border:.03125rem solid #3b86ff}.search-warpper[data-v-d6fd7c06]{width:100%;display:flex;align-items:center}.search-warpper .search-file-input[data-v-d6fd7c06]{flex:1;background-color:#f9fafb;border:.0625rem solid rgba(139,195,232,.2);padding:.625rem;margin-right:.625rem;height:auto;box-sizing:border-box;border-radius:.9375rem}.search-file-input.active[data-v-d6fd7c06]{background-color:#fff;box-shadow:0 0 .46875rem #aaf;border-color:#007aff}.search-warpper .iconfont[data-v-d6fd7c06]{flex-shrink:0;font-size:1.1875rem;font-weight:700;color:#fff;background-color:#007aff;padding:.5625rem;box-sizing:border-box;border-radius:.625rem}.search-result[data-v-d6fd7c06]{width:100%}.add-btn[data-v-d6fd7c06]{background:#3b86ff;color:#fff;font-size:14px;font-weight:500}.nickname-wrapper[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:.625rem 0;box-sizing:border-box}.input-nickname[data-v-d6fd7c06]{width:100%;height:auto;padding:.625rem;border:.03125rem solid #007aff;border-radius:.9375rem;margin:.625rem 0;box-sizing:border-box}.confirm-btn[data-v-d6fd7c06]{background:#3b86ff;color:#fff;font-size:16px;font-weight:500;padding:10px}.create-meeting-wrapper[data-v-d6fd7c06],.join-meeting-wrapper[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:.625rem .9375rem;box-sizing:border-box}.input-meeting[data-v-d6fd7c06]{width:100%;height:auto;padding:.625rem;border:.03125rem solid #007aff;border-radius:.9375rem;margin:.3125rem 0;box-sizing:border-box}.meeting-btn[data-v-d6fd7c06]{width:100%;background:#007aff;margin:.3125rem 0;color:#fff}.meeting-field[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.meeting-toggles[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.meeting-toggles-item[data-v-d6fd7c06]{width:100%;display:flex;justify-content:space-between}.friend-option[data-v-d6fd7c06]{display:flex;justify-content:center;align-items:center}.agree-btn[data-v-d6fd7c06]{font-size:14px;font-weight:500;border:1px solid #3b86ff;color:#3b86ff;box-sizing:border-box}.friend-status[data-v-d6fd7c06]{font-size:14px;font-weight:500;padding:.25rem .625rem;border-radius:.9375rem}.friend-status.agreed[data-v-d6fd7c06]{color:#059669;background-color:rgba(16,185,129,.1)}.contact-list[data-v-d6fd7c06]{display:flex;height:100%;padding:.3125rem;margin-top:.3125rem;box-sizing:border-box}.bottom-tabbar[data-v-d6fd7c06]{width:100%;height:4.375rem;display:flex;justify-content:space-between;align-items:center;padding:.625rem;box-sizing:border-box;background:rgba(200,200,200,.1)}.tab-item[data-v-d6fd7c06]{display:flex;flex-direction:column;justify-content:center;align-items:center}.tab-label[data-v-d6fd7c06]{font-size:.875rem} +.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.tabbar-page[data-v-d6fd7c06]{display:flex;flex-direction:column;background:linear-gradient(180deg,#f5f4f9,#faf9fe)}.content-swiper[data-v-d6fd7c06]{width:100%;height:calc(100% - 3.75rem)}.tabpage-content[data-v-d6fd7c06]{display:flex;flex-direction:column;width:100%;height:100%}.tabpage-containner[data-v-d6fd7c06]{width:100%;height:100%;display:flex;align-items:center;flex-direction:column}.tabpage-header[data-v-d6fd7c06]{width:100%;display:flex;align-items:center;flex-shrink:0;padding:.625rem .75rem;box-sizing:border-box;background:rgba(255,255,255,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:.03125rem solid rgba(170,170,255,.1)}.tabpage-header .iconfont[data-v-d6fd7c06]{font-size:1.4375rem;margin-right:.375rem;color:#6c63ff}.tabpage-title[data-v-d6fd7c06]{font-size:1.125rem;font-weight:700;color:#1a1a2e}.tabpage-body[data-v-d6fd7c06]{width:100%;display:flex;flex:1;min-height:0;align-items:center;flex-direction:column;padding:.75rem;box-sizing:border-box}.group-info[data-v-d6fd7c06]{width:100%;height:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0}.group-name[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.group-name .input[data-v-d6fd7c06]{width:100%;height:auto;padding:.6875rem .875rem;box-sizing:border-box;border:.0625rem solid #d4d4f0;border-radius:.75rem;font-size:.875rem;background:#fff;transition:all .2s ease}.group-name .input[data-v-d6fd7c06]:focus{border-color:#6c63ff;box-shadow:0 0 0 .125rem rgba(108,99,255,.06)}.group-member-wrapper[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:.75rem;box-sizing:border-box;background:rgba(16,185,129,.04);border:.0625rem solid rgba(16,185,129,.15);border-radius:.75rem;margin:.375rem 0}.group-member-wrapper .member-title[data-v-d6fd7c06]{color:#059669;font-weight:600;font-size:.875rem}.group-ismember-list[data-v-d6fd7c06]{display:flex;flex-wrap:wrap;margin-top:.375rem;box-sizing:border-box;max-height:6.25rem;overflow-y:auto}.group-ismember-info[data-v-d6fd7c06]{padding:.3125rem .625rem;box-sizing:border-box;border:.0625rem solid rgba(16,185,129,.5);background:#fff;border-radius:.75rem;margin:.1875rem .25rem}.group-ismember-name[data-v-d6fd7c06]{font-size:.6875rem;color:#059669;font-weight:500}.create-group-btn[data-v-d6fd7c06]{width:100%;background:linear-gradient(135deg,#6c63ff,#4a45d1);border-radius:.75rem;padding:.75rem;box-sizing:border-box;font-weight:600;color:#fff;display:flex;justify-content:center;align-items:center;margin-bottom:.3125rem;font-size:.9375rem;box-shadow:0 .125rem .5rem rgba(108,99,255,.25);transition:all .2s ease}.create-group-btn[data-v-d6fd7c06]:active{transform:scale(.97)}.group-member[data-v-d6fd7c06]{display:flex;flex-direction:column;flex:1;min-height:0;padding:.3125rem;margin-top:.3125rem;box-sizing:border-box}.friend-list[data-v-d6fd7c06]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%}.friend-card[data-v-d6fd7c06]{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:.75rem;margin:.25rem 0;box-sizing:border-box;border:.0625rem solid rgba(170,170,255,.25);border-radius:.75rem;background:rgba(255,255,255,.7);transition:all .2s ease}.friend-card[data-v-d6fd7c06]:active{background:rgba(108,99,255,.04);border-color:#6c63ff;transform:scale(.98)}.friend-card-left[data-v-d6fd7c06]{flex-shrink:0;margin-right:.5rem}.friend-avatar[data-v-d6fd7c06]{display:flex;justify-content:center;align-items:center;border-radius:50%;width:2.8125rem;height:2.8125rem;overflow:hidden;border:.09375rem solid rgba(170,170,255,.2)}.friend-card-middle[data-v-d6fd7c06]{flex:1;height:auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.friend-name[data-v-d6fd7c06]{font-weight:600;font-size:.9375rem;color:#1a1a2e}.friend-card-right[data-v-d6fd7c06]{width:auto;flex-shrink:0;display:flex;justify-content:center;align-items:center}.friend-checkbox[data-v-d6fd7c06]{width:1.125rem;height:1.125rem;border-radius:.3125rem;display:flex;justify-content:center;align-items:center;border:.0625rem solid rgba(108,99,255,.5);background:#fff}.friend-checkbox.checked[data-v-d6fd7c06]{background:linear-gradient(135deg,#6c63ff,#4a45d1);border-color:#6c63ff}.search-warpper[data-v-d6fd7c06]{width:100%;display:flex;align-items:center}.search-warpper .search-file-input[data-v-d6fd7c06]{flex:1;background:#fff;border:.0625rem solid #e8e7f5;padding:.6875rem .75rem;margin-right:.5rem;height:auto;box-sizing:border-box;border-radius:.75rem;font-size:.875rem;transition:all .25s ease}.search-file-input.active[data-v-d6fd7c06]{border-color:#6c63ff;box-shadow:0 0 0 .125rem rgba(108,99,255,.06)}.search-warpper .iconfont[data-v-d6fd7c06]{flex-shrink:0;font-size:1.125rem;font-weight:700;color:#fff;background:linear-gradient(135deg,#6c63ff,#4a45d1);padding:.625rem;box-sizing:border-box;border-radius:.625rem}.search-result[data-v-d6fd7c06]{width:100%}.add-btn[data-v-d6fd7c06]{background:linear-gradient(135deg,#6c63ff,#4a45d1);color:#fff;font-size:14px;font-weight:500;border-radius:.625rem;padding:.375rem .875rem;box-shadow:0 .0625rem .25rem rgba(108,99,255,.25)}.nickname-wrapper[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:.625rem 0;box-sizing:border-box}.input-nickname[data-v-d6fd7c06]{width:100%;height:auto;padding:.6875rem .75rem;box-sizing:border-box;border:.0625rem solid #d4d4f0;border-radius:.75rem;margin:.625rem 0;font-size:.875rem;background:#fff}.input-nickname[data-v-d6fd7c06]:focus{border-color:#6c63ff}.confirm-btn[data-v-d6fd7c06]{background:linear-gradient(135deg,#6c63ff,#4a45d1);color:#fff;font-size:16px;font-weight:600;padding:.4375rem 1.25rem;border-radius:.75rem}.create-meeting-wrapper[data-v-d6fd7c06],.join-meeting-wrapper[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:.625rem .9375rem;box-sizing:border-box}.input-meeting[data-v-d6fd7c06]{width:100%;height:auto;padding:.6875rem .75rem;box-sizing:border-box;border:.0625rem solid #d4d4f0;border-radius:.75rem;margin:.3125rem 0;font-size:.875rem;background:#fff}.input-meeting[data-v-d6fd7c06]:focus{border-color:#6c63ff}.meeting-btn[data-v-d6fd7c06]{width:100%;background:linear-gradient(135deg,#6c63ff,#4a45d1);margin:.3125rem 0;color:#fff;border-radius:.75rem;padding:.75rem;font-size:.9375rem;font-weight:600;box-shadow:0 .125rem .5rem rgba(108,99,255,.25)}.meeting-field[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.meeting-toggles[data-v-d6fd7c06]{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.meeting-toggles-item[data-v-d6fd7c06]{width:100%;display:flex;justify-content:space-between;padding:.5rem 0}.friend-option[data-v-d6fd7c06]{display:flex;justify-content:center;align-items:center}.agree-btn[data-v-d6fd7c06]{font-size:14px;font-weight:500;border:.0625rem solid #6c63ff;color:#6c63ff;box-sizing:border-box;border-radius:.625rem;padding:.3125rem .75rem}.agree-btn[data-v-d6fd7c06]:active{background:rgba(108,99,255,.08)}.friend-status[data-v-d6fd7c06]{font-size:14px;font-weight:500;padding:.25rem .75rem;border-radius:.625rem}.friend-status.agreed[data-v-d6fd7c06]{color:#059669;background-color:rgba(16,185,129,.08)}.contact-list[data-v-d6fd7c06]{display:flex;height:100%;padding:.3125rem;margin-top:.3125rem;box-sizing:border-box}.bottom-tabbar[data-v-d6fd7c06]{width:100%;height:4.0625rem;display:flex;justify-content:space-between;align-items:center;padding:.5rem .9375rem;box-sizing:border-box;background:rgba(255,255,255,.85);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:.03125rem solid rgba(170,170,255,.1)}.tab-item[data-v-d6fd7c06]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:.25rem .625rem;border-radius:.5rem;transition:all .2s ease}.tab-item.active[data-v-d6fd7c06]{background:rgba(108,99,255,.08)}.tab-label[data-v-d6fd7c06]{font-size:.8125rem;color:#666}.tab-item.active .tab-label[data-v-d6fd7c06]{color:#6c63ff;font-weight:600} diff --git a/unpackage/dist/build/app-plus/pages/Login/Login.css b/unpackage/dist/build/app-plus/pages/Login/Login.css index b3f3675..ec03bd8 100644 --- a/unpackage/dist/build/app-plus/pages/Login/Login.css +++ b/unpackage/dist/build/app-plus/pages/Login/Login.css @@ -1 +1 @@ -.login-container[data-v-a8bd24d4]{padding:4.375rem 1.875rem 3.125rem;box-sizing:border-box;display:flex;flex-direction:column}.login-card[data-v-a8bd24d4]{position:relative;flex:1;width:100%;height:100%;padding:.625rem;box-sizing:border-box;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.conner[data-v-a8bd24d4]{position:absolute;width:1.25rem;height:1.25rem}.conner-tl[data-v-a8bd24d4]{top:0;left:0;border-top:2px solid #aaaaff;border-left:2px solid #aaaaff}.conner-tr[data-v-a8bd24d4]{top:0;right:0;border-top:2px solid #aaaaff;border-right:2px solid #aaaaff}.conner-bl[data-v-a8bd24d4]{bottom:0;left:0;border-bottom:2px solid #aaaaff;border-left:2px solid #aaaaff}.conner-br[data-v-a8bd24d4]{bottom:0;right:0;border-bottom:2px solid #aaaaff;border-right:2px solid #aaaaff}.login-header[data-v-a8bd24d4]{display:flex;justify-content:center;align-items:center;flex-direction:column}.login-header-logo[data-v-a8bd24d4]{display:flex;justify-content:center;align-items:center}.login-header-logo uni-text[data-v-a8bd24d4]{margin-left:.25rem;font-size:1.875rem;font-weight:700;color:#aaf;text-shadow:0 0 .3125rem rgba(170,170,255,.4),0 0 .625rem rgba(170,170,255,.3)}.icon-wrapper[data-v-a8bd24d4]{width:2.8125rem;height:2.8125rem;border-radius:50%;background-color:#fff;display:flex;align-items:center;justify-content:center;animation:glow-a8bd24d4 2s ease-in-out infinite}@keyframes glow-a8bd24d4{0%,to{box-shadow:0 0 .625rem rgba(170,170,255,.3)}50%{box-shadow:0 0 .625rem rgba(170,170,255,.4),0 0 .9375rem rgba(170,170,255,.3),0 0 1.5625rem rgba(170,170,255,.2)}}.icon-wrapper .danao-style[data-v-a8bd24d4]{font-size:2.1875rem;color:#aaf}.sub-title[data-v-a8bd24d4]{margin-top:.625rem;font-size:1.125rem;font-weight:500;color:#666;text-shadow:0 0 .3125rem #999}.form-wrapper[data-v-a8bd24d4]{margin-top:1.5625rem;width:15.625rem;padding:2.5rem .9375rem;background-color:rgba(170,170,255,.05);border-radius:.625rem;box-shadow:0 0 .3125rem rgba(170,170,255,.5);display:flex;flex-direction:column}.form-item[data-v-a8bd24d4]{margin-top:.625rem}.form-item .form-input[data-v-a8bd24d4]{width:100%;height:2.5rem;padding:0 10px;box-sizing:border-box;border-radius:.9375rem;border:.03125rem solid #e5e5e5}.form-item .focused[data-v-a8bd24d4]{border-color:#aaf;box-shadow:0 0 .3125rem rgba(170,170,255,.5)}.form-item .error[data-v-a8bd24d4]{border-color:red;box-shadow:0 0 .3125rem rgba(255,0,0,.5)}.error-info[data-v-a8bd24d4]{font-size:.75rem;color:red}.form-option[data-v-a8bd24d4]{margin-top:.3125rem;display:flex;justify-content:space-between}.form-option .checkbox-wrapper[data-v-a8bd24d4]{display:flex;justify-content:start;align-items:center}.form-option .checkbox-wrapper .checkbox[data-v-a8bd24d4]{width:.9375rem;height:.9375rem;border:.03125rem solid #666;display:flex;justify-content:center;align-items:center}.form-option .checkbox-wrapper .checked[data-v-a8bd24d4]{background-color:#aaf}.form-option .checkbox-wrapper .checkbox uni-text[data-v-a8bd24d4]{color:#fff}[data-v-a8bd24d4] .login-btn{margin-top:.9375rem;width:15.625rem;height:3.125rem;border-radius:2.5rem;background:linear-gradient(to right,#aaf,#2969ed)} +.login-container[data-v-1f1e3d89]{padding:3.75rem 1.5625rem 2.5rem;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;background:linear-gradient(160deg,#f0f2ff,#f5f3f8,#faf9fe 60%,#f5f4ff)}.login-card[data-v-1f1e3d89]{position:relative;flex:1;width:100%;max-width:20rem;padding:1.5625rem 1.25rem;box-sizing:border-box;background:rgba(255,255,255,.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:1.25rem;box-shadow:0 .5rem 1.5rem rgba(100,100,180,.1);border:.03125rem solid rgba(170,170,255,.15)}.conner[data-v-1f1e3d89]{position:absolute;width:1.25rem;height:1.25rem}.conner-tl[data-v-1f1e3d89]{top:0;left:0;border-top:2px solid #aaaaff;border-left:2px solid #aaaaff}.conner-tr[data-v-1f1e3d89]{top:0;right:0;border-top:2px solid #aaaaff;border-right:2px solid #aaaaff}.conner-bl[data-v-1f1e3d89]{bottom:0;left:0;border-bottom:2px solid #aaaaff;border-left:2px solid #aaaaff}.conner-br[data-v-1f1e3d89]{bottom:0;right:0;border-bottom:2px solid #aaaaff;border-right:2px solid #aaaaff}.login-header[data-v-1f1e3d89]{display:flex;justify-content:center;align-items:center;flex-direction:column}.login-header-logo[data-v-1f1e3d89]{display:flex;justify-content:center;align-items:center}.login-header-logo uni-text[data-v-1f1e3d89]{margin-left:.375rem;font-size:1.75rem;font-weight:800;color:#6c63ff;letter-spacing:.0625rem}.icon-wrapper[data-v-1f1e3d89]{width:3rem;height:3rem;border-radius:50%;background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(240,238,255,.8));display:flex;align-items:center;justify-content:center;animation:glow-1f1e3d89 2.5s ease-in-out infinite;box-shadow:0 .125rem .5rem rgba(108,99,255,.12)}@keyframes glow-1f1e3d89{0%,to{box-shadow:0 .125rem .5rem rgba(108,99,255,.12)}50%{box-shadow:0 .125rem .75rem rgba(108,99,255,.25),0 0 1.5625rem rgba(108,99,255,.12)}}.icon-wrapper .danao-style[data-v-1f1e3d89]{font-size:2rem;color:#6c63ff}.sub-title[data-v-1f1e3d89]{margin-top:.5rem;font-size:1rem;font-weight:500;color:#888;letter-spacing:.03125rem}.form-wrapper[data-v-1f1e3d89]{margin-top:1.5625rem;width:100%;max-width:15.625rem;padding:1.875rem 1.125rem 1.125rem;background:rgba(170,170,255,.04);border-radius:.875rem;border:.03125rem solid rgba(170,170,255,.1);display:flex;flex-direction:column}.form-item[data-v-1f1e3d89]{margin-top:.625rem}.form-label[data-v-1f1e3d89]{font-size:.8125rem;font-weight:500;color:#555;margin-bottom:.25rem;display:flex;align-items:center;gap:.25rem}.form-item .form-input[data-v-1f1e3d89]{width:100%;height:2.75rem;padding:0 .75rem;box-sizing:border-box;border-radius:.75rem;border:.0625rem solid #e8e8f0;background:rgba(255,255,255,.8);font-size:.875rem;color:#333;transition:all .25s ease}.form-item .form-input[data-v-1f1e3d89]::-webkit-input-placeholder{color:#c0c0d0}.form-item .form-input[data-v-1f1e3d89]::placeholder{color:#c0c0d0}.form-item .focused[data-v-1f1e3d89]{border-color:#6c63ff;background:#fff;box-shadow:0 0 0 .1875rem rgba(108,99,255,.06)}.form-item .error[data-v-1f1e3d89]{border-color:#ff4d4f;box-shadow:0 0 0 .1875rem rgba(255,77,79,.06)}.error-info[data-v-1f1e3d89]{font-size:.6875rem;color:#ff4d4f;margin-top:.25rem;padding-left:.25rem}.form-option[data-v-1f1e3d89]{margin-top:.625rem;display:flex;justify-content:space-between;align-items:center}.form-option .checkbox-wrapper[data-v-1f1e3d89]{display:flex;justify-content:start;align-items:center}.form-option .checkbox-wrapper .checkbox[data-v-1f1e3d89]{width:1.125rem;height:1.125rem;border:.0625rem solid #d4d4e0;border-radius:.25rem;display:flex;justify-content:center;align-items:center;transition:all .2s ease;background:#fff}.form-option .checkbox-wrapper .checkbox uni-text[data-v-1f1e3d89]{color:#fff;font-size:.6875rem}.form-option .checkbox-wrapper .checked[data-v-1f1e3d89]{background:linear-gradient(135deg,#6c63ff,#4a45d1);border-color:#6c63ff}.form-option .checkbox-wrapper .checkbox-text[data-v-1f1e3d89]{margin-left:.3125rem;font-size:.8125rem;color:#666}.form-option .forget-pwd[data-v-1f1e3d89]{font-size:.8125rem;color:#6c63ff;font-weight:500}[data-v-1f1e3d89] .login-btn{margin-top:1.125rem;width:100%;max-width:15.625rem;height:3rem;border-radius:1.5rem;background:linear-gradient(135deg,#6c63ff,#4a45d1);color:#fff;font-size:1rem;font-weight:600;letter-spacing:.0625rem;box-shadow:0 .25rem .75rem rgba(108,99,255,.3);transition:all .2s ease;border:none}[data-v-1f1e3d89] .login-btn:active{transform:scale(.97);box-shadow:0 .125rem .375rem rgba(108,99,255,.2)}[data-v-1f1e3d89] .login-btn[disabled]{opacity:.7;background:linear-gradient(135deg,#a8a4f0,#8a86d8)} diff --git a/unpackage/dist/build/app-plus/pages/WorkSpace/TemplateSpace/TemplateSpace.css b/unpackage/dist/build/app-plus/pages/WorkSpace/TemplateSpace/TemplateSpace.css index dfd706b..1153fc9 100644 --- a/unpackage/dist/build/app-plus/pages/WorkSpace/TemplateSpace/TemplateSpace.css +++ b/unpackage/dist/build/app-plus/pages/WorkSpace/TemplateSpace/TemplateSpace.css @@ -1 +1 @@ -.create-folder-name[data-v-2acd55d4]{display:flex;width:100%;padding:.3125rem .625rem;box-sizing:border-box;align-items:center;background-color:rgba(194,191,211,.1);border-radius:.3125rem}.create-folder-name uni-input[data-v-2acd55d4]{box-sizing:border-box;width:100%}.create-folder-name.has-value[data-v-2acd55d4]{background-color:#fff;border:.0625rem solid #aaaaff;box-shadow:0 0 .46875rem #aaf}.new-folder-name[data-v-2acd55d4]{font-size:.875rem;color:#666;margin-bottom:.375rem}.nf-path-label[data-v-2acd55d4]{font-size:.8125rem;color:#999;margin-top:.75rem;margin-bottom:.25rem}.nf-path-display[data-v-2acd55d4]{font-size:.875rem;color:#333;padding:.375rem .625rem;background:#f5f5f5;border-radius:.3125rem;word-break:break-all}.nf-path-preview[data-v-2acd55d4]{font-size:.875rem;color:#0073ff;padding:.375rem .625rem;background:rgba(0,115,255,.05);border:.0625rem dashed rgba(0,115,255,.3);border-radius:.3125rem;word-break:break-all}.option-wrapper[data-v-2acd55d4]{display:flex;justify-content:space-between;gap:.625rem;margin-top:1.25rem}.opt-btn[data-v-2acd55d4]{flex:1;display:flex;justify-content:center;align-items:center;padding:.75rem 0;border-radius:.375rem;font-size:.9375rem}.opt-cancel[data-v-2acd55d4]{background:#f5f5f5;color:#666}.opt-confirm[data-v-2acd55d4]{background:linear-gradient(135deg,#0073ff,#3ab0ff);color:#fff}.workspace-container[data-v-2acd55d4]{display:flex;flex-direction:column;background:rgba(140,140,140,.1)}.workspace-text[data-v-2acd55d4]{color:#0073ff;font-weight:700}.workspace-header[data-v-2acd55d4]{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:center;padding:.5rem 0;box-sizing:border-box;border-bottom:.03125rem solid #ddd}.custom-navbar[data-v-2acd55d4]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.625rem .3125rem;box-sizing:border-box;position:relative}.navbar-left[data-v-2acd55d4]{display:flex;justify-content:center;align-items:center}.navbar-before-title[data-v-2acd55d4]{display:flex;justify-content:center;align-items:center;text-align:center}.navbar-title[data-v-2acd55d4]{display:flex;flex:1;justify-content:center;align-items:center;position:absolute;left:50%;transform:translate(-50%)}.navbar-right[data-v-2acd55d4]{display:flex;justify-content:center;align-items:center;margin-right:.625rem;box-sizing:border-box}.navbar-right .menu-open[data-v-2acd55d4]{color:#3ab0ff!important;font-size:1.25rem!important}.custom-navbar-icon[data-v-2acd55d4]{color:#0073ff!important;font-size:1.25rem!important}.search-file-warpper[data-v-2acd55d4]{display:flex;width:90%;align-items:center}.search-file[data-v-2acd55d4]{display:flex;flex:1;align-items:center;background:#fff;padding:.5rem;box-sizing:border-box;border-radius:.9375rem}.icon-sousuo[data-v-2acd55d4]{font-weight:700}.search-file-input[data-v-2acd55d4]{margin-left:.625rem}.cancel-search[data-v-2acd55d4]{display:flex;flex-shrink:0;padding:0 0 0 .625rem;box-sizing:border-box;color:#0073ff}.workspace-content[data-v-2acd55d4]{width:100%;display:block;flex:1;overflow:auto;box-sizing:border-box;position:relative}.menu-card[data-v-2acd55d4]{position:absolute;top:100%;right:.625rem;width:9.375rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff;border-radius:.9375rem;z-index:1}.menu-card-item[data-v-2acd55d4]{width:100%;padding:.625rem;box-sizing:border-box}.folder-null[data-v-2acd55d4]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;left:50%;top:30%;transform:translate(-50%);font-size:1rem}.folder-null .iconfont[data-v-2acd55d4]{font-size:5.625rem}.folder-grid[data-v-2acd55d4]{width:100%;display:grid;grid-template-columns:repeat(3,1fr);padding:.625rem;box-sizing:border-box;gap:.625rem;align-items:start}.folder-item[data-v-2acd55d4]{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-width:0}.folder-item.select-folder[data-v-2acd55d4]{border-radius:.9375rem;background:rgba(9,9,9,.1)}.folder-item .folder-name[data-v-2acd55d4]{max-width:4.6875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-align:center;line-height:1.25rem;min-width:0}.folder-item-style[data-v-2acd55d4]{font-size:5rem!important;font-weight:.3125rem!important;color:#3ab0ff!important}.folder-checkbox[data-v-2acd55d4]{width:1.5625rem;height:1.5625rem;border:.1875rem solid #fff;border-radius:50%;box-shadow:0 .0625rem .09375rem #333;background:rgba(255,255,255,.2);box-sizing:border-box;position:absolute;left:50%;top:30%;transform:translate(-50%);display:flex;justify-content:center;align-items:center}.folder-checkbox.select-folder[data-v-2acd55d4]{background-color:#0073ff}.workspace-footer[data-v-2acd55d4]{width:100%;display:flex;flex-shrink:0;justify-content:space-between;padding:.9375rem;box-sizing:border-box;color:#999;background:#eee}.workspace-footer.folder-actions[data-v-2acd55d4]{color:#0073ff}.workspace-footer .iconfont[data-v-2acd55d4]{font-size:1.25rem!important}.template-grid[data-v-2acd55d4]{width:100%;display:grid;grid-template-columns:repeat(2,1fr);padding:.625rem;box-sizing:border-box;gap:.625rem;align-items:start}.template-card[data-v-2acd55d4]{display:flex;flex-direction:column;box-sizing:border-box;border-radius:.625rem;border:.03125rem solid #ddd;box-shadow:0 .0625rem .375rem rgba(0,0,0,.05);overflow:hidden;background-color:#fff}.template-name[data-v-2acd55d4]{width:100%;background:linear-gradient(to right,rgba(0,122,255,.8),rgba(170,170,255,.8));color:#fff;font-weight:700;font-size:18px;padding:.3125rem .625rem;box-sizing:border-box}.template-content[data-v-2acd55d4]{display:flex;flex-wrap:wrap;min-height:6.25rem;padding:.5625rem;margin:.1875rem .1875rem 0;box-sizing:border-box;border:1px solid #eee;border-radius:.625rem;box-shadow:.0625rem .15625rem .25rem rgba(170,170,255,.3);overflow:hidden}.template-content-text[data-v-2acd55d4]{width:100%;color:#666;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:1.4}.template-info-wrapper[data-v-2acd55d4]{padding:0 .5rem}.template-item[data-v-2acd55d4]{display:flex;flex-direction:column;color:#007aff;font-size:12px}.template-item .background-style[data-v-2acd55d4]{display:flex;box-sizing:border-box;border-radius:.3125rem;align-self:flex-start;margin-top:.1875rem}.template-option[data-v-2acd55d4]{display:flex;justify-content:space-between;align-items:center;margin:.3125rem}.template-option .iconfont[data-v-2acd55d4]{color:#007aff}.iconfont.icon-favorite-fill[data-v-2acd55d4]{color:#fa0} +.create-folder-name[data-v-2acd55d4]{display:flex;width:100%;padding:.3125rem .625rem;box-sizing:border-box;align-items:center;background:rgba(108,99,255,.06);border-radius:.4375rem;border:.0625rem solid transparent;transition:all .25s ease}.create-folder-name uni-input[data-v-2acd55d4]{box-sizing:border-box;width:100%;font-size:.875rem;color:#333}.create-folder-name.has-value[data-v-2acd55d4]{background-color:#fff;border-color:#6c63ff;box-shadow:0 0 0 .125rem rgba(108,99,255,.06)}.new-folder-name[data-v-2acd55d4]{font-size:.875rem;color:#555;margin-bottom:.375rem}.nf-path-label[data-v-2acd55d4]{font-size:.75rem;color:#999;margin-top:.75rem;margin-bottom:.25rem}.nf-path-display[data-v-2acd55d4]{font-size:.8125rem;color:#333;padding:.375rem .625rem;background:#f5f5f8;border-radius:.375rem;word-break:break-all}.nf-path-preview[data-v-2acd55d4]{font-size:.8125rem;color:#6c63ff;padding:.375rem .625rem;background:rgba(108,99,255,.05);border:.0625rem dashed rgba(108,99,255,.25);border-radius:.375rem;word-break:break-all}.option-wrapper[data-v-2acd55d4]{display:flex;justify-content:space-between;gap:.625rem;margin-top:1.25rem}.opt-btn[data-v-2acd55d4]{flex:1;display:flex;justify-content:center;align-items:center;padding:.75rem 0;border-radius:.5rem;font-size:.9375rem;font-weight:500;transition:all .2s ease}.opt-btn[data-v-2acd55d4]:active{transform:scale(.97)}.opt-cancel[data-v-2acd55d4]{background:#f0f1f5;color:#666}.opt-confirm[data-v-2acd55d4]{background:linear-gradient(135deg,#6c63ff,#4a45d1);color:#fff;box-shadow:0 .125rem .375rem rgba(108,99,255,.25)}.workspace-container[data-v-2acd55d4]{display:flex;flex-direction:column;background:linear-gradient(180deg,#f5f4f9,#faf9fe)}.workspace-text[data-v-2acd55d4]{color:#6c63ff;font-weight:700}.workspace-header[data-v-2acd55d4]{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:center;padding:.375rem 0;box-sizing:border-box;position:relative;z-index:100;background:rgba(255,255,255,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:.03125rem solid rgba(170,170,255,.1)}.custom-navbar[data-v-2acd55d4]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.5rem .3125rem;box-sizing:border-box;position:relative}.navbar-left[data-v-2acd55d4]{display:flex;justify-content:center;align-items:center}.navbar-before-title[data-v-2acd55d4]{display:flex;justify-content:center;align-items:center;text-align:center;font-size:.8125rem;color:#6c63ff;font-weight:500}.navbar-title[data-v-2acd55d4]{display:flex;flex:1;justify-content:center;align-items:center;position:absolute;left:50%;transform:translate(-50%);font-size:1rem;font-weight:700;color:#1a1a2e}.navbar-right[data-v-2acd55d4]{display:flex;justify-content:center;align-items:center;margin-right:.625rem;box-sizing:border-box}.navbar-right .menu-open[data-v-2acd55d4],.custom-navbar-icon[data-v-2acd55d4]{color:#6c63ff!important;font-size:1.25rem!important}.search-file-warpper[data-v-2acd55d4]{display:flex;width:90%;align-items:center}.search-file[data-v-2acd55d4]{display:flex;flex:1;align-items:center;background:rgba(255,255,255,.9);padding:.4375rem .75rem;box-sizing:border-box;border-radius:.875rem;border:.0625rem solid #e8e7f5;transition:all .25s ease}.search-file[data-v-2acd55d4]:focus-within{border-color:#6c63ff;box-shadow:0 0 0 .125rem rgba(108,99,255,.06)}.icon-sousuo[data-v-2acd55d4]{font-weight:700;color:#999}.search-file-input[data-v-2acd55d4]{margin-left:.5rem;font-size:.8125rem;color:#333}.cancel-search[data-v-2acd55d4]{display:flex;flex-shrink:0;padding:0 0 0 .625rem;box-sizing:border-box;color:#6c63ff;font-size:.875rem;font-weight:500}.workspace-content[data-v-2acd55d4]{width:100%;display:block;flex:1;overflow:auto;box-sizing:border-box;position:relative}.menu-card[data-v-2acd55d4]{position:absolute;top:100%;right:.625rem;width:8.75rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff;border-radius:.75rem;z-index:999;box-shadow:0 .25rem 1rem rgba(0,0,0,.08);padding:.25rem 0;overflow:hidden}.menu-card-item[data-v-2acd55d4]{width:100%;padding:.6875rem .875rem;box-sizing:border-box;font-size:.875rem;color:#333;transition:all .15s ease}.menu-card-item[data-v-2acd55d4]:active{background:rgba(108,99,255,.06)}.folder-null[data-v-2acd55d4]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;left:50%;top:30%;transform:translate(-50%);font-size:.9375rem;color:#bbb}.folder-null .iconfont[data-v-2acd55d4]{font-size:5.625rem;color:#ddd}.folder-grid[data-v-2acd55d4]{width:100%;display:grid;grid-template-columns:repeat(3,1fr);padding:.75rem;box-sizing:border-box;gap:.625rem;align-items:start}.folder-item[data-v-2acd55d4]{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-width:0;background:rgba(255,255,255,.7);border-radius:.75rem;padding:.75rem .25rem .5rem;border:.0625rem solid transparent;transition:all .2s ease}.folder-item.select-folder[data-v-2acd55d4]{border-color:rgba(108,99,255,.3);background:rgba(108,99,255,.04)}.folder-item[data-v-2acd55d4]:active{transform:scale(.96);background:rgba(255,255,255,.95)}.folder-item .folder-name[data-v-2acd55d4]{max-width:5rem;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:1.375rem;min-width:0;font-size:.8125rem;color:#444}.folder-item-style[data-v-2acd55d4]{font-size:3.4375rem!important;color:#6c63ff!important}.folder-checkbox[data-v-2acd55d4]{width:1.375rem;height:1.375rem;border:.09375rem solid #fff;border-radius:50%;box-shadow:0 .0625rem .25rem rgba(0,0,0,.12);background:rgba(255,255,255,.9);box-sizing:border-box;position:absolute;left:50%;top:25%;transform:translate(-50%);display:flex;justify-content:center;align-items:center;transition:all .2s ease}.folder-checkbox.select-folder[data-v-2acd55d4]{background:linear-gradient(135deg,#6c63ff,#4a45d1);border-color:#6c63ff}.workspace-footer[data-v-2acd55d4]{width:100%;display:flex;flex-shrink:0;justify-content:space-between;padding:.75rem .9375rem;box-sizing:border-box;color:#888;background:rgba(255,255,255,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:.03125rem solid rgba(170,170,255,.1);font-size:.8125rem;transition:all .2s ease}.workspace-footer.folder-actions[data-v-2acd55d4]{color:#6c63ff;font-weight:500}.workspace-footer .iconfont[data-v-2acd55d4]{font-size:1.25rem!important}.template-grid[data-v-2acd55d4]{width:100%;display:grid;grid-template-columns:repeat(2,1fr);padding:.625rem;box-sizing:border-box;gap:.625rem;align-items:start}.template-card[data-v-2acd55d4]{display:flex;flex-direction:column;box-sizing:border-box;border-radius:.625rem;border:.03125rem solid #ddd;box-shadow:0 .0625rem .375rem rgba(0,0,0,.05);overflow:hidden;background-color:#fff}.template-name[data-v-2acd55d4]{width:100%;background:linear-gradient(to right,rgba(0,122,255,.8),rgba(170,170,255,.8));color:#fff;font-weight:700;font-size:18px;padding:.3125rem .625rem;box-sizing:border-box}.template-content[data-v-2acd55d4]{display:flex;flex-wrap:wrap;min-height:6.25rem;padding:.5625rem;margin:.1875rem .1875rem 0;box-sizing:border-box;border:1px solid #eee;border-radius:.625rem;box-shadow:.0625rem .15625rem .25rem rgba(170,170,255,.3);overflow:hidden}.template-content-text[data-v-2acd55d4]{width:100%;color:#666;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:1.4}.template-info-wrapper[data-v-2acd55d4]{padding:0 .5rem}.template-item[data-v-2acd55d4]{display:flex;flex-direction:column;color:#007aff;font-size:12px}.template-item .background-style[data-v-2acd55d4]{display:flex;box-sizing:border-box;border-radius:.3125rem;align-self:flex-start;margin-top:.1875rem}.template-option[data-v-2acd55d4]{display:flex;justify-content:space-between;align-items:center;margin:.3125rem}.template-option .iconfont[data-v-2acd55d4]{color:#007aff}.iconfont.icon-favorite-fill[data-v-2acd55d4]{color:#fa0} diff --git a/unpackage/dist/build/app-plus/pages/WorkSpace/WorkSpace.css b/unpackage/dist/build/app-plus/pages/WorkSpace/WorkSpace.css index 525c5cc..d378780 100644 --- a/unpackage/dist/build/app-plus/pages/WorkSpace/WorkSpace.css +++ b/unpackage/dist/build/app-plus/pages/WorkSpace/WorkSpace.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.create-folder-name[data-v-02673744]{display:flex;width:100%;padding:.3125rem .625rem;box-sizing:border-box;align-items:center;background-color:rgba(194,191,211,.1);border-radius:.3125rem}.create-folder-name uni-input[data-v-02673744]{box-sizing:border-box;width:100%}.create-folder-name.has-value[data-v-02673744]{background-color:#fff;border:.0625rem solid #aaaaff;box-shadow:0 0 .46875rem #aaf}.new-folder-name[data-v-02673744]{font-size:.875rem;color:#666;margin-bottom:.375rem}.nf-path-label[data-v-02673744]{font-size:.8125rem;color:#999;margin-top:.75rem;margin-bottom:.25rem}.nf-path-display[data-v-02673744]{font-size:.875rem;color:#333;padding:.375rem .625rem;background:#f5f5f5;border-radius:.3125rem;word-break:break-all}.nf-path-preview[data-v-02673744]{font-size:.875rem;color:#0073ff;padding:.375rem .625rem;background:rgba(0,115,255,.05);border:.0625rem dashed rgba(0,115,255,.3);border-radius:.3125rem;word-break:break-all}.option-wrapper[data-v-02673744]{display:flex;justify-content:space-between;gap:.625rem;margin-top:1.25rem}.opt-btn[data-v-02673744]{flex:1;display:flex;justify-content:center;align-items:center;padding:.75rem 0;border-radius:.375rem;font-size:.9375rem}.opt-cancel[data-v-02673744]{background:#f5f5f5;color:#666}.opt-confirm[data-v-02673744]{background:linear-gradient(135deg,#0073ff,#3ab0ff);color:#fff}.workspace-container[data-v-02673744]{display:flex;flex-direction:column;background:rgba(140,140,140,.1)}.workspace-text[data-v-02673744]{color:#0073ff;font-weight:700}.workspace-header[data-v-02673744]{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:center;padding:.5rem 0;box-sizing:border-box;border-bottom:.03125rem solid #ddd}.custom-navbar[data-v-02673744]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.625rem .3125rem;box-sizing:border-box;position:relative}.navbar-left[data-v-02673744]{display:flex;justify-content:center;align-items:center}.navbar-before-title[data-v-02673744]{display:flex;justify-content:center;align-items:center;text-align:center}.navbar-title[data-v-02673744]{display:flex;flex:1;justify-content:center;align-items:center;position:absolute;left:50%;transform:translate(-50%)}.navbar-right[data-v-02673744]{display:flex;justify-content:center;align-items:center;margin-right:.625rem;box-sizing:border-box}.navbar-right .menu-open[data-v-02673744]{color:#3ab0ff!important;font-size:1.25rem!important}.custom-navbar-icon[data-v-02673744]{color:#0073ff!important;font-size:1.25rem!important}.search-file-warpper[data-v-02673744]{display:flex;width:90%;align-items:center}.search-file[data-v-02673744]{display:flex;flex:1;align-items:center;background:#fff;padding:.5rem;box-sizing:border-box;border-radius:.9375rem}.icon-sousuo[data-v-02673744]{font-weight:700}.search-file-input[data-v-02673744]{margin-left:.625rem}.cancel-search[data-v-02673744]{display:flex;flex-shrink:0;padding:0 0 0 .625rem;box-sizing:border-box;color:#0073ff}.workspace-content[data-v-02673744]{width:100%;display:block;flex:1;overflow:auto;box-sizing:border-box;position:relative}.menu-card[data-v-02673744]{position:absolute;top:100%;right:.625rem;width:9.375rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff;border-radius:.9375rem;z-index:1}.menu-card-item[data-v-02673744]{width:100%;padding:.625rem;box-sizing:border-box}.folder-null[data-v-02673744]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;left:50%;top:30%;transform:translate(-50%);font-size:1rem}.folder-null .iconfont[data-v-02673744]{font-size:5.625rem}.folder-grid[data-v-02673744]{width:100%;display:grid;grid-template-columns:repeat(3,1fr);padding:.625rem;box-sizing:border-box;gap:.625rem;align-items:start}.folder-item[data-v-02673744]{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-width:0}.folder-item.select-folder[data-v-02673744]{border-radius:.9375rem;background:rgba(9,9,9,.1)}.folder-item .folder-name[data-v-02673744]{max-width:4.6875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-align:center;line-height:1.25rem;min-width:0}.folder-item-style[data-v-02673744]{font-size:5rem!important;font-weight:.3125rem!important;color:#3ab0ff!important}.folder-checkbox[data-v-02673744]{width:1.5625rem;height:1.5625rem;border:.1875rem solid #fff;border-radius:50%;box-shadow:0 .0625rem .09375rem #333;background:rgba(255,255,255,.2);box-sizing:border-box;position:absolute;left:50%;top:30%;transform:translate(-50%);display:flex;justify-content:center;align-items:center}.folder-checkbox.select-folder[data-v-02673744]{background-color:#0073ff}.workspace-footer[data-v-02673744]{width:100%;display:flex;flex-shrink:0;justify-content:space-between;padding:.9375rem;box-sizing:border-box;color:#999;background:#eee}.workspace-footer.folder-actions[data-v-02673744]{color:#0073ff}.workspace-footer .iconfont[data-v-02673744]{font-size:1.25rem!important} +.uniui-cart-filled[data-v-b25a9929]:before{content:"\e6d0"}.uniui-gift-filled[data-v-b25a9929]:before{content:"\e6c4"}.uniui-color[data-v-b25a9929]:before{content:"\e6cf"}.uniui-wallet[data-v-b25a9929]:before{content:"\e6b1"}.uniui-settings-filled[data-v-b25a9929]:before{content:"\e6ce"}.uniui-auth-filled[data-v-b25a9929]:before{content:"\e6cc"}.uniui-shop-filled[data-v-b25a9929]:before{content:"\e6cd"}.uniui-staff-filled[data-v-b25a9929]:before{content:"\e6cb"}.uniui-vip-filled[data-v-b25a9929]:before{content:"\e6c6"}.uniui-plus-filled[data-v-b25a9929]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-b25a9929]:before{content:"\e6c8"}.uniui-color-filled[data-v-b25a9929]:before{content:"\e6c9"}.uniui-tune-filled[data-v-b25a9929]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-b25a9929]:before{content:"\e6c0"}.uniui-notification-filled[data-v-b25a9929]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-b25a9929]:before{content:"\e6c2"}.uniui-medal-filled[data-v-b25a9929]:before{content:"\e6c3"}.uniui-fire-filled[data-v-b25a9929]:before{content:"\e6c5"}.uniui-refreshempty[data-v-b25a9929]:before{content:"\e6bf"}.uniui-location-filled[data-v-b25a9929]:before{content:"\e6af"}.uniui-person-filled[data-v-b25a9929]:before{content:"\e69d"}.uniui-personadd-filled[data-v-b25a9929]:before{content:"\e698"}.uniui-arrowthinleft[data-v-b25a9929]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-b25a9929]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-b25a9929]:before{content:"\e6d4"}.uniui-back[data-v-b25a9929]:before{content:"\e6b9"}.uniui-forward[data-v-b25a9929]:before{content:"\e6ba"}.uniui-arrow-right[data-v-b25a9929]:before{content:"\e6bb"}.uniui-arrow-left[data-v-b25a9929]:before{content:"\e6bc"}.uniui-arrow-up[data-v-b25a9929]:before{content:"\e6bd"}.uniui-arrow-down[data-v-b25a9929]:before{content:"\e6be"}.uniui-arrowthinright[data-v-b25a9929]:before{content:"\e6d1"}.uniui-down[data-v-b25a9929]:before{content:"\e6b8"}.uniui-bottom[data-v-b25a9929]:before{content:"\e6b8"}.uniui-arrowright[data-v-b25a9929]:before{content:"\e6d5"}.uniui-right[data-v-b25a9929]:before{content:"\e6b5"}.uniui-up[data-v-b25a9929]:before{content:"\e6b6"}.uniui-top[data-v-b25a9929]:before{content:"\e6b6"}.uniui-left[data-v-b25a9929]:before{content:"\e6b7"}.uniui-arrowup[data-v-b25a9929]:before{content:"\e6d6"}.uniui-eye[data-v-b25a9929]:before{content:"\e651"}.uniui-eye-filled[data-v-b25a9929]:before{content:"\e66a"}.uniui-eye-slash[data-v-b25a9929]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-b25a9929]:before{content:"\e6b4"}.uniui-info-filled[data-v-b25a9929]:before{content:"\e649"}.uniui-reload[data-v-b25a9929]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-b25a9929]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-b25a9929]:before{content:"\e6ac"}.uniui-map-pin[data-v-b25a9929]:before{content:"\e6ad"}.uniui-location[data-v-b25a9929]:before{content:"\e6ae"}.uniui-starhalf[data-v-b25a9929]:before{content:"\e683"}.uniui-star[data-v-b25a9929]:before{content:"\e688"}.uniui-star-filled[data-v-b25a9929]:before{content:"\e68f"}.uniui-calendar[data-v-b25a9929]:before{content:"\e6a0"}.uniui-fire[data-v-b25a9929]:before{content:"\e6a1"}.uniui-medal[data-v-b25a9929]:before{content:"\e6a2"}.uniui-font[data-v-b25a9929]:before{content:"\e6a3"}.uniui-gift[data-v-b25a9929]:before{content:"\e6a4"}.uniui-link[data-v-b25a9929]:before{content:"\e6a5"}.uniui-notification[data-v-b25a9929]:before{content:"\e6a6"}.uniui-staff[data-v-b25a9929]:before{content:"\e6a7"}.uniui-vip[data-v-b25a9929]:before{content:"\e6a8"}.uniui-folder-add[data-v-b25a9929]:before{content:"\e6a9"}.uniui-tune[data-v-b25a9929]:before{content:"\e6aa"}.uniui-auth[data-v-b25a9929]:before{content:"\e6ab"}.uniui-person[data-v-b25a9929]:before{content:"\e699"}.uniui-email-filled[data-v-b25a9929]:before{content:"\e69a"}.uniui-phone-filled[data-v-b25a9929]:before{content:"\e69b"}.uniui-phone[data-v-b25a9929]:before{content:"\e69c"}.uniui-email[data-v-b25a9929]:before{content:"\e69e"}.uniui-personadd[data-v-b25a9929]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-b25a9929]:before{content:"\e692"}.uniui-contact[data-v-b25a9929]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-b25a9929]:before{content:"\e694"}.uniui-contact-filled[data-v-b25a9929]:before{content:"\e695"}.uniui-chatboxes[data-v-b25a9929]:before{content:"\e696"}.uniui-chatbubble[data-v-b25a9929]:before{content:"\e697"}.uniui-upload-filled[data-v-b25a9929]:before{content:"\e68e"}.uniui-upload[data-v-b25a9929]:before{content:"\e690"}.uniui-weixin[data-v-b25a9929]:before{content:"\e691"}.uniui-compose[data-v-b25a9929]:before{content:"\e67f"}.uniui-qq[data-v-b25a9929]:before{content:"\e680"}.uniui-download-filled[data-v-b25a9929]:before{content:"\e681"}.uniui-pyq[data-v-b25a9929]:before{content:"\e682"}.uniui-sound[data-v-b25a9929]:before{content:"\e684"}.uniui-trash-filled[data-v-b25a9929]:before{content:"\e685"}.uniui-sound-filled[data-v-b25a9929]:before{content:"\e686"}.uniui-trash[data-v-b25a9929]:before{content:"\e687"}.uniui-videocam-filled[data-v-b25a9929]:before{content:"\e689"}.uniui-spinner-cycle[data-v-b25a9929]:before{content:"\e68a"}.uniui-weibo[data-v-b25a9929]:before{content:"\e68b"}.uniui-videocam[data-v-b25a9929]:before{content:"\e68c"}.uniui-download[data-v-b25a9929]:before{content:"\e68d"}.uniui-help[data-v-b25a9929]:before{content:"\e679"}.uniui-navigate-filled[data-v-b25a9929]:before{content:"\e67a"}.uniui-plusempty[data-v-b25a9929]:before{content:"\e67b"}.uniui-smallcircle[data-v-b25a9929]:before{content:"\e67c"}.uniui-minus-filled[data-v-b25a9929]:before{content:"\e67d"}.uniui-micoff[data-v-b25a9929]:before{content:"\e67e"}.uniui-closeempty[data-v-b25a9929]:before{content:"\e66c"}.uniui-clear[data-v-b25a9929]:before{content:"\e66d"}.uniui-navigate[data-v-b25a9929]:before{content:"\e66e"}.uniui-minus[data-v-b25a9929]:before{content:"\e66f"}.uniui-image[data-v-b25a9929]:before{content:"\e670"}.uniui-mic[data-v-b25a9929]:before{content:"\e671"}.uniui-paperplane[data-v-b25a9929]:before{content:"\e672"}.uniui-close[data-v-b25a9929]:before{content:"\e673"}.uniui-help-filled[data-v-b25a9929]:before{content:"\e674"}.uniui-paperplane-filled[data-v-b25a9929]:before{content:"\e675"}.uniui-plus[data-v-b25a9929]:before{content:"\e676"}.uniui-mic-filled[data-v-b25a9929]:before{content:"\e677"}.uniui-image-filled[data-v-b25a9929]:before{content:"\e678"}.uniui-locked-filled[data-v-b25a9929]:before{content:"\e668"}.uniui-info[data-v-b25a9929]:before{content:"\e669"}.uniui-locked[data-v-b25a9929]:before{content:"\e66b"}.uniui-camera-filled[data-v-b25a9929]:before{content:"\e658"}.uniui-chat-filled[data-v-b25a9929]:before{content:"\e659"}.uniui-camera[data-v-b25a9929]:before{content:"\e65a"}.uniui-circle[data-v-b25a9929]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-b25a9929]:before{content:"\e65c"}.uniui-chat[data-v-b25a9929]:before{content:"\e65d"}.uniui-circle-filled[data-v-b25a9929]:before{content:"\e65e"}.uniui-flag[data-v-b25a9929]:before{content:"\e65f"}.uniui-flag-filled[data-v-b25a9929]:before{content:"\e660"}.uniui-gear-filled[data-v-b25a9929]:before{content:"\e661"}.uniui-home[data-v-b25a9929]:before{content:"\e662"}.uniui-home-filled[data-v-b25a9929]:before{content:"\e663"}.uniui-gear[data-v-b25a9929]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-b25a9929]:before{content:"\e665"}.uniui-map-filled[data-v-b25a9929]:before{content:"\e666"}.uniui-map[data-v-b25a9929]:before{content:"\e667"}.uniui-refresh-filled[data-v-b25a9929]:before{content:"\e656"}.uniui-refresh[data-v-b25a9929]:before{content:"\e657"}.uniui-cloud-upload[data-v-b25a9929]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-b25a9929]:before{content:"\e646"}.uniui-cloud-download[data-v-b25a9929]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-b25a9929]:before{content:"\e648"}.uniui-redo[data-v-b25a9929]:before{content:"\e64a"}.uniui-images-filled[data-v-b25a9929]:before{content:"\e64b"}.uniui-undo-filled[data-v-b25a9929]:before{content:"\e64c"}.uniui-more[data-v-b25a9929]:before{content:"\e64d"}.uniui-more-filled[data-v-b25a9929]:before{content:"\e64e"}.uniui-undo[data-v-b25a9929]:before{content:"\e64f"}.uniui-images[data-v-b25a9929]:before{content:"\e650"}.uniui-paperclip[data-v-b25a9929]:before{content:"\e652"}.uniui-settings[data-v-b25a9929]:before{content:"\e653"}.uniui-search[data-v-b25a9929]:before{content:"\e654"}.uniui-redo-filled[data-v-b25a9929]:before{content:"\e655"}.uniui-list[data-v-b25a9929]:before{content:"\e644"}.uniui-mail-open-filled[data-v-b25a9929]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-b25a9929]:before{content:"\e63c"}.uniui-hand-down[data-v-b25a9929]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-b25a9929]:before{content:"\e63e"}.uniui-hand-up[data-v-b25a9929]:before{content:"\e63f"}.uniui-heart-filled[data-v-b25a9929]:before{content:"\e641"}.uniui-mail-open[data-v-b25a9929]:before{content:"\e643"}.uniui-heart[data-v-b25a9929]:before{content:"\e639"}.uniui-loop[data-v-b25a9929]:before{content:"\e633"}.uniui-pulldown[data-v-b25a9929]:before{content:"\e632"}.uniui-scan[data-v-b25a9929]:before{content:"\e62a"}.uniui-bars[data-v-b25a9929]:before{content:"\e627"}.uniui-checkbox[data-v-b25a9929]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-b25a9929]:before{content:"\e62c"}.uniui-shop[data-v-b25a9929]:before{content:"\e62f"}.uniui-headphones[data-v-b25a9929]:before{content:"\e630"}.uniui-cart[data-v-b25a9929]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-b25a9929]{font-family:uniicons;text-decoration:none;text-align:center}.create-folder-name[data-v-8cbb38c0]{display:flex;width:100%;padding:.3125rem .625rem;box-sizing:border-box;align-items:center;background:rgba(108,99,255,.06);border-radius:.4375rem;border:.0625rem solid transparent;transition:all .25s ease}.create-folder-name uni-input[data-v-8cbb38c0]{box-sizing:border-box;width:100%;font-size:.875rem;color:#333}.create-folder-name.has-value[data-v-8cbb38c0]{background-color:#fff;border-color:#6c63ff;box-shadow:0 0 0 .125rem rgba(108,99,255,.06)}.new-folder-name[data-v-8cbb38c0]{font-size:.875rem;color:#555;margin-bottom:.375rem}.nf-path-label[data-v-8cbb38c0]{font-size:.75rem;color:#999;margin-top:.75rem;margin-bottom:.25rem}.nf-path-display[data-v-8cbb38c0]{font-size:.8125rem;color:#333;padding:.375rem .625rem;background:#f5f5f8;border-radius:.375rem;word-break:break-all}.nf-path-preview[data-v-8cbb38c0]{font-size:.8125rem;color:#6c63ff;padding:.375rem .625rem;background:rgba(108,99,255,.05);border:.0625rem dashed rgba(108,99,255,.25);border-radius:.375rem;word-break:break-all}.option-wrapper[data-v-8cbb38c0]{display:flex;justify-content:space-between;gap:.625rem;margin-top:1.25rem}.opt-btn[data-v-8cbb38c0]{flex:1;display:flex;justify-content:center;align-items:center;padding:.75rem 0;border-radius:.5rem;font-size:.9375rem;font-weight:500;transition:all .2s ease}.opt-btn[data-v-8cbb38c0]:active{transform:scale(.97)}.opt-cancel[data-v-8cbb38c0]{background:#f0f1f5;color:#666}.opt-confirm[data-v-8cbb38c0]{background:linear-gradient(135deg,#6c63ff,#4a45d1);color:#fff;box-shadow:0 .125rem .375rem rgba(108,99,255,.25)}.workspace-container[data-v-8cbb38c0]{display:flex;flex-direction:column;background:linear-gradient(180deg,#f5f4f9,#faf9fe)}.workspace-text[data-v-8cbb38c0]{color:#6c63ff;font-weight:700}.workspace-header[data-v-8cbb38c0]{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:center;padding:.375rem 0;box-sizing:border-box;position:relative;z-index:100;background:rgba(255,255,255,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:.03125rem solid rgba(170,170,255,.1)}.custom-navbar[data-v-8cbb38c0]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.5rem .3125rem;box-sizing:border-box;position:relative}.navbar-left[data-v-8cbb38c0]{display:flex;justify-content:center;align-items:center}.navbar-before-title[data-v-8cbb38c0]{display:flex;justify-content:center;align-items:center;text-align:center;font-size:.8125rem;color:#6c63ff;font-weight:500}.navbar-title[data-v-8cbb38c0]{display:flex;flex:1;justify-content:center;align-items:center;position:absolute;left:50%;transform:translate(-50%);font-size:1rem;font-weight:700;color:#1a1a2e}.navbar-right[data-v-8cbb38c0]{display:flex;justify-content:center;align-items:center;margin-right:.625rem;box-sizing:border-box}.navbar-right .menu-open[data-v-8cbb38c0],.custom-navbar-icon[data-v-8cbb38c0]{color:#6c63ff!important;font-size:1.25rem!important}.search-file-warpper[data-v-8cbb38c0]{display:flex;width:90%;align-items:center}.search-file[data-v-8cbb38c0]{display:flex;flex:1;align-items:center;background:rgba(255,255,255,.9);padding:.4375rem .75rem;box-sizing:border-box;border-radius:.875rem;border:.0625rem solid #e8e7f5;transition:all .25s ease}.search-file[data-v-8cbb38c0]:focus-within{border-color:#6c63ff;box-shadow:0 0 0 .125rem rgba(108,99,255,.06)}.icon-sousuo[data-v-8cbb38c0]{font-weight:700;color:#999}.search-file-input[data-v-8cbb38c0]{margin-left:.5rem;font-size:.8125rem;color:#333}.cancel-search[data-v-8cbb38c0]{display:flex;flex-shrink:0;padding:0 0 0 .625rem;box-sizing:border-box;color:#6c63ff;font-size:.875rem;font-weight:500}.workspace-content[data-v-8cbb38c0]{width:100%;display:block;flex:1;overflow:auto;box-sizing:border-box;position:relative}.menu-card[data-v-8cbb38c0]{position:absolute;top:100%;right:.625rem;width:8.75rem;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff;border-radius:.75rem;z-index:999;box-shadow:0 .25rem 1rem rgba(0,0,0,.08);padding:.25rem 0;overflow:hidden}.menu-card-item[data-v-8cbb38c0]{width:100%;padding:.6875rem .875rem;box-sizing:border-box;font-size:.875rem;color:#333;transition:all .15s ease}.menu-card-item[data-v-8cbb38c0]:active{background:rgba(108,99,255,.06)}.folder-null[data-v-8cbb38c0]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;left:50%;top:30%;transform:translate(-50%);font-size:.9375rem;color:#bbb}.folder-null .iconfont[data-v-8cbb38c0]{font-size:5.625rem;color:#ddd}.folder-grid[data-v-8cbb38c0]{width:100%;display:grid;grid-template-columns:repeat(3,1fr);padding:.75rem;box-sizing:border-box;gap:.625rem;align-items:start}.folder-item[data-v-8cbb38c0]{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-width:0;background:rgba(255,255,255,.7);border-radius:.75rem;padding:.75rem .25rem .5rem;border:.0625rem solid transparent;transition:all .2s ease}.folder-item.select-folder[data-v-8cbb38c0]{border-color:rgba(108,99,255,.3);background:rgba(108,99,255,.04)}.folder-item[data-v-8cbb38c0]:active{transform:scale(.96);background:rgba(255,255,255,.95)}.folder-item .folder-name[data-v-8cbb38c0]{max-width:5rem;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:1.375rem;min-width:0;font-size:.8125rem;color:#444}.folder-item-style[data-v-8cbb38c0]{font-size:3.4375rem!important;color:#6c63ff!important}.folder-checkbox[data-v-8cbb38c0]{width:1.375rem;height:1.375rem;border:.09375rem solid #fff;border-radius:50%;box-shadow:0 .0625rem .25rem rgba(0,0,0,.12);background:rgba(255,255,255,.9);box-sizing:border-box;position:absolute;left:50%;top:25%;transform:translate(-50%);display:flex;justify-content:center;align-items:center;transition:all .2s ease}.folder-checkbox.select-folder[data-v-8cbb38c0]{background:linear-gradient(135deg,#6c63ff,#4a45d1);border-color:#6c63ff}.workspace-footer[data-v-8cbb38c0]{width:100%;display:flex;flex-shrink:0;justify-content:space-between;padding:.75rem .9375rem;box-sizing:border-box;color:#888;background:rgba(255,255,255,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:.03125rem solid rgba(170,170,255,.1);font-size:.8125rem;transition:all .2s ease}.workspace-footer.folder-actions[data-v-8cbb38c0]{color:#6c63ff;font-weight:500}.workspace-footer .iconfont[data-v-8cbb38c0]{font-size:1.25rem!important} diff --git a/unpackage/dist/build/app-plus/static/iconfont/demo_index.html b/unpackage/dist/build/app-plus/static/iconfont/demo_index.html index 3bfb318..76cc9de 100644 --- a/unpackage/dist/build/app-plus/static/iconfont/demo_index.html +++ b/unpackage/dist/build/app-plus/static/iconfont/demo_index.html @@ -54,6 +54,60 @@
      +
    • + +
      代码
      +
      &#xe695;
      +
    • + +
    • + +
      word
      +
      &#xe64c;
      +
    • + +
    • + +
      其他领域
      +
      &#xe62f;
      +
    • + +
    • + +
      文件夹
      +
      &#xe63a;
      +
    • + +
    • + +
      execl
      +
      &#xe64d;
      +
    • + +
    • + +
      TXT
      +
      &#xe64e;
      +
    • + +
    • + +
      PPT
      +
      &#xe64f;
      +
    • + +
    • + +
      ZIP
      +
      &#xe650;
      +
    • + +
    • + +
      PDF
      +
      &#xe651;
      +
    • +
    • 云端,云,云服务
      @@ -426,9 +480,9 @@
      @font-face {
         font-family: 'iconfont';
      -  src: url('iconfont.woff2?t=1782200893170') format('woff2'),
      -       url('iconfont.woff?t=1782200893170') format('woff'),
      -       url('iconfont.ttf?t=1782200893170') format('truetype');
      +  src: url('iconfont.woff2?t=1783330740989') format('woff2'),
      +       url('iconfont.woff?t=1783330740989') format('woff'),
      +       url('iconfont.ttf?t=1783330740989') format('truetype');
       }
       

      第二步:定义使用 iconfont 的样式

      @@ -454,6 +508,87 @@
        +
      • + +
        + 代码 +
        +
        .icon-daima +
        +
      • + +
      • + +
        + word +
        +
        .icon-word +
        +
      • + +
      • + +
        + 其他领域 +
        +
        .icon-qitalingyu +
        +
      • + +
      • + +
        + 文件夹 +
        +
        .icon-wenjianjia1 +
        +
      • + +
      • + +
        + execl +
        +
        .icon-execl +
        +
      • + +
      • + +
        + TXT +
        +
        .icon-TXT1 +
        +
      • + +
      • + +
        + PPT +
        +
        .icon-PPT1 +
        +
      • + +
      • + +
        + ZIP +
        +
        .icon-ZIP +
        +
      • + +
      • + +
        + PDF +
        +
        .icon-PDF1 +
        +
      • +
      • @@ -1012,6 +1147,78 @@
          +
        • + +
          代码
          +
          #icon-daima
          +
        • + +
        • + +
          word
          +
          #icon-word
          +
        • + +
        • + +
          其他领域
          +
          #icon-qitalingyu
          +
        • + +
        • + +
          文件夹
          +
          #icon-wenjianjia1
          +
        • + +
        • + +
          execl
          +
          #icon-execl
          +
        • + +
        • + +
          TXT
          +
          #icon-TXT1
          +
        • + +
        • + +
          PPT
          +
          #icon-PPT1
          +
        • + +
        • + +
          ZIP
          +
          #icon-ZIP
          +
        • + +
        • + +
          PDF
          +
          #icon-PDF1
          +
        • +