1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4705],{46617:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/saved",function(){return s(54342)}])},53917:e=>{e.exports=function(e,t,s){var n,r,i,l,a,o,u,c,d,f=["img","br"],x=[],g=0,p="",h='([\\w|-]+\\s*(=\\s*"[^"]*")?\\s*)*',v="\\s*\\/?\\s*",b=RegExp("<\\/?\\w+\\s*"+h+"\\s*\\/\\s*>"),w=RegExp("<\\/?\\w+\\s*"+h+v+">"),m=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w\-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g,_=RegExp("<img\\s*"+h+v+">"),j=RegExp("\\W+","g"),k=!0;function E(e,n){var r,i,l=t-g,a=l,o=l<s.slop,u=o?l:s.slop-1,c=o?0:l-s.slop,d=n||l+s.slop;if(!s.truncateLastWord){if(r=e.slice(c,d),n&&r.length<=n)a=r.length;else for(;null!==(i=j.exec(r));)if(i.index<u){if(a=l-(u-i.index),0===i.index&&l<=1)break}else if(i.index===u){a=l;break}else{a=l+(i.index-u);break}e.charAt(a-1).match(/\s$/)&&a--}return a}for((s=s||{}).ellipsis=void 0!==s.ellipsis?s.ellipsis:"...",s.truncateLastWord=void 0===s.truncateLastWord||s.truncateLastWord,s.slop=void 0!==s.slop?s.slop:10>t?t:10;k;){if(!(k=w.exec(e))){if(g>=t)break;if(!(k=m.exec(e))||k.index>=t){p+=e.substring(0,E(e));break}for(;k;)o=k[0],u=k.index,p+=e.substring(0,u+o.length-g),e=e.substring(u+o.length),k=m.exec(e);break}if(o=k[0],u=k.index,g+u>t){p+=e.substring(0,E(e,u));break}g+=u,p+=e.substring(0,u),"/"===o[1]?(x.pop(),d=null):(d=b.exec(o))||(c=function(e){var t=e.indexOf(" ");if(-1===t&&-1===(t=e.indexOf(">")))throw Error("HTML tag is not well-formed : "+e);return e.substring(1,t)}(o),x.push(c)),d?p+=d[0]:p+=o,e=e.substring(u+o.length)}return e.length>t-g&&s.ellipsis&&(p+=s.ellipsis),p+=(n="",x.reverse().forEach(function(e,t){-1===f.indexOf(e)&&(n+="</"+e+">")}),n),s.keepImageTag||(r=p,p=(a=_.exec(r))?(i=a.index,l=a[0].length,r.substring(0,i)+r.substring(i+l)):r),p}},54342:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>d,default:()=>f});var n=s(37876),r=s(14232),i=s(96145),l=s(84768),a=s(81220);function o(e){let{savedPosts:t=[]}=e,[s,o]=(0,r.useState)(t),[u,c]=(0,r.useState)((null==t?void 0:t.length)||0),[d]=(0,r.useState)(10),[f,x]=(0,r.useState)(!1),[g,p]=(0,r.useState)(!0),[h,v]=(0,r.useState)(!1),b=(0,r.useRef)(null),w=(0,r.useCallback)(async()=>{x(!0);try{var e;let t=new FormData;t.append("limit",d),t.append("offset",u);let s=await (0,a.lM)(t),n=(null==s||null==(e=s.content)?void 0:e.posts)||[];n.length>0?(o(e=>[...e,...n]),c(e=>e+d),p(n.length===d)):p(!1)}catch(e){console.error("Error loading For You posts",e)}finally{x(!1)}},[u,d]);return(0,r.useEffect)(()=>{if(!g||f)return;let e=new IntersectionObserver(t=>{t[0].isIntersecting&&(w(),e.disconnect())}),t=b.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[w,f,g]),(0,r.useEffect)(()=>{if(!g&&!f){v(!0);let e=setTimeout(()=>v(!1),3e3);return()=>clearTimeout(e)}},[g,f]),(0,n.jsxs)("div",{className:"space-y-5 p-5",children:[s.length>0?s.map(e=>(0,n.jsx)(l.A,{postData:e},e.id)):(0,n.jsx)("div",{className:"text-center text-14 text-grey",children:"No new posts in your feed!!"}),f&&(0,n.jsx)("div",{className:"text-center flex justify-center",children:(0,n.jsx)(i.aH,{className:"text-black"})}),h&&(0,n.jsx)("div",{className:"text-center text-gray-400 text-sm py-4 animate-fade-in",children:"Youâve reached the end of the feed!"}),g&&(0,n.jsx)("div",{ref:b,className:"h-10"})]})}var u=s(23555),c=s(80612),d=!0;function f(e){let{userDetails:t,savedPosts:s,suggestionList:r,tagsList:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{title:"Saved Posts"}),(0,n.jsx)(u.A,{userDetails:t,tagsList:i,suggestionList:r,children:(0,n.jsx)(o,{savedPosts:s})})]})}},80612:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n=s(37876),r=s(77328),i=s.n(r);function l(e){let{title:t}=e;return(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:t?"".concat(t," | Velaflow"):"Velaflow"})})}}},e=>{e.O(0,[3716,9634,3555,3433,4768,636,6593,8792],()=>e(e.s=46617)),_N_E=e.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.