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]="c7c9296f-1b38-5772-b11d-9a3cb16afb10")}catch(e){}}(); 3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{V as n,g as r}from"./dist-CAHjj65Z.js";import{t as i}from"./useTranslation-BymTnaHx.js";import{n as a}from"./components-B8bHjdou.js";import{t as o}from"./classnames-PxzWHlFm.js";import{t as s}from"./Text-B4PqLHDw.js";import{t as c}from"./fonts-UEUbu-1r.js";import{t as l}from"./ArrowLeftIcon-vKsIwqZN.js";var u=e(o(),1),d={"beehiiv-images-production.s3.amazonaws.com":`media.beehiiv.com`,"beehiiv-images-production.s3.us-east-1.amazonaws.com":`media.beehiiv.com`,"media.beehiiv.net":`media.beehiiv.com`,"beehiiv-images-staging.s3.amazonaws.com":`media.staginghiiv.com`,"beehiiv-images-staging.s3.us-east-1.amazonaws.com":`media.staginghiiv.com`,"staging-media.beehiiv.net":`media.staginghiiv.com`},f=(e,t={format:`auto`,fit:`scale-down`,onerror:`redirect`})=>{let n=null;try{n=new URL(e)}catch{}return n&&Object.keys(d).includes(n.hostname)?`https://${n?d[n.hostname]:``}/cdn-cgi/image/${new URLSearchParams(t).toString().replace(/&/g,`,`)}${n?.pathname||``}${n?.search||``}`:e},p=(e,t)=>{if(!t)return e;try{return`${e}?offer_id=${t}`}catch{return e}},m=`Paywall_container__1kiwp4w0`,h=`Paywall_textCenter__1kiwp4w1`,g=`Paywall_title__1kiwp4w3`,_=`Paywall_description__1kiwp4w4`,v=`Paywall_button__1kiwp4w5`,y=t();function b({element:e,className:t,theme:n,upgradePath:r,shouldUseUrl:i,upgradeUrl:a,isLive:o=!0}){let{data:s}=e.attrs||{},{title:l,description:d,cta_text:b,benefits:x,subheader:S,image_url:C,offer_id:w,style:T}=s||{title:`Upgrade Now`,description:`Get access to premium content`,cta_text:`Subscribe`,benefits:[],subheader:`Subscription benefits`,image_url:``,style:{show_image:!0,background_color:`#ffffff`,text_color:`#000`,button_background_color:`#000000`,button_text_color:`#ffffff`,container_shadow:`0 0 #00000000`}},E=Array.isArray(x)&&x.length>0,D={fontFamily:`var(--wt-paragraph-font-family,${c(n?.paragraph_font_family)})`,fontSize:`var(--wt-paragraph-font-size,${n?.paragraph_font_size||0}px)`,lineHeight:`var(--wt-paragraph-line-height-size,${n?.paragraph_line_height_size||1.5})`},O={fontFamily:`var(--wt-h4-font-family,${c(n?.h4_font_family)})`,fontSize:`var(--wt-h4-font-size,${n?.h4_font_size||0}px)`,lineHeight:`var(--wt-h4-line-height,${n?.h4_line_height_size})`,fontWeight:`600`,marginTop:`0px`},k=i?a:p(r,w);return(0,y.jsxs)(`div`,{className:(0,u.default)(t,m,!o&&`pointer-events-none`),style:{width:`100%`,boxShadow:T?.container_shadow,backgroundColor:T?.background_color,color:T?.text_color,borderRadius:`var(--wt-button-border-radius,${n?.button_border_radius||0}px)`},children:[(0,y.jsxs)(`div`,{className:h,children:[T?.show_image&&C&&(0,y.jsx)(`img`,{src:f(C),alt:`logo`,className:`Paywall_logo__1kiwp4w2`,style:{borderRadius:`var(--wt-button-border-radius,${n?.button_border_radius||0}px)`,overflow:`hidden`}}),(0,y.jsx)(`h2`,{className:g,style:{fontFamily:`var(--wt-h2-font-family,${n?.h2_font_family})`,fontSize:`var(--wt-h2-font-size,${n?.h2_font_size||0}px)`,lineHeight:`var(--wt-h2-line-height,${n?.h2_line_height_size})`,marginTop:`8px`},children:l}),(0,y.jsx)(`p`,{className:_,style:D,children:d}),(0,y.jsx)(`a`,{href:k,target:`_blank`,rel:`noopener noreferrer`,className:v,style:{padding:`${n?.button_padding_top}px ${n?.button_padding_bottom}px`,backgroundColor:T?.button_background_color,fontFamily:n?.button_font_family,color:T?.button_text_color,borderRadius:`${n?.button_border_radius||0}px`},children:b}),S&&(0,y.jsxs)(`h4`,{className:`Paywall_subheader__1kiwp4w6`,style:O,children:[S,`:`]})]}),E&&(0,y.jsx)(`ul`,{className:`Paywall_featureList__1kiwp4w7`,children:x.map(e=>(0,y.jsx)(`li`,{className:`Paywall_featureListItem__1kiwp4w8`,style:D,children:e},e))})]})}var x=e(n(),1);function S({updateOn:e}){return(0,x.useEffect)(()=>{let e=null;try{e=document.createElement(`script`),e.src=`https://embed.bsky.app/static/embed.js`,e.setAttribute(`data-bluesky-embed`,`true`),document.body.appendChild(e)}catch{}return()=>{try{e?.parentNode&&e.parentNode.removeChild(e)}catch{}}},[e]),null}function C(){return(0,y.jsx)(`script`,{type:`module`,dangerouslySetInnerHTML:{__html:` 4var e, t, r, i, n; 5(t = {}), 6 (r = {}), 7 null == 8 (i = (e = 9 "undefined" != typeof globalThis 10 ? globalThis 11 : "undefined" != typeof self 12 ? self 13 : "undefined" != typeof window 14 ? window 15 : "undefined" != typeof global 16 ? global 17 : {}).parcelRequire326a) && 18 (((i = function (e) { 19 if (e in t) return t[e].exports; 20 if (e in r) { 21 var i = r[e]; 22 delete r[e]; 23 var n = { id: e, exports: {} };
24 return (t[e] = n), i.call(n.exports, n, n.exports), n.exports; 25 } 26 var o = Error("Cannot find module '" + e + "'"); 27 throw ((o.code = "MODULE_NOT_FOUND"), o); 28 }).register = function (e, t) { 29 r[e] = t; 30 }), 31 (e.parcelRequire326a = i)), 32 (n = i.register)("gUOGs", function (e, t) { 33 Object.defineProperty(e.exports, "__esModule", { value: !0 }); 34 var r, 35 n = i("kBCj4"), 36 o = i("53LBo"), 37 s = [], 38 a = (function () { 39 function e(e) { 40 (this.$$observationTargets = []), 41 (this.$$activeTargets = []), 42 (this.$$skippedTargets = []); 43 var t = 44 void 0 === e 45 ? "Failed to construct 'ResizeObserver': 1 argument required, but only 0 present." 46 : "function" != typeof e 47 ? "Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function." 48 : void 0; 49 if (t) throw TypeError(t); 50 this.$$callback = e; 51 } 52 return ( 53 (e.prototype.observe = function (e) { 54 var t = d("observe", e); 55 if (t) throw TypeError(t); 56 u(this.$$observationTargets, e) >= 0 || 57 (this.$$observationTargets.push(new n.ResizeObservation(e)), 58 0 > s.indexOf(this) && (s.push(this), v())); 59 }), 60 (e.prototype.unobserve = function (e) { 61 var t = d("unobserve", e); 62 if (t) throw TypeError(t); 63 var r = u(this.$$observationTargets, e); 64 r < 0 || 65 (this.$$observationTargets.splice(r, 1), 66 0 === this.$$observationTargets.length && c(this)); 67 }), 68 (e.prototype.disconnect = function () { 69 (this.$$observationTargets = []), 70 (this.$$activeTargets = []), 71 c(this); 72 }), 73 e 74 ); 75 })(); 76 function c(e) { 77 var t = s.indexOf(e); 78 t >= 0 && (s.splice(t, 1), $()); 79 } 80 function d(e, t) { 81 return void 0 === t 82 ? "Failed to execute '" + 83 e + 84 "' on 'ResizeObserver': 1 argument required, but only 0 present." 85 : t && t.nodeType === window.Node.ELEMENT_NODE 86 ? void 0 87 : "Failed to execute '" + 88 e + 89 "' on 'ResizeObserver': parameter 1 is not of type 'Element'."; 90 } 91 function u(e, t) { 92 for (var r = 0; r < e.length; r += 1) if (e[r].target === t) return r; 93 return -1; 94 } 95 e.exports.ResizeObserver = a; 96 var l = function (e) { 97 s.forEach(function (t) { 98 (t.$$activeTargets = []), 99 (t.$$skippedTargets = []), 100 t.$$observationTargets.forEach(function (r) { 101 r.isActive() && 102 (h(r.target) > e 103 ? t.$$activeTargets.push(r) 104 : t.$$skippedTargets.push(r)); 105 }); 106 }); 107 }, 108 f = function () { 109 var e = 1 / 0; 110 return ( 111 s.forEach(function (t) { 112 if (t.$$activeTargets.length) { 113 var r = []; 114 t.$$activeTargets.forEach(function (t) { 115 var i = new o.ResizeObserverEntry(t.target); 116 r.push(i), 117 (t.$$broadcastWidth = i.contentRect.width), 118 (t.$$broadcastHeight = i.contentRect.height); 119 var n = h(t.target); 120 n < e && (e = n); 121 }), 122 t.$$callback(r, t), 123 (t.$$activeTargets = []); 124 } 125 }), 126 e 127 ); 128 }, 129 p = function () { 130 var e = new window.ErrorEvent("ResizeLoopError", { 131 message: 132 "ResizeObserver loop completed with undelivered notifications.", 133 }); 134 window.dispatchEvent(e); 135 }, 136 h = function (e) { 137 for (var t = 0; e.parentNode; ) (e = e.parentNode), (t += 1); 138 return t; 139 }, 140 g = function () { 141 for ( 142 l(0); 143 s.some(function (e) { 144 return !!e.$$activeTargets.length; 145 }); 146 147 ) 148 l(f()); 149 s.some(function (e) { 150 return !!e.$$skippedTargets.length; 151 }) && p(); 152 }, 153 v = function () { 154 r || b(); 155 }, 156 b = function () { 157 r = window.requestAnimationFrame(function () { 158 g(), b(); 159 }); 160 }, 161 $ = function () { 162 r && 163 !s.some(function (e) { 164 return !!e.$$observationTargets.length; 165 }) && 166 (window.cancelAnimationFrame(r), (r = void 0)); 167 }; 168 e.exports.install = function () { 169 return (window.ResizeObserver = a); 170 }; 171 }), 172 n("kBCj4", function (e, t) { 173 Object.defineProperty(e.exports, "__esModule", { value: !0 }); 174 var r = i("ardMU"), 175 n = (function () { 176 function e(e) { 177 (this.target = e), 178 (this.$$broadcastWidth = this.$$broadcastHeight = 0); 179 } 180 return ( 181 Object.defineProperty(e.prototype, "broadcastWidth", { 182 get: function () { 183 return this.$$broadcastWidth; 184 }, 185 enumerable: !0, 186 configurable: !0, 187 }), 188 Object.defineProperty(e.prototype, "broadcastHeight", { 189 get: function () { 190 return this.$$broadcastHeight; 191 }, 192 enumerable: !0, 193 configurable: !0, 194 }), 195 (e.prototype.isActive = function () { 196 var e = r.ContentRect(this.target); 197 return ( 198 !!e && 199 (e.width !== this.broadcastWidth || 200 e.height !== this.broadcastHeight) 201 ); 202 }), 203 e 204 ); 205 })(); 206 e.exports.ResizeObservation = n; 207 }), 208 n("ardMU", function (e, t) { 209 Object.defineProperty(e.exports, "__esModule", { value: !0 }), 210 (e.exports.ContentRect = function (e) { 211 if ("getBBox" in e) { 212 var t = e.getBBox(); 213 return Object.freeze({ 214 height: t.height, 215 left: 0, 216 top: 0, 217 width: t.width, 218 }); 219 } 220 var r = window.getComputedStyle(e); 221 return Object.freeze({ 222 height: parseFloat(r.height || "0"), 223 left: parseFloat(r.paddingLeft || "0"), 224 top: parseFloat(r.paddingTop || "0"), 225 width: parseFloat(r.width || "0"), 226 }); 227 }); 228 }), 229 n("53LBo", function (e, t) { 230 Object.defineProperty(e.exports, "__esModule", { value: !0 }); 231 var r = i("ardMU"); 232 e.exports.ResizeObserverEntry = function (e) { 233 (this.target = e), (this.contentRect = r.ContentRect(e)); 234 }; 235 }), 236 (function () { 237 if ( 238 !(function () { 239 if (!window.__stwts || !Object.keys(window.__stwts).length) 240 return ( 241 (window.__stwts = { buildVersion: "1.0.0", widgets: { init: !0 } }), 242 !0 243 ); 244 })() 245 ) 246 return; 247 function e(e, t) { 248 t <= 300 && (e.style.width = "300px"), 249 t >= 600 && (e.style.width = "600px"), 250 t > 300 && t < 600 && (e.style.width = \`\${t}px\`); 251 } 252 "undefined" == typeof ResizeObserver && i("gUOGs").install(); 253 let t = new (ResizeObserver || window.ResizeObserver)(function (t) { 254 t.forEach((t) => { 255 let r = t?.contentRect?.width, 256 i = t.target.querySelector("iframe"); 257 r && i && e(i, r); 258 }); 259 }); 260 261 function loadStocktwitsEmbeds() { 262 Array.from( 263 document.querySelectorAll("blockquote.stocktwits-embedded-post"), 264 ).forEach((r) => { 265 !(function (t, r) { 266 if (t.getAttribute("visited")) return; 267 let i = t.getAttribute("data-origin"), 268 n = t.getAttribute("data-id"), 269 o = document.createElement("div"); 270 (o.style.display = "flex"), 271 (o.style.maxWidth = "600px"), 272 (o.style.width = "100%"), 273 (o.style.marginTop = "10px"), 274 (o.style.marginBottom = "10px"); 275 let s = document.createElement("iframe"); 276 o.appendChild(s); 277 let a = \`\${i}/embeddable/message/\${n}\`; 278 (s.style.width = "640px"), 279 (s.style.height = "0"), 280 (s.style.maxWidth = "600px"), 281 (s.style.position = "static"), 282 (s.style.visibility = "visible"), 283 (s.style.display = "block"),
284 (s.style.flexGrow = "1"), 285 s.setAttribute("frameborder", "0"), 286 s.setAttribute("allowtransparency", "true"), 287 s.setAttribute("scrolling", "no"), 288 s.setAttribute("allowfullscreen", "true"); 289 let c = !1, 290 d = null; 291 function u(e) { 292 c = !0; 293 let { height: r } = e.data; 294 void 0 !== r && (s.style.height = \`\${r}px\`), 295 document.body.contains(t) && t.remove(); 296 } 297 t.parentNode.insertBefore(o, t), t.setAttribute("visited", true), 298 s.addEventListener("load", function () { 299 e(s, o.clientWidth), 300 (function () { 301 let e = () => { 302 ((d = new MessageChannel()).port1.onmessage = u), 303 s.contentWindow.postMessage( 304 { message: "initialize" }, 305 "*", 306 [d.port2], 307 ); 308 }; 309 e(); 310 let t = setInterval(() => { 311 c ? clearInterval(t) : e(); 312 }, 60); 313 })(); 314 }), 315 s.setAttribute("src", a), 316 r.observe(o); 317 })(r, t); 318 }); 319 } 320 321 window.__stwts.loadStocktwitsEmbeds = loadStocktwitsEmbeds; 322 })(); 323`}})}function w({updateOn:e}){return(0,x.useEffect)(()=>{let e=null;try{e=document.createElement(`script`),e.src=`https://platform.twitter.com/widgets.js`,e.setAttribute(`data-twitter-embed`,`true`),document.body.appendChild(e)}catch{}return()=>{try{e?.parentNode&&e.parentNode.removeChild(e)}catch{}}},[e]),null}var T=({subscription:e,publication:t,paywall:n})=>{let{t:r}=i(),[o,c]=(0,x.useState)(``);return(0,x.useEffect)(()=>{if(window)try{let e=new URL(`${window.location.origin}/upgrade${window.location.search}`);n.offer_id&&e.searchParams.set(`offer_id`,n.offer_id),c(e.toString())}catch{c(`${window.location.origin}/upgrade${window.location.search}`)}},[]),(0,y.jsxs)(`div`,{className:`mx-auto mb-16 max-w-xl space-y-4`,children:[(0,y.jsx)(b,{theme:n.theme,url:o,element:{type:`paywall_break`,attrs:{id:n.id,data:{title:n.title,description:n.description,cta_text:n.cta_text,benefits:n.benefits,subheader:n.subheader,image_url:n.image_url,style:n.style}},content:[{id:`text`,text:``}]},children:null}),!e&&(0,y.jsxs)(s,{as:`span`,type:`body`,theme:`content`,size:`xs`,className:`flex items-center justify-center text-center text-xs tracking-wide opacity-75 sm:text-lg`,children:[r(`login.already_a_subscriber`),(0,y.jsxs)(a,{to:`/login`,className:`ml-1`,children:[(0,y.jsx)(`span`,{className:`text-wt-primary underline underline-offset-1`,children:r(`shared.cta.sign_in`)}),`.`]})]})]})},E=(e,t)=>{(0,x.useEffect)(()=>{try{window?.bluesky?.scan?.()}catch{}},[e,t])},D=(e,t)=>{(0,x.useEffect)(()=>{window?.__stwts?.loadStocktwitsEmbeds()},[e,t])},O=(e,t)=>{(0,x.useEffect)(()=>{let e=document.getElementsByClassName(`tiktok-embed`)||[],t;return e.length>0&&(t=document.createElement(`script`),t.src=`https://www.tiktok.com/embed.js`,t.async=!0,document.head.appendChild(t)),()=>{t&&document?.head?.removeChild(t)}},[e,t])},k=(e,t)=>{(0,x.useEffect)(()=>{let e=document.getElementById(`#content-blocks`);window.twttr?.widgets?.load(e)},[e,t])},A=(0,x.memo)(({html:e,slug:t,update:n=!0})=>(O(t,n),k(t,n),E(t,n),D(t,n),(0,y.jsx)(`div`,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}})),(e,t)=>e.slug===t.slug&&e.update===t.update),j=()=>{let e=r();return(0,y.jsx)(`div`,{className:`flex h-7 w-7 items-center justify-center rounded-wt transition-all hover:bg-black/5`,children:(0,y.jsx)(`button`,{className:`cursor-pointer`,onClick:()=>{window.history.state.idx===0?e(`/`):e(-1)},children:(0,y.jsx)(l,{className:`h-6 w-6 stroke-1 text-wt-text-on-background opacity-50`})})})};export{C as a,w as i,A as n,S as o,T as r,j as t}; 324//# sourceMappingURL=BackButton-vJJKbu5V.js.map 325//# debugId=c7c9296f-1b38-5772-b11d-9a3cb16afb10
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.