PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/outdated-community/meme/create-bfa9c38492d6a051.js

js codedex.io collected 2026-09-25 14:57:51 UTC 39,916 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5218],{38914:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/outdated-community/meme/create",function(){return t(69097)}])},59378:function(n,e,t){"use strict";var r=t(85893),i=t(32512);e.Z=function(n){let{handleDrop:e,file:t,copy:a="image/GIF",zoneText:o="Drop your image file here...",accept:s={"image/jpeg":[],"image/png":[],".gif":[],"image/webp":[],"video/*":[]}}=n,{getRootProps:l,getInputProps:c,isDragActive:d,acceptedFiles:p}=(0,i.uI)({onDrop:e,multiple:!1,accept:s});return(0,r.jsxs)("div",{className:"dropzone nes-pointer",...l(),style:{height:0===t.length?"100px":"0px",marginTop:"0"},children:[(0,r.jsx)("input",{...c()}),d?(0,r.jsx)("p",{className:"zone",children:o}):(0,r.jsx)("div",{children:0===t.length&&(0,r.jsxs)("p",{className:"click-for-image",children:[(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("g",{id:"Arrows / upload",children:(0,r.jsx)("path",{id:"Vector",d:"M8.71 7.7099L11 5.4099V14.9999C11 15.2651 11.1054 15.5195 11.2929 15.707C11.4804 15.8945 11.7348 15.9999 12 15.9999C12.2652 15.9999 12.5196 15.8945 12.7071 15.707C12.8946 15.5195 13 15.2651 13 14.9999V5.4099L15.29 7.7099C15.383 7.80363 15.4936 7.87802 15.6154 7.92879C15.7373 7.97956 15.868 8.00569 16 8.00569C16.132 8.00569 16.2627 7.97956 16.3846 7.92879C16.5064 7.87802 16.617 7.80363 16.71 7.7099C16.8037 7.61693 16.8781 7.50633 16.9289 7.38447C16.9797 7.26261 17.0058 7.13191 17.0058 6.9999C17.0058 6.86788 16.9797 6.73718 16.9289 6.61532C16.8781 6.49346 16.8037 6.38286 16.71 6.2899L12.71 2.2899C12.6149 2.19886 12.5028 2.12749 12.38 2.0799C12.1365 1.97988 11.8635 1.97988 11.62 2.0799C11.4972 2.12749 11.3851 2.19886 11.29 2.2899L7.29 6.2899C7.19676 6.38313 7.1228 6.49383 7.07234 6.61565C7.02188 6.73747 6.99591 6.86804 6.99591 6.9999C6.99591 7.13176 7.02188 7.26232 7.07234 7.38415C7.1228 7.50597 7.19676 7.61666 7.29 7.7099C7.38324 7.80313 7.49393 7.8771 7.61575 7.92756C7.73757 7.97802 7.86814 8.00399 8 8.00399C8.13186 8.00399 8.26243 7.97802 8.38425 7.92756C8.50607 7.8771 8.61676 7.80313 8.71 7.7099ZM21 13.9999C20.7348 13.9999 20.4804 14.1053 20.2929 14.2928C20.1054 14.4803 20 14.7347 20 14.9999V18.9999C20 19.2651 19.8946 19.5195 19.7071 19.707C19.5196 19.8945 19.2652 19.9999 19 19.9999H5C4.73478 19.9999 4.48043 19.8945 4.29289 19.707C4.10536 19.5195 4 19.2651 4 18.9999V14.9999C4 14.7347 3.89464 14.4803 3.70711 14.2928C3.51957 14.1053 3.26522 13.9999 3 13.9999C2.73478 13.9999 2.48043 14.1053 2.29289 14.2928C2.10536 14.4803 2 14.7347 2 14.9999V18.9999C2 19.7955 2.31607 20.5586 2.87868 21.1212C3.44129 21.6838 4.20435 21.9999 5 21.9999H19C19.7956 21.9999 20.5587 21.6838 21.1213 21.1212C21.6839 20.5586 22 19.7955 22 18.9999V14.9999C22 14.7347 21.8946 14.4803 21.7071 14.2928C21.5196 14.1053 21.2652 13.9999 21 13.9999Z",fill:"#244C73"})})}),"Click here to upload",(0,r.jsx)("br",{}),a]})})]})}},17942:function(n,e,t){"use strict";var r=t(82729),i=t(85893),a=t(19521),o=t(67294);function _templateObject(){let n=(0,r._)(["\n  "," {\n    position: absolute;\n    right: 10px;\n    bottom: 10px;\n    border: 2px solid ",";\n    border-radius: 50px;\n    background: ",";\n    color: ",';\n    font-family: "Work Sans", sans-serif;\n    padding: 2px 10px 2px 10px;\n\n    display: none;\n    align-items: center;\n    gap: 8px;\n\n    p {\n      margin: 0px;\n      padding: 0px;\n      font-weight: 600;\n      font-size: 14px;\n    }\n\n    .dot {\n      width: 8px;\n      height: 8px;\n      border-radius: 50px;\n      background-color: #26d06e;\n      filter: drop-shadow(-1px 1px 2.5px rgba(46, 180, 116, 0.6));\n      animation: glowBoxShadow 1.5s ease-in-out infinite;\n\n      @keyframes glowBoxShadow {\n        0% {\n          box-shadow: 0px 0px 0px 0px rgba(46, 180, 116, 0.6);\n        }\n        100% {\n          box-shadow: 0px 0px 0px 5px rgba(46, 180, 116, 0);\n        }\n      }\n    }\n  }\n\n  '," {\n    display: flex;\n  }\n"]);return _templateObject=function(){return n},n}let s=a.default.div.withConfig({componentId:"sc-b27c2697-0"}
1)(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>n.theme.colors.profileBorder,n=>"dark"===n.theme.mode?"#0F1524":"#FFFFFF",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>{let{theme:e}=n;return e.breakpoints.sm});e.Z=function(){let[n,e]=(0,o.useState)(null);return(0,o.useEffect)(()=>{(async function(){let n=await fetch("/api/community/liveUsers/getLiveUsers"),t=await n.json();e(t.totalUsers)})()},[]),(0,i.jsx)(i.Fragment,{children:null!=n&&(0,i.jsxs)(s,{children:[(0,i.jsx)("div",{className:"dot"}),(0,i.jsxs)("p",{children:[n," Online Now"]})]})})}},31935:function(n,e,t){"use strict";t.d(e,{Z:function(){return community_VideoUploadTracker}});var r=t(82729),i=t(85893),a=t(19521),o=t(609),s=t(9473),l=t(67294),c=t(39828),functions_useUploadProgress=function(n){let[e,t]=(0,l.useState)({videoProgress:0,thumbNailProgress:0}),r=(0,c.ad)();return(0,l.useEffect)(()=>{let e=(0,c.JU)(r,"uploadProgress",n),i=(0,c.cf)(e,n=>{let e=n.data();if(e){let{video:n,thumbnail:r}=e,i=Math.round(n),a=Math.round(r);t({videoProgress:i,thumbNailProgress:a})}});return()=>i()},[n,r]),e},d=t(47010);function _templateObject(){let n=(0,r._)(['\n  padding: 16px 16px;\n  border-radius: 7px;\n  font-family: "Mulish", sans-serif;\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n\n  p {\n    color: ',';\n  }\n\n  .uploading {\n    display: flex;\n    flex-direction: column;\n\n    .progress {\n      font-weight: 700;\n      font-size: 20px;\n      text-align: end;\n      font-family: "Mulish", sans-serif;\n    }\n\n    .progress-bar {\n      height: 5px;\n      border-radius: 5px;\n      transition: background 0.1s ease;\n    }\n  }\n\n  .video-label {\n    font-weight: 600;\n    /* margin-top: 8px; */\n  }\n\n  .status-text {\n    font-size: 14px;\n    color: ',";\n  }\n\n  .redirected {\n    display: flex;\n    flex-direction: column;\n    /* align-items: center; */\n    /* margin-top: 1rem; */\n    /* text-align: center; */\n    gap: 1rem;\n    color: ",";\n  }\n"]);return _templateObject=function(){return n},n}let p=a.default.div.withConfig({componentId:"sc-e022437c-0"})(_templateObject(),n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["300"]:e.colors.palette.grey["600"]},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["400"]:e.colors.palette.grey["600"]},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["300"]:e.colors.palette.grey["600"]});var community_VideoUploadTracker=function(n){let{textContent:e,uid:t,showTracker:r}=n,a=(0,s.v9)(o.o4)||"dark",c="dark"===a,[m,u]=(0,l.useState)(0),g=functions_useUploadProgress(t);(0,l.useEffect)(()=>{0!=g.videoProgress&&u(g.videoProgress)},[g]);let h={pending:{border:c?"#854D0E":"#FEF08A",background:c?"#422006":"#FEFCE8",textAccent:c?"#FEF08A":"#854D0E"},complete:{border:c?"#3F6212":"#D9F99D",background:c?"#1A2E05":"#F7FEE7",textAccent:c?"#D9F99D":"#3F6212"},incomplete:{border:c?"#64748B":"#CBD5E1",background:c?"#0F172A":"#F8FAFC",textAccent:c?"#D9F99D":"#64748B"}}[100===m?"complete":"incomplete"];if(r)return(0,i.jsxs)(p,{style:{border:"2px solid ".concat(h.border),backgroundColor:h.background},children:[(0,i.jsxs)("div",{className:"uploading",children:[(0,i.jsxs)("p",{className:"progress",style:{color:100===m?"#A3E635":"#14ADFF"},children:[m,"%"]}),(0,i.jsx)("p",{className:"progress-bar",style:{background:"linear-gradient(to right, ".concat(100===m?"#A3E635":"#14ADFF"," ").concat(m,"%, ").concat(c?"#1E293B":"#F1F5F9"," ").concat(m,"%)")}})]}),(0,i.jsx)("p",{className:"video-label",children:100===m?"Video uploaded":"Video uploading"}),100!=m&&(0,i.jsx)("p",{className:"status-text",children:"It will take a while to upload long videos. Make sure to keep your browser tab open to avoid upload interruptions."}),100===m&&(0,i.jsxs)("p",{className:"status-text redirected",children:["You will be taken to your posts shortely (๑˃ᴗ˂)ﻭ",(0,i.jsx)(d.Z,{color:"#A3E635"})]})]})}},50164:function(n,e,t){"use strict";var r=t(82729),i=t(85893),a=t(19521),o=t(67294);function _templateObject(){let n=(0,r._)(["\n  border: 2px solid ",";\n\n  border-radius: 10px;\n  background: ",";\n  color: ",';\n  font-family: "Work Sans", sans-serif;\n  padding: 1rem;\n  transition-duration: 0.3s;\n  margin: 1rem auto;\n  z-index: 9;\n\n  /* a {\n    all: unset;\n  } */\n\n  .title {\n    display: flex;\n    justify-content: space-between;\n    font-family: "Work Sans", sans-serif;\n    h2 {\n      margin: 0px;\n      font-size: 16px;\n      font-weight: 600;\n    }\n\n    p {\n      margin: 0px;\n      font-size: 14px;\n      font-weight: 600;\n      color: #808080;\n    }\n  }\n\n  p {\n    margin: 0px;\n    margin-top: 0.5rem;\n    font-size: 14px;\n  }\n\n  &:hover {\n    border: 2px solid #379cee;\n    transition-duration: 0.3s;\n    background: ',";\n  }\n"]);
1return _templateObject=function(){return n},n}let s=a.default.div.withConfig({componentId:"sc-c69982a3-0"})(_templateObject(),n=>n.theme.colors.profileBorder,n=>"dark"===n.theme.mode?"#1d2332":"#FFFFFF",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(237, 231, 225, 0.1)":"rgba(237, 231, 225, 0.4)");e.Z=function(){let[n,e]=(0,o.useState)(!1);return(0,i.jsxs)(s,{onClick:()=>e(!n),className:"nes-pointer",children:[(0,i.jsx)("div",{className:"title",children:(0,i.jsx)("h2",{children:"Community Guidelines"})}),(0,i.jsx)("p",{children:"Read our code of conduct here."})]})}},96191:function(n,e,t){"use strict";var r=t(82729),i=t(85893),a=t(19521),o=t(41664),s=t.n(o),l=t(67294),c=t(9473),d=t(84849),p=t(609);function _templateObject(){let n=(0,r._)(["\n  border: 2px solid ",";\n\n  border-radius: 15px;\n  margin: 1rem auto;\n  padding: 1rem;\n  color: ",';\n\n  .title {\n    display: flex;\n    justify-content: space-between;\n    font-family: "Work Sans", sans-serif;\n    margin-bottom: 0.5rem;\n    h2 {\n      margin: 0px;\n      font-size: 16px;\n      font-weight: 600;\n    }\n\n    p {\n      margin: 0px;\n      font-size: 14px;\n      font-weight: 600;\n      color: #808080;\n    }\n  }\n\n  .tech-articles {\n    display: grid;\n    gap: 0.5rem;\n    .article {\n      display: flex;\n      gap: 0.5rem;\n\n      p {\n        margin: 0px;\n        font-family: "Work Sans", sans-serif;\n      }\n      img {\n        width: 60px;\n        height: 60px;\n        object-fit: cover;\n        border-radius: 7px;\n      }\n\n      .title {\n        font-size: 14px;\n        font-weight: 500;\n      }\n\n      .date {\n        font-size: 14px;\n        font-weight: 500;\n        color: rgba(128, 128, 128, 1);\n      }\n    }\n  }\n']);return _templateObject=function(){return n},n}let m=a.default.div.withConfig({componentId:"sc-c9b99085-0"})(_templateObject(),n=>n.theme.colors.profileBorder,n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black");e.Z=function(){let[n,e]=(0,l.useState)([]),t=(0,c.v9)(p.o4);return(0,l.useEffect)(()=>{(async function(){let n=sessionStorage.getItem("cachedTechNews");if(n){e(JSON.parse(n));return}let t=await fetch("/api/community/getTechNews"),r=await t.json();e(r.events),sessionStorage.setItem("cachedTechNews",JSON.stringify(r.events))})()},[]),(0,i.jsxs)(m,{children:[(0,i.jsxs)("div",{className:"title",children:[(0,i.jsx)("h2",{children:"Tech News"}),(0,i.jsx)(s(),{href:"/blog",style:{all:"unset"},target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("p",{className:"nes-pointer",children:"See all"})})]}),(0,i.jsx)("div",{className:"loader"}),(0,i.jsx)("div",{className:"tech-articles",children:0!=n.length?n.map((n,e)=>(0,i.jsx)(s(),{href:n.link,style:{all:"unset"},target:"_blank",rel:"noopener noreferrer",children:(0,i.jsxs)("div",{className:"article nes-pointer",children:[(0,i.jsx)("img",{src:n.imageUrl,alt:"article image"}),(0,i.jsxs)("div",{className:"article-titles",children:[(0,i.jsx)("p",{className:"title",children:n.title}),(0,i.jsx)("p",{className:"date",children:n.date})]})]})},e)):Array.from({length:3},(n,e)=>(0,i.jsxs)("div",{className:"article nes-pointer",children:[(0,i.jsx)(d.Z,{className:"loader",highlightColor:"dark"===t?"#3d3f4c":"#f5f5f5",baseColor:"dark"===t?"#343541":"#ebebeb",width:60,height:60}),(0,i.jsxs)("div",{className:"article-titles",style:{width:"100%"},children:[(0,i.jsx)("p",{className:"date",style:{width:"100%",marginBottom:"4px"},children:(0,i.jsx)(d.Z,{className:"loader",highlightColor:"dark"===t?"#3d3f4c":"#f5f5f5",baseColor:"dark"===t?"#343541":"#ebebeb",width:"100%",height:35})}),(0,i.jsx)("p",{className:"date",style:{width:"100%"},children:(0,i.jsx)(d.Z,{className:"loader",highlightColor:"dark"===t?"#3d3f4c":"#f5f5f5",baseColor:"dark"===t?"#343541":"#ebebeb",width:"100%"})})]})]},Date()+e))})]})}},53681:function(n,e,t){"use strict";var r=t(82729),i=t(85893),a=t(19521),o=t(17942);function _templateObject(){let n=(0,r._)(["\n  ",' {\n    margin: 0rem;\n\n    .banner-image {\n      height: 100px;\n      background-image: url("/images/community/nyan-cat-2.png");\n      background-size: cover;\n      background-position: 0px;\n    }\n\n    .banner-info {\n      position: relative;\n      height: 80px;\n      /* background: #1d2331; */\n      background: ',";\n      border-bottom-left-radius: 18px;\n      border-bottom-right-radius: 18px;\n      display: flex;\n      align-items: center;\n\n      .img-container {\n        position: absolute;\n        top: -30%;\n        left: 0.8rem;\n        border-radius: 50%;\n        /* background-color: whitesmoke; */\n        overflow: hidden;\n\n        img {\n          width: 80px;\n          height: 80px;\n          border-radius: 50%;\n          border: 3px solid rgba(15, 21, 36, 1);\n        }\n      }\n\n      .banner-copy {\n        color: ",';\n        margin-left: 6.8rem;\n\n        h2 {\n          font-size: 21px;\n          margin: 0px;\n          font-weight: 400;\n        }\n        p {\n          margin: 0px;\n          font-size: 16px;\n          font-family: "Work Sans", sans-serif;\n          color: rgba(128, 128, 128, 1);\n        }\n      }\n    }\n  }\n\n  '," {\n    margin: auto 1rem;\n\n    .banner-info {\n      .img-container {\n        left: 35px;\n        img {\n          width: 90px;\n          height: 90px;\n        }\n      }\n\n      .banner-copy {\n        margin-left: 9rem;\n\n        h2 {\n          font-size: 18px;\n        }\n        p {\n          font-size: 15px;\n        }\n      }\n    }\n  }\n\n  "," {\n    margin: 0rem;\n  }\n"]);
1return _templateObject=function(){return n},n}let s=a.default.div.withConfig({componentId:"sc-e72781ab-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>"dark"===n.theme.mode?"#1d2331":"#F9F5FE",n=>"dark"===n.theme.mode?"whitesmoke":"black",n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md});e.Z=function(){return(0,i.jsxs)(s,{children:[(0,i.jsx)("div",{className:"banner-image"}),(0,i.jsxs)("div",{className:"banner-info",children:[(0,i.jsx)("div",{className:"img-container",children:(0,i.jsx)("img",{src:"https://gifdb.com/images/high/comedian-el-risitas-warp-face-kekw-meme-0bf8c28fx7xo9a1x.gif",alt:"banner profile image"})}),(0,i.jsxs)("div",{className:"banner-copy",children:[(0,i.jsx)("h2",{children:"Memes"}),(0,i.jsx)("p",{children:"Slacking off at work t(-.-t)"})]}),(0,i.jsx)(o.Z,{})]})]})}},73664:function(n,e,t){"use strict";t.d(e,{oH:function(){return getUserPostCommentsRef},x:function(){return getUserPostsRef}});var r=t(39828),i=t(92369);function getUserPostsRef(n){let{uid:e}=n,{firestore:t}=(0,i.UM)(),a=(0,r.JU)((0,r.hJ)(t,"users"),e,"community","posts");return a}function getUserPostCommentsRef(n){let{uid:e}=n,{firestore:t}=(0,i.UM)(),a=(0,r.JU)((0,r.hJ)(t,"users"),e,"community","comments");return a}},12860:function(n,e,t){"use strict";t.d(e,{eY:function(){return generatePostId},pz:function(){return getImageDimensions},qb:function(){return createPost},zl:function(){return l}});var r=t(39828),i=t(92369),a=t(73664),o=t(16689),s=t(48764).Buffer;let l=5;async function getImageDimensions(n){try{if("function"==typeof createImageBitmap){let e=await createImageBitmap(n),t={width:e.width,height:e.height};return e.close(),t}}catch(n){console.error("Error measuring image with createImageBitmap:",n)}return new Promise(e=>{let t=URL.createObjectURL(n),r=new Image;r.onload=()=>{URL.revokeObjectURL(t),e({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=()=>{URL.revokeObjectURL(t),e(null)},r.src=t})}function generatePostId(){let{firestore:n}=(0,i.UM)();return(0,r.JU)((0,r.hJ)(n,"community")).id}async function createPost(n){let{communityName:e,uid:t,fields:c={},title:d,content:p,imageFile:m,imageFiles:u,videoFiles:g,parentPostId:h,postId:f,type:x="post",targetCollection:b="community"}=n,{firestore:j}=(0,i.UM)(),w=(0,r.qs)(j);if("post"===x){if(!e||!t||!c.title||void 0===c.content)throw Error("which community, uid, title, and description are required fields.");try{let n=await fetch("/api/community/createPostCheck");if(200!==n.status)return{status:500,post:null}}catch(n){return console.error("Error creating post:",n),{status:500,post:null}}let n=(0,a.x)({uid:t}),i=(0,r.JU)(j,"uploadProgress",t);async function updateProgress(n,e){await (0,r.pl)(i,{[n]:e},{merge:!0})}try{let i=(0,r.hJ)(j,b,e,"posts"),a=f?(0,r.JU)(i,f):(0,r.JU)(i),d={...c,ownerUid:t,createdAt:(0,r.Bt)(),parent:null,postId:a.id,communityName:e,images:[],videoFiles:[],userComments:0,userLikes:0,userReports:0,reports:[],pinnedByOwner:!1},p=(null==u?void 0:u.length)?u:m?[m]:[];if(p.length>l)return console.error("Posts can include at most ".concat(l," images, received ").concat(p.length,".")),{status:400,post:null};if(p.length>0)try{let n=(0,o.cF)();d.images=await Promise.all(p.map(async(t,r)=>{let i=(0,o.iH)(n,"".concat(b,"/").concat(e,"/post/").concat(a.id,"/").concat(r,"_").concat(t.name)),[,s]=await Promise.all([(0,o.KV)(i,t),getImageDimensions(t)]),l=await (0,o.Jt)(i);return s?{url:l,...s}:{url:l}}))}catch(n){return console.error("Error uploading images:",n),{status:500,post:null}}if(g)try{let n,t,r;let i=(0,o.cF)(),{video:l,thumbNail:c,videoDimensions:p,backgroundImage:m}=g,u=(0,o.iH)(i,"".concat(b,"/").concat(e,"/post/").concat(a.id,"/").concat(l.name)),h=(0,o.B0)(u,l);c&&(t=(0,o.iH)(i,"".concat(b,"/").concat(e,"/post/").concat(a.id,"/").concat(c.name)),n=(0,o.B0)(t,c)),h.on("state_changed",async n=>{let e=n.bytesTransferred/n.totalBytes*100;await updateProgress("video",e)}),n&&n.on("state_changed",async n=>{let e=n.bytesTransferred/n.totalBytes*100;await updateProgress("thumbnail",e)});let f=null;if(m)try{let n=m.split(",")[1],t=s.from(n,"base64"),r=new Blob([t],{type:"image/jpeg"}),l=(0,o.iH)(i,"".concat(b,"/").concat(e,"/post/").concat(a.id,"/backgroundimage.webp")),c=(0,o.B0)(l,r);c.on("state_changed",async n=>{let e=n.bytesTransferred/n.totalBytes*100;await updateProgress("backgroundImage",e)}),await c,f=await (0,o.Jt)(l)}catch(n){console.error("Error uploading background image:",n)}let x=null,j=[h.then(async()=>{r=await (0,o.Jt)(u),await updateProgress("video",0)})];n&&j.push(n.then(async()=>{x=await (0,o.Jt)(t),await updateProgress("thumbnail",0)})),await Promise.all(j),d.videoFiles.push({videoUrl:r,thumbNailUrl:x,videoDimensions:p,backgroundImageUrl:f})}catch(n){return console.error("Error uploading files:",n),{status:500,post:null}}d.videoFiles.length?d.images=[]:d.images.length&&(d.videoFiles=[]),w.set(a,d),w.set(n,{postIds:(0,r.vr)(a.id)},{merge:!0}),await w.commit();let h=await (0,r.QT)(a),x=h.data();
1return{status:200,post:x}}catch(n){return console.error(n),{status:500,post:null}}}else{if(!t)throw Error("uid, title, and description are required fields.");let n=(0,a.oH)({uid:t});try{let i=(0,r.hJ)(j,b,e,"posts"),a=(0,r.JU)(i),s={ownerUid:t,title:d,images:[],content:p,createdAt:(0,r.Bt)(),parent:{id:h},postId:a.id,communityName:e,userLikes:0,userReports:0};if(m)try{if((null==m?void 0:m.type)=="giphy-upload"){var y;s.images.push({url:null==m?void 0:null===(y=m.acceptedFile)||void 0===y?void 0:y.imageUrl})}else{let n=(0,o.cF)(),t=null==m?void 0:m.acceptedFile,r=(0,o.iH)(n,"".concat(b,"/").concat(e,"/post/").concat(a.id,"/").concat(t.name));await (0,o.KV)(r,t);let i=await (0,o.Jt)(r);s.images.push({url:i})}}catch(n){return console.error("Error uploading image:",n),{status:500,post:null}}w.set(a,s),w.set(n,{commentIds:(0,r.vr)(a.id)},{merge:!0}),await w.commit();let l=await (0,r.QT)(a),c=l.data();return{status:200,post:c}}catch(n){return console.error(n),{status:500,post:null}}}}},69097:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return E},default:function(){return create}});var r=t(85893),i=t(67294),a=t(11163),o=t(99428),s=t(27936),l=t(62069),c=t(82729),d=t(19521),p=t(53681),m=t(96191),u=t(17885),g=t(9473),h=t(32512),f=t(5434),x=t(41664),b=t.n(x),j=t(47010),w=t(12238),y=t.n(w),v=t(609),k=t(12860),C=t(31935),A=t(59378);function _templateObject(){let n=(0,c._)(['\n  border-radius: 10px;\n  color: rgba(255, 255, 255, 0.87);\n  margin-top: 1rem;\n  position: relative;\n\n  p {\n    margin: 0px;\n    font-family: "Work Sans", sans-serif;\n  }\n\n  .author {\n    display: flex;\n    align-items: center;\n    gap: 1rem;\n    margin-top: 2rem;\n    margin-bottom: 1.5rem;\n\n    img {\n      width: 35px;\n      height: 35px;\n      border-radius: 50%;\n    }\n\n    p {\n      font-weight: 600;\n      line-height: 1;\n    }\n\n    .author-name {\n      color: ',';\n    }\n\n    .username {\n      color: rgba(128, 128, 128, 1);\n      font-weight: 400;\n      font-size: 14px;\n    }\n\n    .time-posted {\n      color: rgba(128, 128, 128, 1);\n      font-weight: 400;\n    }\n  }\n\n  .post {\n    .post-title {\n      margin: 1rem auto;\n      font-size: 21px;\n      font-weight: 600;\n      font-family: "Work Sans", sans-serif;\n    }\n\n    .post-content {\n      max-height: 125px;\n      overflow: hidden;\n\n      p {\n        font-family: "Work Sans", sans-serif;\n        font-size: 17px;\n        font-weight: 400;\n        white-space: pre-line;\n      }\n    }\n\n    pre {\n      background-color: #1d2332 !important;\n    }\n  }\n\n  .edit-view {\n    margin-top: 1rem;\n    display: flex;\n    flex-direction: column;\n    gap: 1rem;\n\n    input {\n      width: 100%;\n      border: 2px solid\n        ',";\n      border-radius: 7px;\n      padding: 0.7rem;\n      color: ",';\n      font-family: "Work Sans", sans-serif;\n      background-color: ',";\n      outline-width: 0;\n      height: 45px;\n    }\n\n    //.dropzone {\n    //height: 275px;\n    //background: ",";\n    //border-radius: 7px;\n    //display: flex;\n    //justify-content: center;\n    //align-items: center;\n\n    //p {\n    //margin: 0px;\n    //}\n\n    //.zone {\n    //display: flex;\n    //justify-content: center;\n    //align-items: center;\n    //width: 100%;\n    //height: 100%;\n    //border: 2px dashed #379cee;\n    //font-weight: 600;\n    //border-radius: 7px;\n    //}\n\n    //.area {\n    //font-weight: 600;\n    //color: #379cee;\n\n    //.upload {\n    //padding: 5px 10px 5px 10px;\n    //border: 2px solid #379cee;\n    //border-radius: 20px;\n    //}\n    //}\n    //}\n\n    .dropped-file-preview {\n      position: relative;\n      margin-top: 10px;\n      img {\n        width: 100%;\n        height: auto;\n        border-radius: 7px;\n      }\n\n      .close-btn {\n        all: unset;\n        position: absolute;\n        right: -13px;\n        top: -12px;\n        font-size: 25px;\n        line-height: 0.8;\n        transition-duration: 0.2s;\n        padding: 0.2rem;\n        border-radius: 50%;\n        color: ",';\n\n        :hover {\n          background-color: #f86463;\n          border-radius: 50%;\n          cursor:\n            url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n              14 0,\n            pointer;\n        }\n      }\n    }\n\n    .button-container {\n      margin-top: 0.5rem;\n      display: flex;\n      justify-content: end;\n      gap: 1rem;\n\n      button {\n        font-size: 11px;\n      }\n    }\n\n    .text-container {\n      position: relative;\n\n      .min-content-indicator {\n        font-family: "Work Sans", sans-serif;\n        position: absolute;\n        font-size: 14px;\n        /* right: 16px; */\n        left: 84%;\n        top: 12.5px;\n        z-index: 2;\n        color: #959595;\n\n        span {\n          font-weight: 600;\n        }\n      }\n    }\n\n    .dropzone {\n      width: 100%;\n      color: #209cee;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      border-radius: 7px;\n\n      p {\n        margin: 0px;\n      }\n\n      .zone {\n        margin-top: 3.5rem;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        width: 100%;\n        height: 95px;\n        border: 3px dashed #209cee;\n        border-radius: 7px;\n      }\n\n      .pre-dropzone {\n        margin-top: 3.5rem;\n        text-align: center;\n        width: 100%;\n        height: fit-content;\n        padding-top: 1rem;\n        padding-bottom: 1rem;\n        border-radius: 7px;\n        color: rgba(36, 76, 115, 0.6);\n\n        svg {\n          margin-bottom: 10px;\n          path {\n            fill: rgba(36, 76, 115, 0.6);\n          }\n        }\n\n        '," {\n          border: 2px dashed rgba(36, 76, 115, 0.6);\n\n          .desktop {\n            display: none;\n          }\n        }\n\n        "," {\n          border: 3px dashed rgba(36, 76, 115, 0.6);\n\n          .desktop {\n            display: block;\n          }\n\n          .mobile {\n            display: none;\n          }\n        }\n      }\n    }\n\n    .dropped-file-preview {\n      position: relative;\n      margin-top: 10px;\n\n      img,\n      video {\n        width: 100%;\n        height: auto;\n        border-radius: 7px;\n      }\n\n      .close-btn {\n        all: unset;\n        position: absolute;\n        right: -13px;\n        top: -12px;\n        font-size: 25px;\n        line-height: 0.8;\n        transition-duration: 0.2s;\n        padding: 0.2rem;\n        border-radius: 50%;\n        color: ",';\n\n        :hover {\n          background-color: #f86463;\n          border-radius: 50%;\n          cursor:\n            url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n              14 0,\n            pointer;\n        }\n      }\n    }\n\n    .thumbnail-preview {\n      overflow: hidden;\n\n      .top-label {\n        margin-bottom: 1rem;\n        font-family: "Work Sans", sans-serif;\n        color: #808080;\n        font-size: 16px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 21px; /* 131.25% */\n      }\n\n      .preview-tracker {\n        display: flex;\n        flex-wrap: wrap;\n        gap: 1rem;\n      }\n\n      .thumbnail-image-container {\n        width: 350px;\n        height: 196px;\n        position: relative;\n\n        img {\n          object-fit: cover;\n          width: 100%;\n          height: 100%;\n          object-fit: cover;\n        }\n      }\n    }\n\n    .videothumbnail {\n      .preview-tracker {\n        display: flex;\n        flex-wrap: wrap;\n        gap: 1rem;\n      }\n\n      .top-label {\n        margin: 1rem 0rem;\n        font-family: "Work Sans", sans-serif;\n        color: #808080;\n        font-size: 16px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 21px; /* 131.25% */\n      }\n\n      .dropzone {\n        background-color: ',";\n        width: 272px;\n        color: #209cee;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        border-radius: 7px;\n        border: 3px dashed\n          ",";\n\n        transition-duration: 0.3s;\n\n        p {\n          margin: 0px;\n        }\n\n        .click-for-image {\n          color: ",";\n          text-align: center;\n          font-size: 17px;\n          font-style: normal;\n          font-weight: 600;\n          line-height: normal;\n          transition-duration: 0.3s;\n\n          display: flex;\n          flex-direction: column;\n          align-items: center;\n          gap: 0.5rem;\n\n          svg {\n            path {\n              transition-duration: 0.3s;\n              fill: ",';\n            }\n          }\n        }\n\n        .zone {\n          all: unset;\n          font-family: "Work Sans", sans-serif;\n        }\n\n        :hover {\n          border: 3px dashed #379cee;\n          transition-duration: 0.3s;\n\n          .click-for-image {\n            color: #379cee;\n            transition-duration: 0.3s;\n          }\n\n          svg {\n            path {\n              transition-duration: 0.3s;\n              fill: #379cee;\n            }\n          }\n        }\n      }\n    }\n\n    .profanity-alert {\n      border: 1px solid red;\n      color: #e76e54;\n      border-radius: 7px;\n      padding: 20px;\n    }\n  }\n']);
1return _templateObject=function(){return n},n}let N=d.default.div.withConfig({componentId:"sc-a9753014-0"})(_templateObject(),n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(36, 76, 115, 1)":"#DADADA",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"#0e1524":"rgba(255, 255, 255, 0.87)",n=>"dark"===n.theme.mode?"#1d2332":"#F9F5FE",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"#1D2332":"#F6F6F6",n=>"dark"===n.theme.mode?"rgba(36, 76, 115, 1)":"#979797",n=>"dark"===n.theme.mode?"#244c73":"#979797",n=>"dark"===n.theme.mode?"#244c73":"#979797");var meme_PostForm=function(){var n;let e=(0,a.useRouter)(),t=new(y()),o=(0,g.v9)(v.f8),s=(0,g.v9)(v.zr),l=(0,g.v9)(v.I),c=localStorage.getItem("photoURL")||"",[d,p]=(0,i.useState)(""),[m,u]=(0,i.useState)(""),[x,w]=(0,i.useState)(!1),[F,U]=(0,i.useState)([]),[_,S]=(0,i.useState)([]),[z,E]=(0,i.useState)(!1),[B,I]=(0,i.useState)(!0),[T,O]=(0,i.useState)(null),[P,D]=(0,i.useState)(!1),Z=(0,i.useCallback)(n=>{let e;let t=n[0],r=t.type.startsWith("video/");return t.size>(r?5368709120:20971520)?(O("File is too large. Max size allowed is ".concat(r?"5GB":"20MB",".")),e=setTimeout(()=>{O(null)},1e4)):(U(n),r&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"})},250)),()=>clearTimeout(e)},[]),M=(0,i.useCallback)(n=>{S(n)},[]),{getRootProps:V,getInputProps:R,isDragActive:L,acceptedFiles:W,fileRejections:J}=(0,h.uI)({onDrop:Z,multiple:!1,accept:{"image/jpeg":[],"image/png":[],".gif":[],"image/webp":[],"video/*":[]}});async function handleSubmit(n){n.preventDefault(),E(!0);let r=t.isProfane(d),i=t.isProfane(m);if(0==d.length||0==F.length||0==d.trim().length){D(!0),E(!1);return}if(r||i){w(!0);return}let a=0==F.length||F[0].type.includes("video")?null:F[0],s=0!=F.length&&F[0].type.includes("video")?{video:F[0],thumbNail:_[0]?_[0]:null}:null;try{let n=await (0,k.qb)({communityName:"meme",uid:o,title:d,imageFile:a,videoFiles:s,content:null,type:"post",parentPostId:null});200===n.status&&e.push("/community/meme/".concat(n.post.postId))}catch(n){console.error(n)}}let Q=(0,i.useMemo)(()=>{if(0!=F.length)return(0,r.jsx)("video",{src:URL.createObjectURL(F[0]),controls:!0})},[F]);return(0,r.jsxs)(N,{children:[(0,r.jsxs)("div",{className:"author",children:[(0,r.jsx)(b(),{href:s,legacyBehavior:!0,children:(0,r.jsx)("img",{src:c,alt:"author image",className:"nes-pointer"})}),(0,r.jsx)(b(),{href:s,legacyBehavior:!0,children:(0,r.jsxs)("div",{className:"nes-pointer",children:[(0,r.jsx)("p",{className:"author-name",children:l}),(0,r.jsxs)("p",{className:"username",children:["@",s]})]})})]}),(0,r.jsxs)("form",{className:"edit-view",onSubmit:n=>handleSubmit(n),children:[(0,r.jsx)("input",{value:d,onChange:n=>p(n.target.value),placeholder:"Title"}),x&&(0,r.jsx)("div",{className:"profanity-alert",children:(0,r.jsx)("p",{children:"Cod\xe9dex is a community for all ages and groups. Please be considreate when making a post and remove any profanity."})}),P&&(0,r.jsx)("div",{className:"profanity-alert",children:(0,r.jsx)("p",{children:"Title or image cannot be empty."})}),(0,r.jsx)("div",{className:"text-container",children:(0,r.jsxs)("div",{className:"dropzone nes-pointer",...V(),style:{height:0===F.length?"75px":"0px"},children:[(0,r.jsx)("input",{...R()}),L?(0,r.jsx)("p",{className:"zone",children:"Drop your file here..."}):(0,r.jsx)("div",{className:"pre-dropzone",style:{border:0!=F.length&&"none"},children:0===F.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("g",{id:"Arrows / upload",children:(0,r.jsx)("path",{id:"Vector",d:"M8.71 7.7099L11 5.4099V14.9999C11 15.2651 11.1054 15.5195 11.2929 15.707C11.4804 15.8945 11.7348 15.9999 12 15.9999C12.2652 15.9999 12.5196 15.8945 12.7071 15.707C12.8946 15.5195 13 15.2651 13 14.9999V5.4099L15.29 7.7099C15.383 7.80363 15.4936 7.87802 15.6154 7.92879C15.7373 7.97956 15.868 8.00569 16 8.00569C16.132 8.00569 16.2627 7.97956 16.3846 7.92879C16.5064 7.87802 16.617 7.80363 16.71 7.7099C16.8037 7.61693 16.8781 7.50633 16.9289 7.38447C16.9797 7.26261 17.0058 7.13191 17.0058 6.9999C17.0058 6.86788 16.9797 6.73718 16.9289 6.61532C16.8781 6.49346 16.8037 6.38286 16.71 6.2899L12.71 2.2899C12.6149 2.19886 12.5028 2.12749 12.38 2.0799C12.1365 1.97988 11.8635 1.97988 11.62 2.0799C11.4972 2.12749 11.3851 2.19886 11.29 2.2899L7.29 6.2899C7.19676 6.38313 7.1228 6.49383 7.07234 6.61565C7.02188 6.73747 6.99591 6.86804 6.99591 6.9999C6.99591 7.13176 7.02188 7.26232 7.07234 7.38415C7.1228 7.50597 7.19676 7.61666 7.29 7.7099C7.38324 7.80313 7.49393 7.8771 7.61575 7.92756C7.73757 7.97802 7.86814 8.00399 8 8.00399C8.13186 8.00399 8.26243 7.97802 8.38425 7.92756C8.50607 7.8771 8.61676 7.80313 8.71 7.7099ZM21 13.9999C20.7348 13.9999 20.4804 14.1053 20.2929 14.2928C20.1054 14.4803 20 14.7347 20 14.9999V18.9999C20 19.2651 19.8946 19.5195 19.7071 19.707C19.5196 19.8945 19.2652 19.9999 19 19.9999H5C4.73478 19.9999 4.48043 19.8945 4.29289 19.707C4.10536 19.5195 4 19.2651 4 18.9999V14.9999C4 14.7347 3.89464 14.4803 3.70711 14.2928C3.51957 14.1053 3.26522 13.9999 3 13.9999C2.73478 13.9999 2.48043 14.1053 2.29289 14.2928C2.10536 14.4803 2 14.7347 2 14.9999V18.9999C2 19.7955 2.31607 20.5586 2.87868 21.1212C3.44129 21.6838 4.20435 21.9999 5 21.9999H19C19.7956 21.9999 20.5587 21.6838 21.1213 21.1212C21.6839 20.5586 22 19.7955 22 18.9999V14.9999C22 14.7347 21.8946 14.4803 21.7071 14.2928C21.5196 14.1053 21.2652 13.9999 21 13.9999Z",fill:"#244C73"})})}),(0,r.jsxs)("p",{children:[(0,r.jsxs)("span",{className:"desktop",children:["Drag and drop file or ",(0,r.jsx)("span",{children:"Upload"})]}),(0,r.jsx)("span",{className:"mobile",children:"Attach file"})]})]})})]})}),0!=F.length&&(0,r.jsxs)("div",{className:"dropped-file-preview",children:[(0,r.jsx)("button",{className:"close-btn nes-pointer",children:(0,r.jsx)(f.lTq,{onClick:()=>U([])})}),F[0].type.includes("video")?(0,r.jsx)(r.Fragment,{children:Q}):(0,r.jsx)("img",{src:URL.createObjectURL(F[0]),alt:"Dropped"})]}),0!=_.length&&(0,r.jsxs)("div",{className:"dropped-file-preview thumbnail-preview",children:[(0,r.jsx)("p",{className:"top-label",children:"Thumbnail Preview"}),(0,r.jsxs)("div",{className:"preview-tracker",children:[(0,r.jsxs)("div",{className:"thumbnail-image-container",children:[(0,r.jsx)("button",{className:"close-btn nes-pointer",children:(0,r.jsx)(f.lTq,{onClick:()=>S([])})}),(0,r.jsx)("img",{src:URL.createObjectURL(_[0]),alt:"Dropped"})]}),(0,r.jsx)(C.Z,{textContent:"This is a test",uid:o,showTracker:z})]})]}),0!=F.length&&F[0].type.includes("video")&&0===_.length&&(0,r.jsxs)("div",{className:"videothumbnail",children:[(0,r.jsx)("p",{className:"top-label",children:"Add Video Thumbnail (Optional):"}),(0,r.jsxs)("div",{className:"preview-tracker",children:[(0,r.jsx)(A.Z,{file:_,handleDrop:M,copy:"video thumbnail"}),(0,r.jsx)(C.Z,{textContent:"This is a test",uid:o,showTracker:z})]})]}),T&&(0,r.jsx)("div",{className:"profanity-alert",style:{marginTop:"2.5rem"},children:(0,r.jsx)("p",{children:T})}),(0,r.jsx)("div",{className:"button-container",style:{marginTop:0!=F.length?"0.5rem":"3rem"},children:z?(0,r.jsx)(r.Fragment,{children:!(null===(n=F[0])||void 0===n?void 0:n.type.includes("video"))&&(0,r.jsx)("div",{className:"nes-btn is-disabled",style:{display:"flex",alignItems:"center"},children:(0,r.jsx)(j.Z,{color:"rgba(255, 255, 255)",size:"0.675rem"})})}):(0,r.jsx)("button",{type:"submit",className:"nes-btn is-primary",children:"Post"})})]})]})},F=t(50164);
1function Feed_templateObject(){let n=(0,c._)(["\n  "," {\n    min-height: calc(100vh - 4.2rem);\n\n    .secondary-container {\n      display: grid;\n      grid-template-columns: 1fr;\n      gap: 1rem;\n    }\n\n    .feed-container {\n      padding-left: 1rem;\n      padding-right: 1rem;\n      .post-feed {\n        display: grid;\n        gap: 1rem;\n      }\n    }\n\n    .right-sidebar {\n      display: none;\n      position: relative;\n\n      .sticky-bar {\n        position: sticky;\n        top: 6rem;\n      }\n    }\n  }\n\n  "," {\n    .secondary-container {\n      grid-template-columns: 1fr;\n    }\n\n    .feed-container {\n      padding-left: 1rem;\n      padding-right: 1rem;\n    }\n\n    .right-sidebar {\n      display: none;\n    }\n  }\n\n  "," {\n    .secondary-container {\n      grid-template-columns: 5fr 2.25fr;\n    }\n\n    .feed-container {\n      padding-left: 0rem;\n      padding-right: 0rem;\n    }\n\n    .right-sidebar {\n      display: flex;\n    }\n  }\n"]);return Feed_templateObject=function(){return n},n}let U=d.default.div.withConfig({componentId:"sc-a25a0f62-0"})(Feed_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md});var meme_Feed=function(){return(0,r.jsxs)(U,{children:[(0,r.jsx)(p.Z,{}),(0,r.jsxs)("div",{className:"secondary-container",children:[(0,r.jsx)("div",{className:"feed-container",children:(0,r.jsx)(meme_PostForm,{})}),(0,r.jsx)("div",{className:"right-sidebar",children:(0,r.jsxs)("div",{className:"sticky-bar",children:[(0,r.jsx)(m.Z,{}),(0,r.jsx)(u.Z,{}),(0,r.jsx)(F.Z,{})]})})]})]})},_=t(51539),S=t(8956),z=t(60028),E=!0,create=function(){let n=(0,a.useRouter)();(0,g.v9)(v.ot);let[e,t]=(0,i.useState)(!1),[c,d]=(0,i.useState)([]),p=function(n){let e=document.cookie.split(";");for(let t=0;t<e.length;t++){let r=e[t].trim();if(r.startsWith(n+"="))return r.substring(n.length+1)}return null}("codedextoken");if(!p||void 0===p){n.push("/community");return}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(s.Z,{h1:"Meme Community"}),(0,r.jsx)(l.Z,{children:(0,r.jsxs)(S.Z,{children:[(0,r.jsx)(z.Z,{path:n.pathname,postLink:"/community/meme/create"}),(0,r.jsx)("div",{className:"main-container",children:(0,r.jsx)(meme_Feed,{})})]})}),(0,r.jsx)(_.Z,{})]})}}},function(n){n.O(0,[1272,8700,3874,955,6556,4617,4774,4153,1622,9280,2512,9428,4793,9433,9774,2888,179],function(){return n(n.s=38914)}),_N_E=n.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.