1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5403],{34320:function(t,o,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/mybookmarks",function(){return e(43972)}])},83297:function(t,o,e){"use strict";var s=e(85893),n=e(41664),i=e.n(n),r=e(2698),a=e.n(r),l=function(t){var o=t.size,e=void 0===o?20:o;return(0,s.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"rgba(0,0,0,0.8)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),(0,s.jsx)("polyline",{points:"12 19 5 12 12 5"})]})},u=function(){var t;return(0,s.jsx)("div",{className:a().backBar,children:(0,s.jsx)(i(),{href:(t=window.sessionStorage.getItem("community_page"))&&t.startsWith("/community/")&&t!==window.location.pathname?t:"/community/study-abroad",children:(0,s.jsxs)("a",{className:a().backLink,children:[(0,s.jsx)(l,{size:20}),(0,s.jsx)("span",{children:"Back to Community"})]})})})};o.Z=u},8323:function(t,o,e){"use strict";var s=e(85893);e(67294);var n=e(59550),i=e.n(n),r=function(t){var o=t.heading,e=t.description,n=t.btnText,r=t.clickHandler;return(0,s.jsxs)("div",{className:i().emptyState,children:[(0,s.jsx)("div",{className:i().imageWrapper,children:(0,s.jsx)("img",{src:"".concat("https://images.leverageedu.com","/landing-pages-new/community/emptyStateImg.png"),alt:"empty state image leverage edu"})}),(0,s.jsx)("h3",{className:i().heading,children:o}),(0,s.jsx)("p",{className:i().desc,children:e}),(0,s.jsx)("button",{onClick:r,className:i().button,children:n})]})};o.Z=r},81087:function(t,o,e){"use strict";var s=e(85893);e(67294),o.Z=function(t){var o=t.errorContent,e=t.errorCode;return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"card_main",children:(0,s.jsx)("div",{className:"card_content",children:e?({posts:"Failed to Load Posts",comment:"Failed to Load Commented Posts",mypost:"Failed to Load Your Posts",bookmark:"Failed to Load Bookmarked Posts",communityPost:"Failed to Load Community Posts",post:"Failed to Load requested post",hashtags:"Failed to Load hashtags",hashtag:"Failed to load posts for requested hashtag"})[e]:o})})})}},43972:function(t,o,e){"use strict";e.r(o);var s=e(47568),n=e(26042),i=e(69396),r=e(29815),a=e(97582),l=e(85893),u=e(12713),c=e(27561),d=e(91548),m=e(67775),p=e(73285),h=e(1950),f=e(33463),v=e(14007),g=e(67294),_=e(11163),k=e(61923),x=e(27387),y=e(70148),j=e(37360),b=e(81087),w=e(96486),N=e.n(w),Z=e(81458),C=e(7975),S=e(83297),B=e(9008),F=e.n(B),L=e(8323),P=e(86769);o.default=function(){var t,o,e,w=(0,_.useRouter)(),B=(0,g.useState)({posts:[],error:null}),E=B[0],A=B[1],T=(0,g.useState)({hashtags:[]}),q=(T[0],T[1]),M=(0,g.useState)(0),O=M[0],W=M[1],D=(0,g.useState)(1),H=D[0],I=D[1],Q=(0,g.useState)(!0),R=Q[0],X=Q[1],z=(0,g.useState)(!0),K=z[0],U=z[1],Y=(0,g.useState)(!1),J=Y[0],G=Y[1],V=(0,g.useState)(!1),$=V[0],tt=V[1],to=(0,g.useState)(0),te=to[0],ts=to[1],tn=(0,g.useCallback)(function(){ts(function(t){return t+1})},[]),ti=x.D.getUserActivityPosts;(0,k.Pl)()||w.push("/community");var tr,ta={mycomments:"comments",myposts:"posts",mybookmarks:"bookmarks"},tl=w.asPath.split("/")[2],tu=(tr=(0,s.Z)(function(){var t,o,e;return(0,a.__generator)(this,function(s){switch(s.label){case 0:return U(!0),[4,ti(H+1,10,ta[tl])];case 1:return o=s.sent(),I(function(t){return t+1}),(null==o?void 0:null===(t=o.posts)||void 0===t?void 0:t.length)>0?((null==o?void 0:null===(e=o.posts)||void 0===e?void 0:e.length)<10&&X(!1),A({posts:(0,r.Z)(null==E?void 0:E.posts).concat((0,r.Z)(null==o?void 0:o.posts))})):N().isEmpty(null==o?void 0:o.posts)?(y.Am.info("No more posts to load"),X(!1)):(null==o?void 0:o.error)&&y.Am.error("Failed to load bookmarked posts"),U(!1),[2]}})}),function(){return tr.apply(this,arguments)}),tc=function(t){A(function(o){return(0,i.Z)((0,n.Z)({},o),{posts:o.posts.filter(function(o){return o.community_post_id!==t})})}),G(function(t){return!t})};(0,g.useEffect)(function(){var t;(t=(0,s.Z)(function(){var t,o,e;return(0,a.__generator)(this,function(s){switch(s.label){case 0:return window.scrollTo(0,0),U(!0),[4,ti(H,10,ta[tl])];case 1:return(null==(o=s.sent())?void 0:null===(t=o.posts)||void 0===t?void 0:t.length)>0?((null==o?void 0:null===(e=o.posts)||void 0===e?void 0:e.length)<10&&X(!1),A({posts:(0,r.Z)(null==o?void 0:o.posts)})):N().isEmpty(null==o?void 0:o.posts)?(A({posts:[],error:null}),y.Am.info("No Bookmarked posts Available"),X(!1)):(null==o?void 0:o.error)&&(A({error:null==o?void 0:o.error}),y.Am.error("Failed to load bookmarked posts")),U(!1),[2]}})}),function(){return t.apply(this,arguments)})()},[]),(0,g.useEffect)(function(){var t,o=x.wF.getCommunityHashtags;(t=(0,s.Z)(function(){var t,e,s,r;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,o()];case 1:return s=(null==(e=a.sent())?void 0:null===(t=e.hashtags)||void 0===t?void 0:t.map(function(t){return t||null}))||[],q((0,i.Z)((0,n.Z)({},e),{hashtags:s})),[3,3];case 2:return r=a.sent(),console.error("Failed to fetch hashtags:",r),q
1({hashtags:[],error:"Failed to fetch hashtags"}),[3,3];case 3:return[2]}})}),function(){return t.apply(this,arguments)})()},[]),(0,g.useEffect)(function(){window.sessionStorage.setItem("community_page",w.asPath)},[]);var td=function(t){A({posts:E.posts.filter(function(o){return o.community_post_id!==t})})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(F(),{children:[(0,l.jsx)("title",{children:"My Bookmarks"}),(0,l.jsx)("meta",{name:"google-site-verification",content:"5KuBa5fyn1e_N5_LJpqq0uDtx_4QMm3qFT1rbhhSTM0"})]}),(0,l.jsx)(c.default,{onMobileProfileClick:function(){return tt(!0)},onLogout:function(){return window.location.reload()}}),(0,l.jsx)(h.Z,{isOpen:$,onClose:function(){return tt(!1)}}),(0,l.jsx)("section",{className:"community_main_section",style:{backgroundColor:"rgba(0,0,0,0.04)",padding:"16px 0px 40px"},children:(0,l.jsx)("div",{className:"container",children:(0,l.jsxs)("div",{className:"row custom-margin",children:[(0,l.jsx)("div",{className:"col-lg-3 custom-padding",children:(0,l.jsx)(u.Z,{setBookmarkCount:W,bookmarkCount:O,refreshCountFlag:J})}),(0,l.jsxs)("div",{className:"col-lg-6 custom-padding",children:[(0,l.jsx)(S.Z,{}),K&&((null==E?void 0:null===(t=E.posts)||void 0===t?void 0:t.length)?(0,l.jsx)("div",{style:{marginBottom:"10px"},children:(0,l.jsx)(Z.Z,{})}):(0,l.jsx)(P.Z,{count:3})),(null==E?void 0:null===(o=E.posts)||void 0===o?void 0:o.length)||K?(0,l.jsxs)("div",{children:[E.posts.map(function(t,o){return(0,l.jsx)("div",{style:{marginBottom:"16px"},children:(0,l.jsx)(f.Z,{post:t,setBookmarkCount:W,onBookmarkRemove:td,refreshPosts:tc})},o)}),R&&(null==E?void 0:null===(e=E.posts)||void 0===e?void 0:e.length)>5?(0,l.jsx)("span",{onClick:function(){return tu(H)},children:(0,l.jsx)(j.Z,{type:"load",btnName:K?"Loading...":"Load More"})}):""]}):(0,l.jsx)(L.Z,{heading:"No bookmark found",description:"Bookmark your favourite post",btnText:"Add a bookmark",clickHandler:function(){window.ga("send","event","button","click","le_web_community_empty_posts"),window.open("/community/study-abroad/","_self")}}),(null==E?void 0:E.error)&&(0,l.jsx)(b.Z,{errorCode:"bookmark"})]}),(0,l.jsx)("div",{className:"col-lg-3 custom-padding",children:(0,l.jsxs)("div",{className:"community_product_card",children:[(0,l.jsx)(v.Z,{authRefreshKey:te,onAuthSuccess:tn}),(0,l.jsx)(C.Z,{})]})})]})})}),(0,l.jsx)(d.default,{}),(0,l.jsx)(m.default,{}),(0,l.jsx)(p.default,{})]})}},2698:function(t){t.exports={backBar:"BackToCommunity_backBar__YQQ8t",backLink:"BackToCommunity_backLink__3pOq9"}},59550:function(t){t.exports={emptyState:"empty_state_emptyState__lAfjS",imageWrapper:"empty_state_imageWrapper__j1ksf",heading:"empty_state_heading__OUe3u",desc:"empty_state_desc__1p06F",button:"empty_state_button__jXEDm"}}},function(t){t.O(0,[3662,4738,9669,7555,1664,1177,8512,5675,6748,7379,129,4546,8184,8427,3884,7561,146,3285,7402,7387,7570,5814,9774,2888,179],function(){return t(t.s=34320)}),_N_E=t.O()}]);
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.