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:`7cd6bc3f7a05c57c4d72db5091deb43687ee6152`};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.uyrLgKMQ.js";import{n as t}from"./exports.FlLvyXrX.js";import{n,t as r}from"./jsx-runtime.CTndHmF1.js";import{H as i,W as a}from"./chunk-EVOBXE3Y.kwuAUjqn.js";import{t as o}from"./flex.DZxefmYM.js";import{S as s}from"./app-context.DdCE_-7Q.js";import{i as c,n as l,t as u}from"./block.TYbA1P7r.js";import{t as d}from"./container.BHRh4MAL.js";import{h as f}from"./cart-api.zwJ917Sd.js";import{t as p}from"./shop.CwqfLCOF.js";import{t as m}from"./spinner.91vzW8TF.js";import{a as h,t as g}from"./tracking.BGufPto4.js";import{t as _}from"./not-found-page.BfEbyyGq.js";import{t as v}from"./page-title.CUH-euTE.js";import{r as y}from"./theme.B5XfdijE.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.