1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2347],{8312:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>j,default:()=>x});var o=t(37876),a=t(14232),n=t(54587),l=t.n(n),s=t(15039),i=t.n(s),u=t(31777),c=t(41300),d=t(40782),k=t(66141);let _=function(e){let{data:r}=e;return null==r?void 0:r.map((e,r)=>(0,o.jsx)(c.A,{item:null==e?void 0:e.resource,resourceData:e,courseId:null==e?void 0:e.courseId,isBookMark:"isBookMark"},"".concat(null==e?void 0:e.courseId,"_").concat(r)))};var p=t(36454),v=t(48500),m=t(64686),h=t(95141),g=t(89363),f=t(71136),b=t.n(f);let w=function(){var e;let[r,t]=a.useState([]),n=a.useRef(),[s,f]=a.useState(1),w=(0,v.A)(),j=a.useRef(null),x=(0,p.ZF)(),y=(0,u.d4)(e=>e.auth.isAuthenticated),[M,B]=a.useState(1),[E,N]=a.useState(!0),[S,A]=a.useState(!1),[W,C]=a.useState(!1),T=async()=>{var e,r,o,a,n;let l=await m.Pc.get("/app-content-ws/v1/api/bookmark/getall/coursecontent?src=web&pageNumber=".concat(M)),s=await (null==l||null==(e=l.data)?void 0:e.data);if((null==s||null==(r=s.data)?void 0:r.length)>0){let e=null==s||null==(a=s.data)?void 0:a.map(e=>{var r,t;return{...e,resource:{...e.resource,contentType:(null==e||null==(r=e.resource)?void 0:r.elementContentType)===3&&"VIDEO"||(null==e||null==(t=e.resource)?void 0:t.elementContentType)===1&&"TEXT"},isBookMark:!0}}).filter(e=>e.resource.contentType);f(Math.round(null==s?void 0:s.totalPage)),1===M?t(e):t(r=>[...r,...e]);try{let r=sessionStorage.getItem("sourceScreen_Array").split(",");x("bookmark_landed",{screen_name:r[(null==r?void 0:r.length)-2]||w,bookmark_count:(null==e?void 0:e.length)>0?null==e?void 0:e.length:0})}catch(e){}}else try{let e=sessionStorage.getItem("sourceScreen_Array").split(",");x("bookmark_landed",{screen_name:e[(null==e?void 0:e.length)-2]||w,bookmark_count:0})}catch(e){}N(!1),null==(o=sessionStorage)||o.getItem("sourceURL"),null==(n=sessionStorage)||n.setItem("sourceURL","bookmark")};a.useEffect(()=>{y?M<=s?T():N(!1):(B(1),t([]))},[M,y]);let I=async()=>{try{let e=document.getElementById("bookMarksWrapper");e.scrollTop+e.clientHeight+1>=e.scrollHeight&&(N(!0),B(e=>e+1))}catch(e){}};return(a.useEffect(()=>{let e=document.getElementById("bookMarksWrapper");if(e)return e.addEventListener("scroll",I),()=>{e.removeEventListener("scroll",I),t([])}},[y]),a.useEffect(()=>{{let e=null==j?void 0:j.current,r=()=>{C(!0)};return e&&(A((null==e?void 0:e.scrollHeight)>(null==e?void 0:e.clientHeight)),null==e||e.addEventListener("scroll",r)),()=>{null==e||e.removeEventListener("scroll",r)}}},[null==j?void 0:j.current]),a.useEffect(()=>{var e;null==(e=sessionStorage)||e.setItem("backButtonRoute","/bookmarks")},[]),y)?(0,o.jsxs)("div",{className:b().wrapper,children:[(0,o.jsx)("aside",{ref:n,className:i()(b().sidebar),children:(0,o.jsx)(d.default,{})}),(0,o.jsxs)("div",{className:b().moduleWrapper,children:[(0,o.jsx)("div",{className:b().headerContainer,children:(0,o.jsx)("div",{className:b().titleWrapper,children:(0,o.jsx)("span",{className:b().purchaseTitle})})}),!E&&(null==r?void 0:r.length)===0&&(0,o.jsx)(g.A,{title:"You havenât bookmarked any content yet!",children:(0,o.jsx)("p",{children:"You can bookmark your favourite videos/PDFâs"})}),(0,o.jsxs)("div",{className:b().cards,id:"bookMarksWrapper",ref:j,children:[S&&!W&&(null==r?void 0:r.length)>=7&&(0,o.jsx)("div",{className:b().arrowWrapper,children:(0,o.jsx)("div",{className:b().innerArrowContainer,children:(0,o.jsx)(l(),{unoptimized:!0,src:h.A,alt:"DownArrow"})})}),(null==r?void 0:r.length)>0&&(0,o.jsx)(_,{data:r}),E&&(e=[...Array(20)],e.map((e,r)=>(0,o.jsx)(c.A,{skeleton:2},r)))]})]})]}):(0,o.jsx)(k.default,{})};var j=!0;let x=()=>(0,o.jsx)(w,{})},26329:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/bookmarks",function(){return t(8312)}])},71136:e=>{e.exports={wrapper:"BookMarks_wrapper__I9T9C",sidebar:"BookMarks_sidebar__78nmf",contentWrapper:"BookMarks_contentWrapper__Cy5sX",moduleWrapper:"BookMarks_moduleWrapper__1j4uV",headerContainer:"BookMarks_headerContainer__rtykk",title:"BookMarks_title__2X57J",titleWrapper:"BookMarks_titleWrapper__Y0SY3",purchaseTitle:"BookMarks_purchaseTitle__f3flN",cards:"BookMarks_cards__zLg6C",arrowWrapper:"BookMarks_arrowWrapper__8ks0o",innerArrowContainer:"BookMarks_innerArrowContainer__SRKjA","skeleton-loading":"BookMarks_skeleton-loading__uOhbw"}}},e=>{var r=r=>e(e.s=r);e.O(0,[4223,6593,831,1869,4134,636,5611,8792],()=>r(26329)),_N_E=e.O()}]); 2//# sourceMappingURL=bookmarks-627b97f97fe86ec5.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.