1"use strict";(self.webpackChunkdefi_insight_react=self.webpackChunkdefi_insight_react||[]).push([[748],{70748:(e,t,o)=>{o.r(t),o.d(t,{default:()=>F});var r,n,a,s,i,l,c=o(32416),d=o(25038),k=o(90500),u=o(12333),h=o(74687),m=o(73335);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},v.apply(this,arguments)}function p(e,t){let{title:o,titleId:c,...k}=e;return d.createElement("svg",v({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":c},k),o?d.createElement("title",{id:c},o):null,r||(r=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66699 2.5H9.33366V5.16668H14.3337V7.83335H1.66699V5.16668H6.66699V2.5Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),n||(n=d.createElement("path",{d:"M2.66699 13.8623H13.3337V7.8623H2.66699V13.8623Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinejoin:"round"})),a||(a=d.createElement("path",{d:"M5.3335 13.828V11.8335",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=d.createElement("path",{d:"M8 13.8281V11.8281",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),i||(i=d.createElement("path",{d:"M10.667 13.828V11.8335",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=d.createElement("path",{d:"M4 13.8623H12",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})))}const _=d.forwardRef(p);o.p;var j=o(73084),x=o(67812),f=o(58150),g=o(21048),C=o(97319),b=o(13791),B=o(25523),w=o(27542),L=o(91280),M=o(79970),V=o(76287),y=o(70117),E=o(28708);const N={container:"Bookmark_container__3uRWw",main:"Bookmark_main__AkkFd",header:"Bookmark_header__DZASh",desc:"Bookmark_desc__F6IVT",clearBtn:"Bookmark_clearBtn__8gpk4",clearModal:"Bookmark_clearModal__Rm0lD"};var H=o(39615);const W=()=>{const{t:e}=(0,k.$G)(),{address:t}=(0,C.yI)(),o=(0,h.TH)(),{refetch:r,totalCount:n,result:a,hasNextPage:s,isFetchingNextPage:i,fetchNextPage:l,isLoading:c}=(0,L.C1)({address:t}),{mutate:v}=(0,M.D)({mutationFn:()=>E.WY.post("/bookmark/clear"),onSuccess(){V.Z.success("Cleard"),y.Eh.invalidateQueries({queryKey:["/bookmark/list"]})}}),p=(0,d.useMemo)((()=>null===a||void 0===a?void 0:a.filter((e=>!e.article.is_withdrawn&&e.article.is_bookmarked))),[a]),W=(n||0)-(((null===a||void 0===a?void 0:a.length)||0)-((null===p||void 0===p?void 0:p.length)||0)),F=(0,d.useMemo)((()=>!(null!==p&&void 0!==p&&p.length)),[p]);(0,u.useDidRecover)(r);const R=(0,d.useCallback)((()=>{s&&!i&&l()}),[l,s,i]),O=(0,d.useCallback)((async()=>{await f.Modal.confirm({modalClassName:N.clearModal,title:"".concat(e("Bookmark_Container.ep7jvv"),"?"),content:e("Bookmark_Container.hto7oc"),confirmBtnText:e("MessageContainer.12tbn1")}),v()}),[v,e]);return(0,d.useEffect)((()=>{"/bookmarks"===o.pathname&&B.K.report({category:"View Bookmark",action:"Bookmark_".concat((0,b.Xb)())})}),[o.pathname]),(0,H.jsxs)("div",{className:N.container,children:[(0,H.jsxs)("div",{className:N.main,children:[(0,H.jsxs)("div",{className:N.header,children:[(0,H.jsx)("div",{className:N.desc,children:e("StreamTab.sax62v")}),W?(0,H.jsx)(x.Z,{title:e("Bookmark_Container.ep7jvv"),children:(0,H.jsx)(_,{className:N.clearBtn,onClick:O})}):null]}),(0,H.jsxs)("div",{className:N.list,children:[null!==p&&void 0!==p&&p.length?(0,H.jsx)(m.OO,{useWindowScroll:!0,data:p,overscan:10,endReached:R,itemContent:(e,t)=>(0,H.jsx)(w.FeedListItem,{feed:t,showMenu:!0,enableReadFeedback:!1,openDetailInSelf:!0})}):null,c||i?(0,H.jsx)(w.LoadingSkeleton,{}):F?(0,H.jsx)(j.HC,{content:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{children:e("Bookmark_Container.x7h192")}),(0,H.jsx)("div",{children:e("Bookmark_Container.1pqsw7y")})]})}):null]})]}),(0,H.jsx)(g.P,{})]})},F=()=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(c.c,{titlePrefix:"Bookmarks"}),(0,H.jsx)(W,{})]})}}]); 2//# sourceMappingURL=748.d3a6b4dc.chunk.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.