<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&amp;&amp;(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="35ba5b74-9ba2-56e7-8c13-056443bc8ade")}catch(e){}}();
import{j as e}from"./jsx-runtime-Cf8x2fCZ.js";import{c as h}from"./index-B4P2qLrl.js";import{u as Yr,S as Gr,P as Kr,a as ke,T as Be,b as yt,c as gt,A as Gs}from"./index-Djgea4my.js";import{r as f,e as ie,u as Qr,a as Zr}from"./index-CnhpwU98.js";import{g as St}from"./index-DcpNk-OI.js";import{d as Ve,a as Ks,L as Ie,u as Qs}from"./components-MUvJN_Vi.js";import{P as Jr,a as De,b as Zs,c as pe,d as Se,e as Js,f as Ce,g as Pe}from"./index-B0ssoKgt.js";import{T,n as qe}from"./index-DfxmtkDy.js";import{u as ce}from"./useTranslation-CMWGipsT.js";import{F as Ct}from"./ChevronRightIcon-BisdA8W9.js";import{u as A}from"./useTypedLoaderData-wt0nERwK.js";import{C as Xe,S as Ye,a as el}from"./CreateAction-BHCalnac.js";import{I as de}from"./Image-BgM8QS0f.js";import{M as He}from"./index-Da2q5lFc.js";import{C as Xs,m as C,T as Pt,D as It,B as er,S as tl}from"./popover-Bxg2GWS2.js";import{q as sl}from"./transition-DXtNuaf8.js";import{u as Tt}from"./useIsLoggedIn-DLyBBDcB.js";import{a as tr,B as sr,P as rr,b as lr}from"./WebThemeContext-FsIy-vr7.js";import{B as _e}from"./index-B_xe7MBA.js";import{T as ar,L as or,Y as nr,a as ir,F as cr,I as dr}from"./YoutubeIcon-CJe8iYPn.js";import{F as rl}from"./ArrowLeftIcon-CLtL19Yy.js";import{P as mr}from"./index-DJhTZp2H.js";import{t as $e}from"./i18next-BGmvVs3U.js";import{F as Ys}from"./FreeGatedContent-BLPnkaTm.js";import{T as Nt}from"./index-D1H9sqQ-.js";import{u as ll}from"./useWebBuilderCommunicator-Dxwkq0s0.js";import{g as al}from"./index-DTnEVzph.js";import{g as ol}from"./index-DA1hdeBh.js";import"./index-yBjzXJbu.js";import"./index-76jK7shb.js";import"./dayjs.min-By0gEVcE.js";import"./relativeTime-DdZlBsJ9.js";import"./HeroChatIcon-DUUHomXd.js";import"./LockClosedIcon-ntWxtlG2.js";import"./useDebounce-C9BMXqrQ.js";import"./MagnifyingGlassIcon-BjJxTX8i.js";import"./XMarkIcon-Durbfwvh.js";import"./context-D-2EtPe0.js";import"./index-BHkt3zb0.js";import"./StatusInputs-C2fwlicj.js";import"./PageProvider-DJ36AOM3.js";import"./useToast-Z33VfwyX.js";import"./use-root-containers-vZUxTWOC.js";import"./keyboard-DGYiofhD.js";import"./hidden-DMDDffAz.js";import"./bugs-D7qcOA8r.js";import"./use-is-mounted-CLLClO16.js";function nl({title:t,titleId:s,...a},r){return f.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),t?f.createElement("title",{id:s},t):null,f.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))}const il=f.forwardRef(nl),cl=({category:t})=&gt;{const s=Ve();return f.useEffect(()=&gt;{s.load(`/t/${St(t)}`)},[]),{isLoading:!s?.data,posts:s?.data?.paginatedPosts.posts}},dl=()=&gt;e.jsxs("div",{className:"grid w-full animate-pulse grid-cols-3 gap-6",children:[e.jsx("div",{className:"h-60 w-full rounded bg-gray-200"}),e.jsx("div",{className:"h-60 w-full rounded bg-gray-200"}),e.jsx("div",{className:"h-60 w-full rounded bg-gray-200"})]}),kt=({isLoading:t,posts:s,card:a,title:r,description:l,ctaPath:o="",fontFamily:c,isNewWebBuilder:n=!1})=&gt;{const{t:d}=ce(),{homePage:i,cardStyles:m}=Ks(),x=i?.general_section?.theme?.accent_color,P=i?.general_section?.theme?.text_color,{postsWithInsights:N}=Yr({incomingPosts:s});return!s||s.length===0?null:e.jsxs("div",{className:"space-y-6 py-8",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Gr,{title:r,description:l,fontFamily:c,accentColor:x,textColor:P,isNewWebBuilder:n}),o&amp;&amp;e.jsx(Ie,{prefetch:"intent",to:o,className:"flex items-center space-x-0.5 opacity-70 hover:opacity-100",children:e.jsxs(T,{as:"span",size:"md",fontFamily:c,fontFamilyv2:n?c:void 0,color:x,className:"flex items-center",children:[d("shared.cta.view_more"),e.jsx(Ct,{className:"ml-2 mt-0.5 h-4 w-4"})]})})]}),t?e.jsx(dl,{}):e.jsx("div",{className:"grid grid-cols-3 gap-6",children:N?.map(w=&gt;e.jsx("div",{className:"col-span-3 md:col-span-1",children:n?e.jsx(Jr,{post:w,cardStyles:m},w.id):e.jsx(Kr,{post:w,card:a},w.id)},w.id))})]})},ml=({category:t,card:s,fontFamily:a,isNewWebBuilder:r=!1})=&gt;{const{posts:l,isLoading:o}=cl({category:t}),c=l?.slice(0,3);return e.jsx(kt,{title:t,posts:c,card:s,fontFamily:a,isLoading:o,ctaPath:`/t/${St(t)}`,isNewWebBuilder:r})},ur=({isNewWebBuilder:t=!1,isExampleWebSite:s=!1,postsSection:a,generalSection:r})=&gt;{const{featuredPosts:l,paginatedPosts:o}=Ks(),c=r?.theme.header_type==="default";return e.jsxs("div",{className:"mb-0 lg:mb-16",children:[c&amp;&amp;e.jsx(kt,{title:a.featured_sections.featured_posts_label,description:a.featured_sections?.featured_posts_description,posts:l,card:a?.card,fontFamily:a.featured_sections.font,isLoading:!1,isNewWebBuilder:t}),a.featured_sections.latest_posts_enabled&amp;&amp;e.jsx(kt,{title:a.featured_sections.latest_posts_label,description:a.featured_sections?.latest_posts_description,posts:o.posts.slice(0,3),card:a?.card,fontFamily:a.featured_sections.font,isLoading:!1,isNewWebBuilder:t}),!s&amp;&amp;a.featured_sections.category_posts.map(n=&gt;e.jsx(ml,{category:n,fontFamily:a.featured_sections.font,card:a?.card,isNewWebBuilder:t},n))]})},ul=({children:t,bgColor:s,className:a,bgImage:r})=&gt;e.jsx("section",{style:{...r&amp;&amp;{backgroundImage:`url(${r})`},...s&amp;&amp;{backgroundColor:s}},className:h(a),children:t}),hl=({authors:t,children:s,isMoreThanTwoAuthors:a,bgColor:r,textColor:l})=&gt;{const[o,c]=f.useState(!1);return e.jsx("div",{className:"relative flex items-center",children:a?e.jsxs(Xs,{className:"relative cursor-pointer",onMouseEnter:()=&gt;c(!0),onMouseLeave:()=&gt;c(!1),children:[s,e.jsx(sl,{show:o,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:e.jsx(Xs.Panel,{style:{...r&amp;&amp;{backgroundColor:r,borderColor:r}},className:"absolute left-0 top-2 flex w-60 flex-col space-y-2 rounded-sm border border-gray-100 px-2 py-4 shadow-sm focus:outline-none",children:t.map(n=&gt;e.jsxs("div",{className:"flex items-center space-x-2 rounded px-2 py-1",children:[e.jsx("div",{className:"h-5 w-5 overflow-hidden rounded-full",children:e.jsx("img",{className:"w-full",src:n.profile_picture.thumb.url,loading:"lazy",alt:`Profile thumb for author ${n.name}`},n.id)}),e.jsx("span",{style:{...l&amp;&amp;{color:l}},className:"-mb-0.5 whitespace-nowrap text-xs text-gray-700",children:n.name})]},n.id))})})]}):e.jsx("div",{children:s})})},fl=({publication:t,authors:s,homePage:a})=&gt;{const{t:r}=ce(),l=s.length===0,o=s.length===1,c=s.length===2,n=s.length&gt;2,d=a.main_section.authors_widget.label||r("author.byline"),i=a.main_section.authors_widget.text||"",m=a.main_section.authors_widget.text,x=t.email_sender_name,P=()=&gt;i||x||m||`${s[0].name} &amp; ${s[1].name}`;return e.jsxs("div",{className:"z-20",children:[e.jsx(hl,{bgColor:a.main_section.authors_widget.dropdown_bg_color,textColor:a.main_section.authors_widget.dropdown_text_color,authors:s,isMoreThanTwoAuthors:n,children:e.jsxs("div",{className:h(n?"flex flex-col space-y-2":"flex space-x-2"),children:[e.jsxs("div",{children:[o&amp;&amp;e.jsx("div",{className:"flex -space-x-1 overflow-hidden",children:s.map(N=&gt;e.jsx("div",{className:"h-5 w-5 overflow-hidden rounded-full",children:e.jsx(de,{loading:"eager",src:N.profile_picture.thumb.url,alt:`Profile thumb for author ${N.name}`,maxWidth:100,aspectRatio:"square"})},N.id))}),c&amp;&amp;e.jsx("div",{className:"flex -space-x-1 overflow-hidden",children:s.map(N=&gt;e.jsx("img",{className:"inline-block h-5 w-5 rounded-full",loading:"eager",src:N.profile_picture.thumb.url,alt:`Profile thumb for author ${N.name}`},N.id))}),n&amp;&amp;e.jsxs("div",{className:"flex -space-x-1 overflow-hidden",children:[s.map((N,w)=&gt;w&lt;3?e.jsx("img",{className:"inline-block h-5 w-5 rounded-full",src:N.profile_picture.thumb.url,loading:"eager",alt:`Profile thumb for author ${N.name}`},N.id):null),s.length&gt;3&amp;&amp;e.jsx("div",{className:"inline-block h-5 w-5 items-center justify-center rounded-full bg-gray-300",children:e.jsx("span",{className:"text-xs font-semibold text-white",children:"+"})})]})]}),e.jsxs("div",{className:"flex flex-col",children:[!l&amp;&amp;e.jsx(T,{as:"span",fontFamily:a.general_section.theme.font,color:a.main_section.authors_widget.text_color,className:"mb-0.5 whitespace-nowrap text-xs font-semibold",children:d}),e.jsxs("div",{className:"flex",children:[o&amp;&amp;e.jsx(T,{as:"span",size:"xs",weight:"light",fontFamily:a.general_section.theme.font,color:a.main_section.authors_widget.text_color,className:"mr-0.5 line-clamp-1 opacity-75",children:i||x||m||s[0].name}),c&amp;&amp;e.jsx(T,{as:"span",size:"xs",weight:"light",fontFamily:a.general_section.theme.font,color:a.main_section.authors_widget.text_color,className:"mr-0.5 line-clamp-1 opacity-75",children:P()}),n&amp;&amp;e.jsx(T,{as:"span",size:"xs",weight:"light",fontFamily:a.general_section.theme.font,color:a.main_section.authors_widget.text_color,className:"mr-0.5 line-clamp-1 opacity-75",children:i||x||m||t.name})]})]})]})}),l&amp;&amp;e.jsxs("div",{className:"flex flex-col",children:[e.jsx(T,{as:"span",fontFamily:a.general_section.theme.font,color:a.main_section.authors_widget.text_color,className:"mb-0.5 whitespace-nowrap text-xs font-semibold",children:d}),e.jsx(T,{as:"span",size:"xs",fontFamily:a.general_section.theme.font,color:a.main_section.authors_widget.text_color,weight:"light",className:"mr-0.5 line-clamp-1 opacity-75",children:i||x||t.name})]})]})},xl=({publication:t,size:s})=&gt;e.jsxs("div",{className:"flex items-end space-x-2",children:[t.twitter_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.twitter_url),"aria-label":"X",children:e.jsxs("svg",{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[e.jsx("title",{children:"X"}),e.jsx("g",{children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})]})}),t.linkedin_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.linkedin_url),"aria-label":"LinkedIn",children:e.jsxs("svg",{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:[e.jsx("title",{children:"LinkedIn"}),e.jsx("path",{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"})]})}),t.youtube_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.youtube_url),"aria-label":"Youtube",children:e.jsxs("svg",{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":""),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[e.jsx("title",{children:"YouTube"}),e.jsx("path",{d:"M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"})]})}),t.tiktok_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.tiktok_url),"aria-label":"Tiktok",children:e.jsxs("svg",{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2859 3333",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",children:[e.jsx("title",{children:"Tiktok"}),e.jsx("path",{d:"M2081 0c55 473 319 755 778 785v532c-266 26-499-61-770-225v995c0 1264-1378 1659-1932 753-356-583-138-1606 1004-1647v561c-87 14-180 36-265 65-254 86-398 247-358 531 77 544 1075 705 992-358V1h551z"})]})}),t.facebook_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.facebook_url),"aria-label":"Facebook",children:e.jsxs("svg",{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[e.jsx("title",{children:"Facebook"}),e.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})]})}),t.instagram_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.instagram_url),"aria-label":"Instagram",children:e.jsxs("svg",{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":""),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[e.jsx("title",{children:"Instagram"}),e.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})]})}),t.threads_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.threads_url),"aria-label":"Threads",children:e.jsx(Pt,{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":"")})}),t.discord_url&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(t.discord_url),"aria-label":"Discord",children:e.jsx(It,{className:h("fill-current opacity-40 hover:opacity-100",s==="sm"?"h-4 w-4":"",s==="md"?"h-6 w-6":"")})})]}),Ft=()=&gt;{const t=Ve();return f.useEffect(()=&gt;{t.load("/authors?index")},[]),{isLoading:!t?.data,authors:t?.data?.authors?.authors}},gl=(t,s)=&gt;lr[s][t],pl=t=&gt;{const s=t.tiktok_url,a=t.twitter_url,r=t.youtube_url,l=t.facebook_url,o=t.instagram_url,c=t.linkedin_url,n=t.discord_url,d=t.threads_url;return s||a||r||l||o||c||n||d},_l=()=&gt;{const{t}=ce(),{isLoading:s,authors:a}=Ft(),{homePage:r,publication:l}=A(),{general:o,content_container:c,headline:n,description:d,logo:i,signup_widget:m}=r.main_section,x=tr[o.bg_gloss_opacity||"0"],P=sr[c.border_radius||"rounded-none"],N=gl(c.border_width,c.border_sides),w=rr[c.padding||"p-0"],X=pl(l),{web_template:M}=l,Q=Tt();return e.jsxs(ul,{bgColor:o.bg_color,bgImage:r?.main_bg_image_url,className:"relative bg-cover bg-center bg-no-repeat px-4 pb-4 pt-16",children:[e.jsx("div",{className:h("absolute left-0 top-0 h-full w-full",x),style:{backgroundColor:o.bg_color}}),e.jsxs("div",{className:"relative mx-auto max-w-6xl",children:[e.jsxs("div",{className:h("mx-auto mb-10 w-full",c.padding==="none"?"max-w-xl":"max-w-2xl",w,P,N),style:{borderColor:c.border_color,backgroundColor:c.bg_color},children:[e.jsxs("div",{className:"flex-start flex flex-col items-center py-2",children:[i.enabled&amp;&amp;e.jsx("div",{className:h({"mb-4 overflow-hidden rounded":!0,"h-16 w-16":i.size==="sm","h-20 w-20":i.size==="md","h-24 w-24":i.size==="lg","shadow-sm":i.shadow==="sm","shadow-md":i.shadow==="md","shadow-lg":i.shadow==="lg","shadow-xl":i.shadow==="xl"}),children:e.jsx(de,{maxWidth:128,aspectRatio:"square",src:l.logo.url,alt:l.name})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(T,{as:"h1",size:n.size,weight:"bold",fontFamily:n.font,color:n.color,className:"w-full text-center",children:e.jsx(He,{children:n.text})}),e.jsx(T,{as:"div",size:d.size,weight:"regular",fontFamily:d.font,color:d.color,className:"w-full text-center",children:e.jsx(He,{children:d.text})})]})]}),e.jsx("div",{className:"mx-auto mt-4 max-w-xl",children:Q&amp;&amp;M.logged_subscribe_form?e.jsx(e.Fragment,{}):e.jsx(Xe,{publication:l,fontFamily:qe(m.font),placeholderText:m.placeholder_text,cta:m.cta_text,textColor:m.text_color,backgroundColor:m.bg_color})})]}),e.jsxs("div",{className:"flex items-end justify-between",children:[!s&amp;&amp;l.render_authors_widget&amp;&amp;e.jsx(fl,{authors:a,publication:l,homePage:r}),r.main_section.social_widget.enabled&amp;&amp;X&amp;&amp;e.jsxs("div",{children:[e.jsx(T,{as:"p",fontFamily:r.general_section.theme.font,color:r.main_section.social_widget.text_color,className:"mb-1 whitespace-nowrap text-xs font-semibold",children:r.main_section.social_widget.label||t("shared.cta.connect")}),e.jsx(T,{as:"span",fontFamily:r.general_section.theme.font,color:r.main_section.social_widget.text_color,className:"mb-0.5 whitespace-nowrap text-xs font-semibold",children:e.jsx(xl,{publication:l,size:"sm"})})]})]})]})]})},vl=(t,s)=&gt;{let a;const r=[];s.forEach((o,c)=&gt;{c===0?a=o:r.push(o)});let l=r.length;return t.forEach(o=&gt;{if(!a){a=o;return}l&gt;=4||(r.push(o),l++)}),{headliner:a,rightPanelPosts:r}},bl=()=&gt;{const{t}=ce(),{homePage:s,publication:a,featuredPosts:r,paginatedPosts:l}=A(),{headliner:o,rightPanelPosts:c}=vl(l.posts,r),n=s?.general_section?.header?.width;return e.jsx("div",{className:"px-4",children:e.jsx("div",{className:h("mx-auto mb-12 pr-4 pt-8",n==="full"?"w-full":"w-full max-w-6xl"),children:e.jsxs("div",{className:"flex flex-col gap-0 md:flex-row md:gap-8",children:[e.jsxs("div",{className:"w-full md:w-2/3",children:[o&amp;&amp;e.jsxs(ke,{slug:o?.slug,className:h("group relative flex w-full flex-col overflow-hidden rounded shadow-xl"),children:[e.jsx(yt,{alt:o?.web_title,src:o?.image_url,radiusClass:"rounded-xs"}),e.jsx("div",{className:"absolute left-6 top-6",children:e.jsx("div",{style:{backgroundColor:s?.general_section?.theme?.accent_color},className:"px-2 py-1",children:e.jsx("span",{className:"font-semibold capitalize text-white",children:o?.content_tags?.[0]?.name||t("posts.featured")})})}),e.jsx("div",{className:"absolute bottom-0 flex h-full w-full flex-col justify-end space-y-1 bg-black bg-opacity-20 p-4 transition-all group-hover:bg-opacity-0",children:e.jsx(T,{as:"h2",size:"6xl",fontFamily:s?.general_section?.theme?.font,weight:"bold",color:"#ffffff",children:o?.web_title})})]}),e.jsx("div",{className:"pt-6",children:e.jsx(Xe,{publication:a,fontFamily:qe(s.main_section.signup_widget.font),placeholderText:s.main_section.signup_widget.placeholder_text,cta:s.main_section.signup_widget.cta_text,textColor:s.main_section.signup_widget.text_color,backgroundColor:s.main_section.signup_widget.bg_color})})]}),e.jsx("div",{className:"w-full md:w-1/3",children:c.map((d,i)=&gt;e.jsx("div",{className:"border-b",style:{borderColor:s?.general_section?.theme?.border_color},children:e.jsx(ke,{slug:d?.slug,className:h("group relative flex w-full flex-col space-y-2 py-5 transition-all"),children:e.jsxs("div",{className:"flex items-center justify-between space-x-4",children:[e.jsxs("div",{className:"",children:[e.jsx(T,{as:"span",size:"sm",fontFamily:s?.general_section?.theme?.font,weight:"bold",color:s?.general_section?.theme?.accent_color,className:"capitalize",children:d?.content_tags?.[0]?.name}),e.jsx(Be,{title:d.web_title,subtitle:d?.web_subtitle,textClassName:"group-hover:underline",fontFamily:s?.general_section?.theme?.font,titleSize:"lg",subtitleSize:"xs",titleColor:s?.general_section?.theme?.text_color,subtitleColor:s?.general_section?.theme?.text_color})]}),e.jsx("div",{style:{color:s?.general_section?.theme?.text_color,borderColor:s?.general_section?.theme?.text_color},className:"h-fit rounded-full border p-2",children:e.jsx(Ct,{className:"h-6 w-6"})})]})})},d.id))})]})})})},wl=(t,s)=&gt;{let a;const r=[],l=[];s.forEach((n,d)=&gt;{d===0?a=n:r.length&lt;2?r.push(n):l.push(n)});let o=l.length,c=r.length;return t.forEach(n=&gt;{if(!a){a=n;return}if(c&lt;2){r.push(n),c++;return}o&gt;=4||(l.push(n),o++)}),{headliner:a,leftPanelPosts:r,rightPanelPosts:l}},jl=()=&gt;{const{homePage:t,publication:s,paginatedPosts:a,featuredPosts:r}=A(),l=a.posts,{headliner:o,leftPanelPosts:c,rightPanelPosts:n}=wl(l,r),d=t?.general_section?.header?.width;return e.jsx("div",{className:"w-full px-4 py-12 pt-8",children:e.jsxs("div",{style:d==="full"?{maxWidth:"1600px"}:{},className:h("mx-auto grid grid-cols-12 gap-0 transition-all md:gap-6",d==="full"?"w-full":"max-w-6xl"),children:[e.jsx("div",{className:"col-span-12 w-full md:col-span-3 md:block",children:e.jsx("div",{className:"space-y-2",children:c.map((i,m)=&gt;{const x=i.audience==="premium";return e.jsxs(ke,{slug:i?.slug,className:h("group flex w-full flex-col transition-all"),children:[e.jsx(yt,{alt:i.web_title,src:i.image_url}),e.jsx("div",{className:h("flex flex-col justify-between space-y-6 py-4"),children:e.jsxs("div",{className:"space-y-1",children:[x&amp;&amp;e.jsx(gt,{fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.accent_color}),e.jsx(Be,{title:i.web_title,subtitle:i?.web_subtitle,fontFamily:t?.general_section?.theme?.font,titleSize:"xl",subtitleSize:"md",titleColor:t?.general_section?.theme?.text_color,subtitleColor:t?.general_section?.theme?.text_color,textClassName:"group-hover:underline"})]})})]},i.id)})})}),e.jsxs("div",{className:"col-span-12 w-full space-y-4 md:col-span-9 lg:col-span-6",children:[o?e.jsxs(ke,{slug:o?.slug,className:h("group flex w-full flex-col transition-all"),children:[e.jsx(yt,{alt:o?.web_title,src:o?.image_url}),e.jsx("div",{className:h("flex flex-col justify-between space-y-6 py-4"),children:e.jsxs("div",{className:"space-y-3",children:[o?.audience==="premium"&amp;&amp;e.jsx(gt,{fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.accent_color}),e.jsx(Be,{title:o?.web_title,subtitle:o?.web_subtitle,fontFamily:t?.general_section?.theme?.font,titleSize:"2xl",subtitleSize:"lg",titleColor:t?.general_section?.theme?.text_color,subtitleColor:t?.general_section?.theme?.text_color,textClassName:"group-hover:underline"})]})})]}):null,e.jsx(Xe,{publication:s,fontFamily:qe(t.main_section.signup_widget.font),placeholderText:t.main_section.signup_widget.placeholder_text,cta:t.main_section.signup_widget.cta_text,textColor:t.main_section.signup_widget.text_color,backgroundColor:t.main_section.signup_widget.bg_color})]}),e.jsx("div",{className:"col-span-12 w-full lg:col-span-3 lg:block",children:e.jsx("div",{className:"flex flex-col space-y-2",children:n.map((i,m)=&gt;{const x=i.audience==="premium";return e.jsx("div",{className:"border-b",style:{borderColor:t?.general_section?.theme?.border_color},children:e.jsx(ke,{slug:i?.slug,className:h("group relative flex w-full flex-col space-y-2 py-4 pb-4 transition-all"),children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"",children:[x&amp;&amp;e.jsx(gt,{fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.accent_color}),e.jsx(Be,{title:i.web_title,subtitle:i?.web_subtitle,textClassName:"group-hover:underline",fontFamily:t?.general_section?.theme?.font,titleSize:"md",subtitleSize:"xs",titleColor:t?.general_section?.theme?.text_color,subtitleColor:t?.general_section?.theme?.text_color})]})})})},i.id)})})})]})})},yl=()=&gt;{const{homePage:t}=A();switch(t.general_section.theme.header_type){case"headliner":return e.jsx(bl,{});case"news":return e.jsx(jl,{});default:return e.jsx(_l,{})}},Nl=()=&gt;e.jsx(_e,{className:"mx-auto w-full max-w-6xl",children:e.jsx("div",{id:"header-ad-placement"})}),kl=({text:t,viewMoreLink:s,isNewWebBuilder:a,accentColor:r,font:l})=&gt;e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx(T,{as:"h6",size:"sm",className:"font-semibold",color:r,fontFamily:l,children:t}),s&amp;&amp;!a&amp;&amp;e.jsx(Ie,{to:s,prefetch:"intent",children:e.jsx("div",{className:"flex items-center opacity-70 hover:opacity-100",children:e.jsx(Ct,{style:{color:r},className:"h-4 w-4 text-gray-400"})})})]})}),ve=({text:t,children:s,viewMoreLink:a,isNewWebBuilder:r})=&gt;{const{homePage:l}=A(),o=l?.general_section?.theme?.accent_color,c=l?.general_section?.theme?.font;return e.jsxs("div",{style:{borderColor:l.general_section?.theme?.border_color},className:"mb-6 space-y-3 border-b pb-6",children:[e.jsx(kl,{text:t,viewMoreLink:a,isNewWebBuilder:!1,accentColor:o,font:c}),e.jsx("div",{children:s})]})},Lt=()=&gt;e.jsx("div",{className:"pr-4",children:e.jsx("div",{className:"flex w-full animate-pulse flex-col space-y-6",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-6 w-full rounded bg-gray-200"}),e.jsx("div",{className:"h-6 w-full rounded bg-gray-200"})]})})}),Sl=({textColor:t,fontFamily:s,isNewWebBuilder:a=!1})=&gt;{const{authors:r}=Ft();return e.jsx(ve,{text:"Authors",viewMoreLink:"/authors",textColor:t,fontFamily:s,isNewWebBuilder:a,children:r?e.jsx("div",{className:"space-y-2",children:r?.map(l=&gt;e.jsx("div",{className:"relative",children:e.jsxs(Ie,{to:`/authors/${l.id}`,className:"relative flex items-center space-x-2",prefetch:"intent",children:[e.jsx("div",{className:"h-7 w-7 overflow-hidden rounded-full",children:e.jsx(de,{src:l.profile_picture.url,alt:l.name,maxWidth:800,loading:"lazy",aspectRatio:"social"})}),e.jsx(T,{as:"p",size:"sm",color:t,fontFamily:s,fontFamilyv2:a?s:void 0,children:l.name})]})},l.id))}):e.jsx(Lt,{})})},Cl=({publication:t,textColor:s,fontFamily:a,isNewWebBuilder:r=!1})=&gt;e.jsx(ve,{text:"Categories",viewMoreLink:`/t/${St(t.content_tags?.[0]?.display)}`,textColor:s,fontFamily:a,isNewWebBuilder:r,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.content_tags?.map(l=&gt;e.jsx(Ie,{to:`/t/${l.display}`,style:{borderColor:s},className:"font-regular mb-2 ml-0 cursor-pointer rounded-full border px-4 py-2 text-xs",children:e.jsx(T,{as:"span",color:s,fontFamily:a,fontFamilyv2:r?a:void 0,size:"sm",className:"truncate font-medium",children:l.display})},l.id))})}),Pl=()=&gt;{const t=Ve();return f.useEffect(()=&gt;{t.load("/publications")},[]),{newsletters:t?.data?.publications}},Il=({textColor:t,fontFamily:s,isNewWebBuilder:a=!1})=&gt;{const{newsletters:r}=Pl();return e.jsx(ve,{text:"Newsletters",viewMoreLink:"/publications",textColor:t,fontFamily:s,isNewWebBuilder:a,children:r?e.jsx("div",{className:"space-y-2 pr-4",children:r.map(l=&gt;e.jsxs("div",{className:"flex items-center space-x-2 truncate",children:[e.jsx("div",{children:e.jsx("div",{className:"h-6 w-6 overflow-hidden rounded border border-gray-300 bg-white",children:e.jsx(de,{maxWidth:128,aspectRatio:"square",src:l.logo.url,alt:l.name})})}),e.jsx(T,{as:"span",color:t,fontFamily:s,fontFamilyv2:a?s:void 0,size:"sm",className:"truncate font-medium",children:l.name})]},l.id))}):e.jsx(Lt,{})})},Tl=()=&gt;{const t=Ve();return f.useEffect(()=&gt;{t.load("/recommendations?index")},[]),{recommendations:t?.data}},Fl=({textColor:t,fontFamily:s,isNewWebBuilder:a=!1})=&gt;{const{recommendations:r}=Tl();return e.jsx(ve,{text:"Recommendations",viewMoreLink:"/recommendations",textColor:t,fontFamily:s,isNewWebBuilder:a,children:r?e.jsx("div",{className:"space-y-2 pr-4",children:r.recommendations.map(l=&gt;e.jsxs("div",{className:"flex items-center space-x-2 truncate",children:[e.jsx("div",{children:e.jsx("div",{className:"h-6 w-6 overflow-hidden rounded border border-gray-300 bg-white",children:e.jsx(de,{maxWidth:128,aspectRatio:"square",src:l.publication.thumbnail_image_url,alt:l.publication.name})})}),e.jsx(T,{as:"span",color:t,fontFamily:s,size:"sm",className:"truncate font-medium",children:l.publication.name})]},l.id))}):e.jsx(Lt,{})})},Ll=({publication:t,bgColor:s,textColor:a,fontFamily:r,placeholderText:l,ctaText:o,isNewWebBuilder:c=!1})=&gt;{const{signupWidgetConfigs:n}=A();return e.jsx(ve,{text:"Signup",isNewWebBuilder:c,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:c?e.jsx(Ye,{signupStyles:n}):e.jsx(Xe,{publication:t,fontFamily:qe(r),placeholderText:l,cta:o,textColor:a,backgroundColor:s})})})},El=({publication:t,textColor:s,isNewWebBuilder:a=!1})=&gt;{const r=t.tiktok_url,l=t.twitter_url,o=t.youtube_url,c=t.facebook_url,n=t.instagram_url,d=t.linkedin_url,i=t.threads_url,m=t.discord_url,x=t.bluesky_url;return e.jsx(ve,{text:"Social",isNewWebBuilder:a,children:e.jsxs("div",{className:"flex space-x-2 transition-all",style:{color:s},children:[l&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(l),"aria-label":"X",children:e.jsx(ar,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),d&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(d),"aria-label":"LinkedIn",children:e.jsx(or,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),o&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(o),"aria-label":"Youtube",children:e.jsx(nr,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),r&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(r),"aria-label":"Tiktok",children:e.jsx(ir,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),c&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(c),"aria-label":"Facebook",children:e.jsx(cr,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),n&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(n),"aria-label":"Instagram",children:e.jsx(dr,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),i&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(i),"aria-label":"Threads",children:e.jsx(Pt,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),m&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(m),"aria-label":"Discord",children:e.jsx(It,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})}),x&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(x),"aria-label":"Bluesky",children:e.jsx(er,{className:"h-4 w-4 fill-current opacity-70 hover:opacity-100"})})]})})},hr=({isNewWebBuilder:t})=&gt;{const{homePage:s,publication:a}=A(),r=s?.general_section.theme.text_color,l=s?.general_section.theme.font,o=s?.widgets_section.widgets_enabled,c=s?.main_section.signup_widget.bg_color,n=s?.main_section.signup_widget.text_color,d={social:e.jsx(El,{publication:a,textColor:r,isNewWebBuilder:t}),signup:e.jsx(Ll,{publication:a,bgColor:c,textColor:n,fontFamily:l,placeholderText:s?.main_section.signup_widget.placeholder_text,ctaText:s?.main_section.signup_widget.cta_text,isNewWebBuilder:t}),recommendations:e.jsx(Fl,{textColor:r,fontFamily:l,isNewWebBuilder:t}),newsletters:e.jsx(Il,{textColor:r,fontFamily:l,isNewWebBuilder:t}),categories:e.jsx(Cl,{publication:a,textColor:r,fontFamily:l,isNewWebBuilder:t}),authors:e.jsx(Sl,{textColor:r,fontFamily:l,isNewWebBuilder:t})};return e.jsx("div",{className:"space-y-4",children:o.map(i=&gt;e.jsx("div",{children:d[i]},i))})};var S=function(){return S=Object.assign||function(t){for(var s,a=1,r=arguments.length;a&lt;r;a++)for(var l in s=arguments[a])Object.prototype.hasOwnProperty.call(s,l)&amp;&amp;(t[l]=s[l]);return t},S.apply(this,arguments)};function $(t,s){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&amp;&amp;s.indexOf(r)&lt;0&amp;&amp;(a[r]=t[r]);if(t!=null&amp;&amp;typeof Object.getOwnPropertySymbols=="function"){var l=0;for(r=Object.getOwnPropertySymbols(t);l&lt;r.length;l++)s.indexOf(r[l])&lt;0&amp;&amp;Object.prototype.propertyIsEnumerable.call(t,r[l])&amp;&amp;(a[r[l]]=t[r[l]])}return a}function le(t,s){var a=typeof Symbol=="function"&amp;&amp;t[Symbol.iterator];if(!a)return t;var r,l,o=a.call(t),c=[];try{for(;(s===void 0||s-- &gt;0)&amp;&amp;!(r=o.next()).done;)c.push(r.value)}catch(n){l={error:n}}finally{try{r&amp;&amp;!r.done&amp;&amp;(a=o.return)&amp;&amp;a.call(o)}finally{if(l)throw l.error}}return c}function ge(t,s,a){if(arguments.length===2)for(var r,l=0,o=s.length;l&lt;o;l++)!r&amp;&amp;l in s||(r||(r=Array.prototype.slice.call(s,0,l)),r[l]=s[l]);return t.concat(r||Array.prototype.slice.call(s))}var zl=f.memo(function(t){var s,a,r=t.responsiveProps,l=r===void 0?[]:r,o=$(t,["responsiveProps"]),c=le(f.useState(0),2),n=c[0],d=c[1],i=le(f.useState(o.activeSlideIndex),2),m=i[0],x=i[1],P=f.useRef(null),N=f.useRef(null),w=f.useRef(null),X=f.useRef(!1),M=f.useRef(0),Q=f.useRef(!1),be=f.useRef(""),Y=f.useRef(null),we=f.useRef(null),je=f.useRef(0),Te=f.useRef(m),ae=l.reduce(function(g,p){p===void 0&amp;&amp;(p={});var F=p.minWidth,L=F===void 0?0:F,v=p.maxWidth,b=v===void 0?null:v,j=$(p,["minWidth","maxWidth"]);return n&gt;L&amp;&amp;(!b||n&lt;=b)?S(S({},g),j):g},o),R=f.Children.toArray(ae.children),u=n?S(S({},ae),{activeSlideIndex:Math.max(0,Math.min(ae.activeSlideIndex,R.length-1)),itemsToShow:Math.min(R.length,ae.itemsToShow||0),itemsToScroll:Math.min(R.length,ae.itemsToScroll||1)}):o,Et=u.containerProps,zt=Et===void 0?{}:Et,At=zt.style,fr=At===void 0?{}:At,xr=$(zt,["style"]),Rt=u.innerProps,Mt=Rt===void 0?{}:Rt,Ut=Mt.style,gr=Ut===void 0?{}:Ut,pr=$(Mt,["style"]),Wt=u.itemsListProps,Ge=Wt===void 0?{}:Wt,Ot=Ge.style,_r=Ot===void 0?{}:Ot,$t=Ge.onTransitionEnd,Fe=$t===void 0?void 0:$t,vr=$(Ge,["style","onTransitionEnd"]),Bt=u.backwardBtnProps,Ke=Bt===void 0?{}:Bt,Dt=Ke.children,br=Dt===void 0?null:Dt,Ht=Ke.show,wr=Ht===void 0||Ht,Qe=$(Ke,["children","show"]),Vt=u.forwardBtnProps,Ze=Vt===void 0?{}:Vt,qt=Ze.children,jr=qt===void 0?null:qt,Xt=Ze.show,yr=Xt===void 0||Xt,Je=$(Ze,["children","show"]),Yt=u.activeSlideProps,et=Yt===void 0?{}:Yt,Gt=et.className,Nr=Gt===void 0?"":Gt,Kt=et.style,kr=Kt===void 0?{}:Kt,Sr=$(et,["className","style"]),Qt=u.visibleSlideProps,tt=Qt===void 0?{}:Qt,Zt=tt.className,Cr=Zt===void 0?"":Zt,Jt=tt.style,Pr=Jt===void 0?{}:Jt,Ir=$(tt,["className","style"]),es=u.updateOnItemClick,Tr=es!==void 0&amp;&amp;es,_=u.activeSlideIndex,ts=u.onRequestChange,ss=u.speed,Z=ss===void 0?0:ss,rs=u.delay,B=rs===void 0?0:rs,ls=u.easing,st=ls===void 0?"linear":ls,as=u.itemsToShow,Le=as===void 0?0:as,os=u.itemsToScroll,J=os===void 0?1:os,Fr=u.children,rt=u.onAfterChange,ns=u.autoplay,is=ns!==void 0&amp;&amp;ns,cs=u.autoplayDirection,me=cs===void 0?"forward":cs,ds=u.disableNavIfAllVisible,Lr=ds===void 0||ds,ms=u.hideNavIfAllVisible,Er=ms===void 0||ms,us=u.centerMode,hs=us!==void 0&amp;&amp;us,fs=u.infinite,k=fs===void 0||fs,xs=u.disableNavIfEdgeVisible,Ee=xs===void 0||xs,gs=u.disableNavIfEdgeActive,ze=gs===void 0||gs,ps=u.dotsNav,zr=ps===void 0?{}:ps,_s=u.persistentChangeCallbacks,vs=_s!==void 0&amp;&amp;_s,bs=u.autoplayDelay,ws=bs===void 0?0:bs,js=u.preventScrollOnSwipe,Ar=js!==void 0&amp;&amp;js,ys=u.disableSwipeByMouse,lt=ys!==void 0&amp;&amp;ys,Ns=u.disableSwipeByTouch,at=Ns!==void 0&amp;&amp;Ns,ks=u.touchSwipeTreshold,Ss=u.mouseSwipeTreshold,Cs=u.swipeTreshold,ot=u.touchSwipeRatio,nt=u.mouseSwipeRatio,Ps=u.swipeRatio,it=Ps===void 0?1:Ps,Is=u.dirRTL,ue=Is!==void 0&amp;&amp;Is,Ae=zr||{},Ts=Ae.show,Rr=Ts!==void 0&amp;&amp;Ts,Fs=Ae.containerProps,Mr=Fs===void 0?{}:Fs,Ls=Ae.itemBtnProps,Ur=Ls===void 0?{}:Ls,Es=Ae.activeItemBtnProps,Wr=Es===void 0?{}:Es,D=f.Children.count(Fr)-1,zs=!!n&amp;&amp;((s=N.current)===null||s===void 0?void 0:s.offsetWidth)&gt;=((a=w.current)===null||a===void 0?void 0:a.offsetWidth),As=Er&amp;&amp;zs,ee=Lr&amp;&amp;zs,Or=_-m==0||!Z&amp;&amp;!B?"none":"transform ".concat(Z,"ms ").concat(st," ").concat(B,"ms"),ct=f.useCallback(function(g){var p,F=g.correctionSlideIndex,L=g.prevCorrectionSlideIndex,v=g.curActiveSlideIndex,b=w.current.offsetWidth,j=w.current.children,E=j.length,I=k?ge([],le(j),!1).slice(E/3-L,E/3-L+E/3):ge([],le(j),!1),U=(p=I[v])===null||p===void 0?void 0:p.offsetWidth,K=Le?I.reduce(function(y,z,O){return O&gt;=v&amp;&amp;O&lt;v+Le||O&lt;v&amp;&amp;O&lt;v+Le-I.length?y+z.offsetWidth:y},0):N.current.offsetWidth,W=Math.min(K,N.current.offsetWidth),V=b-W,re=hs&amp;&amp;k?-(W-U)/2:0,oe=k?b/3:0,ut=F-v==0?0:be.current==="forward"&amp;&amp;v&lt;F?oe:be.current==="backward"&amp;&amp;v&gt;F?-oe:0,he=v-F!=0,fe=function(y){var z=I.reduce(function(O,xe,Xr){return Xr&gt;=y?O:O+(xe.offsetWidth||0)},0);return k?z:Math.min(V,z)},ht=he&amp;&amp;k?fe(F):0,ft=he||!k?fe(v):0,We=ee?0:ft-ht+re+ut+oe,xt="translateX(".concat(ue?"":"-").concat(We,"px)"),q=k?oe+re:Math.min(V,I.reduce(function(y,z,O){return O&lt;v?y+z.offsetWidth:y},0)),ye=q+W,ne=I.map(function(y,z){return{slideIndex:z,htmlElement:y}}),Oe=k?ge(ge(ge(ge([],le(I.slice(v).map(function(y,z){return{slideIndex:z+v,htmlElement:y}})),!1),le(ne),!1),le(ne),!1),le(I.slice(0,v).map(function(y,z){return{slideIndex:z,htmlElement:y}})),!1):ne,Ne=Oe.reduce(function(y,z){var O=z.slideIndex,xe=z.htmlElement.offsetWidth;return(y.summ&gt;=q&amp;&amp;y.summ&lt;ye||y.summ+xe&gt;q&amp;&amp;y.summ+xe&lt;=ye)&amp;&amp;y.items.push({slideIndex:O,isFullyVisible:y.summ+xe&lt;=ye&amp;&amp;y.summ&gt;=q}),y.summ+=xe,y},{summ:0,items:[]}),Vr=!!Ne.items.find(function(y){return y.slideIndex===0}),qr=!!Ne.items.find(function(y){return y.slideIndex===I.length-1});return{slidesHTMLElements:I,innerMaxWidth:K,itemsListMaxTranslateX:V,activeSlideWidth:U,offsetCorrectionForCenterMode:re,offsetCorrectionForInfiniteMode:oe,itemsListTranslateX:We,itemsListTransform:xt,visibleSlides:Ne.items,isFirstSlideVisible:Vr,isLastSlideVisible:qr}},[hs,ee,k,Le,ue]),te=n?ct({prevCorrectionSlideIndex:Te.current,curActiveSlideIndex:_,correctionSlideIndex:m}):{},Rs=te.innerMaxWidth,dt=Rs===void 0?0:Rs,Ms=te.itemsListMaxTranslateX,Us=Ms===void 0?0:Ms,Ws=te.activeSlideWidth,Os=Ws===void 0?0:Ws,$s=te.offsetCorrectionForCenterMode,Re=$s===void 0?0:$s,Bs=te.offsetCorrectionForInfiniteMode,Me=Bs===void 0?0:Bs,Ds=te.itemsListTranslateX,se=Ds===void 0?0:Ds,Hs=te.itemsListTransform,Vs=Hs===void 0?"none":Hs,qs=te.visibleSlides,$r=qs===void 0?[]:qs,G=f.useCallback(function(g){var p;return g==="forward"?(p=_+J)&gt;D?k?p-D-1:D:p:g==="backward"?(p=_-J)&lt;0?k?D+1+p:0:p:_},[_,J,D,k]),H=f.useCallback(function(g,p){var F;if(be.current=p,w.current.style.transition=Z||B?"transform ".concat(Z,"ms ").concat(st," ").concat(B,"ms"):"none",g!==_||vs){clearTimeout(Y.current);var L=ct({correctionSlideIndex:m,prevCorrectionSlideIndex:m,curActiveSlideIndex:g}),v=L.visibleSlides,b=L.isFirstSlideVisible,j=L.isLastSlideVisible,E=L.itemsListTransform;g!==_&amp;&amp;((F=w.current)===null||F===void 0?void 0:F.style.transform)===E&amp;&amp;(X.current=!0),w.current.style.transform=E,ts(g,{visibleSlides:v,isFirstSlideVisible:b,isLastSlideVisible:j})}else w.current.style.transform="translateX(".concat(ue?"":"-").concat(Re+Me+(k?0:se),"px)")},[vs,_,Re,B,st,Z,ts,Me,k,se,m,ct,ue]),mt=f.useCallback(function(){is&amp;&amp;(clearTimeout(Y.current),Y.current=setTimeout(function(){H(G(me),me)},ws||B))},[is,me,ws,H,G,B]),Br=f.useCallback(function(){H(G("backward"),"backward")},[H,G]),Dr=f.useCallback(function(g){x(_),Fe&amp;&amp;Fe(g)},[_,Fe]),Hr=f.useCallback(function(){H(G("forward"),"forward")},[H,G]),Ue=function(g,p,F){return g.map(function(L,v){var b=L.props,j=b===void 0?{}:b,E=j.className,I=E===void 0?"":E,U=j.onClick,K=U===void 0?null:U,W=j.style,V=W===void 0?{}:W,re=$(j,["className","onClick","style"]),oe=$(L,["props"]),ut=k?je.current&gt;=R.length?"forward":"backward":v&gt;=_?"forward":"backward",he=v+p===_,fe=$r.find(function(q){return q.slideIndex===v+p}),ht="".concat(I," ").concat(he?Nr:""," ").concat(fe?Cr:"").trim()||void 0,ft=S(S(S(S({},V),fe?Pr:{}),he?kr:{}),{boxSizing:"border-box",margin:0}),We=!F&amp;&amp;Tr?function(q){var ye=q.direction,ne=q.index,Oe=q.onClick;return function(Ne){H(ne,ye||(_&lt;ne?"forward":"")||(_&gt;ne?"backward":"")),Oe&amp;&amp;Oe(Ne)}}({direction:ut,index:v+p,onClick:K}):K,xt=S(S(S({role:"tabpanel",className:ht,style:ft,onClick:We},re),fe?Ir:{}),he?Sr:{});return je.current+=1,S({props:xt},oe)})};return f.useEffect(function(){var g=w.current;function p(b){var j;b.preventDefault(),b.stopPropagation(),(j=b.target)===null||j===void 0||j.removeEventListener("click",p)}function F(b){var j,E;Q.current=!0;var I=!!(!((j=b.touches)===null||j===void 0)&amp;&amp;j[0]),U=I?(E=b.touches)===null||E===void 0?void 0:E[0].clientX:b.clientX,K=(M.current-U)*((I?ot:nt)||it)+Re+Me+(k?0:se),W=w.current.offsetWidth,V=Math.max(-K,-W);w.current.style.transition="none",w.current.style.transform="translateX(".concat((ue?-1:1)*V,"px)")}function L(b){var j,E,I;if(document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",F),document.removeEventListener("touchend",L),Q.current){(j=b.target)===null||j===void 0||j.addEventListener("click",p);var U=!!(!((E=b.changedTouches)===null||E===void 0)&amp;&amp;E[0]),K=U?b.changedTouches[b.changedTouches.length-1].clientX:b.clientX,W=(M.current-K)*((U?ot:nt)||it),V=(U?ks:Ss)||Cs||Os/2,re=W&gt;V?{index:G("forward"),direction:"forward"}:W&lt;-V?{index:G("backward"),direction:"backward"}:{index:_,direction:"forward"};H(re.index,re.direction)}else(I=b.target)===null||I===void 0||I.removeEventListener("click",p);M.current=0,Q.current=!1}function v(b){var j,E;clearTimeout(Y.current);var I=!!(!((j=b.touches)===null||j===void 0)&amp;&amp;j[0]);M.current=I?(E=b.touches)===null||E===void 0?void 0:E[0].clientX:b.clientX,I?(document.addEventListener("touchmove",F),document.addEventListener("touchend",L)):(document.addEventListener("mousemove",F),document.addEventListener("mouseup",L))}return ee||(lt||g==null||g.addEventListener("mousedown",v),at||g==null||g.addEventListener("touchstart",v,{passive:!0}),lt&amp;&amp;at||g==null||g.addEventListener("dragstart",L)),function(){Q.current=!1,M.current=0,g?.removeEventListener("mousedown",v),g?.removeEventListener("touchstart",v),g?.removeEventListener("dragstart",L),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",F),document.removeEventListener("touchend",L)}},[k,se,Vs,Re,Me,_,Os,G,H,ee,lt,at,ks,Ss,Cs,ot,nt,it,ue]),f.useEffect(function(){return _!==m?(!Z&amp;&amp;!B||X.current)&amp;&amp;(X.current=!1,x(_)):(rt&amp;&amp;rt(_,m),(k||me==="forward"&amp;&amp;_!==D||me==="backward"&amp;&amp;_!==0)&amp;&amp;mt()),function(){clearTimeout(Y.current)}},[m,_,rt,Z,B,mt,k,D,me]),f.useEffect(function(){return n&amp;&amp;mt(),function(){clearTimeout(Y.current)}},[n]),f.useEffect(function(){function g(){clearTimeout(we.current),clearTimeout(Y.current),we.current=setTimeout(function(){n!==window.innerWidth&amp;&amp;d(0)},400)}return n!==window.innerWidth&amp;&amp;d(window.innerWidth),window.addEventListener("resize",g),function(){clearTimeout(we.current),window.removeEventListener("resize",g)}},[n]),je.current=0,Te.current=m,ie.createElement("div",S({style:S({display:"flex",flexFlow:"row wrap",boxSizing:"border-box",justifyContent:"center",width:"100%"},fr)},xr,{ref:P}),wr&amp;&amp;!As&amp;&amp;ie.createElement("button",S({},Qe,{type:"button",onClick:(se===0&amp;&amp;Ee||_===0&amp;&amp;ze)&amp;&amp;!k?void 0:Br,disabled:typeof Qe.disabled=="boolean"?Qe.disabled:!(!(se===0&amp;&amp;Ee||_===0&amp;&amp;ze)||k)}),br),ie.createElement("div",S({},pr,{style:S(S({width:"100%"},gr),{display:"flex",boxSizing:"border-box",flexFlow:"row wrap",padding:"0",overflow:"hidden",maxWidth:dt?"".concat(dt,"px"):void 0,flex:dt?void 0:"1 0 auto"}),ref:N}),ie.createElement("div",S({},vr,{style:S(S({},_r),{display:"flex",boxSizing:"border-box",outline:"none",transition:Or,transform:Vs,touchAction:Ar?"none":"auto"}),onTransitionEnd:Z||B?Dr:Fe,tabIndex:-1,role:"presentation",ref:w}),k&amp;&amp;Ue(R.slice(m),m,ee),Ue(R,0,ee),k&amp;&amp;Ue(R,0,ee),k&amp;&amp;Ue(R.slice(0,m),0,ee))),yr&amp;&amp;!As&amp;&amp;ie.createElement("button",S({},Je,{type:"button",onClick:(se===Us&amp;&amp;Ee||_===D&amp;&amp;ze)&amp;&amp;!k?void 0:Hr,disabled:typeof Je.disabled=="boolean"?Je.disabled:!(!(se===Us&amp;&amp;Ee||_===D&amp;&amp;ze)||k)}),jr),!!Rr&amp;&amp;ie.createElement("div",S({style:{width:"100%",display:"flex",justifyContent:"center"}},Mr),Array.from({length:Math.ceil(R.length/J)}).map(function(g,p){return ie.createElement("button",S({type:"button",key:p,title:"".concat(p)},Ur,_&gt;=p*J&amp;&amp;_&lt;Math.min(J*(p+1),D+1)?Wr:{},{onClick:function(){H(Math.min(p*J,R.length-1),Math.min(p*J,R.length-1)&gt;_?"forward":"backward")}}))})))});const Al=()=&gt;{const{cardStyles:t,featuredPosts:s}=A(),[a,r]=f.useState(0);return e.jsx("div",{className:"relative",children:e.jsx(zl,{activeSlideIndex:a,onRequestChange:r,itemsToShow:1,itemsToScroll:1,infinite:!0,forwardBtnProps:{className:"absolute text-white bottom-5 left-36 rounded-full z-10",show:!0,children:e.jsx(il,{className:"h-4 w-4 text-white"})},backwardBtnProps:{className:"absolute text-white bottom-5 left-8 rounded-full z-10",show:!0,children:e.jsx(rl,{className:"h-4 w-4 text-white"})},dotsNav:{show:!0,containerProps:{className:"absolute left-14 bottom-4 w-full space-x-1",style:{bottom:"18px",justifyContent:"left"}},itemBtnProps:{className:"text-white h-2.5 w-2.5 rounded-full border border-white bg-transparent border-white"},activeItemBtnProps:{className:"text-white h-2.5 w-2.5 rounded-full border bg-white border-white"}},responsiveProps:[{itemsToShow:1,itemsToScroll:1}],speed:300,easing:"linear",children:s.map(l=&gt;e.jsxs("div",{className:"relative h-full w-screen border",children:[e.jsx(De,{alt:l.web_title,radiusClass:"",hasRadiusApplied:!1,src:l.image_url}),e.jsx("div",{className:"absolute bottom-0 w-full p-8 pb-12",children:e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{className:"max-w-md space-y-4",children:[t?.tags_enabled&amp;&amp;e.jsx(Zs,{className:"relative",tags:l.content_tags,cardStyles:t}),e.jsx(pe,{title:{text:l.web_title,fontFamily:t.heading_font_family,color:"#ffffff"},subtitle:{text:l?.web_subtitle||"",fontFamily:t.description_font_family,color:"#ffffff"}})]}),e.jsxs("div",{className:"flex flex-col items-end justify-end space-y-2",children:[e.jsx(Se,{fontFamily:t.font,bgColor:t.premium_bg_color,color:t.premium_text_color}),e.jsx(Js,{authors:l.authors,color:"#ffffff",bgColor:t.bg_color,font:t.font}),t.timefields_enabled&amp;&amp;e.jsx(Ce,{fontFamily:t.font,color:"#ffffff",timestamp:l.override_scheduled_at})]})]})})]},l.id))})})},pt="https://media.beehiiv.com/static_assets/site_builder/authors/oliver_buchanan.png",Rl={id:"author123",name:"Oliver Buchannon",profile_picture:{thumb:pt,url:pt,landscape:pt}},_t="https://media.beehiiv.com/static_assets/site_builder/authors/kyra_singh.png",Ml={name:"Kyra Singh",profile_picture:{thumb:_t,url:_t,landscape:_t},id:"author2"},vt="https://media.beehiiv.com/static_assets/site_builder/authors/natalia_mirescu.png",Ul={name:"Natalia Mirescu",profile_picture:{thumb:vt,url:vt,landscape:vt},id:"author3"},bt="https://media.beehiiv.com/static_assets/site_builder/authors/liam_mckenzie.png",Wl={name:"Liam McKenzie",profile_picture:{thumb:bt,url:bt,landscape:bt},id:"author4"},wt="https://media.beehiiv.com/static_assets/site_builder/authors/catalina_vidal.png",Ol={name:"Catlina Vidal",profile_picture:{thumb:wt,url:wt,landscape:wt},id:"author5"},jt="https://media.beehiiv.com/static_assets/site_builder/authors/allessandro_rossi.png",$l={name:"Alessandro Rossi",profile_picture:{thumb:jt,url:jt,landscape:jt},id:"author6"},Bl=({isExampleSite:t,authors:s})=&gt;t?[Rl,Wl,Ml,$l,Ol,Ul]:s,Dl=(t,s)=&gt;lr[s][t],Hl=(t,s,a)=&gt;{switch(t){case"auto":return{backgroundSize:"cover"};case"custom":return{backgroundSize:`${s}px ${a}px`};case"auto-height":return{backgroundSize:`${s}px auto`};case"auto-width":return{backgroundSize:`auto ${a}px`}}},Vl=t=&gt;{const s=t.tiktok_url,a=t.twitter_url,r=t.youtube_url,l=t.facebook_url,o=t.instagram_url,c=t.linkedin_url,n=t.discord_url,d=t.threads_url,i=t.bluesky_url;return s||a||r||l||o||c||n||d||i},ql=()=&gt;{const{t}=ce(),{isLoading:s,authors:a}=Ft(),{homePage:r,publication:l,signupWidgetConfigs:o,showExampleSite:c}=A(),n=Bl({isExampleSite:c,authors:a}),{general:d,content_container:i,headline:m,description:x,logo:P}=r.main_section,N=tr[d.bg_gloss_opacity||"0"],w=i.bg_color==="transparent",X=i.border_color==="transparent",M=w&amp;&amp;X,Q=sr[i.border_radius||"rounded-none"],be=Dl(i.border_width,i.border_sides),Y=M?"p-0":rr[i.padding||"p-0"],we=Vl(l),{web_template:je}=l,Te=Tt(),ae=r.main_section.authors_widget.label||t("author.byline"),R=r.main_section.authors_widget.text||"",u=r?.main_bg_image_url;return e.jsxs("div",{className:"relative py-8",style:{backgroundColor:d.bg_color,...u&amp;&amp;{backgroundImage:`url(${u})`},backgroundPosition:"center",backgroundRepeat:"no-repeat",...Hl(r?.main_section.general.bg_size,r?.main_section.general.bg_width,r?.main_section.general.bg_height)},children:[u&amp;&amp;e.jsx("div",{className:h("absolute left-0 top-0 h-full w-full",N),style:{backgroundColor:d.bg_color}}),e.jsx("div",{className:"relative left-0 top-0 h-full w-full",children:e.jsxs(_e,{children:[e.jsxs("div",{className:h("mx-auto mb-10 w-full",(i.padding==="none","max-w-2xl"),Y,Q,be),style:{borderColor:i.border_color,backgroundColor:i.bg_color},children:[e.jsxs("div",{className:"flex-start flex flex-col items-center py-2",children:[P.enabled&amp;&amp;e.jsx("div",{className:h({"mb-4 overflow-hidden rounded":!0,"h-16 w-16":P.size==="sm","h-20 w-20":P.size==="md","h-24 w-24":P.size==="lg","shadow-sm":P.shadow==="sm","shadow-md":P.shadow==="md","shadow-lg":P.shadow==="lg","shadow-xl":P.shadow==="xl"}),children:e.jsx(de,{maxWidth:128,aspectRatio:"square",src:l.logo.url,alt:l.name})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"mx-auto w-full max-w-xl",children:e.jsx(T,{as:"h1",size:m.size,weight:"bold",fontFamilyv2:m.font,color:m.color,className:"w-full text-center",children:e.jsx(He,{children:m.text})})}),e.jsx(T,{as:"div",weight:"regular",size:x.size,fontFamilyv2:x.font,color:x.color,className:"w-full text-center",children:e.jsx(He,{children:x.text})})]})]}),e.jsx("div",{className:"mx-auto mt-4 max-w-sm sm:max-w-lg",children:Te&amp;&amp;je.logged_subscribe_form?e.jsx(e.Fragment,{}):e.jsx(Ye,{signupStyles:o})})]}),e.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[!s&amp;&amp;r?.main_section?.authors_widget?.enabled&amp;&amp;e.jsxs("div",{className:"space-y-2",children:[e.jsx(T,{as:"span",fontFamily:r.general_section.theme.font,fontFamilyv2:r.general_section.theme.font,color:r.main_section.authors_widget.text_color,className:"whitespace-nowrap text-xs font-semibold",children:ae}),e.jsx(Js,{authors:n,color:r.main_section.authors_widget.text_color,bgColor:"#FFFFFF",font:r.general_section.theme.font,fallbackName:R||l.email_sender_name||l.name})]}),r.main_section.social_widget.enabled&amp;&amp;we&amp;&amp;e.jsxs("div",{className:"space-y-2",children:[e.jsx(T,{as:"p",fontFamily:r.general_section.theme.font,fontFamilyv2:r.general_section.theme.font,color:r.main_section.social_widget.text_color,className:"whitespace-nowrap text-xs font-semibold",children:r.main_section.social_widget.label||t("shared.cta.connect")}),e.jsx(tl,{publication:l,bgColor:r.main_section.social_widget.icons_bg_color,fillColor:r.main_section.social_widget.icons_text_color})]})]})]})})]})},Xl=(t,s)=&gt;{let a;const r=[];s.forEach((o,c)=&gt;{c===0?a=o:r.push(o)});let l=r.length;return t.forEach(o=&gt;{if(!a){a=o;return}l&gt;=4||(r.push(o),l++)}),{headliner:a,rightPanelPosts:r}},Yl=()=&gt;{const{homePage:t,featuredPosts:s,paginatedPosts:a,cardStyles:r,signupWidgetConfigs:l}=A(),{headliner:o,rightPanelPosts:c}=Xl(a.posts,s);return e.jsx(_e,{className:h("mx-auto py-4"),children:e.jsxs("div",{className:"flex flex-col gap-0 md:flex-row md:gap-8",children:[e.jsx("div",{className:"w-full md:w-3/5",children:e.jsxs("div",{className:"flex flex-col",children:[o&amp;&amp;e.jsx("div",{className:"relative",children:e.jsxs(Pe,{slug:o?.slug,className:h("group relative flex w-full flex-col overflow-hidden rounded shadow-xl"),children:[e.jsx(De,{alt:o.web_title,radiusClass:"",hasRadiusApplied:!0,src:o.image_url}),e.jsx("div",{className:"absolute bottom-0 flex h-full w-full flex-col justify-end space-y-1 bg-black bg-opacity-10 p-4 group-hover:bg-opacity-0",children:e.jsxs("div",{className:"max-w-md space-y-4",children:[r?.tags_enabled&amp;&amp;e.jsx(Zs,{className:"relative",tags:o.content_tags,cardStyles:r}),e.jsx(pe,{title:{text:o.web_title,fontFamily:r.heading_font_family,color:"#ffffff"},subtitle:{text:o?.web_subtitle||"",fontFamily:r.description_font_family,color:"#ffffff"}})]})})]})}),e.jsx("div",{className:"py-4",children:e.jsx(Ye,{signupStyles:l})})]})}),e.jsx("div",{className:"flex w-full flex-col space-y-4 md:w-2/5",children:c.map((n,d)=&gt;{const i=n.audience==="premium";return e.jsxs("div",{className:"flex flex-col space-y-2",children:[i&amp;&amp;e.jsx(Se,{fontFamily:r.font,bgColor:r.premium_bg_color,color:r.premium_text_color}),e.jsx(Pe,{slug:n?.slug,className:h("group relative flex w-full flex-col space-y-2 transition-all"),children:e.jsx(pe,{title:{text:n.web_title,fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.text_color,size:"xl"},subtitle:{text:n?.web_subtitle||"",fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.text_color,size:"sm"}})},n.id),e.jsx("div",{className:"flex flex-wrap-reverse items-center justify-between",children:r.timefields_enabled&amp;&amp;e.jsx(Ce,{fontFamily:r.font,color:r.timestamp_text_color,timestamp:n.override_scheduled_at})})]},n.id)})})]})})},Gl=(t,s)=&gt;{let a;const r=[],l=[];s.forEach((n,d)=&gt;{d===0?a=n:r.length&lt;2?r.push(n):l.push(n)});let o=l.length,c=r.length;return t.forEach(n=&gt;{if(!a){a=n;return}if(c&lt;2){r.push(n),c++;return}o&gt;=3||(l.push(n),o++)}),{headliner:a,leftPanelPosts:r,rightPanelPosts:l}},Kl=()=&gt;{const{homePage:t,paginatedPosts:s,featuredPosts:a,signupWidgetConfigs:r,cardStyles:l}=A(),o=s.posts,{headliner:c,leftPanelPosts:n,rightPanelPosts:d}=Gl(o,a);return e.jsx(_e,{className:"w-full py-4",children:e.jsxs("div",{className:h("mx-auto grid grid-cols-12 gap-0 transition-all md:gap-6"),children:[e.jsx("div",{className:"col-span-12 w-full md:col-span-3 md:block",children:e.jsx("div",{className:"space-y-2",children:n.map((i,m)=&gt;{const x=i.audience==="premium";return e.jsxs(Pe,{slug:i?.slug,className:h("group flex w-full flex-col transition-all"),children:[e.jsx(De,{alt:i.web_title,radiusClass:"rounded-lg",hasRadiusApplied:!0,src:i.image_url}),e.jsx("div",{className:h("flex flex-col justify-between space-y-6 py-4"),children:e.jsxs("div",{className:"space-y-1",children:[x&amp;&amp;e.jsx(Se,{fontFamily:l.font,bgColor:l.premium_bg_color,color:l.premium_text_color}),e.jsx(pe,{title:{text:i.web_title,fontFamily:t?.general_section?.theme?.font,color:l.heading_font_color,size:"xl"},subtitle:{text:i?.web_subtitle||"",fontFamily:t?.general_section?.theme?.font,color:l.description_font_color,size:"sm"}}),l.timefields_enabled&amp;&amp;e.jsx(Ce,{fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.text_color,timestamp:i.override_scheduled_at})]})})]},i.id)})})}),e.jsxs("div",{className:"col-span-12 w-full space-y-4 md:col-span-9 lg:col-span-6",children:[c?e.jsxs(Pe,{slug:c?.slug,className:h("group flex w-full flex-col transition-all"),children:[e.jsx(De,{alt:c.web_title,radiusClass:"rounded-lg",hasRadiusApplied:!0,src:c.image_url}),e.jsx("div",{className:h("flex flex-col justify-between space-y-6 py-4"),children:e.jsxs("div",{className:"space-y-3",children:[c?.audience==="premium"&amp;&amp;e.jsx(Se,{fontFamily:l.font,bgColor:l.premium_bg_color,color:l.premium_text_color}),e.jsx(pe,{title:{text:c.web_title,fontFamily:t?.general_section?.theme?.font,color:l.heading_font_color,size:"3xl"},subtitle:{text:c?.web_subtitle||"",fontFamily:t?.general_section?.theme?.font,color:l.description_font_color,size:"lg"}}),e.jsx(Ce,{fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.text_color,timestamp:c?.override_scheduled_at})]})})]}):null,e.jsx("div",{className:"pb-4",children:e.jsx(Ye,{signupStyles:r})})]}),e.jsx("div",{className:"col-span-12 w-full lg:col-span-3 lg:block",children:e.jsx("div",{className:"flex flex-col space-y-6",children:d.map((i,m)=&gt;{const x=i.audience==="premium";return e.jsx(Pe,{slug:i?.slug,className:h("group relative flex w-full flex-col space-y-2 transition-all"),children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-1",children:[x&amp;&amp;e.jsx(Se,{fontFamily:l.font,bgColor:l.premium_bg_color,color:l.premium_text_color}),e.jsx(pe,{title:{text:i.web_title,fontFamily:t?.general_section?.theme?.font,color:l.heading_font_color,size:"2xl"},subtitle:{text:i?.web_subtitle||"",fontFamily:t?.general_section?.theme?.font,color:l.description_font_color,size:"md"}}),e.jsx(Ce,{fontFamily:t?.general_section?.theme?.font,color:t?.general_section?.theme?.text_color,timestamp:i.override_scheduled_at})]})})},i.id)})})})]})})},Ql=()=&gt;{const{homePage:t}=A();switch(t.general_section.theme.header_type){case"carousel":return e.jsx(Al,{});case"headliner":return e.jsx(Yl,{});case"news":return e.jsx(Kl,{});default:return e.jsx(ql,{})}},Zl=({path:t})=&gt;{const s="404",{t:a}=ce(),r=a(`errors.${s}.title`),l=a(`errors.${s}.description`),o=a(`errors.${s}.description2`),{homePage:c}=A(),{general:n,headline:d,description:i}=c.main_section,m=Qr(),{pathname:x}=Zr(),[P]=Qs();return f.useEffect(()=&gt;{P.has("404")||m(`/?${new URLSearchParams({404:x})}`)},[s,x,P,m]),e.jsx("div",{className:h("mx-auto flex w-full items-center justify-center px-4 py-24"),style:{backgroundColor:n.bg_color},children:e.jsx("div",{className:h("mx-auto max-w-max"),children:e.jsxs("main",{className:"sm:flex",children:[e.jsx("p",{className:"text-4xl font-extrabold sm:text-5xl",style:{color:d.color},children:s}),e.jsx("div",{className:"sm:ml-6",children:e.jsxs("div",{className:h("sm:border-l sm:border-gray-200 sm:pl-6"),children:[e.jsx("h1",{className:"text-4xl font-extrabold tracking-tight sm:text-5xl",style:{color:d.color},children:r}),e.jsxs("p",{className:"mb-2 mt-2 text-base",style:{color:i.color},children:[l,":"," ",e.jsx(Ie,{to:t,className:"font-mono underline",children:t})]}),e.jsx("p",{className:"mb-2 mt-2 text-base",style:{color:i.color},children:o})]})})]})})})},Jl=({homePage:t,showExampleSite:s})=&gt;{const a=t?.widgets_section?.widgets_enabled?.length&gt;0,r=t?.posts_section?.archive.layout,[l]=Qs(),o=l.get("404");return e.jsxs(mr,{bgColor:t.general_section.theme.bg_color,children:[o?e.jsx(Zl,{path:o}):e.jsxs(e.Fragment,{children:[e.jsx(Ql,{}),e.jsx(Nl,{})]}),e.jsx(_e,{children:e.jsx(ur,{isNewWebBuilder:!0,isExampleWebSite:s,postsSection:t.posts_section,generalSection:t.general_section})}),e.jsx(_e,{className:"pt-0",children:e.jsxs("div",{className:"grid w-full grid-cols-12",children:[e.jsx("div",{className:h({"order-last col-span-12 pb-4 pt-2 lg:order-first":!0,"pr-0 lg:col-span-8 lg:pr-2":a,"mb-8":!a}),children:e.jsx(Gs,{isNewWebBuilder:!0,gridCols:a?"2":"3",cardOrientation:r==="list"?"horizontal":"vertical"})}),a&amp;&amp;e.jsxs("div",{className:"col-span-12 pl-0 pr-0 pt-4 lg:col-span-4 lg:pl-8 lg:pt-8",children:[e.jsx(hr,{isNewWebBuilder:!0}),e.jsx("div",{id:"side-panel-ad-placement"})]})]})})]})},ea=({theme:t="subscribe",publication:s})=&gt;{const a=s?.web_theme?.logo_shadow;let r="shadow-md";return a==="md"?r="shadow-md":a==="none"?r="shadow-none":a==="sm"?r="shadow-sm":a==="lg"&amp;&amp;(r="shadow-lg"),e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx("div",{className:`mb-4 h-24 w-24 overflow-hidden rounded sm:mb-8 ${r}`,children:s.logo.thumb.url&amp;&amp;e.jsx(de,{src:s.logo.thumb.url,alt:s.name,maxWidth:200,aspectRatio:"square"})}),e.jsxs("div",{className:"mb-6 flex flex-col items-center space-y-2.5 sm:space-y-3",children:[s.name&amp;&amp;e.jsx(Nt,{as:"h1",type:"title",size:"5xl",theme:t,className:"w-full break-words text-center leading-tight tracking-normal",children:s.name}),s.description&amp;&amp;e.jsx(Nt,{as:"p",type:"body",theme:t,className:"text-md text-center tracking-wide opacity-75 sm:text-lg",children:s.description})]})]})},ta=({publication:t})=&gt;{const{t:s}=ce(),a=t.web_theme.content_theme==="light",r=t.web_theme.content_theme==="dark",l=t.web_theme.content_theme==="secondary",o=h("w-full pt-8 bg-wt-background mb-8",a?"before:block before:w-full before:overflow-hidden-x before:absolute before:inset-0 before:bg-slate-100/50 relative inline-block":"",r?"before:block before:w-full before:overflow-hidden-x before:absolute before:inset-0 before:bg-white/5 relative inline-block":"",l?"before:block before:w-full before:overflow-hidden-x before:absolute before:inset-0 before:bg-white/20 relative inline-block":""),c=t.tiktok_url,n=t.twitter_url,d=t.youtube_url,i=t.facebook_url,m=t.instagram_url,x=t.linkedin_url,P=t.discord_url,N=t.threads_url,w=t.bluesky_url,X=c||n||d||i||m||x||P||N||w,M=()=&gt;e.jsxs("div",{className:"flex flex-col space-y-1",children:[X?e.jsx(Nt,{as:"span",theme:"content",className:"whitespace-nowrap text-xs font-semibold",children:s("shared.cta.connect")}):e.jsx("div",{}),e.jsx("div",{className:"flex space-x-2 transition-all",children:e.jsxs("div",{className:"flex items-end space-x-2",children:[n&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(n),"aria-label":"X",children:e.jsx(ar,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),x&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(x),"aria-label":"LinkedIn",children:e.jsx(or,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),d&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(d),"aria-label":"Youtube",children:e.jsx(nr,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),c&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(c),"aria-label":"Tiktok",children:e.jsx(ir,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),i&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(i),"aria-label":"Facebook",children:e.jsx(cr,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),m&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(m),"aria-label":"Instagram",children:e.jsx(dr,{className:"h-4 w-4 fill-current opacity-40 hover:opacity-100"})}),N&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(N),"aria-label":"Threads",children:e.jsx(Pt,{className:"-4 h-4 fill-current opacity-40 hover:opacity-100"})}),P&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(P),"aria-label":"Discord",children:e.jsx(It,{className:"-4 h-4 fill-current opacity-40 hover:opacity-100"})}),w&amp;&amp;e.jsx("a",{target:"_blank",rel:"noreferrer",href:C(w),"aria-label":"Bluesky",children:e.jsx(er,{className:"-4 h-4 fill-current opacity-40 hover:opacity-100"})})]})})]});return e.jsx("div",{className:o,children:e.jsx("div",{className:"px-4",children:e.jsx("div",{className:"mx-auto flex w-full max-w-6xl flex-col pb-8 sm:pb-0",children:e.jsxs("div",{className:"flex-start flex flex-col items-center py-2",children:[e.jsx("div",{className:"z-10 mx-auto w-full max-w-2xl",children:e.jsx(ea,{theme:"content",publication:t})}),e.jsx("div",{className:"hidden w-full items-end justify-between py-4 pt-8 sm:flex",children:e.jsx("div",{className:"text-xs font-light text-wt-text-on-background opacity-80",children:M()})})]})})})})},sa=({publication:t})=&gt;e.jsxs(e.Fragment,{children:[e.jsx(ta,{publication:t}),t.private&amp;&amp;e.jsx(Ys,{title:$e("gated.private_newsletter.title"),message:$e("gated.private_newsletter.message"),cta:t.cta_text,publication:t}),!t.private&amp;&amp;t.require_subscriber_approval&amp;&amp;e.jsx(Ys,{title:$e("gated.require_approval.title"),message:$e("gated.require_approval.message"),cta:t.cta_text,publication:t,createActionType:el.NONE})]}),Ka=({matches:t,data:s,location:a})=&gt;{const r=s?.metaTitle,l=s?.metaDescription,o=[],c=s?.requestUrl,n=s?.homePage?.renderable_fonts||[];return n.length&gt;0&amp;&amp;n.forEach(d=&gt;{o.push({rel:"stylesheet",href:d,tagName:"link"})}),s?.homePage?.main_bg_image_url&amp;&amp;o.push({rel:"preload",href:s?.homePage?.main_bg_image_url,as:"image"}),ol({canonicalUrl:al(c),matches:t,overrides:{title:r,description:l},links:o,structuredData:{url:c,"@context":"https://schema.org","@type":"WebSite",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${c}?q={search_term_string}`},"query-input":"required name=search_term_string"}}})},Qa=()=&gt;{const{homePage:t,publication:s,isInitialLoadFromSwarm:a,showExampleSite:r,hasWebThemesEnabled:l,isDraft:o}=A();ll({isInitialLoadFromSwarm:a,publicationId:s.id});const c=l,n=t?.widgets_section?.widgets_enabled?.length&gt;0,d=t?.posts_section?.archive.layout,i=Tt(),m=(s.private||s.require_subscriber_approval)&amp;&amp;!i;return!o&amp;&amp;m?e.jsx(sa,{publication:s}):c?e.jsx(Jl,{homePage:t,showExampleSite:r}):e.jsxs(mr,{bgColor:t.general_section.theme.bg_color,className:"pb-8",children:[e.jsx(yl,{}),e.jsx("div",{className:"mx-auto w-full max-w-6xl",children:e.jsx("div",{id:"header-ad-placement"})}),e.jsx("div",{className:"px-4",children:e.jsx("div",{className:"mx-auto w-full max-w-6xl",children:e.jsx(ur,{postsSection:t.posts_section,generalSection:t.general_section})})}),e.jsx("div",{className:"px-4",children:e.jsx("div",{className:"mx-auto w-full max-w-6xl",children:e.jsxs("div",{className:"grid w-full grid-cols-12",children:[e.jsx("div",{className:h({"order-last col-span-12 py-2 lg:order-first":!0,"pr-0 lg:col-span-8 lg:pr-12":n,"mb-8":!n}),children:e.jsx(Gs,{gridCols:n?"2":"3",cardOrientation:d==="list"?"horizontal":"vertical"})}),n&amp;&amp;e.jsxs("div",{className:"col-span-12 pl-0 pr-0 pt-4 lg:col-span-4 lg:pl-8 lg:pt-8",children:[e.jsx(hr,{}),e.jsx("div",{id:"side-panel-ad-placement"})]})]})})})]})};export{Qa as default,Ka as meta};
//# sourceMappingURL=index-DJp8c0E5.js.map

//# debugId=35ba5b74-9ba2-56e7-8c13-056443bc8ade
</pre></body></html>