https://manojspace.com/_next/static/chunks/pages/launchpad/category/[categoryId]-c6d3a820a0bf0668.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2371],{34890:(e,l,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/launchpad/category/[categoryId]",function(){return r(85252)}])},44713:(e,l,r)=>{"use strict";r.d(l,{A:()=>c});var o=r(37876);r(14232);var a=r(48230),t=r.n(a),n=r(89311),d=r(16495),i=r(78545);let s=["rotate-[-3deg] z-[1] group-hover:rotate-[-9deg]","rotate-[5deg] z-[2] group-hover:rotate-[15deg]","rotate-[-2deg] z-[3] group-hover:rotate-[-8deg]","rotate-[4deg] z-[4] group-hover:rotate-[12deg]"],c=e=>{var l,r;let{category:a}=e,c=null==a||null==(l=a.projects)?void 0:l.map(e=>(null==e?void 0:e.logo)||(null==e?void 0:e.images[0])).filter(Boolean).slice(0,4);return(0,o.jsxs)(t(),{href:d.APP_PATHS.projectCategory((null==a||null==(r=a.id)?void 0:r.toLowerCase())||""),className:"flex flex-col gap-4 px-4 py-4 border rounded-2xl border-primaryBorder hover:shadow-10 cursor-pointer group",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsx)(n.default.SemiBoldText,{sm:!0,children:null==a?void 0:a.label}),(0,o.jsxs)(n.default.MutedText,{xs:!0,className:"flex gap-1",children:[null==a?void 0:a.projectCount," Projects"]})]}),(null==c?void 0:c.length)?(0,o.jsx)("div",{className:"flex",children:null==c?void 0:c.map((e,l)=>(0,o.jsx)("div",{className:"transition-transform group-hover:-translate-y-1 duration-150 ease-in-out -ml-1 ".concat(s[l]," "),children:(0,o.jsx)(i.A.Medium,{src:e})},e))}):null]})}},85252:(e,l,r)=>{"use strict";r.r(l),r.d(l,{__N_SSP:()=>T,default:()=>b});var o=r(37876),a=r(57994),t=r(89311),n=r(16495),d=r(5641),i=r(58385),s=r(18480),c=r(94296),u=r(14232),x=r(89099),v=r(11023),m=r(21639),h=r(83872);let g=e=>{let{currentCategory:l}=e,r=(0,x.useRouter)(),a=[...n.PROJECT_CATEGORIES,n.STAFF_PICK_CATEGORY],d=null==a?void 0:a.filter(e=>{var r,o;return(null==e||null==(r=e.id)?void 0:r.toLowerCase())!==(null==l||null==(o=l.id)?void 0:o.toLowerCase())});return(null==d?void 0:d.length)?(0,o.jsx)(v.A,{dropdownButton:(0,o.jsx)(m.Ay.CarbonOutline,{iconRight:(0,o.jsx)("span",{className:"text-gray-1k",children:(0,o.jsx)(h.ChevronDownIcon,{size:20})}),className:"flex max-w-30 md:max-w-50",children:(0,o.jsx)(t.default.SemiBoldText,{sm:!0,className:"truncate",children:null==l?void 0:l.name})}),className:"max-h-86 overflow-y-auto hide-scrollbar",align:"end",children:null==d?void 0:d.map(e=>(0,o.jsx)(v.e.Item,{onClick:()=>{r.push(n.APP_PATHS.projectCategory(null==e?void 0:e.id))},children:null==e?void 0:e.name},null==e?void 0:e.id))}):null};var j=r(48230),p=r.n(j),f=r(34321),y=r(50629);let P=e=>{var l;let{category:r}=e,[a,d]=(0,u.useState)([]),i=async()=>{try{if(null==r?void 0:r.id){var e,l;let o=await f._x.leaderboard({category:null==r?void 0:r.id,limit:5});d(null==o||null==(l=o.data)||null==(e=l.data)?void 0:e.leaderboard)}}catch(e){}};return((0,u.useEffect)(()=>{i()},[null==r?void 0:r.id]),(null==a?void 0:a.length)&&(null==r?void 0:r.id))?(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsxs)(p(),{className:"hover:underline flex items-center justify-between group",href:"".concat(n.APP_PATHS.launchpadLeaderboard,"?category=").concat(null==r||null==(l=r.id)?void 0:l.toLowerCase()),children:[(0,o.jsxs)(t.default.SemiBoldText,{sm:!0,children:["Top Builders / ",null==r?void 0:r.name]}),(0,o.jsx)(m.Ay.CarbonTransparent,{small:!0,circular:!0,className:"group-hover:bg-gray-00 group-hover:border-gray-200",children:(0,o.jsx)(h.ArrowRightIcon,{size:16})})]}),(0,o.jsx)("div",{className:"flex flex-col gap-4",children:null==a?void 0:a.map(e=>{var l;return(0,o.jsx)(y.dW,{creator:null==e?void 0:e.user},null==e||null==(l=e.user)?void 0:l.id)})})]}):null};var N=r(4282);let A=e=>{let{categoryDetails:l,allCategories:r}=e,a=null==r?void 0:r.map(e=>{let l=(0,N.K7)(null==e?void 0:e.categoryId);return{label:(null==l?void 0:l.name)||(null==e?void 0:e.categoryId),id:null==e?void 0:e.categoryId,...e}});return(0,o.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,o.jsx)(P,{category:l}),(null==a?void 0:a.length)?(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsx)(t.default.SemiBoldText,{sm:!0,children:"Other C
1ategories"}),null==a?void 0:a.map(e=>{var r;return(null==e?void 0:e.id)!==(null==l?void 0:l.id)&&(null==e?void 0:e.projectCount)?(0,o.jsxs)(p(),{href:n.APP_PATHS.projectCategory(null==e||null==(r=e.id)?void 0:r.toLowerCase()),className:"flex flex-col gap-1 group",children:[(0,o.jsx)(t.default.SemiBoldText,{sm:!0,className:"group-hover:underline",children:null==e?void 0:e.label}),(0,o.jsxs)(t.default.MutedText,{xs:!0,children:[null==e?void 0:e.projectCount," Projects"]})]},null==e?void 0:e.id):null})]}):null]})};var C=r(44713),T=!0;let b=e=>{let{categoryDetails:l,allProjects:r=[],allCategoriesWithProject:u}=e,x=l&&(null==l?void 0:l.name)?"The Best ".concat(l.name," Projects of ").concat(new Date().getFullYear()):"Find Best Project Ideas",v=null==u?void 0:u.map(e=>{let l=(0,N.K7)(null==e?void 0:e.categoryId);return{label:(null==l?void 0:l.name)||(null==e?void 0:e.categoryId),id:null==e?void 0:e.categoryId,...e}}),m=null==v?void 0:v.slice(0,4);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.A,{title:x,description:(null==l?void 0:l.description)||"Find curated projects built by designers and developers. Discover the latest mobile apps, websites, and technology projects that everyone is talking about.",canonical:"".concat(n.APP_PATHS.PEERLIST).concat(n.APP_PATHS.projectCategory(null==l?void 0:l.id)),url:"".concat(n.APP_PATHS.PEERLIST).concat(n.APP_PATHS.projectCategory(null==l?void 0:l.id))}),(0,o.jsxs)("div",{children:[(0,o.jsx)(a.A.CenterTop,{internalPage:!0,children:(0,o.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(a.A.BackButton,{}),(0,o.jsx)(a.A.PageHeading,{children:"Project Categories"})]}),(0,o.jsx)("div",{className:"flex gap-4",children:(0,o.jsx)(g,{currentCategory:l})})]})}),(0,o.jsxs)(a.A.Center,{children:[l?(0,o.jsxs)("div",{className:"px-6 py-6 flex flex-col gap-2 sm:gap-1",children:[(0,o.jsxs)(t.default.NormalText,{xxxl:!0,className:"font-instrument text-center sm:text-start",children:["Project Categories ",(0,o.jsxs)("i",{children:[" / ",(null==l?void 0:l.name)||""]})]}),(0,o.jsx)(t.default.NormalText,{textColor:"text-gray-700",children:(null==l?void 0:l.description)||""})]}):(0,o.jsxs)("div",{className:"w-full flex flex-col justify-center items-center text-center p-6 my-20",children:[(0,o.jsx)(i.A.EmptyProjects,{}),(0,o.jsx)(t.default.SemiBoldText,{sm:!0,className:"mt-4 mb-1",children:"We couldn't find projects from this category."}),(0,o.jsx)(t.default.MutedText,{xs:!0,children:"Maybe you can create one and launch!"})]}),null==r?void 0:r.map(e=>(null==e?void 0:e.id)?(0,o.jsx)(d.A.ProjectCard,{analyticsEventSource:c.oi.CATEGORY_LIST,project:{...e},withBorder:!1,isMonthly:!0,hideRankMedals:!0},e.id):null),(null==m?void 0:m.length)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"py-2 border-b"}),(0,o.jsxs)("div",{className:"px-6 py-6 flex flex-col gap-6",children:[(0,o.jsx)(t.default.SemiBoldText,{children:"More Categories"}),(0,o.jsx)("div",{className:"grid md:grid-cols-2 grid-cols-1 gap-6 w-full",children:null==m?void 0:m.map(e=>(0,o.jsx)(C.A,{category:e},null==e?void 0:e.id))})]})]}):null]}),(0,o.jsx)(a.A.Right,{className:"overflow-y-scroll pb-20 hide-scrollbar",children:(0,o.jsx)(A,{categoryDetails:l,allCategories:null==u?void 0:u.slice(4,8)})})]})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=34890)),_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.