PageSourceSearch

https://talkhouse.com/_next/static/chunks/pages/_sites/[siteSlug]/payment/complete-dbcf5ee83cbb3b88.js

js talkhouse.com collected 2026-09-24 17:09:44 UTC 6,395 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5443],{5616:e=>{e.exports={pageHeader:"payment_pageHeader__Ozous",pageWrapper:"payment_pageWrapper__gA6Mi",pageWrapperComplete:"payment_pageWrapperComplete__xjEZp",pageTitle:"payment_pageTitle__e0eQb",pageSubtitle:"payment_pageSubtitle__SNwGq",sectionHeading:"payment_sectionHeading__pkFhh",inner:"payment_inner__7hAlv",confirmationMessage:"payment_confirmationMessage__qWVWE",priceWrapper:"payment_priceWrapper__iJWR8",link:"payment_link__8zskQ",productDetails:"payment_productDetails__ISxzT",productDetailsHeading:"payment_productDetailsHeading__g6oYh",savedCard:"payment_savedCard__plDL_",paymentBtn:"payment_paymentBtn__OduAQ",loadingWrapper:"payment_loadingWrapper__VsPfN",paymentInfo:"payment_paymentInfo__Vx95o",comparePriceWrapper:"payment_comparePriceWrapper__rGRnk",introPriceWrapper:"payment_introPriceWrapper__RD2pv",introPriceHeading:"payment_introPriceHeading__Ftt8j",originalPriceWrapper:"payment_originalPriceWrapper__Bneng",paymentDetails:"payment_paymentDetails__2_e69"}},6049:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[siteSlug]/payment/complete",function(){return n(50279)}])},8349:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(e,t,n)=>{var r;let a="annual"===t||"one-time"===t?e.annualPrice:e.monthlyPrice;return{item_id:(null==e||null==(r=e.id)?void 0:r.toString())||null,item_name:null==e?void 0:e.name,item_variant:t,currency:n,price:parseFloat(a),quantity:1}}},50279:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>b,default:()=>W});var r=n(37876),a=n(50774),i=n(8349),c=n(40880),s=n(79757),p=n(11100),u=n(90198),l=n(14232),o=n(89099),d=n(4309),m=n(88876),_=n(77585),y=n(67685),h=n(37036),g=n(81249),v=n(20884),f=n(41704),S=n(5616),w=n.n(S);let A=async(e,t,n)=>{try{let r=new URLSearchParams({siteSlug:e,paymentIntentId:t,clientSecret:n});return(await fetch("/api/paymentIntent?".concat(r.toString()))).json()}catch(t){(0,c.v)(t,{siteSlug:e})}return null},P=async(e,t,n)=>{try{let r=new URLSearchParams({siteSlug:e,subscriptionId:t,customerId:n});return(await fetch("/api/subscription?".concat(r.toString()))).json()}catch(t){(0,c.v)(t,{siteSlug:e})}return null},I=async(e,t)=>{try{let n=new URLSearchParams({siteSlug:e,sessionId:t});return(await fetch("/api/checkout/verify?".concat(n.toString()))).json()}catch(t){(0,c.v)(t,{siteSlug:e})}return null};var b=!0;let W=e=>{let{globalData:t}=e,{siteTitle:n,publisherCurrency:c,metaPixelId:S,redditPixelId:b,confirmationMessageSettings:W}=t,{query:{payment_intent:C,payment_intent_client_secret:x,redirect_status:F,siteSlug:j,subscription:k,session_id:N}}=(0,o.useRouter)(),{userData:{customerId:E,hydrated:D,order:O,productCart:T,productInterval:H},updateUserData:R}=(0,d.u)(),q=(0,m.A)("add_payment_info"),X=(0,m.A)("purchase"),M=(0,m.A)("subscription_upgrade"),L=(0,m.A)("subscription_interval_switch"),U=(0,m.A)("conversion"),z=(0,_.A)(),[B,Q]=(0,l.useState)(!1),[V,G]=(0,l.useState)(!1),[J,Y]=(0,l.useState)(!1),[Z,K]=(0,l.useState)(!1),{purchaseConfirmationMessage:$}=W||{},ee=!!N&&!Z,et=e=>{if("success"===e.status){let t=(0,i.A)(T,H,c),n=e.subscriptionId||(null==O?void 0:O.stripeId),r={currency:t.currency,value:parseFloat(t.price.toString()),transaction_id:n,items:[t]};O?(0,u.A)(O.interval,H)?L(r):M(r):(X(r),S&&!B&&(Q(!0),s.f("Purchase",{content_ids:[T.name],contents:[{id:T.name,quantity:1}],currency:t.currency,value:parseFloat(t.price.toString())}),s.f("Subscribe",{currency:t.currency,value:parseFloat(t.price.toString())})),b&&!V&&(G(!0),(0,p.Ov)({currency:t.currency,value:parseFloat(t.price.toString()),transactionId:n,itemCount:1,products:[{id:T.name,name:T.name}]}))),U(r),R({productCart:null,customerEnteredCoupon:null,customerEnteredCouponProducts:null,productInterval:y.IX.Annual,entitlements:T.entitlements,pendingOrder:!0,pendingOrderFetchTime:Date.now()+1e4,pendingOrderFetchAttempts:0}),z(null)}};return(0,l.useEffect)(()=>{if(window.location){if(D&&N&&j)return void I(j,N).then(async e=>{if((null==e?void 0:e.status)==="success"){var t,n,r,u,l;Y(!0),await (0,a.Jv)("checkout",{sessionId:N,redirect:!1});let o=await (0,a.Ht)(),d=null==o||null==(t=o.customer)?void 0:t.id;Y(!1);let m=T?(0,i.A)(T,H,c):{currency:c||"USD",price:e.amount||0},_={currency:m.currency,value:parseFloat((null==(n=m.price)?void 0:n.toString())||"0"),transaction_id:e.subscriptionId||N,items:T?[m]:[],customer_id:d||e.customerId,customer_email:e.customerEmail};q(_),O?M(_):(X(_),S&&!B&&T&&(Q(!0),s.f("Purchase",{content_ids:[T.name],contents:[{id:T.name,quantity:1}],currency:m.currency,value:parseFloat((null==(r=m.price)?void 0:r.toString())||"0")}),s.f("Subscribe",{currency:m.currency,value:parseFloat((null==(u=m.price)?void 0:u.toString())||"0")})),b&&!V&&(G(!0),(0,p.Ov)({currency:m.currency,value:parseFloat((null==(l=m.price)?void 0:l.toString())||"0"),transactionId:e.subscriptionId||N,itemCount:1,products:T?[{id:T.name,name:T.name}]:[]}))),U(_),R({customerId:d,productCart:null,customerEnteredCoupon:null,customerEnteredCouponProducts:null,productInterval:y.IX.Annual,entitlements:(null==T?void 0:T.entitlements)||[],pendingOrder:!0,pendingOrderFetchTime:Date.now()+1e4,pendingOrderFetchAttempts:0,validated:!0,verified:!0,status:h._.Paying}),z(null),K(!0)}});if(D&&T&&T.entitlements&&k&&E)return void P(j,k,E).then(e=>{et(e)});D&&T&&T.entitlements&&C&&x&&F&&A(j,C,x).then(e=>{et(e)})}},[D,N,C,x,F,j,R,z]),(0,r.jsx)(g.A,{...t,title:"".concat(n," | Payment Complete"),footerTheme:"simple",hideAds:!0,children:(0,r.jsxs)("div",{className:w().pageWrapperComplete,children:[(0,r.jsx)("h1",{className:w().pageTitle,children:"Thank y
1ou!"}),(0,r.jsxs)("div",{className:w().inner,children:[(0,r.jsx)("h2",{className:w().pageSubtitle,children:"Your ".concat(n," purchase is complete.")}),ee?J?(0,r.jsx)("p",{children:"Setting up your account..."}):null:(0,r.jsxs)(r.Fragment,{children:[$?(0,r.jsx)(f.A,{tag:"div",className:w().confirmationMessage,html:$,allowedTags:["a","em","div","li","ol","p","strong","ul"]}):(0,r.jsx)("p",{children:"If you purchased a product with any additional perks, stay tuned to your inbox for details within the next couple of hours."}),(0,r.jsx)(v.A,{href:"/",className:w().link,children:"Check out the homepage"})]})]})]})})}},90198:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(67685);let a=(e,t)=>e===r.IX.Monthly&&t===r.IX.Annual}},e=>{e.O(0,[1596,6071,1249,636,6593,8792],()=>e(e.s=6049)),_N_E=e.O()}]);

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.