1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,6321],{8312:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(8045)}])},9857:function(e,t,r){"use strict";var n=r(5893),a=r(5675),s=r.n(a),o=r(7294);t.Z=e=>{let{src:t,fallbackSrc:r,alt:a,style:l}=e,[i,d]=(0,o.useState)(t);return(0,n.jsx)(s(),{className:l,width:72,height:72,alt:"".concat(a),src:i,onError:()=>{d(r)}})}},4566:function(e,t,r){"use strict";var n=r(5893),a=r(1163),s=r.n(a),o=r(9857),l=r(3312);t.Z=e=>{let{imageURL:t,date:r,userName:a,reverse:i,email:d,urlPath:c,chatBox:h}=e,handleNavigation=()=>{c&&s().push("".concat(c,"/").concat(a))};return(0,n.jsxs)("div",{className:i?"mr-auto flex flex-row-reverse items-center":"ml-auto flex flex-row",children:[(0,n.jsxs)("div",{className:"mt-0.5",children:[(0,n.jsx)("button",{onClick:handleNavigation,children:(0,n.jsx)("h1",{className:h?"cursor-pointer text-[0.80rem] font-bold text-typography-body-light hover:underline":"cursor-pointer text-[0.80rem] font-bold text-typography-body-light hover:underline dark:text-typography-body-dark",children:a})}),(0,n.jsx)("p",{className:"font-helvetica text-[0.75em] font-light text-typography-body-secondary-light dark:text-typography-body-faded-light",children:null==r?void 0:r.toDateString()}),d?(0,n.jsx)("p",{className:"font-helvetica text-[0.75em] font-light text-typography-body-secondary-light dark:text-typography-body-faded-light",children:d}):(0,n.jsx)(n.Fragment,{})]}),(0,n.jsx)("button",{onClick:handleNavigation,children:(0,n.jsx)(o.Z,{style:"mx-4 block h-10 w-10 cursor-pointer rounded-full object-cover",alt:l.wF.AVATAR,src:l.Se.DEFAULT_AVATAR_SRC,fallbackSrc:l.Se.DEFAULT_AVATAR_SRC})})]})}},6197:function(e,t,r){"use strict";var n=r(5893);r(7294),t.Z=e=>{let{setShowMore:t,outputLength:r,showMore:a,children:s}=e,handleClick=e=>{let n=e.target;"show more"===n.innerText?t(r):t(250)};return(0,n.jsxs)("div",{className:"mt-4 flex items-center justify-between pb-2",children:[(0,n.jsx)("button",{onClick:e=>{handleClick(e)},className:r<250?"hidden":"mr-auto flex min-w-fit cursor-pointer rounded-md px-2.5 py-1.5 text-xs text-blue-600 hover:underline dark:text-brandGreen-600",children:250===a?"show more":"show less"}),(0,n.jsx)("div",{className:"flex w-full flex-row items-center justify-between",children:s})]})}},5231:function(e,t,r){"use strict";var n=r(5893),a=r(2510),s=r(4080),o=r(9332),l=r(7294),i=r(6893),d=r(8168),c=r(4276),h=r(2834),u=r(9275),x=r(6616),m=r(7385),p=r(6573),g=r(1020),y=r(5341),f=r(431),v=r(3312);let j=[{Component:d.Z,Icon:c.Z,text:v.IL.SHARE_TELEGRAM},{Component:h.Z,Icon:u.Z,text:v.IL.SHARE_WHATSAPP},{Component:x.Z,Icon:m.Z,text:v.IL.SHARE_TWITTER},{Component:p.Z,Icon:g.Z,text:v.IL.SHARE_FACEBOOK},{Component:y.Z,Icon:f.Z,text:v.IL.SHARE_REDDIT}];t.Z=()=>{let[e,t]=(0,l.useState)(!1),r=(0,o.usePathname)();return(0,n.jsxs)(a.v,{as:"div",className:"relative inline-block text-left",children:[(0,n.jsx)("div",{children:(0,n.jsx)(a.v.Button,{className:"is-active right-0 flex cursor-pointer rounded p-2 text-typography-body-light hover:bg-gray-100 hover:text-gray-900 dark:text-typography-body-strong-dark dark:hover:bg-gray-600 dark:hover:text-white",children:(0,n.jsx)(i.FiShare2,{})})}),(0,n.jsx)(s.u,{as:l.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,n.jsx)(a.v.Items,{className:"absolute right-0 z-40 mt-2 w-56 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,n.jsx)("div",{className:"px-1 py-1",children:j.map((s,o)=>{let{Component:l,Icon:i,text:d}=s;return(0,n.jsx)(a.v.Item,{children:a=>{let{active:s}=a;return(0,n.jsxs)(l,{url:r,onClick:()=>t(!e),className:"".concat(s?"bg-brandGreen-800 text-white":"text-gray-900"," group flex w-full items-center justify-between rounded-md px-2 py-2 text-sm"),children:[d," ",(0,n.jsx)(i,{size:22,round:!0})]})}},o)})})})})]})}},6321:function(e,t,r){"use strict";r.r(t);var n=r(5893);r(7294),t.default=e=>{let{headerOne:t}=e;return(0,n.jsx)("header",{className:"mb-4 h-fit w-full lg:mb-6",children:(0,n.jsx)("h1",{className:"mb-4 max-w-4xl break-words text-3xl font-bold leading-tight text-typography-body-light dark:text-typography-body-dark lg:mb-6 lg:text-4xl",children:t})})}},8045:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return pages}});var n=r(5893),a=r(8959),s=r(1163),o=r(8860),l=r(4929),i=r(9238),d=r.n(i),c=r(7294),h=r(6197),u=r(5231),x=r(4566),m=r(3312),textEditor_RendererFeed=e=>{var t,r,a,s;let{topicTitle:i,entry:p,id:g}=e,y={...p[0]},f=JSON.parse(y.content),[v,j]=(0,c.useState)(250),b=(0,c.useMemo)(()=>{let e=d().sanitize((0,o.a)(f,[l.Z]));return e},[f]);return(0,n.jsxs)("div",{className:"my-4 flex min-h-[10rem] max-w-4xl flex-col justify-between rounded-sm bg-white p-3 text-sm shadow-sm dark:bg-bg-secondary-dark lg:w-[38rem]",children:[(0,n.jsxs)("div",{className:"mt-2",children:[(0,n.jsx)("div",{className:"flex flex-row justify-end",children:(0,n.jsx)(u.Z,{})}),"string"==typeof b?(0,n.jsx)("div",{className:"prose prose-sm m-2 break-words text-sm dark:text-typography-body-dark dark:prose-headings:text-white dark:prose-strong:text-white",dangerouslySetInnerHTML:{__html:b.length>200?b.slice(0,v):b}}):(0,n.jsx)(n.Fragment,{})]}),(0,n.jsx)(h.Z,{setShowMore:j,showMore:v,outputLength:b.length,children:(0,n.jsx)(x.Z,{userName:(null===(r=p[0])||void 0===r?void 0:null===(t=r.user)||void 0===t?void 0:t.name)||"",date:y.createdAt,imageURL:(null===(s=p[0])||void 0===s?void 0:null===(a=s.user)||void 0===a?void 0:a.avatar)||"",urlPath:m.Yv.PROFILE})})]})},p=r(6321),layouts_FeedLayout=e=>{let t=(0,s.useRouter)();if(!e)return(0,n.jsx)(n.Fragment,{});let handleClick=e=>{t.push("/topic/".concat(encodeURIComponent(e.replace(/ /g,"+"))))};return(0,n.jsx)("div",{className:"top-0 mx-auto flex min-h-screen w-full flex-col justify-between gap-4 p-3 lg:w-[38rem] lg:-translate-x-3 lg:pl-0",children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{children:null!=e?e.data.map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:()=>handleClick(e.topicTitle),className:"h-full w-full cursor-pointer text-left text-typography-body-secondary-light underline dark:text-typography-body-dark",children:(0,n.jsx)(p.default,{headerOne:e.topicTitle})}),(0,n.jsx)(textEditor_RendererFeed,{...e})]},e.id)):(0,n.jsx)(n.Fragment,{})})})})},pages=()=>{let{data:e}=a.h.topic.getRandomEntriesAndTopics.useQuery();return(0,n.jsx)(n.Fragment,{children:e?(0,n.jsx)(layouts_FeedLayout,{data:e}):(0,n.jsx)(n.Fragment,{})})}}},function(e){e.O(0,[6911,5675,1475,4929,6893,9756,9774,2888,179],function(){return e(e.s=8312)}),_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.