1import{r as s,j as t}from"./react-vendor.B75MsAI9.js";import{u as i,t as e,p as o,R as r,O as l,U as a,V as n,W as m}from"./AuthModalContainer.CwDh3qj_.js";import{u as d}from"./RTLProvider.Dbr8G8Qw.js";import{B as j}from"./Block.DxpdHCJY.js";import{P as p}from"./PageHeader.DyETjqw4.js";import{R as c}from"./ReadingLists.B5hCGlC1.js";import h from"./index.CF5LknzA.js";import"./main.Bj0Ml4GZ.js";import"./LazyFontLoader.pvie9HdJ.js";import"./ReadingListCard.D-LWH4X3.js";const f=()=>{const f=i(),x=e(),g=d(),[u,L]=s.useState(!1),[b,v]=s.useState(null),C=o(s=>s.user),R=o(s=>s.viewport),{isFetchingLists:y,lists:E,isLoggedIn:w,profile:P}=C,I=()=>{L(!1),v(null)};s.useEffect(()=>{w&&x(r())},[x,w]);const O=[{title:f("global.home"),href:l.home(),isInternal:!0},{title:f("global.my-lists")}];return y||!E?t.jsx(a,{}):y||E?t.jsxs("div",{children:[t.jsx(n,{children:t.jsx("title",{children:`${f("global.my-lists")} - ${f("global.site-title")}`})}),t.jsx(p,{title:f("global.my-lists"),breadcrumbPaths:O}),t.jsx(j,{children:t.jsx("div",{style:{maxWidth:"800px",margin:"0 auto"},children:t.jsx(c,{lists:E,showDescription:!0,menuOpt:!0,profile:P,viewport:R,handleOptionsClick:(s,t,i)=>{const e=s.split("-")[0];"DELETE"===t&&(v(e),L(!0))}})})}),u&&t.jsx(h,{text:f("global.list-del-confirm"),onConfirm:()=>{b&&x(m({listId:b})).then(()=>{x(r())}),I()},onClose:I,viewport:R,isRtl:g})]}):t.jsx(j,{children:t.jsx("h1",{children:"Error fetching Lists"})})};export{f as default}; 2//# sourceMappingURL=index.CYmijwEa.js.map
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.