@deep-eye/core 1.3.91 → 1.3.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/dist/{ChartRenderer-TzsnqnyV.cjs → ChartRenderer-C-VIJhAF.cjs} +1 -1
- package/dist/{ChartRenderer-CKsUJhbc.js → ChartRenderer-Dnn93qXe.js} +1 -1
- package/dist/{ChatMyFilesArtifacts-BeQHLrUE.cjs → ChatMyFilesArtifacts-D8y6rXj9.cjs} +1 -1
- package/dist/{ChatMyFilesArtifacts-qD7q7u2u.js → ChatMyFilesArtifacts-v4FBo0Nl.js} +1 -1
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts +1 -1
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts +12 -2
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts.map +1 -1
- package/dist/components/chat/components/schedule/ChatScheduledTasks.vue.d.ts.map +1 -1
- package/dist/components/chat/components/schedule/scheduledTaskWire.d.ts.map +1 -1
- package/dist/components/chat/mdoc/MediaImageLightbox.vue.d.ts.map +1 -1
- package/dist/{docx-preview-Ddq2Rd5j.js → docx-preview-C4GOSOYq.js} +1 -1
- package/dist/{docx-preview-CC8jDFyo.cjs → docx-preview-CeKeKeNi.cjs} +1 -1
- package/dist/{index-B5TwLeqQ.js → index-BO8yexQn.js} +1 -1
- package/dist/{index-47_t1k1t.cjs → index-CdNPCEAx.cjs} +265 -265
- package/dist/{index-G1cUXwuV.cjs → index-DPvXQrbH.cjs} +1 -1
- package/dist/{index-BXOcelf2.js → index-qh7CZhyQ.js} +20265 -20072
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{papaparse.min-CABieqyR.js → papaparse.min-DAhC56MW.js} +1 -1
- package/dist/{papaparse.min-Bi9-MNQC.cjs → papaparse.min-DKHAXm6C.cjs} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **对话图片可以旋转和缩放**:消息里的图片点开后,右上角可以下载和关闭,底部可以缩小、放大、重置、逆时针和顺时针旋转。滚轮也能缩放,放大后可以拖动。换一张回到原始角度和大小,下载的仍是原图。多张时,张数在底部操作条上方。
|
|
10
|
+
- **审核可以下架**:新增 `offlineReview(cloud, id)`,走 `POST /cloud/aibasicservices/review/check/offline`,body 只有 `{ id }`。只有 `APPROVED` 且 `active=true` 的申请能下架,后端按 `actionType` 撤销业务效果(共享取消、评优取消、知识库可见范围回滚),灵感广场投影逻辑删除;下架不覆盖原审核人和审核意见,`active` 变 `false`,`reviewStatus` 为 `OFFLINE`。下架不可恢复成「已通过」,要恢复需重新提交审核。返回整条审核申请,解析与其它审核动作一致。
|
|
11
|
+
|
|
12
|
+
## [1.3.92] - 2026-11-26
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **定时任务「新建」不再带下拉**:点「新建」直接打开新建弹框。原先下拉里的「新建并测试运行」已去掉。卡片上的「立即运行」还在。
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **编辑定时任务时跳过系统提示词**:任务存下来的内容如果先是系统提示词、后面才是用户那句,回填输入框和卡片时只放用户那句,附件也取用户那条。
|
|
21
|
+
|
|
7
22
|
## [1.3.91] - 2026-11-26
|
|
8
23
|
|
|
9
24
|
### Added
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ const data = {
|
|
|
150
150
|
</template>
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
assistant `content` 原生支持 GFM、代码高亮、KaTeX 公式、图片/视频/音频,以及组件库定义的 mdoc 标签(工件卡片、Chart、Action Bar)。≥ 1.3.79 起,引用悬浮 tip 和文本目录里的公式与正文一样渲染,PDF 页图文字层仍是纯文本;「产出文件」列表固定宽 480px,单文件预览仍默认 55%,文件名溢出时悬停才显示全文;侧栏任务历史把带前导零的 Java 日期按本地时间计算。≥ 1.3.80 起,满 5 轮的对话在左侧显示会话索引;模型列表与详情卡宽 300px,消耗速度读 `ratio`;独立成段且已闭合、能通过图表校验的 ` ```json ` / ` ```echarts ` 直接画成图。≥ 1.3.81 起,`responses` 的 JSON 带回 `session_id` 时先抛 `responses-ack`
|
|
153
|
+
assistant `content` 原生支持 GFM、代码高亮、KaTeX 公式、图片/视频/音频,以及组件库定义的 mdoc 标签(工件卡片、Chart、Action Bar)。≥ 1.3.79 起,引用悬浮 tip 和文本目录里的公式与正文一样渲染,PDF 页图文字层仍是纯文本;「产出文件」列表固定宽 480px,单文件预览仍默认 55%,文件名溢出时悬停才显示全文;侧栏任务历史把带前导零的 Java 日期按本地时间计算。≥ 1.3.80 起,满 5 轮的对话在左侧显示会话索引;模型列表与详情卡宽 300px,消耗速度读 `ratio`;独立成段且已闭合、能通过图表校验的 ` ```json ` / ` ```echarts ` 直接画成图。≥ 1.3.81 起,`responses` 的 JSON 带回 `session_id` 时先抛 `responses-ack` 再拉流;图片灯箱按一条消息翻页,计数器显示消息内位置。消息正文的图片点开后可以缩小、放大、重置和左右旋转,放大后可拖动,换一张回到原来的角度和大小;右上角是下载和关闭。≥ 1.3.82 起,刷新后提问前的「已完成」显示自己的用时;续写结束后整轮用时从提问开始算到续写结束。≥ 1.3.83 起,`ChatApp` 可开「我的文件」;「+ → 添加文件」展开为本地文件 / 我的文件 / 知识库;大文件默认分片上传并可在刷新后续传;选文件弹框在窄容器里收列;纯文本侧栏改为阅读页;我的资料里的 Markdown 只读预览会画出表格和公式;产物卡片的「更多」一直显示。知识库写入落点需宿主传 `transferSources.knowledge`。≥ 1.3.84 起,文件操作结果走宿主 toast(`ChatApp` 的 `files-toast`,或 `ChatMyFiles` 的 `toast`;不接时「我的文件」页静默,对话产物卡片仍用卡片上的小条,`notice` 已移除);「上传到」与本地上传共用右下角任务面板,超过 20 个按趟排队,单条失败可单独重试;空文件夹不再显示展开箭头。≥ 1.3.85 起,`ChatApp` 可在积分卡片里切换外观(`show-appearance`;只有 `sync-document-color-mode` 才写 `<html>`);输入 `@` 默认引用最近文件(`mentionFiles: false` 仍是知识库 `@`);「我的文件」选文件弹框含「AI产物」页签;资料库与「我的文件」左栏可拖宽;「上传到知识库」改为选目录,宿主需补 `loadFolders`;没有文件夹时「上传到我的资料」直接落根目录;产物转入知识库或备课走单文件直投。≥ 1.3.86 起,`ChatMyFiles` 传 `pickShareCategory` 后,文件和文件夹菜单才出现「共享校内」:宿主返回灵感广场分类 id 才提交审核,不传时菜单与之前一致。≥ 1.3.87 起,传入 `cloud` 后侧栏左下角显示真实积分(本月已用 / 月限额,另配的个人积分单独一行);学校积分默认不显示,校长身份传 `show-school-quota`;明细按本周 / 本月分页。没有文件时,「我的资料」空页是插画和三张入口(上传资料、新建文件夹、AI 产物)。≥ 1.3.88 起,积分卡片和明细弹层可以手动刷新,一轮对话结束后底栏用量自动更新;用量数字和用量条不再随将尽、用完变色;消耗明细的「本周」传本周一到本周日。「上传到」落点可只声明 `transferBlockExtensions`,与白名单同时声明时黑名单优先。≥ 1.3.89 起,明细弹层不再放刷新按钮(它和关闭按钮叠在一起),刷新留在积分卡片上,打开弹层时仍会重新拉取。≥ 1.3.91 起,输入框正文上限 99999 字,超出直接截掉尾部,对话里在输入框上方提示;`ChatApp` 可开「定时任务」(`scheduled-tasks`,默认关),登录后走对话网关下的定时任务接口,工作日和每月还不能保存;我的文件打开文本时,读得很快直接出内容,不再闪一下转圈。`pickShareCategory` 除了分类编号,也可以回 `{ categoryId, subject }`,学科用中文名。更新日志里的 1.3.90 只记了带学科这一条,没有单独发包,随 1.3.91 一起提供。≥ 1.3.92 起,定时任务页的「新建」点一下就打开新建弹框,不再带下拉;再次编辑时,如果存下来的内容前面是系统提示词,只把用户写的那句和附件填回输入框。询问用户优先走 `ask_user` tool(`arguments: { desc, questions }`);正文仍可写 `{% ask-form %}` 作兼容。将 `ARTIFACT_BLOCK_SYSTEM_PROMPT`、`ASK_USER_FORM_SYSTEM_PROMPT`、`CHART_BLOCK_SYSTEM_PROMPT` 或 `ACTION_BAR_SYSTEM_PROMPT` 加入 system prompt 可引导模型;`ChatBot` 会自动 dock Ask Form。带 `toolCallId` 的提交显示在「向用户提问」工具回复里(题干 + 加粗选项),不再另起用户气泡。宿主只需用 `buildAskUserFunctionCallOutput(toolCallId, answers)` 续接 `function_call_output`——**不要**用 `answers[].selected` 拼文案。没有 `toolCallId` 的正文 `{% ask-form %}` 仍写入用户气泡(`action.label`)。点击工件卡片按类型分流(可预览进侧栏 / 图片灯箱 / 新标签 / 直接下载),消息内渲染 `{% chart %}` 与 `{% action-bar %}`。
|
|
154
154
|
|
|
155
155
|
## 进阶能力
|
|
156
156
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var fx=Object.defineProperty;var cx=(r,e,t)=>e in r?fx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var sp=(r,e,t)=>cx(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("vue"),os=require("./index-
|
|
1
|
+
"use strict";var fx=Object.defineProperty;var cx=(r,e,t)=>e in r?fx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var sp=(r,e,t)=>cx(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("vue"),os=require("./index-CdNPCEAx.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -2,7 +2,7 @@ var Ex = Object.defineProperty;
|
|
|
2
2
|
var Mx = (r, e, t) => e in r ? Ex(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var bp = (r, e, t) => Mx(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { defineComponent as Xu, shallowRef as wh, inject as xl, toRefs as Ax, computed as tr, toValue as Tl, watch as Cl, watchEffect as l_, onMounted as u_, onBeforeUnmount as Ix, h as xh, shallowReactive as Of, onUpdated as Lx, onUnmounted as Ox, warn as Px, nextTick as Rx, Teleport as Nx, openBlock as it, createElementBlock as Ct, createElementVNode as si, toDisplayString as kx, Fragment as xs, renderList as Pf, createStaticVNode as Vx, ref as Bx, createVNode as zx, Transition as Fx, withCtx as Hx, unref as Wa, createBlock as Rf } from "vue";
|
|
5
|
-
import { _ as qv, R as Gx, S as Ux } from "./index-
|
|
5
|
+
import { _ as qv, R as Gx, S as Ux } from "./index-qh7CZhyQ.js";
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("@vueuse/core");const l=require("./index-47_t1k1t.cjs"),Qe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2024.0%2024.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M2000,0%20L2000,4212%20L0,4212%20L0,0%20L2000,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-157.0%20-2549.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(145.0%202545.0)'%3e%3cg%20transform='translate(12.0%204.0)'%3e%3cg%20transform='translate(24.0%2024.0)%20rotate(90.0)%20scale(-1.0%201.0)'%3e%3cg%20transform='translate(17.5%209.5)%20rotate(90.00000000000001)'%3e%3cpath%20d='M0,0%20L5,5%20L0,10'%20stroke='currentColor'%20stroke-width='1.8'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Je={class:"chat-artifact-row__lead"},Xe={class:"chat-artifact-row__name"},et=["title"],tt={class:"chat-artifact-row__meta"},at={class:"chat-artifact-row__cell chat-artifact-row__cell--kind"},nt=["title"],lt={class:"chat-artifact-row__cell chat-artifact-row__cell--time"},ot={class:"chat-artifact-row__cell chat-artifact-row__cell--size"},st=e.defineComponent({name:"ChatArtifactFileRow",__name:"ChatArtifactFileRow",props:{file:{},selected:{type:Boolean},actionsDisabled:{type:Boolean,default:!1},showOwner:{type:Boolean,default:!1}},emits:["toggle","open","action"],setup(c,{emit:N}){const r=c,h=N,p=l.useTransferTargetFilter(),d=e.computed(()=>l.createArtifactFileMenuItems({disabled:r.actionsDisabled},{canUploadTo:p(r.file)})),{Menu:u}=l.useUiDropdown({items:d,placement:l.ARTIFACT_FILE_MENU_PLACEMENT,width:l.ARTIFACT_FILE_MENU_WIDTH,panelClass:l.ARTIFACT_FILE_MENU_PANEL_CLASS,submenuPanelClass:l.ARTIFACT_FILE_SUBMENU_PANEL_CLASS,onItemClick:({id:f})=>{if(f.split(":").at(-1)==="download"){if(r.actionsDisabled)return;r.file.url&&l.downloadFromSrc(r.file.url,r.file.name);return}h("action",f)}}),_=e.computed(()=>[r.file.kind,r.file.updatedLabel,r.file.sizeLabel].filter(Boolean).join(" · "));return(f,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-artifact-row",{"is-selected":c.selected,"has-owner":c.showOwner}]),onClick:m[3]||(m[3]=S=>h("toggle"))},[e.createElementVNode("span",Je,[e.createVNode(l.ChatFileCheckbox,{class:"chat-artifact-row__check",checked:c.selected,label:c.selected?"取消选择":"选择文件",onToggle:m[0]||(m[0]=S=>h("toggle"))},null,8,["checked","label"]),e.createVNode(l.ChatMyFilesTypeMark,{ext:c.file.ext,name:c.file.name},null,8,["ext","name"])]),e.createElementVNode("span",Xe,[e.createElementVNode("button",{class:"chat-artifact-row__title",type:"button",title:c.file.name,onClick:m[1]||(m[1]=e.withModifiers(S=>h("open"),["stop"]))},e.toDisplayString(c.file.name),9,et),e.createElementVNode("span",tt,e.toDisplayString(_.value),1)]),e.createElementVNode("span",at,e.toDisplayString(c.file.kind),1),c.showOwner?(e.openBlock(),e.createElementBlock("span",{key:0,class:"chat-artifact-row__cell chat-artifact-row__cell--owner",title:c.file.owner||""},e.toDisplayString(c.file.owner||"—"),9,nt)):e.createCommentVNode("",!0),e.createElementVNode("span",lt,e.toDisplayString(c.file.updatedLabel),1),e.createElementVNode("span",ot,e.toDisplayString(c.file.sizeLabel),1),e.createVNode(e.unref(u),null,{default:e.withCtx(()=>[e.createVNode(l.ArtifactFileMoreButton,{class:"chat-artifact-row__more","data-testid":"artifact-row-more",loading:"lazy",decoding:"async",onClick:m[2]||(m[2]=e.withModifiers(()=>{},["stop"]))})]),_:1})],2))}}),rt=l._export_sfc(st,[["__scopeId","data-v-c9c7f7c8"]]),ct={class:"art-skeleton","aria-hidden":"true"},it={key:0,class:"art-skeleton__group"},ut={class:"art-skeleton__task"},dt={class:"art-skeleton__name"},ft=e.defineComponent({name:"ChatArtifactsSkeleton",__name:"ChatArtifactsSkeleton",props:{blocks:{default:2},rows:{default:2},groupHead:{type:Boolean,default:!1}},setup(c){const N=["42%","54%","34%","48%"],r=["58%","44%","66%","50%"],h=d=>N[d%N.length],p=d=>r[d%r.length];return(d,u)=>(e.openBlock(),e.createElementBlock("div",ct,[c.groupHead?(e.openBlock(),e.createElementBlock("div",it,[...u[0]||(u[0]=[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__chevron"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-name"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-count"},null,-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.blocks,_=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"art-skeleton__block"},[e.createElementVNode("div",ut,[u[1]||(u[1]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__spark"},null,-1)),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__task-name",style:e.normalizeStyle({width:N[(_+1)%N.length]})},null,4)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.rows,f=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"art-skeleton__row"},[u[3]||(u[3]=e.createElementVNode("span",{class:"art-skeleton__lead"},[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__icon"})],-1)),e.createElementVNode("span",dt,[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--name",style:e.normalizeStyle({width:h(f-1)})},null,4),u[2]||(u[2]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--meta"},null,-1))]),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--kind",style:e.normalizeStyle({width:p(f)})},null,4),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--time",style:e.normalizeStyle({width:p(f+1)})},null,4),u[4]||(u[4]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--size"},null,-1)),u[5]||(u[5]=e.createElementVNode("span",{class:"art-skeleton__cell--action"},null,-1))]))),128))]))),128))]))}}),pe=l._export_sfc(ft,[["__scopeId","data-v-6ca80140"]]),mt={class:"chat-my-files-artifacts__frame"},vt={class:"chat-my-files-artifacts__toolbar"},pt=["src"],_t={class:"chat-my-files-artifacts__filter",type:"button"},ht=["src"],kt={class:"chat-my-files-artifacts__search"},yt=["src"],gt={key:0,class:"chat-my-files-artifacts__progress",role:"status","aria-label":"正在加载 AI 产物"},wt={class:"chat-my-files-artifacts__table"},Et={key:0,class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--owner"},Nt={key:0,class:"chat-my-files-artifacts__skeleton","data-testid":"artifact-first-load","aria-busy":"true"},bt=["aria-expanded","onClick"],Ct=["src"],At={class:"chat-my-files-artifacts__group-name"},Tt={class:"chat-my-files-artifacts__group-count"},Bt=["inert"],Vt={class:"chat-my-files-artifacts__group-clip"},St={class:"chat-my-files-artifacts__task-head"},Ft=["src"],It=["title"],Mt=["disabled","aria-busy","onClick"],xt={class:"chat-my-files-artifacts__sentinel-sheet"},Lt={class:"chat-my-files-artifacts__sr-only",role:"status"},Dt=["disabled","aria-busy"],L=6,Rt=3,_e=400,$t=e.defineComponent({name:"ChatMyFilesArtifacts",__name:"ChatMyFilesArtifacts",props:{cloud:{},actionsDisabled:{type:Boolean}},emits:["back","add-to-task"],setup(c,{emit:N}){const r=c,h=N,p=e.ref(""),d=e.ref("全部类型"),u=e.ref("updatedAt"),_=e.ref("desc"),f=e.ref(new Set),m=e.ref(new Set),S=l.useMyFilesToast();function k(t,a="info"){S==null||S(t,a)}const he=l.useChatContext(),{source:ke,open:ye,busy:ge,title:we,request:ne,confirm:Ee,close:Ne}=l.useFileTransfer({getCloud:()=>r.cloud,flash:k,sources:()=>he.transferSources.value,board:l.getMyFilesTransferQueue()}),q=l.injectChatAddToTask(),g=e.ref([]),w=e.ref(!1),D=e.ref(""),b=e.ref(!1),F=e.ref(new Set),le=e.ref(1),R=e.ref(!1),z=e.ref(!1),O=e.ref({});let I=0,W=0;const $=new Map,B=e.computed(()=>w.value&&g.value.length===0);function oe(){return r.cloud?g.value:l.artifactGroups}function se(t,a){const n=new Set(F.value);a?n.add(t):n.delete(t),F.value=n}function be(t){const a=(t.productCount??0)-t.files.length;return a>0?`还有 ${a} 个`:"加载更多"}async function M(t="replace"){const a=r.cloud;if(!a||t==="append"&&w.value)return;const n=++I,o=t==="append"?le.value+1:1;t==="replace"&&A&&(y.value=L,U.clear()),w.value=!0,D.value="",b.value=t==="append";try{const s=await l.fetchArtifactLibrary(a,{page:o,pageSize:l.ARTIFACT_SESSION_PAGE_SIZE,search:p.value.trim()});if(n!==I)return;const i=l.countArtifactSessions(g.value);g.value=t==="append"?l.mergeArtifactGroups(g.value,s):s;const v=l.countArtifactSessions(g.value)-i;le.value=o,t==="replace"&&(O.value={}),z.value=!1;const T=l.countArtifactSessions(s)>=l.ARTIFACT_SESSION_PAGE_SIZE;R.value=T&&(t==="replace"||v>0)}catch(s){if(n!==I)return;const i=s instanceof Error?s.message:"产物加载失败";g.value.length?t==="append"&&(z.value=!0):D.value=i,k(i,"error")}finally{n===I&&(w.value=!1,b.value=!1,X())}}function Ce(){M("replace")}async function Ae(t){const a=r.cloud;if(!a||w.value||F.value.has(t))return;const n=($.get(t)??0)+1;$.set(t,n);const o=I;se(t,!0);try{let s=O.value[t]??1,i=0;for(;i<5;){i+=1;const v=await l.fetchArtifactPage(a,t,s,l.ARTIFACT_FILE_PAGE_SIZE);if($.get(t)!==n||I!==o)return;const T=l.appendArtifactPage(g.value,t,v);if(g.value=T.groups,s+=1,O.value={...O.value,[t]:s},T.added>0||!T.hasMore)break}}catch(s){if($.get(t)!==n)return;k(s instanceof Error?s.message:"产物加载失败","error")}finally{$.get(t)===n&&se(t,!1)}}const Te=l.buildKindMenuItems(l.ARTIFACT_KIND_OPTIONS),{Menu:Be}=l.useUiDropdown({items:Te,placement:"bottom-start",width:140,selectedId:d,panelClass:l.KIND_MENU_PANEL_CLASS,onItemClick:({id:t})=>{Ve(t)&&(d.value=t)}});function Ve(t){return l.ARTIFACT_KIND_OPTIONS.includes(t)}function Se(t){if(!u.value)return t;const a=_.value==="asc"?1:-1;return[...t].sort((n,o)=>u.value==="name"?n.name.localeCompare(o.name,"zh")*a:(n.updatedAt-o.updatedAt)*a)}const C=e.computed(()=>{const t=r.cloud?"":p.value.trim().toLowerCase();return oe().map(a=>{const n=!!t&&a.name.toLowerCase().includes(t),o=a.sessions.map(s=>{const i=!!t&&s.title.toLowerCase().includes(t),v=Se(s.files.filter(T=>{const je=d.value==="全部类型"||T.kind===d.value,Ye=!t||T.name.toLowerCase().includes(t);return je&&(n||i||Ye)}));return{...s,files:v}}).filter(s=>s.files.length>0||s.hasMore===!0);return{...a,taskCount:a.taskCount??a.sessions.length,sessions:o}}).filter(a=>a.sessions.length>0)}),Fe=e.computed(()=>C.value.flatMap(t=>t.sessions.flatMap(a=>a.files.map(n=>l.artifactRowKey(a.id,n.id))))),j=e.computed(()=>Fe.value.filter(t=>m.value.has(t)).length),U=new Map,A=typeof IntersectionObserver<"u",H=e.ref(null),K=e.ref(null),y=e.ref(A?L:Number.POSITIVE_INFINITY);let E=null,Y=!1,G=0;const re=e.computed(()=>C.value.reduce((t,a)=>t+a.sessions.length,0)),V=e.computed(()=>re.value>y.value),ce=e.computed(()=>{if(!V.value)return C.value;let t=y.value;const a=[];for(const n of C.value){if(t<=0)break;const o=n.sessions.slice(0,t);t-=o.length,a.push({...n,sessions:o})}return a});function ie(){!r.cloud||!A||!R.value||w.value||B.value||re.value-y.value>Rt||M("append")}let Z=1;function Ie(){if(Z>0)return Z-=1,!0;const t=H.value,a=K.value;if(!t||!a)return!1;const n=a.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top<o.bottom&&n.bottom>o.top}function ue(){if(A){if(V.value){y.value+=L;return}R.value&&!w.value&&!B.value&&Ie()&&M("append")}}function Me(){if(V.value){y.value+=L;return}M("append")}const xe=e.computed(()=>!A||z.value),Q=e.computed(()=>V.value||R.value);let J=0;function X(){!A||Y||(Y=!0,window.requestAnimationFrame(()=>{if(Y=!1,performance.now()<J)return;const t=K.value,a=H.value;if(!t||!a)return;const n=t.getBoundingClientRect(),o=a.getBoundingClientRect();n.top<o.bottom+240&&n.bottom>o.top-240&&ue()}))}function de(){window.clearTimeout(G),G=window.setTimeout(()=>{G=0,Q.value&&(Z=1,X())},_e+40)}function fe(){if(!A)return;E==null||E.disconnect();const t=K.value;t&&(E=new IntersectionObserver(a=>{if(a.some(n=>n.isIntersecting)){if(performance.now()<J){de();return}Z=1,ue(),ie()}},{root:H.value,rootMargin:"240px 0px"}),E.observe(t))}e.watch([p,d,u,_],()=>{A&&(y.value=L)}),e.watch([V,R,y],()=>{fe(),X(),ie()},{flush:"post"});const P=e.computed(()=>!!p.value.trim()||d.value!=="全部类型"),Le=e.computed(()=>P.value?"没有匹配的文件":"暂无 AI 产物"),De=e.computed(()=>P.value?"换个关键词或切换到「全部类型」试试,也可以清空筛选查看全部产物":"对话里生成的文件会收在这里,可以再加回任务继续使用"),Re=e.computed(()=>P.value?"清空筛选":"返回我的文件"),$e=e.computed(()=>!D.value&&(B.value||C.value.length>0)),ee=e.computed(()=>C.value.some(t=>t.sessions.some(a=>a.files.some(n=>!!n.owner))));function Pe(){if(!P.value){h("back");return}p.value="",d.value="全部类型"}function me(t){if(u.value!==t){u.value=t,_.value=t==="name"?"asc":"desc";return}_.value=_.value==="asc"?"desc":"asc"}function ve(t){return u.value!==t?"idle":_.value==="asc"?"asc":"desc"}function ze(t){var s;J=performance.now()+_e;const a=new Set(f.value),n=!a.has(t);n?a.add(t):a.delete(t);const o=n?((s=ce.value.find(i=>i.id===t))==null?void 0:s.sessions.length)??0:U.get(t)??0;n?U.set(t,o):U.delete(t),y.value=Math.max(L,y.value+(n?o:-o)),f.value=a,de()}function Oe(t){const a=new Set(m.value);a.has(t)?a.delete(t):a.add(t),m.value=a}const x=e.ref(null),Ue=e.ref("");function He(t,a){Ue.value=t,x.value=a}function Ke(t){const a=l.normalizeArtifactFileActionId(t);if(!a)return;const n=x.value;if(a==="add-task"){if(r.actionsDisabled===!0)return;n&&ae([l.artifactToResource(n)]);return}const o=l.fileTransferTargetOfAction(a);if(o){if(r.actionsDisabled===!0||!n)return;ne(o,[l.artifactToTransferItem(n)]);return}const s=l.resolveArtifactFileAction(t,{unavailable:!!r.cloud,disabled:r.actionsDisabled===!0});if(s){if(s.kind==="unavailable"){k(s.notice,"warning");return}s.kind==="notice"&&k(s.notice,"warning")}}function te(){m.value=new Set}function Ge(t){for(const a of oe())for(const n of a.sessions){const o=n.files.findIndex(s=>l.artifactRowKey(n.id,s.id)===t);if(o>=0)return{groupId:a.id,session:n,index:o}}}function Ze(t,a){const n=Ge(t);if(!n)return;const o=l.normalizeArtifactFileActionId(a);if(!o)return;const s=n.session.files[n.index];if(!s)return;if(o==="add-task"){if(r.actionsDisabled===!0)return;ae([l.artifactToResource(s)]);return}const i=l.fileTransferTargetOfAction(o);if(i){if(r.actionsDisabled===!0)return;ne(i,[l.artifactToTransferItem(s,n.session)]);return}const v=l.resolveArtifactFileAction(a,{unavailable:!!r.cloud,disabled:r.actionsDisabled===!0});if(v){if(v.kind==="unavailable"){k(v.notice,"warning");return}v.kind==="notice"&&k(v.notice,"warning")}}function ae(t){if(t.length!==0){if(q){q(t);return}h("add-to-task",t),k(l.ARTIFACT_FILE_ACTION_NOTICES["add-task"],"success")}}function qe(){return C.value.flatMap(t=>t.sessions.flatMap(a=>a.files.filter(n=>m.value.has(l.artifactRowKey(a.id,n.id))).map(n=>l.artifactToResource(n))))}function We(){if(r.actionsDisabled===!0)return;const t=qe();if(t.length!==0){if(!q){if(r.cloud){k(l.ARTIFACT_FILE_ACTIONS_UNAVAILABLE_NOTICE,"warning");return}k(`已添加 ${j.value} 个文件到任务`,"success"),te();return}ae(t),te()}}return e.watch(p,()=>{r.cloud&&(window.clearTimeout(W),W=window.setTimeout(()=>{M("replace")},300))}),e.onMounted(()=>{fe(),r.cloud&&M()}),e.onUnmounted(()=>{E==null||E.disconnect(),E=null,window.clearTimeout(W),window.clearTimeout(G)}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-my-files-artifacts",{"has-selection":j.value>0}])},[e.createElementVNode("div",mt,[e.createElementVNode("header",vt,[e.createElementVNode("button",{class:"chat-my-files-artifacts__back",type:"button",onClick:a[0]||(a[0]=n=>h("back"))},[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__back-glyph",src:e.unref(Qe),alt:""},null,8,pt),a[5]||(a[5]=e.createElementVNode("span",null,"返回我的文件",-1))]),e.createVNode(e.unref(Be),null,{"item-icon":e.withCtx(({item:n})=>[e.createVNode(l._sfc_main,{kind:n.id},null,8,["kind"])]),default:e.withCtx(()=>[e.createElementVNode("button",_t,[e.createElementVNode("span",null,e.toDisplayString(d.value),1),e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__filter-glyph",src:e.unref(l.chevronDownIcon),alt:""},null,8,ht)])]),_:1}),e.createElementVNode("label",kt,[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__search-glyph",src:e.unref(l.searchIcon),alt:""},null,8,yt),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=n=>p.value=n),type:"search",placeholder:"搜索文件、任务或工作空间",title:"搜索文件、任务或工作空间"},null,512),[[e.vModelText,p.value]])])]),w.value&&!b.value&&!B.value?(e.openBlock(),e.createElementBlock("div",gt)):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[$e.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-my-files-artifacts__head",{"has-owner":ee.value}])},[e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--name",type:"button",onClick:a[2]||(a[2]=n=>me("name"))},[a[7]||(a[7]=e.createTextVNode(" 名称 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${ve("name")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[6]||(a[6]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[10]||(a[10]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--kind"},"类型",-1)),ee.value?(e.openBlock(),e.createElementBlock("span",Et,"更新人")):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--time",type:"button",onClick:a[3]||(a[3]=n=>me("updatedAt"))},[a[9]||(a[9]=e.createTextVNode(" 更新时间 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${ve("updatedAt")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[8]||(a[8]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[11]||(a[11]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--size"},"大小",-1)),a[12]||(a[12]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--action"},"操作",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:H,class:"chat-my-files-artifacts__body"},[B.value?(e.openBlock(),e.createElementBlock("div",Nt,[e.createVNode(pe,{"group-head":"",blocks:2,rows:3}),a[13]||(a[13]=e.createElementVNode("p",{class:"chat-my-files-artifacts__sr-only",role:"status"},"正在加载 AI 产物",-1))])):D.value?(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:1,class:"chat-my-files-artifacts__state",tone:"error",variant:"error",title:"产物加载失败",description:D.value,"action-text":"重新加载",onAction:Ce},null,8,["description"])):C.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:2,class:"chat-my-files-artifacts__state",variant:P.value?"search":"files",title:Le.value,description:De.value,"action-text":Re.value,onAction:Pe},null,8,["variant","title","description","action-text"])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce.value,n=>(e.openBlock(),e.createElementBlock("section",{key:n.id,class:"chat-my-files-artifacts__group"},[e.createElementVNode("button",{class:"chat-my-files-artifacts__group-head",type:"button","aria-expanded":!f.value.has(n.id),onClick:o=>ze(n.id)},[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:e.normalizeClass(["chat-my-files-artifacts__chevron",{"is-open":!f.value.has(n.id)}]),src:e.unref(l.chevronDownIcon),alt:""},null,10,Ct),e.createElementVNode("span",At,e.toDisplayString(n.name),1),e.createElementVNode("em",Tt,e.toDisplayString(n.taskCount)+"个任务",1)],8,bt),e.createElementVNode("div",{class:e.normalizeClass(["chat-my-files-artifacts__group-body",{"is-collapsed":f.value.has(n.id)}]),inert:f.value.has(n.id)||void 0},[e.createElementVNode("div",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sessions,(o,s)=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"chat-my-files-artifacts__task",style:e.normalizeStyle({"--mf-stagger":s})},[e.createElementVNode("div",St,[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:"chat-my-files-artifacts__spark",src:e.unref(l.sparkIcon),alt:""},null,8,Ft),e.createElementVNode("span",{title:o.title},e.toDisplayString(o.title),9,It)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.files,i=>(e.openBlock(),e.createBlock(rt,{key:e.unref(l.artifactRowKey)(o.id,i.id),file:i,selected:m.value.has(e.unref(l.artifactRowKey)(o.id,i.id)),"show-owner":ee.value,"actions-disabled":c.actionsDisabled,onToggle:v=>Oe(e.unref(l.artifactRowKey)(o.id,i.id)),onOpen:v=>He(e.unref(l.artifactRowKey)(o.id,i.id),i),onAction:v=>Ze(e.unref(l.artifactRowKey)(o.id,i.id),v)},null,8,["file","selected","show-owner","actions-disabled","onToggle","onOpen","onAction"]))),128)),c.cloud&&o.hasMore?(e.openBlock(),e.createElementBlock("button",{key:0,class:"chat-my-files-artifacts__more",type:"button","data-testid":"artifact-file-more",disabled:F.value.has(o.id),"aria-busy":F.value.has(o.id),onClick:i=>Ae(o.id)},e.toDisplayString(F.value.has(o.id)?"加载中":be(o)),9,Mt)):e.createCommentVNode("",!0)],4))),128))])],10,Bt)]))),128)),c.cloud&&Q.value&&!B.value?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"sentinelRef",ref:K,class:e.normalizeClass(["chat-my-files-artifacts__sentinel",{"is-loading":b.value}])},[e.createElementVNode("div",xt,[b.value?(e.openBlock(),e.createBlock(pe,{key:0,blocks:1,rows:1})):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),e.createElementVNode("p",Lt,e.toDisplayString(b.value?"正在加载更多 AI 产物":""),1),c.cloud&&Q.value&&!B.value&&xe.value?(e.openBlock(),e.createElementBlock("button",{key:4,class:"chat-my-files-artifacts__sessions-more",type:"button","data-testid":"artifact-session-more",disabled:w.value&&!V.value,"aria-busy":b.value,onClick:Me},e.toDisplayString(b.value?"加载中":z.value?"重新加载":V.value?"显示更多任务":"加载更多会话"),9,Dt)):e.createCommentVNode("",!0)],512)]),e.createVNode(l._sfc_main$1,{count:j.value,onClear:te,onAddTask:We},null,8,["count"]),x.value?(e.openBlock(),e.createBlock(l.ChatArtifactPreview,{key:x.value.id,file:x.value,cloud:c.cloud,"actions-disabled":c.actionsDisabled,onClose:a[4]||(a[4]=n=>x.value=null),onAction:Ke},null,8,["file","cloud","actions-disabled"])):e.createCommentVNode("",!0),e.createVNode(l.ChatFilePickerDialog,{source:e.unref(ke),open:e.unref(ye),mode:"target",title:e.unref(we),busy:e.unref(ge),"onUpdate:open":e.unref(Ne),onConfirm:e.unref(Ee)},null,8,["source","open","title","busy","onUpdate:open","onConfirm"])])],2))}}),Pt=l._export_sfc($t,[["__scopeId","data-v-13517c8c"]]);exports.default=Pt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("@vueuse/core");const l=require("./index-CdNPCEAx.cjs"),Qe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2024.0%2024.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M2000,0%20L2000,4212%20L0,4212%20L0,0%20L2000,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-157.0%20-2549.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(145.0%202545.0)'%3e%3cg%20transform='translate(12.0%204.0)'%3e%3cg%20transform='translate(24.0%2024.0)%20rotate(90.0)%20scale(-1.0%201.0)'%3e%3cg%20transform='translate(17.5%209.5)%20rotate(90.00000000000001)'%3e%3cpath%20d='M0,0%20L5,5%20L0,10'%20stroke='currentColor'%20stroke-width='1.8'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Je={class:"chat-artifact-row__lead"},Xe={class:"chat-artifact-row__name"},et=["title"],tt={class:"chat-artifact-row__meta"},at={class:"chat-artifact-row__cell chat-artifact-row__cell--kind"},nt=["title"],lt={class:"chat-artifact-row__cell chat-artifact-row__cell--time"},ot={class:"chat-artifact-row__cell chat-artifact-row__cell--size"},st=e.defineComponent({name:"ChatArtifactFileRow",__name:"ChatArtifactFileRow",props:{file:{},selected:{type:Boolean},actionsDisabled:{type:Boolean,default:!1},showOwner:{type:Boolean,default:!1}},emits:["toggle","open","action"],setup(c,{emit:N}){const r=c,h=N,p=l.useTransferTargetFilter(),d=e.computed(()=>l.createArtifactFileMenuItems({disabled:r.actionsDisabled},{canUploadTo:p(r.file)})),{Menu:u}=l.useUiDropdown({items:d,placement:l.ARTIFACT_FILE_MENU_PLACEMENT,width:l.ARTIFACT_FILE_MENU_WIDTH,panelClass:l.ARTIFACT_FILE_MENU_PANEL_CLASS,submenuPanelClass:l.ARTIFACT_FILE_SUBMENU_PANEL_CLASS,onItemClick:({id:f})=>{if(f.split(":").at(-1)==="download"){if(r.actionsDisabled)return;r.file.url&&l.downloadFromSrc(r.file.url,r.file.name);return}h("action",f)}}),_=e.computed(()=>[r.file.kind,r.file.updatedLabel,r.file.sizeLabel].filter(Boolean).join(" · "));return(f,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-artifact-row",{"is-selected":c.selected,"has-owner":c.showOwner}]),onClick:m[3]||(m[3]=S=>h("toggle"))},[e.createElementVNode("span",Je,[e.createVNode(l.ChatFileCheckbox,{class:"chat-artifact-row__check",checked:c.selected,label:c.selected?"取消选择":"选择文件",onToggle:m[0]||(m[0]=S=>h("toggle"))},null,8,["checked","label"]),e.createVNode(l.ChatMyFilesTypeMark,{ext:c.file.ext,name:c.file.name},null,8,["ext","name"])]),e.createElementVNode("span",Xe,[e.createElementVNode("button",{class:"chat-artifact-row__title",type:"button",title:c.file.name,onClick:m[1]||(m[1]=e.withModifiers(S=>h("open"),["stop"]))},e.toDisplayString(c.file.name),9,et),e.createElementVNode("span",tt,e.toDisplayString(_.value),1)]),e.createElementVNode("span",at,e.toDisplayString(c.file.kind),1),c.showOwner?(e.openBlock(),e.createElementBlock("span",{key:0,class:"chat-artifact-row__cell chat-artifact-row__cell--owner",title:c.file.owner||""},e.toDisplayString(c.file.owner||"—"),9,nt)):e.createCommentVNode("",!0),e.createElementVNode("span",lt,e.toDisplayString(c.file.updatedLabel),1),e.createElementVNode("span",ot,e.toDisplayString(c.file.sizeLabel),1),e.createVNode(e.unref(u),null,{default:e.withCtx(()=>[e.createVNode(l.ArtifactFileMoreButton,{class:"chat-artifact-row__more","data-testid":"artifact-row-more",loading:"lazy",decoding:"async",onClick:m[2]||(m[2]=e.withModifiers(()=>{},["stop"]))})]),_:1})],2))}}),rt=l._export_sfc(st,[["__scopeId","data-v-c9c7f7c8"]]),ct={class:"art-skeleton","aria-hidden":"true"},it={key:0,class:"art-skeleton__group"},ut={class:"art-skeleton__task"},dt={class:"art-skeleton__name"},ft=e.defineComponent({name:"ChatArtifactsSkeleton",__name:"ChatArtifactsSkeleton",props:{blocks:{default:2},rows:{default:2},groupHead:{type:Boolean,default:!1}},setup(c){const N=["42%","54%","34%","48%"],r=["58%","44%","66%","50%"],h=d=>N[d%N.length],p=d=>r[d%r.length];return(d,u)=>(e.openBlock(),e.createElementBlock("div",ct,[c.groupHead?(e.openBlock(),e.createElementBlock("div",it,[...u[0]||(u[0]=[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__chevron"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-name"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-count"},null,-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.blocks,_=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"art-skeleton__block"},[e.createElementVNode("div",ut,[u[1]||(u[1]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__spark"},null,-1)),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__task-name",style:e.normalizeStyle({width:N[(_+1)%N.length]})},null,4)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.rows,f=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"art-skeleton__row"},[u[3]||(u[3]=e.createElementVNode("span",{class:"art-skeleton__lead"},[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__icon"})],-1)),e.createElementVNode("span",dt,[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--name",style:e.normalizeStyle({width:h(f-1)})},null,4),u[2]||(u[2]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--meta"},null,-1))]),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--kind",style:e.normalizeStyle({width:p(f)})},null,4),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--time",style:e.normalizeStyle({width:p(f+1)})},null,4),u[4]||(u[4]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--size"},null,-1)),u[5]||(u[5]=e.createElementVNode("span",{class:"art-skeleton__cell--action"},null,-1))]))),128))]))),128))]))}}),pe=l._export_sfc(ft,[["__scopeId","data-v-6ca80140"]]),mt={class:"chat-my-files-artifacts__frame"},vt={class:"chat-my-files-artifacts__toolbar"},pt=["src"],_t={class:"chat-my-files-artifacts__filter",type:"button"},ht=["src"],kt={class:"chat-my-files-artifacts__search"},yt=["src"],gt={key:0,class:"chat-my-files-artifacts__progress",role:"status","aria-label":"正在加载 AI 产物"},wt={class:"chat-my-files-artifacts__table"},Et={key:0,class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--owner"},Nt={key:0,class:"chat-my-files-artifacts__skeleton","data-testid":"artifact-first-load","aria-busy":"true"},bt=["aria-expanded","onClick"],Ct=["src"],At={class:"chat-my-files-artifacts__group-name"},Tt={class:"chat-my-files-artifacts__group-count"},Bt=["inert"],Vt={class:"chat-my-files-artifacts__group-clip"},St={class:"chat-my-files-artifacts__task-head"},Ft=["src"],It=["title"],Mt=["disabled","aria-busy","onClick"],xt={class:"chat-my-files-artifacts__sentinel-sheet"},Lt={class:"chat-my-files-artifacts__sr-only",role:"status"},Dt=["disabled","aria-busy"],L=6,Rt=3,_e=400,$t=e.defineComponent({name:"ChatMyFilesArtifacts",__name:"ChatMyFilesArtifacts",props:{cloud:{},actionsDisabled:{type:Boolean}},emits:["back","add-to-task"],setup(c,{emit:N}){const r=c,h=N,p=e.ref(""),d=e.ref("全部类型"),u=e.ref("updatedAt"),_=e.ref("desc"),f=e.ref(new Set),m=e.ref(new Set),S=l.useMyFilesToast();function k(t,a="info"){S==null||S(t,a)}const he=l.useChatContext(),{source:ke,open:ye,busy:ge,title:we,request:ne,confirm:Ee,close:Ne}=l.useFileTransfer({getCloud:()=>r.cloud,flash:k,sources:()=>he.transferSources.value,board:l.getMyFilesTransferQueue()}),q=l.injectChatAddToTask(),g=e.ref([]),w=e.ref(!1),D=e.ref(""),b=e.ref(!1),F=e.ref(new Set),le=e.ref(1),R=e.ref(!1),z=e.ref(!1),O=e.ref({});let I=0,W=0;const $=new Map,B=e.computed(()=>w.value&&g.value.length===0);function oe(){return r.cloud?g.value:l.artifactGroups}function se(t,a){const n=new Set(F.value);a?n.add(t):n.delete(t),F.value=n}function be(t){const a=(t.productCount??0)-t.files.length;return a>0?`还有 ${a} 个`:"加载更多"}async function M(t="replace"){const a=r.cloud;if(!a||t==="append"&&w.value)return;const n=++I,o=t==="append"?le.value+1:1;t==="replace"&&A&&(y.value=L,U.clear()),w.value=!0,D.value="",b.value=t==="append";try{const s=await l.fetchArtifactLibrary(a,{page:o,pageSize:l.ARTIFACT_SESSION_PAGE_SIZE,search:p.value.trim()});if(n!==I)return;const i=l.countArtifactSessions(g.value);g.value=t==="append"?l.mergeArtifactGroups(g.value,s):s;const v=l.countArtifactSessions(g.value)-i;le.value=o,t==="replace"&&(O.value={}),z.value=!1;const T=l.countArtifactSessions(s)>=l.ARTIFACT_SESSION_PAGE_SIZE;R.value=T&&(t==="replace"||v>0)}catch(s){if(n!==I)return;const i=s instanceof Error?s.message:"产物加载失败";g.value.length?t==="append"&&(z.value=!0):D.value=i,k(i,"error")}finally{n===I&&(w.value=!1,b.value=!1,X())}}function Ce(){M("replace")}async function Ae(t){const a=r.cloud;if(!a||w.value||F.value.has(t))return;const n=($.get(t)??0)+1;$.set(t,n);const o=I;se(t,!0);try{let s=O.value[t]??1,i=0;for(;i<5;){i+=1;const v=await l.fetchArtifactPage(a,t,s,l.ARTIFACT_FILE_PAGE_SIZE);if($.get(t)!==n||I!==o)return;const T=l.appendArtifactPage(g.value,t,v);if(g.value=T.groups,s+=1,O.value={...O.value,[t]:s},T.added>0||!T.hasMore)break}}catch(s){if($.get(t)!==n)return;k(s instanceof Error?s.message:"产物加载失败","error")}finally{$.get(t)===n&&se(t,!1)}}const Te=l.buildKindMenuItems(l.ARTIFACT_KIND_OPTIONS),{Menu:Be}=l.useUiDropdown({items:Te,placement:"bottom-start",width:140,selectedId:d,panelClass:l.KIND_MENU_PANEL_CLASS,onItemClick:({id:t})=>{Ve(t)&&(d.value=t)}});function Ve(t){return l.ARTIFACT_KIND_OPTIONS.includes(t)}function Se(t){if(!u.value)return t;const a=_.value==="asc"?1:-1;return[...t].sort((n,o)=>u.value==="name"?n.name.localeCompare(o.name,"zh")*a:(n.updatedAt-o.updatedAt)*a)}const C=e.computed(()=>{const t=r.cloud?"":p.value.trim().toLowerCase();return oe().map(a=>{const n=!!t&&a.name.toLowerCase().includes(t),o=a.sessions.map(s=>{const i=!!t&&s.title.toLowerCase().includes(t),v=Se(s.files.filter(T=>{const je=d.value==="全部类型"||T.kind===d.value,Ye=!t||T.name.toLowerCase().includes(t);return je&&(n||i||Ye)}));return{...s,files:v}}).filter(s=>s.files.length>0||s.hasMore===!0);return{...a,taskCount:a.taskCount??a.sessions.length,sessions:o}}).filter(a=>a.sessions.length>0)}),Fe=e.computed(()=>C.value.flatMap(t=>t.sessions.flatMap(a=>a.files.map(n=>l.artifactRowKey(a.id,n.id))))),j=e.computed(()=>Fe.value.filter(t=>m.value.has(t)).length),U=new Map,A=typeof IntersectionObserver<"u",H=e.ref(null),K=e.ref(null),y=e.ref(A?L:Number.POSITIVE_INFINITY);let E=null,Y=!1,G=0;const re=e.computed(()=>C.value.reduce((t,a)=>t+a.sessions.length,0)),V=e.computed(()=>re.value>y.value),ce=e.computed(()=>{if(!V.value)return C.value;let t=y.value;const a=[];for(const n of C.value){if(t<=0)break;const o=n.sessions.slice(0,t);t-=o.length,a.push({...n,sessions:o})}return a});function ie(){!r.cloud||!A||!R.value||w.value||B.value||re.value-y.value>Rt||M("append")}let Z=1;function Ie(){if(Z>0)return Z-=1,!0;const t=H.value,a=K.value;if(!t||!a)return!1;const n=a.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top<o.bottom&&n.bottom>o.top}function ue(){if(A){if(V.value){y.value+=L;return}R.value&&!w.value&&!B.value&&Ie()&&M("append")}}function Me(){if(V.value){y.value+=L;return}M("append")}const xe=e.computed(()=>!A||z.value),Q=e.computed(()=>V.value||R.value);let J=0;function X(){!A||Y||(Y=!0,window.requestAnimationFrame(()=>{if(Y=!1,performance.now()<J)return;const t=K.value,a=H.value;if(!t||!a)return;const n=t.getBoundingClientRect(),o=a.getBoundingClientRect();n.top<o.bottom+240&&n.bottom>o.top-240&&ue()}))}function de(){window.clearTimeout(G),G=window.setTimeout(()=>{G=0,Q.value&&(Z=1,X())},_e+40)}function fe(){if(!A)return;E==null||E.disconnect();const t=K.value;t&&(E=new IntersectionObserver(a=>{if(a.some(n=>n.isIntersecting)){if(performance.now()<J){de();return}Z=1,ue(),ie()}},{root:H.value,rootMargin:"240px 0px"}),E.observe(t))}e.watch([p,d,u,_],()=>{A&&(y.value=L)}),e.watch([V,R,y],()=>{fe(),X(),ie()},{flush:"post"});const P=e.computed(()=>!!p.value.trim()||d.value!=="全部类型"),Le=e.computed(()=>P.value?"没有匹配的文件":"暂无 AI 产物"),De=e.computed(()=>P.value?"换个关键词或切换到「全部类型」试试,也可以清空筛选查看全部产物":"对话里生成的文件会收在这里,可以再加回任务继续使用"),Re=e.computed(()=>P.value?"清空筛选":"返回我的文件"),$e=e.computed(()=>!D.value&&(B.value||C.value.length>0)),ee=e.computed(()=>C.value.some(t=>t.sessions.some(a=>a.files.some(n=>!!n.owner))));function Pe(){if(!P.value){h("back");return}p.value="",d.value="全部类型"}function me(t){if(u.value!==t){u.value=t,_.value=t==="name"?"asc":"desc";return}_.value=_.value==="asc"?"desc":"asc"}function ve(t){return u.value!==t?"idle":_.value==="asc"?"asc":"desc"}function ze(t){var s;J=performance.now()+_e;const a=new Set(f.value),n=!a.has(t);n?a.add(t):a.delete(t);const o=n?((s=ce.value.find(i=>i.id===t))==null?void 0:s.sessions.length)??0:U.get(t)??0;n?U.set(t,o):U.delete(t),y.value=Math.max(L,y.value+(n?o:-o)),f.value=a,de()}function Oe(t){const a=new Set(m.value);a.has(t)?a.delete(t):a.add(t),m.value=a}const x=e.ref(null),Ue=e.ref("");function He(t,a){Ue.value=t,x.value=a}function Ke(t){const a=l.normalizeArtifactFileActionId(t);if(!a)return;const n=x.value;if(a==="add-task"){if(r.actionsDisabled===!0)return;n&&ae([l.artifactToResource(n)]);return}const o=l.fileTransferTargetOfAction(a);if(o){if(r.actionsDisabled===!0||!n)return;ne(o,[l.artifactToTransferItem(n)]);return}const s=l.resolveArtifactFileAction(t,{unavailable:!!r.cloud,disabled:r.actionsDisabled===!0});if(s){if(s.kind==="unavailable"){k(s.notice,"warning");return}s.kind==="notice"&&k(s.notice,"warning")}}function te(){m.value=new Set}function Ge(t){for(const a of oe())for(const n of a.sessions){const o=n.files.findIndex(s=>l.artifactRowKey(n.id,s.id)===t);if(o>=0)return{groupId:a.id,session:n,index:o}}}function Ze(t,a){const n=Ge(t);if(!n)return;const o=l.normalizeArtifactFileActionId(a);if(!o)return;const s=n.session.files[n.index];if(!s)return;if(o==="add-task"){if(r.actionsDisabled===!0)return;ae([l.artifactToResource(s)]);return}const i=l.fileTransferTargetOfAction(o);if(i){if(r.actionsDisabled===!0)return;ne(i,[l.artifactToTransferItem(s,n.session)]);return}const v=l.resolveArtifactFileAction(a,{unavailable:!!r.cloud,disabled:r.actionsDisabled===!0});if(v){if(v.kind==="unavailable"){k(v.notice,"warning");return}v.kind==="notice"&&k(v.notice,"warning")}}function ae(t){if(t.length!==0){if(q){q(t);return}h("add-to-task",t),k(l.ARTIFACT_FILE_ACTION_NOTICES["add-task"],"success")}}function qe(){return C.value.flatMap(t=>t.sessions.flatMap(a=>a.files.filter(n=>m.value.has(l.artifactRowKey(a.id,n.id))).map(n=>l.artifactToResource(n))))}function We(){if(r.actionsDisabled===!0)return;const t=qe();if(t.length!==0){if(!q){if(r.cloud){k(l.ARTIFACT_FILE_ACTIONS_UNAVAILABLE_NOTICE,"warning");return}k(`已添加 ${j.value} 个文件到任务`,"success"),te();return}ae(t),te()}}return e.watch(p,()=>{r.cloud&&(window.clearTimeout(W),W=window.setTimeout(()=>{M("replace")},300))}),e.onMounted(()=>{fe(),r.cloud&&M()}),e.onUnmounted(()=>{E==null||E.disconnect(),E=null,window.clearTimeout(W),window.clearTimeout(G)}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-my-files-artifacts",{"has-selection":j.value>0}])},[e.createElementVNode("div",mt,[e.createElementVNode("header",vt,[e.createElementVNode("button",{class:"chat-my-files-artifacts__back",type:"button",onClick:a[0]||(a[0]=n=>h("back"))},[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__back-glyph",src:e.unref(Qe),alt:""},null,8,pt),a[5]||(a[5]=e.createElementVNode("span",null,"返回我的文件",-1))]),e.createVNode(e.unref(Be),null,{"item-icon":e.withCtx(({item:n})=>[e.createVNode(l._sfc_main,{kind:n.id},null,8,["kind"])]),default:e.withCtx(()=>[e.createElementVNode("button",_t,[e.createElementVNode("span",null,e.toDisplayString(d.value),1),e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__filter-glyph",src:e.unref(l.chevronDownIcon),alt:""},null,8,ht)])]),_:1}),e.createElementVNode("label",kt,[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__search-glyph",src:e.unref(l.searchIcon),alt:""},null,8,yt),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=n=>p.value=n),type:"search",placeholder:"搜索文件、任务或工作空间",title:"搜索文件、任务或工作空间"},null,512),[[e.vModelText,p.value]])])]),w.value&&!b.value&&!B.value?(e.openBlock(),e.createElementBlock("div",gt)):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[$e.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-my-files-artifacts__head",{"has-owner":ee.value}])},[e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--name",type:"button",onClick:a[2]||(a[2]=n=>me("name"))},[a[7]||(a[7]=e.createTextVNode(" 名称 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${ve("name")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[6]||(a[6]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[10]||(a[10]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--kind"},"类型",-1)),ee.value?(e.openBlock(),e.createElementBlock("span",Et,"更新人")):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--time",type:"button",onClick:a[3]||(a[3]=n=>me("updatedAt"))},[a[9]||(a[9]=e.createTextVNode(" 更新时间 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${ve("updatedAt")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[8]||(a[8]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[11]||(a[11]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--size"},"大小",-1)),a[12]||(a[12]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--action"},"操作",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:H,class:"chat-my-files-artifacts__body"},[B.value?(e.openBlock(),e.createElementBlock("div",Nt,[e.createVNode(pe,{"group-head":"",blocks:2,rows:3}),a[13]||(a[13]=e.createElementVNode("p",{class:"chat-my-files-artifacts__sr-only",role:"status"},"正在加载 AI 产物",-1))])):D.value?(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:1,class:"chat-my-files-artifacts__state",tone:"error",variant:"error",title:"产物加载失败",description:D.value,"action-text":"重新加载",onAction:Ce},null,8,["description"])):C.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:2,class:"chat-my-files-artifacts__state",variant:P.value?"search":"files",title:Le.value,description:De.value,"action-text":Re.value,onAction:Pe},null,8,["variant","title","description","action-text"])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce.value,n=>(e.openBlock(),e.createElementBlock("section",{key:n.id,class:"chat-my-files-artifacts__group"},[e.createElementVNode("button",{class:"chat-my-files-artifacts__group-head",type:"button","aria-expanded":!f.value.has(n.id),onClick:o=>ze(n.id)},[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:e.normalizeClass(["chat-my-files-artifacts__chevron",{"is-open":!f.value.has(n.id)}]),src:e.unref(l.chevronDownIcon),alt:""},null,10,Ct),e.createElementVNode("span",At,e.toDisplayString(n.name),1),e.createElementVNode("em",Tt,e.toDisplayString(n.taskCount)+"个任务",1)],8,bt),e.createElementVNode("div",{class:e.normalizeClass(["chat-my-files-artifacts__group-body",{"is-collapsed":f.value.has(n.id)}]),inert:f.value.has(n.id)||void 0},[e.createElementVNode("div",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sessions,(o,s)=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"chat-my-files-artifacts__task",style:e.normalizeStyle({"--mf-stagger":s})},[e.createElementVNode("div",St,[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:"chat-my-files-artifacts__spark",src:e.unref(l.sparkIcon),alt:""},null,8,Ft),e.createElementVNode("span",{title:o.title},e.toDisplayString(o.title),9,It)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.files,i=>(e.openBlock(),e.createBlock(rt,{key:e.unref(l.artifactRowKey)(o.id,i.id),file:i,selected:m.value.has(e.unref(l.artifactRowKey)(o.id,i.id)),"show-owner":ee.value,"actions-disabled":c.actionsDisabled,onToggle:v=>Oe(e.unref(l.artifactRowKey)(o.id,i.id)),onOpen:v=>He(e.unref(l.artifactRowKey)(o.id,i.id),i),onAction:v=>Ze(e.unref(l.artifactRowKey)(o.id,i.id),v)},null,8,["file","selected","show-owner","actions-disabled","onToggle","onOpen","onAction"]))),128)),c.cloud&&o.hasMore?(e.openBlock(),e.createElementBlock("button",{key:0,class:"chat-my-files-artifacts__more",type:"button","data-testid":"artifact-file-more",disabled:F.value.has(o.id),"aria-busy":F.value.has(o.id),onClick:i=>Ae(o.id)},e.toDisplayString(F.value.has(o.id)?"加载中":be(o)),9,Mt)):e.createCommentVNode("",!0)],4))),128))])],10,Bt)]))),128)),c.cloud&&Q.value&&!B.value?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"sentinelRef",ref:K,class:e.normalizeClass(["chat-my-files-artifacts__sentinel",{"is-loading":b.value}])},[e.createElementVNode("div",xt,[b.value?(e.openBlock(),e.createBlock(pe,{key:0,blocks:1,rows:1})):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),e.createElementVNode("p",Lt,e.toDisplayString(b.value?"正在加载更多 AI 产物":""),1),c.cloud&&Q.value&&!B.value&&xe.value?(e.openBlock(),e.createElementBlock("button",{key:4,class:"chat-my-files-artifacts__sessions-more",type:"button","data-testid":"artifact-session-more",disabled:w.value&&!V.value,"aria-busy":b.value,onClick:Me},e.toDisplayString(b.value?"加载中":z.value?"重新加载":V.value?"显示更多任务":"加载更多会话"),9,Dt)):e.createCommentVNode("",!0)],512)]),e.createVNode(l._sfc_main$1,{count:j.value,onClear:te,onAddTask:We},null,8,["count"]),x.value?(e.openBlock(),e.createBlock(l.ChatArtifactPreview,{key:x.value.id,file:x.value,cloud:c.cloud,"actions-disabled":c.actionsDisabled,onClose:a[4]||(a[4]=n=>x.value=null),onAction:Ke},null,8,["file","cloud","actions-disabled"])):e.createCommentVNode("",!0),e.createVNode(l.ChatFilePickerDialog,{source:e.unref(ke),open:e.unref(ye),mode:"target",title:e.unref(we),busy:e.unref(ge),"onUpdate:open":e.unref(Ne),onConfirm:e.unref(Ee)},null,8,["source","open","title","busy","onUpdate:open","onConfirm"])])],2))}}),Pt=l._export_sfc($t,[["__scopeId","data-v-13517c8c"]]);exports.default=Pt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ke, computed as _, openBlock as i, createElementBlock as u, normalizeClass as B, createElementVNode as s, createVNode as S, withModifiers as $e, toDisplayString as k, createCommentVNode as b, unref as v, withCtx as ye, Fragment as Y, renderList as J, normalizeStyle as Q, ref as f, watch as he, onMounted as It, onUnmounted as Mt, withDirectives as St, vModelText as Lt, createTextVNode as Re, createBlock as q } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
|
-
import { u as xt, c as Et, a as Ze, A as Nt, b as $t, d as Rt, e as Bt, f as Dt, C as Pt, g as Ot, h as Ut, _ as we, i as Ht, j as zt, k as Gt, l as Kt, m as Vt, n as Zt, K as Wt, o as Be, p as R, q as De, r as jt, s as qt, t as Pe, v as Qt, w as Yt, x as Jt, y as Xt, z as ea, B as ta, D as Oe, E as pe, F as aa, G as sa, H as na, I as la, J as Ue, L as ge, M as He, N as ze, O as Ge, P as oa, Q as ia } from "./index-
|
|
3
|
+
import { u as xt, c as Et, a as Ze, A as Nt, b as $t, d as Rt, e as Bt, f as Dt, C as Pt, g as Ot, h as Ut, _ as we, i as Ht, j as zt, k as Gt, l as Kt, m as Vt, n as Zt, K as Wt, o as Be, p as R, q as De, r as jt, s as qt, t as Pe, v as Qt, w as Yt, x as Jt, y as Xt, z as ea, B as ta, D as Oe, E as pe, F as aa, G as sa, H as na, I as la, J as Ue, L as ge, M as He, N as ze, O as Ge, P as oa, Q as ia } from "./index-qh7CZhyQ.js";
|
|
4
4
|
const ra = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2024.0%2024.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M2000,0%20L2000,4212%20L0,4212%20L0,0%20L2000,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-157.0%20-2549.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(145.0%202545.0)'%3e%3cg%20transform='translate(12.0%204.0)'%3e%3cg%20transform='translate(24.0%2024.0)%20rotate(90.0)%20scale(-1.0%201.0)'%3e%3cg%20transform='translate(17.5%209.5)%20rotate(90.00000000000001)'%3e%3cpath%20d='M0,0%20L5,5%20L0,10'%20stroke='currentColor'%20stroke-width='1.8'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", ca = { class: "chat-artifact-row__lead" }, ua = { class: "chat-artifact-row__name" }, da = ["title"], fa = { class: "chat-artifact-row__meta" }, va = { class: "chat-artifact-row__cell chat-artifact-row__cell--kind" }, _a = ["title"], ma = { class: "chat-artifact-row__cell chat-artifact-row__cell--time" }, ha = { class: "chat-artifact-row__cell chat-artifact-row__cell--size" }, pa = /* @__PURE__ */ ke({
|
|
5
5
|
name: "ChatArtifactFileRow",
|
|
6
6
|
__name: "ChatArtifactFileRow",
|
|
@@ -59,13 +59,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
59
59
|
}>, {
|
|
60
60
|
showDownload: boolean;
|
|
61
61
|
showClose: boolean;
|
|
62
|
+
zoomPercent: number | null;
|
|
62
63
|
currentPage: number;
|
|
63
64
|
numPages: number | null;
|
|
64
65
|
sidebarOpen: boolean;
|
|
65
66
|
showPageNav: boolean;
|
|
66
67
|
canZoom: boolean;
|
|
67
68
|
canRotate: boolean;
|
|
68
|
-
zoomPercent: number | null;
|
|
69
69
|
showSidebarToggle: boolean;
|
|
70
70
|
showScreenshotAsk: boolean;
|
|
71
71
|
showFullscreen: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocViewerToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocViewerToolbar.vue"],"names":[],"mappings":"AAqUA,KAAK,WAAW,GAAG;IACf,0GAA0G;IAC1G,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAoaJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAlbG,OAAO;eAIV,OAAO;
|
|
1
|
+
{"version":3,"file":"DocViewerToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/document-viewer/DocViewerToolbar.vue"],"names":[],"mappings":"AAqUA,KAAK,WAAW,GAAG;IACf,0GAA0G;IAC1G,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAoaJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAlbG,OAAO;eAIV,OAAO;iBAVL,MAAM,GAAG,IAAI;iBALb,MAAM;cACT,MAAM,GAAG,IAAI;iBAFV,OAAO;iBAGP,OAAO;aACX,OAAO;eACL,OAAO;uBAGC,OAAO;uBAEP,OAAO;oBAIV,OAAO;6EAob1B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesDirectory.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesDirectory.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesDirectory.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesDirectory.vue"],"names":[],"mappings":"AA4oDA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAexD,OAAO,qBAAqB,CAAA;AAC5B,OAAO,yBAAyB,CAAA;AAwChC,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AA4B7D,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,qBAAqB,CAAA;IAC/B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAChD,wCAAwC;IACxC,aAAa,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjE,CAAC;AAwuDF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -17,7 +17,14 @@ type __VLS_Props = {
|
|
|
17
17
|
name: string;
|
|
18
18
|
}[];
|
|
19
19
|
selectedId?: string;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* 是否渲染标题(文件夹图标 + 名称)。
|
|
22
|
+
*
|
|
23
|
+
* 默认 `false`:面包屑最后一级已经是当前文件夹名,标题是重复的。关闭后这一行
|
|
24
|
+
* 不删除,退化成面包屑行右端的操作区,`#head-actions` 与「快速添加」照常可用。
|
|
25
|
+
*/
|
|
26
|
+
showHead?: boolean;
|
|
27
|
+
/** 是否渲染右上角「快速添加」。默认 `false`,需要这个入口的宿主显式打开。 */
|
|
21
28
|
showQuickAdd?: boolean;
|
|
22
29
|
/** 传入后替换「快速添加」菜单。不传时用「我的文件」默认项。 */
|
|
23
30
|
quickAddItems?: readonly UiDropdownMenuItem[];
|
|
@@ -92,7 +99,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
92
99
|
"onSelection-change"?: ((rows: MyFilesFileRow[]) => any) | undefined;
|
|
93
100
|
"onSelection-clear"?: (() => any) | undefined;
|
|
94
101
|
onQuickAdd?: ((id: string) => any) | undefined;
|
|
95
|
-
}>, {
|
|
102
|
+
}>, {
|
|
103
|
+
showHead: boolean;
|
|
104
|
+
showQuickAdd: boolean;
|
|
105
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
96
106
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
97
107
|
declare const _default: typeof __VLS_export;
|
|
98
108
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesFolder.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesFolder.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesFolder.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesFolder.vue"],"names":[],"mappings":"AA2YA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAI7F;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,EAAE,YAAY,CAAA;IACpB,oCAAoC;IACpC,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,kCAAkC;IAClC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,aAAa,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IAC7C,iCAAiC;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,SAAS,kBAAkB,EAAE,CAAA;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC9B,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,OAAO,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACvC,2BAA2B;IAC3B,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAA;IAChD,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAsbJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,QAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAY,CAAE;AACjI,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAClD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;aAvaW,cAAc;gBAAU,MAAM;;;;gBAE5B,UAAU,GAAG,QAAQ;cAAQ,cAAc,EAAE;;;;;;;;;;;;aAF/C,cAAc;gBAAU,MAAM;;;;gBAE5B,UAAU,GAAG,QAAQ;cAAQ,cAAc,EAAE;;;;;;;;;;cAhD3D,OAAO;kBAEH,OAAO;6EAudxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatScheduledTasks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/schedule/ChatScheduledTasks.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatScheduledTasks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/schedule/ChatScheduledTasks.vue"],"names":[],"mappings":"AAmjCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGlD,OAAO,EAA+B,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEjG,OAAO,EAGL,KAAK,uBAAuB,EAK5B,KAAK,gBAAgB,EAEtB,MAAM,uBAAuB,CAAA;AAI9B,KAAK,WAAW,GAAG;IACf,qCAAqC;IACrC,GAAG,CAAC,EAAE,qBAAqB,CAAA;IAC3B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAA;IAClC,gCAAgC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IACjC,mBAAmB;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;CACzF,CAAC;AA2KJ,iBAAe,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAerC;AAqOD,iBAAS,SAAS,IAAI,IAAI,CAEzB;AAED,iBAAS,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAG/C;AA4uBD,QAAA,MAAM,YAAY;;;;;;;;;;;;;YAzpCL,uBAAuB,EAAE;SAF5B,qBAAqB;6EAgqC7B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduledTaskWire.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/schedule/scheduledTaskWire.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAE3B,MAAM,uBAAuB,CAAA;AA4B9B,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,KAAK,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,YAAY,CAAC,EAAE;QAAE,eAAe,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC5C,aAAa,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IACxC,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAA;QACd,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;AAED,4BAA4B;AAC5B,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAC/B,CAAA;CACF;AA6BD,+BAA+B;AAC/B,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGjD;AAYD,6BAA6B;AAC7B,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAczE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC,EACjE,GAAG,SAAa,GACf,MAAM,CAYR;AA2CD,2DAA2D;AAC3D,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,GAAG,SAAa,GACf,kBAAkB,CA4BpB;AAED,kDAAkD;AAClD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,GAAG,SAAa,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWzB;
|
|
1
|
+
{"version":3,"file":"scheduledTaskWire.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/schedule/scheduledTaskWire.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAE3B,MAAM,uBAAuB,CAAA;AA4B9B,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,KAAK,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,YAAY,CAAC,EAAE;QAAE,eAAe,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC5C,aAAa,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IACxC,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAA;QACd,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;AAED,4BAA4B;AAC5B,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAC/B,CAAA;CACF;AA6BD,+BAA+B;AAC/B,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGjD;AAYD,6BAA6B;AAC7B,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAczE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC,EACjE,GAAG,SAAa,GACf,MAAM,CAYR;AA2CD,2DAA2D;AAC3D,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,GAAG,SAAa,GACf,kBAAkB,CA4BpB;AAED,kDAAkD;AAClD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,GAAG,SAAa,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWzB;AAiFD,wCAAwC;AACxC,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,SAAS,CAiD3F;AAED,yDAAyD;AACzD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,qBAAqB,CAe5E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,qBAAqB,CAaxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaImageLightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/MediaImageLightbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MediaImageLightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/MediaImageLightbox.vue"],"names":[],"mappings":"AAoqBA,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAC;AA2pBF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as ye, U as zt } from "./index-
|
|
1
|
+
import { T as ye, U as zt } from "./index-qh7CZhyQ.js";
|
|
2
2
|
function Rt(l) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Mt=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Mt=require("./index-CdNPCEAx.cjs");function Rt(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ne={exports:{}};/*!
|
|
2
2
|
|
|
3
3
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
4
4
|
<http://stuartk.com/jszip>
|