PageSourceSearch

https://teenage.engineering/assets/payment-success.2FvJcpyt.js

js teenage.engineering collected 2026-09-24 17:10:10 UTC 2,599 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`096e0fc61894dc4de53509062dbec606037182d5`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a97091b7-95dd-4363-9a73-b8817552358c`,e._sentryDebugIdIdentifier=`sentry-dbid-a97091b7-95dd-4363-9a73-b8817552358c`)}catch{}})();import{n as e}from"./chunk.B-8nAmdL.js";import{n as t}from"./exports.CkSemJTm.js";import{n,t as r}from"./jsx-runtime.C8csbUBy.js";import{H as i,W as a}from"./chunk-EVOBXE3Y.CzoSy6B9.js";import{t as o}from"./flex.DRa6nQ2r.js";import{S as s}from"./app-context.DzVXENPv.js";import{i as c,n as l,t as u}from"./block.DF2vsUCQ.js";import{t as d}from"./container.0izNxIXm.js";import{h as f}from"./cart-api.BmIai1Y0.js";import{t as p}from"./shop.DD4gKLSP.js";import{t as m}from"./spinner.BCyydTNE.js";import{a as h,t as g}from"./tracking.Cdf-wao6.js";import{t as _}from"./not-found-page.02RUizwr.js";import{t as v}from"./page-title.DYEujnMB.js";import{r as y}from"./theme.PWT4PUV6.js";var b=r(),x=({receipt:e})=>(0,b.jsx)(u,{children:(0,b.jsx)(d,{narrow:!0,children:(0,b.jsxs)(o,{direction:`column`,align:`center`,gap:{base:`md`},children:[(0,b.jsx)(c,{align:`center`,size:30,dim:!0,children:l(`page/complete/success/heading`)}),(0,b.jsxs)(c,{align:`center`,size:15,children:[`order #`,e.order]}),(0,b.jsx)(c,{align:`center`,size:15,dim:!0,children:l(`page/complete/success/message`)})]})})}),S=e(n(),1),C=i(function({loaderData:{receipt:e,cartId:t}}){let{abandonCart:n}=s();return(0,S.useEffect)(()=>{if(e){n(),g.track(`purchase`,{...e||{},selection:t},h);let r=window.location.pathname;window.history.replaceState({},``,r)}},[n,e,t]),!e&&!t?(0,b.jsx)(_,{}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v,{title:l(`page/receipt/page-title`)}),(0,b.jsx)(`meta`,{name:`robots`,content:`noindex`}),(0,b.jsx)(x,{receipt:e})]})}),w=a(()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v,{title:l(`page/receipt/page-title`)}),(0,b.jsx)(`meta`,{name:`robots`,content:`noindex`}),(0,b.jsx)(d,{children:(0,b.jsx)(o,{align:`center`,justify:`center`,fullHeight:!0,children:(0,b.jsx)(m,{})})})]})),T=async({request:e})=>{try{let t=e.url,n=new URL(t).searchParams,r=n.get(`order`),i=n.get(`last_selection_id`);if(i&&r){let e=await p.getReceipt(i,r);return e.ok&&e.data?{receipt:e.data,cartId:i,orderId:r,theme:y}:(p.abandonCart(),{receipt:null,cartId:null,theme:y})}else return f(),{receipt:null,cartId:null,theme:y}}catch(e){return t(e),{theme:y}}};export{w as HydrateFallback,T as clientLoader,C as default};

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.