PageSourceSearch

https://www.thefriendstheory.com/assets/_slug-DKJSfu9R.js

js thefriendstheory.com collected 2026-10-04 23:50:56 UTC 5,429 bytes, 5 lines download raw bytes

1
2!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&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a7dfa4c5-c191-5de9-8097-e33d42b3ce03")}catch(e){}}();
3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{V as n,v as r}from"./dist-CAHjj65Z.js";import{p as i}from"./components-B8bHjdou.js";import{n as a,t as o}from"./ComponentErrorBoundary-6y1vzF6e.js";import{a as s,c,i as l,l as u,n as d,o as f,r as p,s as m,t as h,u as g}from"./getSameAsArray-B5nagNMq.js";import{a as _,i as v,o as y}from"./BackButton-vJJKbu5V.js";import{n as b}from"./SlideUpModal-CBCD62fe.js";import{t as x}from"./useTypedLoaderData-p1j97aJ6.js";import{t as S}from"./shouldRevalidateLoaderData-cxDIbqj1.js";import{n as C,t as w}from"./getMergedMetaData-BX84vd1a.js";var T=e(n(),1);function E(e,t){try{return new URL(e).searchParams.get(t)||null}catch{return null}}function D(e){try{return new URL(e),!0}catch{return!1}}var O=({post:e,visitToken:t})=>{(0,T.useEffect)(()=>{function n(n){try{let r=n.target;for(;r&&r.id!==`content-blocks`&&r.tagName!==`BODY`;){if(r.tagName===`A`){let n=r.href;if(!D(n))break;let i=E(n,`_bhlid`),a={url:n,post_id:e.id,publication_id:e.publication_id,visit_token:t,...i?{link_id:i}:{}};fetch(`/clicks`,{method:`post`,body:JSON.stringify(a),headers:{"content-type":`application/json`}}).then().catch();break}r=r.parentElement}}catch{}}return document.removeEventListener(`click`,n),document.addEventListener(`click`,n),()=>{document.removeEventListener(`click`,n)}},[e.id,e.publication_id,t])},k=t(),A=({matches:e,data:t})=>{let n=t?.post,r=t?.publication,i=C(t?.requestUrl||``);return!n||!r?[{title:`404 - Not Found`},{description:`The newsletter platform built for growth.`},{keywords:`Newsletter, Email, Growth, Platform, SaaS, Creator`}]:w({canonicalUrl:C(t?.requestUrl),matches:e,returnEarlyCheck:!n,overrides:{title:n?.meta_default_title||``,description:n?.meta_default_description||``,"og:url":`${r?.url||``}p/${n?.slug||``}`,"og:title":n?.meta_og_title||``,"og:description":n?.meta_og_description||``,"og:site_name":r?.name||``,"og:image":n?.image_url||r?.thumbnail?.url||r?.logo?.url||``,"og:image:alt":n?.web_subtitle||r?.description||``,"twitter:url":`${r?.url||``}p/${n?.slug||``}`,"twitter:title":n?.meta_twitter_title||``,"twitter:description":n?.meta_twitter_description||``,"twitter:image":n?.image_url||r?.thumbnail?.url||r?.logo?.url||``,"og:type":`article`,...n?.authors?.[0]?.name?{author:n.authors[0].name,"article:author":n.authors[0].name}:{}},structuredData:[{"@context":`https://schema.org`,"@type":`Article`,identifier:n.slug,url:i,mainEntityOfPage:{"@type":`WebPage`,"@id":i},headline:n.web_title,description:n.web_subtitle,datePublished:n.override_scheduled_at,dateModified:n.updated_at,isAccessibleForFree:n?.is_accessible_for_free??!0,image:{"@type":`ImageObject`,url:n.image_url},author:{"@type":`Person`,name:n.authors?.[0]?.name,image:{"@type":`ImageObject`,contentUrl:n.authors?.[0]?.profile_picture.url,thumbnailUrl:n.authors?.[0]?.profile_picture.thumb.url}},publisher:{"@type":`Organization`,name:r.name,url:r.url,identifier:r.id,sameAs:h(r),logo:{"@type":`ImageObject`,url:r.logo?.url,contentUrl:r.logo?.url,thumbnailUrl:r.logo?.thumb.url},image:{"@type":`ImageObject`,url:r.logo?.url,contentUrl:r.logo?.url,thumbnailUrl:r.logo?.thumb.url}}},{"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,item:{"@id":r?.url,name:r?.name}},{"@type":`ListItem`,position:2,item:{"@id":i,name:n?.web_title}}]}]})};function j(){let{post:e,html:t,truncatedHtml:n,publication:h,recommendedReadingEnabled:S,commentsEnabled:C,onlyRenderComments:w,isDraft:T,paywall:E,tierIds:D,dynamicContentOverrides:A,currentSubscriberId:j}=x(),{subscription:M}=i(`root`),{cookies:N,setCookie:P,cookiesSet:F,isLoggedIn:I,admin:L}=r(),{isPopupDisabled:R,isGatedContentDisabled:z}=m({tierIds:D,currentSubscriberId:j,dynamicContentOverrides:A,cookies:N,isLoggedIn:I,isDraft:T}),B=N.visit_token??``,V=N.page_view;u({visitToken:B,pageViews:V||``,post:e,setCookie:P,cookiesSet:F}),b({guid:`Post:${e.id}`,setCookie:P,cookiesSet:F});let H=e.audience===`premium`,U=!!L,W=M?.tier===`premium`&&M?.status!==`paused`,G=H&&
3!W&&!U&&!T,K=h.web_template.post_padding,q=e.contains_subscriber_break&&!z,J=c(e.id,T),Y=J?.length>0&&S;return O({post:e,visitToken:B}),(0,k.jsxs)(`div`,{children:[!w&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(l,{post:e,publication:h,isGatedContentDisabled:z,isPopupDisabled:R}),(0,k.jsx)(v,{updateOn:R}),(0,k.jsx)(y,{updateOn:R}),(0,k.jsx)(_,{})]}),!w&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(p,{html:q?n:t,isGatedContentDisabled:z,subscription:M,admin:L,post:e,publication:h}),(0,k.jsx)(`div`,{className:`px-4`,children:(0,k.jsx)(s,{post:e,publication:h,isGatedContentDisabled:z,subscription:M,paywall:E})})]}),(0,k.jsxs)(`div`,{id:`comments`,className:`px-4 space-y-8`,children:[C&&!G&&(0,k.jsx)(o,{fallbackRender:({error:e})=>(0,k.jsx)(g,{classNames:`mx-auto max-w-2xl`,postPadding:K,children:(0,k.jsx)(a,{error:e})}),children:(0,k.jsx)(f,{post:e,subscription:M,publication:h})}),Y&&!T&&(0,k.jsx)(d,{publication:h,recommendedPosts:J})]})]})}var M=S;export{j as default,A as meta,M as shouldRevalidate};
4//# sourceMappingURL=_slug-DKJSfu9R.js.map
5//# debugId=a7dfa4c5-c191-5de9-8097-e33d42b3ce03

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.