1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,737549,e=>{"use strict";var t=e.i(786169),a=e.i(966857),s=e.i(709765);e.s(["CategoryClickHandler",0,function(e){let l,r,i=(0,a.c)(6),{category:o,children:c}=e,n=(0,s.useRouter)();i[0]!==o||i[1]!==n?(l=e=>{e.stopPropagation(),e.preventDefault(),n.push(`/blog/${o}`)},i[0]=o,i[1]=n,i[2]=l):l=i[2];let u=l;return i[3]!==c||i[4]!==u?(r=(0,t.jsx)("span",{onClick:u,children:c}),i[3]=c,i[4]=u,i[5]=r):r=i[5],r}])},493433,e=>{"use strict";var t=e.i(786169),a=e.i(191420),s=e.i(560285),l=e.i(141450),r=class extends l.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:a}=e,l=super.createResult(e,t),{isFetching:r,isRefetching:i,isError:o,isRefetchError:c}=l,n=a.fetchMeta?.fetchMore?.direction,u=o&&"forward"===n,d=r&&"forward"===n,h=o&&"backward"===n,g=r&&"backward"===n;return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.hasNextPage)(t,a.data),hasPreviousPage:(0,s.hasPreviousPage)(t,a.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:g,isRefetchError:c&&!u&&!h,isRefetching:i&&!d&&!g}}},i=e.i(581540),o=e.i(790450);async function c(e=1,t){let a=new URLSearchParams({page:e.toString(),perPage:"9"});t&&a.append("withCategory",t);let s=await fetch(`${o.APP_URL}/api/posts?${a}`,{headers:o.isPreview?{"x-vercel-protection-bypass":o.VERCEL_DEPLOYMENT_PROTECTION_BYPASS_SECRET}:void 0,next:{revalidate:!1,tags:["posts"]}});return s.ok?await s.json():{total:0,posts:[]}}var n=e.i(966857),u=e.i(144609),d=e.i(384109);let h={newFeatures:{label:"New Feature",value:"newFeatures"},improvement:{label:"Improvement",value:"improvement"},profile:{label:"Profile",value:"profile"},newsletter:{label:"Newsletter",value:"newsletter"},caseStudy:{label:"Case Study",value:"caseStudy"},resource:{label:"Resource",value:"resource"},announcement:{label:"Announcement",value:"announcement"},industryNews:{label:"Industry News",value:"industryNews"},guide:{label:"Guide",value:"guide"}},g={movies:{label:"Movies",value:"movies"},shows:{label:"Shows",value:"shows"},lists:{label:"Lists",value:"lists"},"filmmaker-spotlights":{label:"Filmmaker spotlights",value:"filmmaker-spotlights"},"distributor-spotlights":{label:"Distributor spotlights",value:"distributor-spotlights"}},p={...h,...g};h.announcement.value,g.movies.value;var v=e.i(508719),m=e.i(737549);function f(e){let a,s,l,r=(0,n.c)(5),{color:i}=e;return r[0]!==i?(a={backgroundColor:i},r[0]=i,r[1]=a):a=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(v.LogoSymbol,{className:"h-6"}),r[2]=s):s=r[2],r[3]!==a?(l=(0,t.jsx)("div",{className:"flex h-full w-full p-3.5",style:a,children:s}),r[3]=a,r[4]=l):l=r[4],l}function b(e){let a,s,l,r,i,o,c=(0,n.c)(20),{post:h,bgdColor:g}=e,v=`/blog/posts/${h.slug}`;c[0]!==g||c[1]!==h.coverImage||c[2]!==h.title?(a=(0,t.jsx)("div",{className:"relative aspect-[2.06] w-full",children:h.coverImage?(0,t.jsx)(u.default,{fill:!0,src:h.coverImage,alt:h.title,className:"object-cover"}):(0,t.jsx)(f,{color:g})}),c[0]=g,c[1]=h.coverImage,c[2]=h.title,c[3]=a):a=c[3];let b=p[h.category],x=p[h.category];return c[4]!==x.label?(s=(0,t.jsx)("p",{className:"text-base hover:underline dark:text-white",children:x.label}),c[4]=x.label,c[5]=s):s=c[5],c[6]!==b.value||c[7]!==s?(l=(0,t.jsx)("div",{className:"mt-4 mb-2 flex flex-wrap gap-2",children:(0,t.jsx)(m.CategoryClickHandler,{category:b.value,children:s})}),c[6]=b.value,c[7]=s,c[8]=l):l=c[8],c[9]!==h.title?(r=(0,t.jsx)("div",{className:"mt-2 mb-4 text-2xl group-hover:underline md:min-h-[calc(2em+1rem)] 2xl:text-3xl dark:text-white",children:h.title}),c[9]=h.title,c[10]=r):r=c[10],c[11]!==h.excerpt?(i=(0,t.jsx)("p",{className:"line-clamp-4 text-[17px] text-black/75 dark:text-white",children:h.excerpt}),c[11]=h.excerpt,c[12]=i):i=c[12],c[13]!==h.id||c[14]!==v||c[15]!==a||c[16]!==l||c[17]!==r||c[18]!==i?(o=(0,t.jsxs)(d.default,{href:v,className:"group col-span-1 block overflow-hidden",id:h.id,children:[a,l,r,i]}),c[13]=h.id,c[14]=v,c[15]=a,c[16]=l,c[17]=r,c[18]=i,c[19]=o):o=c[19],o}let x=["#CED9E7","#8C7A70","#ABB4A1","#E0DAD0"];e.s(["RecentPosts",0,function({initialData:e,category:s}){var l;let o=(0,i.useRef)(null),n=(0,i.useRef)(0),{data:u,fetchNextPage:d,hasNextPage:h,isFetching:g}=(l={queryKey:["posts",s??"all"],queryFn:({pageParam:e})=>c(e,s),initialPageParam:1,getNextPageParam:(e,t,a)=>e.total>t.flatMap(e=>e.posts).length?a+1:void 0,initialData:{pages:[e],pageParams:[1]},refetchOnMount:!1},(0,a.useBaseQuery)(l,r,void 0)),p=(0,i.useCallback)(e=>{if(!g){if(o.current&&o.current.disconnect(),!h){o.current=null;return}
1o.current=new IntersectionObserver(([e])=>{e?.isIntersecting&&d()}),e&&o.current.observe(e)}},[g,d,h]),v=u?.pages.flatMap(e=>e.posts)??[],m=v[0]?.coverImage?v.slice(1):v;return(0,t.jsx)("div",{className:"mb-10 grid w-full grid-cols-1 gap-x-10 gap-y-15 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-6",children:m.map((e,a)=>(e.coverImage||(n.current=n.current+1),(0,t.jsx)("div",{className:a<2?"xl:col-span-3":"xl:col-span-2",ref:a===m.length-4?p:null,children:(0,t.jsx)(b,{post:e,bgdColor:x[n.current%x.length]??x[0]})},e.id)))})}],493433)}]);
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.