PageSourceSearch

https://newsletter.remoteur.com/assets/getStaticPageMetaData-BVteVAjd.js

js remoteur.com collected 2026-09-24 13:24:20 UTC 5,065 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]="e64a8ec4-80df-58ee-a5de-231c88225808")}catch(e){}}();
3import{n as e}from"./exports-mk284NM-.js";import{V as t}from"./QueryClientProvider-Cdu2unP4.js";import{D as n,O as r,i,k as a,y as o}from"./StaticPage-Babiqn2v.js";import{o as s}from"./lib-V61EcWBh.js";import{n as c,t as l}from"./getMergedMetaData-W0YEAho6.js";import{t as u}from"./getMetaDataLinks-BJc4Z0O3.js";var d=async e=>{let t=new URLSearchParams;for(let n of e)t.append(`product_ids[]`,n);return fetch(`/product_review_summaries?${t.toString()}`,{method:`GET`,headers:{"Sec-Fetch-Dest":`empty`}})};function f(e){let t=new Set([]);return e.filter(e=>!e.attrs.hasFakeData).forEach(e=>{e.attrs.structureTiptapState&&r(e.attrs.structureTiptapState,`postCardActions`)&&e.attrs.data.posts.forEach(e=>{t.add(e.id)})}),[...t]}function p(e){let t=new Set([]);return e.filter(e=>!e.attrs.hasFakeData).forEach(e=>{e.attrs.structureTiptapState&&r(e.attrs.structureTiptapState,`paragraph`,e=>e.attrs?.mergeTag===`product.rating`)&&e.attrs.data.products.forEach(e=>{t.add(e.id)})}),[...t]}var m=async({request:r,serverLoader:c})=>{let l=await c();if(!l?.site||!l?.page)throw Error(`RefreshPageError`);let u=s(l?.page?.viewable_page_version?.content);if(!u)return l;let m=new URL(r.url),h=new URLSearchParams(m.search),g=a(u,`post`),_=a(u,`products`),v=n(u,[`contentGate`]);if(!Object.values(v||{}).some(e=>e!==null)&&g.length===0&&_.length===0)return l;let y=[],b=t(`token`,document.cookie);if(v.contentGate&&b){let e={jwt_token:b};y.push(fetch(`/current_subscription`,{method:`POST`,headers:{"Sec-Fetch-Dest":`empty`,"Content-Type":`application/json`},body:JSON.stringify(e)}))}else y.push(Promise.resolve(null));let x,S=[],C,w;if(g.length>0){let e=f(g);e.length>0?(y.push(i(e)),b?y.push(fetch(`/liked_ids`,{method:`GET`,headers:{"Sec-Fetch-Dest":`empty`}})):y.push(Promise.resolve(null))):(y.push(Promise.resolve(null)),y.push(Promise.resolve(null)))}else y.push(Promise.resolve(null)),y.push(Promise.resolve(null));if(_.length>0){let e=p(_);e.length>0?y.push(d(e)):y.push(Promise.resolve(null))}else y.push(Promise.resolve(null));let[T,E,D,O]=await Promise.all(y);T&&T.ok&&(x=await T.json());let k=!1;try{v.contentGate&&(k=o({contentGateNode:v.contentGate,subscription:x,cookiesHeader:document.cookie,tierIds:h.getAll(`tier_ids[]`)}))}catch(t){e(t)}if(D&&D.ok)try{let e=await D.json();e&&`post_ids`in e&&(S=e.post_ids)}catch(t){e(t)}if(g.length>0&&E&&E.ok)try{let e=await E.json();`posts`in e&&(C=e.posts)}catch(t){e(t)}if(_.length>0&&O&&O.ok)try{let e=await O.json();`summaries`in e&&(w=e.summaries)}catch(t){e(t)}return{...l,page:{...l.page,viewable_page_version:{...l.page?.viewable_page_version,content:u}},hasPostInsightsDataFetched:!0,hasLikedPostsDataFetched:!0,hasProductReviewSummariesDataFetched:!0,isContentClipped:k,subscription:x,postsInsights:C,likedPosts:S,productReviewSummaries:w}};m.hydrate=!0;function h(e,t){switch(e){case`/archive`:return{"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,item:{"@id":t?.site?.publication?.url??``,name:t?.site?.publication?.name??``}}]};default:return{"@context":`https://schema.org`,"@type":`WebPage`,url:t?.site?.publication?.url??``}}}var g=({matches:e,data:t},n)=>{let r=t?.requestUrl,i=t?.site?.publication?.url,a=t?.page?.is_home_page??!1,o=n?.canonicalUrl?c(n.canonicalUrl):c(a&&i?i:r),s=null,d;try{s=r?new URL(r):null,d=s?.pathname||t?.pageSlug||`/`}catch{s=null,d=t?.pageSlug||`/`}let f=t?.site?.viewable_site_version?.metadata,p=t?.page?.viewable_page_version,m=p?.metadata,g=e=>m?.[e]||f?.[e]||``,_=e=>n?.description||m?.[e]||f?.[e]||p?.description,v=e=>(n?.title||m?.[e]||t?.page?.name||f?.[e]||``).trim(),y=t?.site?.publication?.name||``,b=m?.append_publication_name_to_title!==void 0,x=f?.append_publication_name_to_title??!0,S=b?m.append_publication_name_to_title:x,C=(e,t=y)=>
3{if(e&&y&&S){let t=` | ${y}`;return e===y||e.endsWith(t)?e:`${e}${t}`}return e||t},w=C(v(`meta_title`)),T=C(v(`facebook_title`)),E=C(v(`x_title`),w);return l({canonicalUrl:o,matches:e,pageMetadata:m,siteMetadata:f,overrides:{title:w,description:_(`meta_description`),"og:title":T,"og:description":_(`facebook_description`),"og:image":g(`facebook_image_url`),"og:url":o,"twitter:title":E,"twitter:description":_(`x_description`),"twitter:image":g(`x_image_url`),"twitter:creator":g(`x_username`),"twitter:url":o},links:u({renderableFonts:t?.renderableFonts||[]}),structuredData:n?.structuredData||h(d,t)||{"@context":`https://schema.org`,"@type":`WebSite`,url:o,potentialAction:{"@type":`SearchAction`,target:{"@type":`EntryPoint`,urlTemplate:`${o}?q={search_term_string}`},"query-input":`required name=search_term_string`}}})};export{m as n,g as t};
4//# sourceMappingURL=getStaticPageMetaData-BVteVAjd.js.map
5//# debugId=e64a8ec4-80df-58ee-a5de-231c88225808

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.