PageSourceSearch

https://www.007icu.top/assets/identities-Ld1uyXi7.js

js 007icu.top collected 2026-10-09 04:36:31 UTC 6,673 bytes, 1 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{Fn as u,X as d,to as ee,vo as f}from"./ScrollArea-CdDxdn_v.js";import{Ia as p,fa as te,n as m}from"./es-D7HWafs1.js";import{et as h,hn as g,lp as _,ro as ne,xg as re}from"../vendor/vendor-icons-BXJMWD35.js";import{_ as ie,n as v,r as ae}from"./base-ui-Bi3Dz7GG.js";import{i as oe,n as se}from"./global-DfKpeTkj.js";import{i as y,t as b}from"./userMemory-Cq2-UQHy.js";import{n as ce,t as le}from"./WideScreenContainer-DRafIDbQ.js";import{n as ue,t as de}from"./AsyncBoundary-DPrmGZrq.js";import{o as x,t as S}from"./useQueryParam-B9PLc6wW.js";import{n as fe,t as pe}from"./NavHeader-DeWZ4kV0.js";import{n as me,t as he}from"./WideScreenButton-BNrW0ufK.js";import{a as ge,c as _e,i as ve,l as ye,n as be,o as xe,s as Se,t as Ce}from"./useScrollParent-Bu3F7Ppx.js";import{A as we,C as Te,D as Ee,E as De,M as Oe,N as ke,O as Ae,S as C,T as je,_ as Me,a as Ne,b as Pe,c as Fe,d as Ie,f as Le,g as Re,h as ze,i as Be,j as Ve,k as He,l as Ue,m as We,n as Ge,o as Ke,p as qe,r as Je,s as w,t as Ye,u as Xe,v as Ze,w as Qe,x as $e,y as et}from"./TimeLineCard-BeVkQJV_.js";var T,E,D,O=e((()=>{m(),v(),h(),T=t(c()),n(),b(),E=t(o()),D=(0,T.memo)(({id:e,size:t=`small`})=>{let{t:n}=r([`memory`,`common`]),i=y(e=>e.identities),a=y(e=>e.deleteIdentity),o=y(e=>e.setEditingMemory),s=t=>{if(t.domEvent.stopPropagation(),t.key===`edit`){let t=i.find(t=>t.id===e);t&&o(e,t.description||``,`identity`)}else t.key===`delete`&&ie({cancelText:n(`cancel`,{ns:`common`}),content:n(`identity.list.deleteContent`),okButtonProps:{danger:!0},okText:n(`delete`,{ns:`common`}),onOk:async()=>{await a(e)},title:n(`identity.list.confirmDelete`)})};return(0,E.jsx)(d,{items:[{icon:(0,E.jsx)(ne,{size:14}),key:`edit`,label:n(`edit`,{ns:`common`}),onClick:s},{danger:!0,icon:(0,E.jsx)(g,{size:14}),key:`delete`,label:n(`delete`,{ns:`common`}),onClick:s}],children:(0,E.jsx)(p,{icon:_,size:t})})})})),k,A,j,tt=e((()=>{m(),k=t(c()),ue(),s(),S(),je(),Te(),$e(),et(),Me(),ze(),qe(),b(),i(),O(),A=t(o()),j=(0,k.memo)(()=>{let[e]=x(`identityId`,{clearOnDefault:!0}),{data:t,isLoading:n,error:r,mutate:i}=y(e=>e.useFetchMemoryDetail)(e,a.Identity);if(!e)return null;let o=t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Qe,{cate:t.type}),(0,A.jsx)(u,{as:`h1`,fontSize:20,weight:`bold`,style:{lineHeight:1.4,marginBottom:0},children:t.title}),(0,A.jsx)(Le,{capturedAt:t.capturedAt||t.updatedAt||t.createdAt}),t.description&&(0,A.jsx)(We,{children:t.description}),(0,A.jsx)(Re,{hashTags:t.tags})]});return(0,A.jsx)(Ze,{header:{right:e?(0,A.jsx)(D,{id:e,size:l}):void 0},children:(0,A.jsx)(de,{data:t,empty:(0,A.jsx)(Pe,{}),error:r,errorVariant:`page`,isEmpty:!t,isLoading:n,loading:(0,A.jsx)(C,{}),onRetry:()=>i(),children:o})})})})),M,N,P,nt=e((()=>{M=t(c()),Ue(),O(),N=t(o()),P=(0,M.memo)(({identity:e,onClick:t})=>(0,N.jsx)(Fe,{actions:(0,N.jsx)(D,{id:e.id}),cate:e.type,hashTags:e.tags,title:e.title,titleAddon:e.role?.toLowerCase(),onClick:()=>t?.(e),children:e.description}))})),F,I,L,rt=e((()=>{F=t(c()),b(),Ie(),nt(),I=t(o()),L=(0,F.memo)(({identities:e,isLoading:t,onClick:n})=>{let r=y(e=>e.loadMoreIdentities);return(0,I.jsx)(Xe,{hasMore:y(e=>e.identitiesHasMore),isLoading:t,items:e,renderItem:e=>(0,I.jsx)(P,{identity:e,onClick:()=>n?.(e)}),onLoadMore:r})})})),R,z,B,it=e((()=>{R=t(c()),Ge(),O(),z=t(o()),B=(0,R.memo)(({identity:e,onClick:t})=>(0,z.jsx)(Ye,{actions:(0,z.jsx)(D,{id:e.id}),capturedAt:e.capturedAt||e.updatedAt||e.createdAt,cate:e.type,hashTags:e.tags,title:e.title,titleAddon:e.role?.toLowerCase(),onClick:()=>t?.(e),children:e.description}))})),V,H,U,at=e((()=>{V=t(c()),b(),w(),Ne(),it(),H=t(o()),U=(0,V.memo)(({identities:e,isLoading:t,onClick:n})=>{let r=y(e=>e.loadMoreIdentities);return(0,H.jsx)(Ke,{data:e,groupBy:`month`,hasMore:y(e=>e.identitiesHasMore),isLoading:t,renderHeader:e=>(0,H.jsx)(Je,{groupBy:`month`,periodKey:e}),getDateForGrouping:e=>e.episodicDate||e.capturedAt||e.createdAt,renderItem:e=>(0,H.jsx)(Be,{children:(0,H.jsx)(B,{identity:e,onClick:()=>n?.(e)})}),onLoadMore:r})})})),W,G,K,ot=e((()=>{W=t(c()),n(),S(),ye(),se(),b(),ge(),rt(),at(),G=t(o()),K=(0,W.memo)(({isLoading:e,searchValue:t,viewMode:n})=>{let{t:i}
1=r([`memory`,`common`]),[,a]=x(`identityId`,{clearOnDefault:!0}),o=oe(e=>e.toggleRightPanel),s=y(e=>e.identities),c=e=>{a(e.id),o(!0)};return!s||s.length===0?(0,G.jsx)(ve,{search:!!t,title:i(`identity.empty`),children:(0,G.jsx)(_e,{})}):n===`timeline`?(0,G.jsx)(U,{identities:s,isLoading:e,onClick:c}):(0,G.jsx)(L,{identities:s,isLoading:e,onClick:c})})})),q,J,Y,st=e((()=>{v(),q=t(c()),n(),J=t(o()),Y=(0,q.memo)(({typeValue:e,onTypeChange:t})=>{let{t:n}=r(`memory`);return(0,J.jsx)(ae,{activeKey:e,items:[{key:`all`,label:n(`identity.filter.type.all`)},{key:`personal`,label:n(`identity.filter.type.personal`)},{key:`professional`,label:n(`identity.filter.type.professional`)},{key:`demographic`,label:n(`identity.filter.type.demographic`)}],onChange:e=>t(e)})})})),X,Z,Q,$;e((()=>{m(),h(),X=t(c()),fe(),ce(),me(),S(),Se(),Ve(),b(),ke(),He(),be(),Ee(),tt(),ot(),st(),Z=t(o()),Q=(0,X.memo)(()=>{let[e,t]=(0,X.useState)(`timeline`),[n,r]=x(`q`,{clearOnDefault:!0}),[i,a]=x(`type`,{clearOnDefault:!0}),o=n||``,s=i||`all`,c=y(e=>e.identitiesPage),l=y(e=>e.identitiesInit),u=y(e=>e.identitiesTotal),d=y(e=>e.identitiesSearchLoading),p=y(e=>e.useFetchIdentities),m=y(e=>e.resetIdentitiesList);(0,X.useEffect)(()=>{m({q:o||void 0,types:s===`all`?void 0:[s]})},[o,s]);let{isLoading:h}=p({page:c,pageSize:12,q:o||void 0,types:s===`all`?void 0:[s]}),g=(0,X.useCallback)(e=>{r(e||null)},[r]),_=(0,X.useCallback)(e=>{a(e===`all`?null:e)},[a]);return(0,Z.jsxs)(f,{flex:1,height:`100%`,children:[(0,Z.jsx)(pe,{left:!!u&&(0,Z.jsx)(te,{icon:(0,Z.jsx)(ee,{icon:re}),children:u}),right:(0,Z.jsxs)(xe,{showAnalysis:!0,showPurge:!0,children:[(0,Z.jsx)(De,{value:e,onChange:t}),(0,Z.jsx)(he,{})]})}),(0,Z.jsx)(f,{height:`100%`,id:Ce,style:{overflowY:`auto`,paddingBottom:`16vh`},width:`100%`,children:(0,Z.jsxs)(le,{gap:32,paddingBlock:48,children:[(0,Z.jsxs)(f,{horizontal:!0,align:`center`,gap:12,justify:`space-between`,children:[(0,Z.jsx)(Y,{typeValue:s,onTypeChange:_}),(0,Z.jsx)(we,{searchValue:o,onSearch:g})]}),d||!l?(0,Z.jsx)(Ae,{viewMode:e}):(0,Z.jsx)(K,{isLoading:h,searchValue:o,viewMode:e})]})})]})}),$=()=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(f,{horizontal:!0,height:`100%`,width:`100%`,children:[(0,Z.jsx)(Q,{}),(0,Z.jsx)(j,{})]}),(0,Z.jsx)(Oe,{})]})}))();export{$ 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.