1?p:1,g))]}):(0,s.jsx)(s.Fragment,{children:C(S.slice(p-1,g))})}function k(e){var i=e.droppable,a=void 0===i||i,n=e.onStoryClick,r=e.showCanonicalSite,d=e.stories;return 0===d.length?null:(0,s.jsx)("div",{className:"mb-16 mt-4 flex flex-col md:mt-9 md:flex-row",children:d.map(function(e,i){return(0,s.jsxs)(t.Fragment,{children:[(0,s.jsx)("div",{className:(0,o.A)("hidden xl:flex",{"w-1/3":d.length<=3,"w-1/4":d.length>3}),children:(0,s.jsx)(l.A,{className:(0,o.A)("w-full px-5",{"border-r":i<=2,"pl-0":0===i,"pr-0":3===i}),droppable:a,imageHeight:90,imagePosition:j.zH.RIGHT_BEGIN,imageWidth:90,imageWrapperClassName:"w-[90px]",index:e.index-1,onClick:n,showByline:!1,showCanonicalSite:r,showSignpost:!1,showTimestamp:!0,story:e.story,titleSize:"text-base md:text-sm font-normal line-clamp-4"},e.story.id)}),(0,s.jsx)("div",{className:(0,o.A)("relative flex w-full md:hidden",{"border-b":i<=2}),children:(0,s.jsx)(l.A,{className:"w-full py-4",droppable:a,imageHeight:90,imagePosition:j.zH.RIGHT_BEGIN,imageWidth:90,imageWrapperClassName:"w-[90px]",index:e.index-1,isHeading:!1,showByline:!1,showCanonicalSite:r,showSignpost:!1,showTimestamp:!0,story:e.story,titleSize:"text-base md:text-xl line-clamp-4"},e.story.id)}),i<=1&&(0,s.jsx)("div",{className:"hidden w-1/2 md:flex lg:hidden",children:(0,s.jsx)(l.A,{className:(0,o.A)("w-full",{"border-r pr-4":0===i,"pl-4":1===i}),droppable:a,imageHeight:80,imagePosition:j.zH.RIGHT_BEGIN,imageWidth:80,imageWrapperClassName:"w-[80px]",index:e.index-1,showByline:!1,showSignpost:!1,showTimestamp:!0,story:e.story,titleSize:"text-base md:text-sm font-normal line-clamp-4"},e.story.id)}),i<=2&&(0,s.jsx)("div",{className:"hidden w-1/3 lg:flex xl:hidden",children:(0,s.jsx)(l.A,{className:(0,o.A)("w-full px-4",{"border-r":i<=1,"pl-0":0===i,"pr-0":2===i}),droppable:a,imageHeight:90,imagePosition:j.zH.RIGHT_BEGIN,imageWidth:90,imageWrapperClassName:"w-[90px]",index:e.index-1,showByline:!1,showSignpost:!1,showTimestamp:!0,story:e.story,titleSize:"text-base md:text-sm font-normal line-clamp-4"},e.story.id)})]},e.index)})})}function R(e){var i=e.className,a=e.droppable,t=e.isHeading,n=e.sameTabForCanonical,r=e.showCanonicalSite,d=e.story;return(0,s.jsx)(l.A,{className:(0,o.A)("relative w-full",void 0===i?"":i),droppable:void 0===a||a,headlineWrapperClassName:"",imageHeight:66,imagePosition:j.zH.LEFT,imageWidth:100,imageWrapperClassName:"w-[100px]",index:d.index-1,isHeading:void 0!==t&&t,lineClamp:"line-clamp-3",sameTabForCanonical:void 0!==n&&n,showCanonicalSite:void 0!==r&&r,showSummaryInStoryList:!0,sourceClassName:"mt-2 text-xs font-normal text-gray-500",story:d.story,summaryFontSize:"text-sm",titleSize:"text-base md:text-lg"})}function P(e){var i=e.className,a=e.droppable,t=e.isHeading,n=e.sameTabForCanonical,r=e.showCanonicalSite,d=e.story;return(0,s.jsx)(l.A,{className:(0,o.A)("relative w-full",void 0===i?"":i),droppable:void 0===a||a,headlineWrapperClassName:"",imageHeight:165,imagePosition:j.zH.LEFT,imageWidth:250,imageWrapperClassName:"w-[250px]",index:d.index-1,isHeading:void 0!==t&&t,lineClamp:"line-clamp-3",sameTabForCanonical:void 0!==n&&n,showCanonicalSite:void 0!==r&&r,showSummaryInStoryList:!0,showTimestamp:!0,sourceClassName:"mt-2 text-xs font-normal text-gray-500",story:d.story,summaryFontSize:"text-sm",titleSize:"text-base md:text-lg"})}function _(e){var i=e.className,a=e.droppable,t=e.isHeading,n=e.sameTabForCanonical,r=e.showCanonicalSite,d=e.story;return(0,s.jsx)(l.A,{className:(0,o.A)("relative w-full",void 0===i?"":i),droppable:void 0===a||a,headlineWrapperClassName:"",imageHeight:400,imagePosition:j.zH.ABOVE,imageResize:!0,imageWidth:600,imageWrapperClassName:"w-full h-44 md:h-32 lg:h-40",index:d.index-1,isHeading:void 0!==t&&t,lineClamp:"line-clamp-3",sameTabForCanonical:void 0!==n&&n,showCanonicalSite:void 0!==r&&r,showSummaryInStoryList:!0,sourceClassName:"mt-3 text-sm font-normal text-gray-500",story:d.story,summaryFontSize:"text-sm",textElementsMargin:"mt-3 md:mt-2",titleSize:"text-lg"},d.story.id)}function M(e){var i=e.droppable,a=void 0===i||i,t=e.sameTabForCanonical,n=void 0!==t&&t,r=e.showAll,l=void 0!==r&&r,d=e.showCanonicalSite,m=void 0!==d&&d,c=e.stories,h=c.length;return(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 divide-y-1 divide-gray-300 md:grid-cols-3 md:gap-[1.625rem] md:divide-y-0 lg:grid-cols-4",children:[(0,s.jsx)(_,{droppable:a,isHeading:!0,sameTabForCanonical:n,showCanonicalSite:m,story:c[0]}),c.slice(1,h).map(function(e,i){var t=l||i+1