1import{u as m,j as s,q as u,a as f}from"./@themenu-design-system-DYRiRzlM.js";import{u as c,M as p}from"./@react-intl-ByT5Dd3Q.js";import{fq as g,fe as b,fI as y,fp as h,ad as x}from"./index-CEOZadzw.js";import{C as d}from"./index-6Fq1twWh.js";import{u as D,D as j}from"./DirectoryDetailModal-BYbJYkrp.js";import{a as C}from"./@analytics-DQmwd0WL.js";import"./@react-aria-stately-BjYSCrfq.js";import"./@libphonenumber-js-CKk4m8Ay.js";import"./@luxon-DfZoh-A_.js";import"./@utils-B5fX3Hvq.js";import"./@swiper-B92D2qE2.js";import"./useCardOverlayLabel-kKMDVOvo.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b27367b8-4b49-42b8-8447-89e8f2b05cdc",e._sentryDebugIdIdentifier="sentry-dbid-b27367b8-4b49-42b8-8447-89e8f2b05cdc")}catch{}const M=({elements:e})=>{const{handleCloseModal:o,selectedDirectory:n,onClickOnElement:i}=D(),{colors:r}=m(),{formatMessage:a}=c();return s.jsxs("div",{className:"flex flex-col gap-32",children:[e.map(t=>s.jsxs("div",{children:[t.kind==="document"&&s.jsx(d,{date:t.updatedAt,title:g(t.filename),color:r.content.info,icon:"file",labelKey:"mypages.document",document:t,headingLevel:"h3"},t.id),t.kind==="directory"&&s.jsx(d,{date:t.updatedAt,color:r.content.info,icon:"folder",labelKey:"mypages.folder",onClick:()=>i(t),title:t.name,headingLevel:"h3",children:s.jsx(u,{startIcon:"file",colorSet:"info",label:a({id:"mypages.see_more_files"},{count:t.documents.length}),className:"mt-8"})})]},t.id)),n&&s.jsx(j,{modalVisible:!0,onClose:o,directory:n})]})},I=e=>{const o={};return e.reduce((n,{directory:i,id:r,...a})=>{const t={id:r,kind:"document",directory:i,...a};if(!i)return n.concat(t);if(o[i.id])return o[i.id].push(t),n;o[i.id]=[t];const l={...i,documents:o[i.id],kind:"directory"};return n.concat(l)},[])},k=e=>C.useMemo(()=>I(e),[e]),v=()=>{const{page:{id:e}}=b(),{data:o=[],isLoading:n}=y({pageId:e});return{elements:k(o),isLoading:n}},G=()=>{const{elements:e,isLoading:o}=v(),{formatMessage:n}=c();return s.jsxs("div",{children:[s.jsx(h,{title:n({id:"mypages.documents.title"})}),s.jsx(f,{variant:"h3",component:"h1",className:"mb-20",children:s.jsx(p,{id:"mypages.documents.title"})}),o?s.jsx(x,{}):s.jsx(M,{elements:e})]})};export{G 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.