1import{m as e,u as t,ab as s,x as a,r as o,o as l,w as i,a2 as n,p as r,A as u,h as c,e as d,b as p,d as v,t as m,y as f,c as h,B as g,j as w,F as A,k as y,l as b,g as x,aw as I,_ as C,bJ as j,G as S,aG as E,af as k,aK as D,z as U,f as M,ag as G,aQ as H}from"./index-6328e560.js";import{_ as F}from"./clock_icon-91fb8b96.js";import{_ as K}from"./btn_star-5cb90471.js";import{a as R,g as V}from"./liteApps-919c82c9.js";import{P as T}from"./PointsDisplay-a17d0ea8.js";import{w as B}from"./withholdingPoints-175d4abc.js";import{_ as P,a as Q}from"./empty_history-eaf71a96.js";import{_ as N}from"./history_close-5fbe00c8.js";import{_ as q}from"./liteAppDel-24f97938.js";import{E as O,D as J}from"./EditSessionNameModal-0365a34b.js";import{D as _}from"./DelLiteAppHisModal-31f047f4.js";import"./index-d17a5b6b.js";import"./higherOrderFunction-b982c070.js";const L={class:"history-drawer-content h-[100vh]"},X={class:"w-full h-full flex flex-col"},Y={class:"title-box flex justify-between items-center"},z={class:"title-box-left flex w-fit"},W={class:"history-list flex-1 overflow-y-auto pr-2"},Z={key:0,class:"flex justify-center items-center h-full"},$={class:"flex flex-col justify-center items-center"},ee={class:"empty-txt"},te={class:"create-date"},se=["onMouseenter"],ae=["onClick"],oe={class:"lite-app-history-content flex items-center"},le={class:"lite-app-history-content-title single-line-ellipsis"},ie=["onClick"],ne=C(e({__name:"HistoryDrawer",props:{showHistoryDrawer:{type:Boolean,required:!0},appInfo:{type:Object,default:()=>{}}},emits:["update:show"],setup(e,{emit:C}){const{uuid:j,agentBotId:S,agentBotSessionId:E,needRequest:k}=t().params,D=s(),U=(a((()=>D.getAgentSessionListByAgentId(S))),e),M=o({}),G=o(!1),H=o(!1),F=o(!1),K=o([]);function V(){var e,t;(null==(e=U.appInfo)?void 0:e.liteAppId)&&R({liteAppId:null==(t=U.appInfo)?void 0:t.liteAppId}).then((e=>{if(e.data.length>0){const t=e.data;K.value=function(e){e.forEach((e=>{e.createDate=new Date(1e3*e.createTime).toISOString().split("T")[0]}));const t=e.reduce(((e,t)=>{const s=t.createDate;return e[s]||(e[s]=[]),e[s].push(t),e}),{});for(const s in t)t[s].sort(((e,t)=>t.createTime-e.createTime));return Object.keys(t).sort(((e,t)=>new Date(t)-new Date(e))).map((e=>t[e]))}(t)}}))}l((()=>{V()})),i((()=>U.showHistoryDrawer),(e=>{e&&V()}));const T=C;function B(){T("update:show")}n();const ne=r();return(e,t)=>(p(),u(d(I),{class:"nice-drawer",onMaskClick:B,show:U.showHistoryDrawer,placement:"right"},{default:c((()=>[v("div",L,[v("div",X,[v("div",Y,[v("div",z,[t[4]||(t[4]=v("img",{src:P},null,-1)),v("span",null,m(d(f)("popup.History")),1)]),v("img",{onClick:t[0]||(t[0]=t=>e.$emit("update:show")),class:"close-icon cursor-pointer",src:N})]),v("div",W,[0===K.value.length?(p(),h("div",Z,[v("div",$,[t[5]||(t[5]=v("img",{class:"empty-icon",src:Q},null,-1)),v("div",ee,m(e.$t("multiModelChat.noHistory")),1)])])):g("",!0),K.value.length>0?(p(!0),h(A,{key:1},w(K.value,(e=>{var t;return p(),h("div",{key:1e4*Math.random()+"dateGroupItem",class:"flex flex-col justify-between"},[v("div",te,m(null==(t=null==e?void 0:e[0])?void 0:t.createDate),1),(p(!0),h(A,null,w(e,(e=>(p(),h("div",{key:e.recordId,onMouseenter:t=>M.value=e,class:y([[e.isAct?"session-item-act":""],"session-item justify-between items-center hover:bg-[#F7F8FB]"])},[v("div",{onClick:t=>{return s=e,void ne.push({name:"MindMapGenerate",params:{recordId:null==s?void 0:s.recordId}});var s},class:"lite-app-history-card flex items-center"},[v("div",oe,[v("div",le,m(null==e?void 0:e.chatTitle),1)]),v("img",{onClick:b((t=>{return s=e,M.value=s,void(F.value=!0);var s}),["stop"]),class:"lite-app-del",src:q,alt:""},null,8,ie)],8,ae)],42,se)))),128))])})),128)):g("",!0)])])]),x(O,{onReload:V,dotsCurrentSessionItem:M.value,showEditName:G.value,"onUpdate:show":t[1]||(t[1]=e=>G.value=!1)},null,8,["dotsCurrentSessionItem","showEditName"]),x(J,{onReload:V,dotsCurrentSessionItem:M.value,showEditName:H.value,"onUpdate:show":t[2]||(t[2]=e=>H.value=!1)},null,8,["dotsCurrentSessionItem","showEditName"]),x(_,{onReload:V,dotsCurrentSessionItem:M.value,show:F.value,"onUpdate:show":t[3]||(t[3]=e=>F.value=!1)},null,8,["dotsCurrentSessionItem","show"])])),_:1},8,["show"]))}}),[["__scopeId","data-v-516a6a3f"]]),re={class:"app-mindMap"},ue={class:"flex items-center justify-between top-tool-box"},ce={key:0,class:"flex items-center"},de={class:"content-box"},pe={class:"title-box"},ve={class:"t-1"},me={class:"t-3"},fe={class:"mind-desc"},he=["placeholder"],ge={class:"flex items-center"},we={class:"sub-btn-icon-txt"},Ae={class:"btn-txt"},ye=C(e({__name:"index",setup(e){const t=o(""),s=r();function a(){s.push({path:"/studio/index"})}const i=j(),n=o(null),u=o(null);l((()=>{i.liteAppsList>0||V("text").then((e=>{i.updateSetting({liteAppsList:e.data}),u.value=i.liteAppsList.find((e=>"mindMap"===e.liteAppType)),u.value&&(n.value=u.value.consumePoints)}))})),l((()=>{u.value=i.liteAppsList.find((e=>"mindMap"===e.liteAppType)),u.value&&(n.value=u.value.consumePoints)}));const c=S(),w=E(),A=k();const y=o(!1);function b(){y.value=!y.value}return(e,o)=>{var l;return p(),h("div",re,[x(ne,{appInfo:u.value,"onUpdate:show":o[0]||(o[0]=e=>y.value=!1),"show-history-drawer":y.value,"onUpdate:showHistoryDrawer":o[1]||(o[1]=e=>y.value=e)}
1,null,8,["appInfo","show-history-drawer"]),v("div",ue,[v("div",{onClick:a,class:"cursor-pointer flex items-center pl-[15px] pr-[15px] back-btn"},[o[4]||(o[4]=v("img",{class:"back_icon",src:D},null,-1)),v("div",null,m(d(f)("liteApp.Mindmap")),1)]),d(w)?(p(),h("div",ce,[x(T,{"show-type":"base"}),v("div",{onClick:b,class:"history-records-btn"},o[5]||(o[5]=[v("img",{src:F},null,-1)]))])):g("",!0)]),v("div",de,[v("div",pe,[v("div",ve,m(d(f)("Mindmap.t1"))+", ",1),o[6]||(o[6]=v("div",{class:"t-2"},[U("AI "),v("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA7hJREFUWEftl19O20AQxr+xSXErkIIKEo/uCQiFSjySExROAD1BA6FSEUEYEUql8iecAG4QOAHhrRKkyQ0Kb6ggNVLVEpXYU9aBiCT22nGcRkjsq2dnfzM78+2Y8MgWPTJePAF3+sa6muGoNqFHtXLprFQs+Q20q8AvX4xNKRZ2VETiF+WvZ36guwo8rMX0CtTvBJxBVaYvf58UvaC7CizgBnvHfoIQtUGJ566uv2UaoUXpRPB3UoWV6z7w8/ECmGP3kEScYQvnTDSiEGJsQa8GRKtX5VOj68BD2tg+AzPyUqDcVfk0bl+CV80E+f4pyTNk4ngxQ56NNNg7ngDxjts5or5VmPGLctH2FTrw+gKvMCOR2qIBP8EOamNHACadbBthQwU2DI5GfmGHgdlbgFxqi+wrlK1B7fXKbc4MNxtFwfSPP/mDh99DyfDGR9bNCrJgVJuHcZjapql2YO1sqspoo9S1Dbz+gWOwkGVArwES5lKb1CRP99+HIm9irFoFrxsgKO8uyyf7oWVYNJcFCLCqjt4tJsSXNynnBDSsTegmbkTdwoKSI/A5wTq7wbNcDyqzAK/c7yPC7uV1PlEHnJ7nBAhvQShC6J+CotmHomGQ9H2/ay7H+qv0Y8Btv3jdNA2u84N4rsnEnq29hMOr63xdadklkU6ySHujFgrgogiEGccglEQgwv5BczklseRXIdxKQgRlQrVv4bKcf9VUEkaCoz0qhEHtxZHUlwikrgQabH0phFf92nMGqdm+XjP+cJqrNd1GgnVLxVFd83h5dfjOwO7yFtXVXQA3rlvqVGI9wTGuZlqWQfn5HgrRLnyTrK3P8ywT9oI6lilEUJ+esra2wAYxavLSykGkYHTpC3nOta349ASWKIfnOeL9v+nHqJcsejpyMXB96YRyRFQUAjZhKErhxCx9moVymCrEE9p6ExIyqU2aC5pJt32es0Q6yRz4UMZcatt9pgjiVwosBhu27AwHXmGrhhR4LclTBGQD01Y3ltQIRhc/e/99+DlHDtyGvDVIUWjKIS+JJIs5120QLzFhWoCRhRgTdCKM3A3xTU1KwMHSFtn27SwpcHqBC7W/iAenCK1VTMTdfjKFJKo9iDUGQozM0jatdg7YSSEIuUoF00ZGPi87QYlAguzz9dI5KUSnJzE/mXctiSaF6PAU5gfW7hc3w7UkZwh4L2RJNJfbP5rfg8KycwVOL/ARMXRZc4UF0YofaYZNE0a7TdIKjB9bz1nCj5P/afME3OlsP2X4KcMNGfgHkaVhrAdyry0AAAAASUVORK5CYII=",alt:""})],-1)),v("div",me,m(d(f)("Mindmap.t2")),1)]),v("div",fe,m(d(f)("Mindmap.t3")),1),M(v("textarea",{"onUpdate:modelValue":o[2]||(o[2]=e=>t.value=e),class:"block bg-[#ffffff] w-full p-3 resize-none rounded-lg border border-blue-500 outline-blue-500 focus:ring-blue-500 focus:border-blue-500 focus:outline-blue-500 hover:border-blue-500 active:border-blue-500 active:outline-blue-500 transition duration-300 ease-in-out",placeholder:d(f)("Mindmap.placeholder")}," \t\t\t",8,he),[[G,t.value]]),v("div",{onClick:o[3]||(o[3]=e=>function(){var e,a,o,l;if("guest"===c.loginType)return void A.setShowLoginDialog(!0);if(!u.value.consumePoints)return;B(null==(e=u.value)?void 0:e.liteAppSense,null==(a=u.value)?void 0:a.consumePoints,null==(o=u.value)?void 0:o.modelOwner,null==(l=u.value)?void 0:l.groupConsumePoints)&&(0!==t.value.trim().length?(i.updateSetting({formData:{appInfo:u.value,textContent:t.value}}),s.push({path:"/mindMapGenerate"})):$message.warning("Describe what you want to generate"))}()),class:"sub-btn flex justify-center items-center cursor-pointer"},[v("div",ge,[o[7]||(o[7]=v("img",{class:"sub-btn-icon",src:K,alt:""},null,-1)),v("span",we,m(d(H)()?null==(l=u.value)?void 0:l.groupConsumePoints:n.value),1)]),v("div",Ae,m(d(f)("niceImg.Generate")),1)])])])}}}),[["__scopeId","data-v-8af5345b"]]);export{ye as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.