PageSourceSearch

https://www.007icu.top/assets/experiences-Br9ihQ9B.js

js 007icu.top collected 2026-10-09 04:36:35 UTC 8,567 bytes, 14 lines download raw bytes

1import{n as e,o as t}from"./rolldown-runtime-CMxvf4Kt.js";import{F as n,L as r}from"../vendor/vendor-data-runtime-nLFaCKB0.js";import{Tn as i,jn as a}from"../vendor/vendor-ai-runtime-DrDK77gy.js";import{Ao as o,ca as s,jo as c,ra as l}from"./app-const-BzFqCjOv.js";import{Do as u,Fn as d,X as f,bo as p,to as ee,vo as m,wo as h}from"./ScrollArea-CdDxdn_v.js";import{Ia as g,Sa as _,fa as te,n as v}from"./es-D7HWafs1.js";import{k as y,n as b}from"./es-D3_QMuVV.js";import{et as x,hn as ne,lp as re,ro as ie,xg as ae}from"../vendor/vendor-icons-BXJMWD35.js";import{_ as oe,n as se}from"./base-ui-Bi3Dz7GG.js";import{i as ce,n as le}from"./global-DfKpeTkj.js";import{i as S,t as C}from"./userMemory-Cq2-UQHy.js";import{n as ue,t as de}from"./WideScreenContainer-DRafIDbQ.js";import{n as fe,t as pe}from"./AsyncBoundary-DPrmGZrq.js";import{o as w,t as T}from"./useQueryParam-B9PLc6wW.js";import{n as me,t as he}from"./NavHeader-DeWZ4kV0.js";import{n as ge,t as _e}from"./WideScreenButton-BNrW0ufK.js";import{a as ve,c as ye,i as be,l as xe,n as Se,o as Ce,s as we,t as Te}from"./useScrollParent-Bu3F7Ppx.js";import{A as Ee,C as De,D as Oe,E as ke,M as Ae,N as je,O as Me,S as Ne,T as Pe,_ as Fe,a as Ie,b as Le,c as Re,d as ze,f as Be,g as Ve,h as He,i as Ue,j as We,k as Ge,l as Ke,m as E,n as qe,o as Je,p as Ye,r as Xe,s as Ze,t as Qe,u as $e,v as et,w as tt,x as nt,y as rt}from"./TimeLineCard-BeVkQJV_.js";import{n as it,t as at}from"./SourceLink-M5w-ORYA.js";import{n as D,t as O}from"./ProgressIcon-CZ0LoHfZ.js";var k,A,j,M=e((()=>{v(),se(),x(),k=t(c()),n(),C(),A=t(o()),j=(0,k.memo)(({id:e,size:t=`small`})=>{let{t:n}=r([`memory`,`common`]),i=S(e=>e.experiences),a=S(e=>e.deleteExperience),o=S(e=>e.setEditingMemory),s=t=>{if(t.domEvent.stopPropagation(),t.key===`edit`){let t=i.find(t=>t.id===e);t&&o(e,t.keyLearning||``,`experience`)}else t.key===`delete`&&oe({cancelText:n(`cancel`,{ns:`common`}),content:n(`experience.deleteConfirm`),okButtonProps:{danger:!0},okText:n(`confirm`,{ns:`common`}),onOk:async()=>{await a(e)},title:n(`experience.deleteTitle`)})};return(0,A.jsx)(f,{items:[{icon:(0,A.jsx)(ie,{size:14}),key:`edit`,label:n(`experience.actions.edit`),onClick:s},{danger:!0,icon:(0,A.jsx)(ne,{size:14}),key:`delete`,label:n(`experience.actions.delete`),onClick:s}],children:(0,A.jsx)(g,{icon:re,size:t})})})})),N,P,F,I,ot=e((()=>{v(),b(),p(),N=t(c()),n(),fe(),s(),T(),Pe(),De(),nt(),rt(),Fe(),He(),D(),it(),Ye(),C(),i(),M(),P=t(o()),F=h(({css:e,cssVar:t})=>({content:e`
2    font-size: 14px;
3    line-height: 1.8;
4    color: ${t.colorText};
5    white-space: pre-wrap;
6  `,stepsContainer:e`
7    .ant-steps-item-content {
8      min-height: auto;
9    }
10
11    .ant-steps-item-description {
12      padding-block-end: 16px !important;
13    }
14  `})),I=(0,N.memo)(()=>{let{t:e}=r(`memory`),[t]=w(`experienceId`,{clearOnDefault:!0}),{data:n,isLoading:i,error:o,mutate:s}=S(e=>e.useFetchMemoryDetail)(t,a.Experience);if(!t)return null;let c=n&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(tt,{cate:n.type}),(0,P.jsx)(d,{as:`h1`,fontSize:20,weight:`bold`,style:{lineHeight:1.4,marginBottom:0},children:n.title}),(0,P.jsx)(m,{horizontal:!0,align:`center`,gap:16,justify:`space-between`,children:(0,P.jsx)(O,{showInfo:!0,format:t=>`${e(`filter.sort.scoreConfidence`)}: ${t}%`,percent:(n.scoreConfidence??0)*100})}),(0,P.jsxs)(m,{horizontal:!0,align:`center`,gap:16,justify:`space-between`,children:[(0,P.jsx)(at,{source:n.source}),(0,P.jsx)(Be,{capturedAt:n.capturedAt||n.updatedAt||n.createdAt})]}),n.keyLearning&&(0,P.jsx)(E,{children:n.keyLearning}),(0,P.jsx)(y,{className:F.stepsContainer,current:null,direction:`vertical`,size:`small`,items:[{description:(0,P.jsx)(E,{children:n.situation}),icon:(0,P.jsx)(_,{shadow:!0,avatar:`S`,shape:`square`,size:24,style:{border:`1px solid ${u.colorBorderSecondary}`}}),title:(0,P.jsx)(d,{as:`h4`,fontSize:12,type:`secondary`,weight:500,children:e(`experience.steps.situation`)})},{description:(0,P.jsx)(E,{children:n.reasoning}),icon:(0,P.jsx)(_,{shadow:!0,avatar:`T`,shape:`square`,size:24,style:{border:`1px solid ${u.colorBorderSecondary}`}}),title:(0,P.jsx)(d,{as:`h4`,fontSize:12,type:`secondary`,weight:500,children:e(`experience.steps.task`)})},{description:(0,P.jsx)(E,{children:n.action}),icon:(0,P.jsx)(_,{shadow:!0,avatar:`A`,shape:`square`,size:24,style:{border:`1px solid ${u.colorBorderSecondary}`}}),title:(0,P.jsx)(d,{as:`h4`,fontSize:12,type:`secondary`,weight:500,children:e(`experience.steps.action`)})},{description:(0,P.jsx)(E,{children:n.possibleOutcome}),icon:(0,P.jsx)(_,{shadow:!0,avatar:`R`,shape:`square`,size:24,style:{border:`1px solid ${u.colorBorderSecondary}`}}),title:(0,P.jsx)(d,{as:`h4`,fontSize:12,type:`secondary`,weight:500,children:e(`experience.steps.result`)})}]}),(0,P.jsx)(Ve,{hashTags:n.tags})]});return(0,P.jsx)(et,{header:{right:t?(0,P.jsx)(j,{id:t,size:l}):void 0},children:(0,P.jsx)(pe,{data:n,empty:(0,P.jsx)(Le,{}),error:o,errorVariant:`page`,isEmpty:!n,isLoading:i,loading:(0,P.jsx)(Ne,{}),onRetry:()=>s(),children:c})})})})),L,R,z,st=e((()=>{L=t(c()),n(),Ke(),D(),M(),R=t(o()),z=(0,L.memo)(({experience:e,onClick:t})=>{let{t:n}=r(`memory`);return(0,R.jsx)(Re,{actions:(0,R.jsx)(j,{id:e.id}),capturedAt:e.capturedAt||e.updatedAt||e.createdAt,cate:e.type,title:e.title,badges:(0,R.jsx)(O,{format:e=>`${n(`filter.sort.scoreConfidence`)}: ${e}%`,percent:(e.scoreConfidence??0)*100}),onClick:()=>t(e),children:e.keyLearning||e.situation})})})),B,V,H,ct=e((()=>{B=t(c()),C(),ze(),st(),V=t(o()),H=(0,B.memo)(({experiences:e,isLoading:t,onClick:n})=>{let r=S(e=>e.loadMoreExperiences);return(0,V.jsx)($e,{hasMore:S(e=>e.experiencesHasMore),isLoading:t,items:e,renderItem:e=>(0,V.jsx)(z,{experience:e,onClick:()=>n(e)}),onLoadMore:r})})})),U,W,G,lt=e((()=>{U=t(c()),qe(),M(),W=t(o()),G=(0,U.memo)(({experience:e,onClick:t})=>(0,W.jsx)(Qe,{actions:(0,W.jsx)(j,{id:e.id}),capturedAt:e.capturedAt||e.updatedAt||e.createdAt,cate:e.type,hashTags:e.tags,title:e.title,onClick:()=>t(e),children:e.keyLearning||e.situation}))}
14)),K,q,J,ut=e((()=>{K=t(c()),C(),Ze(),Ie(),lt(),q=t(o()),J=(0,K.memo)(({experiences:e,isLoading:t,onCardClick:n})=>{let r=S(e=>e.loadMoreExperiences);return(0,q.jsx)(Je,{data:e,groupBy:`day`,hasMore:S(e=>e.experiencesHasMore),isLoading:t,renderHeader:e=>(0,q.jsx)(Xe,{groupBy:`day`,periodKey:e}),renderItem:e=>(0,q.jsx)(Ue,{children:(0,q.jsx)(G,{experience:e,onClick:n})}),onLoadMore:r})})})),Y,X,Z,dt=e((()=>{Y=t(c()),n(),T(),xe(),ve(),le(),C(),ct(),ut(),X=t(o()),Z=(0,Y.memo)(({isLoading:e,searchValue:t,viewMode:n})=>{let{t:i}=r([`memory`,`common`]),[,a]=w(`experienceId`,{clearOnDefault:!0}),o=ce(e=>e.toggleRightPanel),s=S(e=>e.experiences),c=e=>{a(e.id),o(!0)};return s.length===0?(0,X.jsx)(be,{search:!!t,title:i(`experience.empty`),children:(0,X.jsx)(ye,{})}):n===`timeline`?(0,X.jsx)(J,{experiences:s,isLoading:e,onCardClick:c}):(0,X.jsx)(H,{experiences:s,isLoading:e,onClick:c})})})),Q,$,ft,pt;e((()=>{v(),x(),Q=t(c()),n(),me(),ue(),ge(),T(),we(),Se(),C(),je(),We(),Ge(),Oe(),ot(),dt(),$=t(o()),ft=(0,Q.memo)(()=>{let{t:e}=r(`memory`),[t,n]=(0,Q.useState)(`timeline`),[i,a]=w(`q`,{clearOnDefault:!0}),[o,s]=w(`sort`,{clearOnDefault:!0}),c=i||``,l=o===`scoreConfidence`?`scoreConfidence`:`capturedAt`,u=S(e=>e.experiencesPage),d=S(e=>e.experiencesInit),f=S(e=>e.experiencesTotal),p=S(e=>e.experiencesSearchLoading),h=S(e=>e.useFetchExperiences),g=S(e=>e.resetExperiencesList),_=[{label:e(`filter.sort.createdAt`),value:`capturedAt`},{label:e(`filter.sort.scoreConfidence`),value:`scoreConfidence`}],v=l===`capturedAt`?void 0:l;(0,Q.useEffect)(()=>{v&&g({q:c||void 0,sort:t===`grid`?v:void 0})},[c,v,t]);let{isLoading:y}=h({page:u,pageSize:12,q:c||void 0,sort:t===`grid`?v:void 0}),b=(0,Q.useCallback)(e=>{a(e||null)},[a]),x=(0,Q.useCallback)(e=>{s(e)},[s]);return(0,$.jsxs)(m,{flex:1,height:`100%`,children:[(0,$.jsx)(he,{left:!!f&&(0,$.jsx)(te,{icon:(0,$.jsx)(ee,{icon:ae}),children:f}),right:(0,$.jsxs)(Ce,{showAnalysis:!0,showPurge:!0,children:[(0,$.jsx)(ke,{value:t,onChange:n}),(0,$.jsx)(_e,{})]})}),(0,$.jsx)(m,{height:`100%`,id:Te,style:{overflowY:`auto`,paddingBottom:`16vh`},width:`100%`,children:(0,$.jsxs)(de,{gap:32,paddingBlock:48,children:[(0,$.jsx)(Ee,{searchValue:c,sortOptions:t===`grid`?_:void 0,sortValue:l,onSearch:b,onSortChange:t===`grid`?x:void 0}),p||!d?(0,$.jsx)(Me,{viewMode:t}):(0,$.jsx)(Z,{isLoading:y,searchValue:c,viewMode:t})]})})]})}),pt=()=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(m,{horizontal:!0,height:`100%`,width:`100%`,children:[(0,$.jsx)(ft,{}),(0,$.jsx)(I,{})]}),(0,$.jsx)(Ae,{})]})}))();export{pt 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.