PageSourceSearch

https://avestta.com/_next/static/chunks/pages/thank-you-8b22f5ef0028b6ad.js

js avestta.com collected 2026-10-06 13:20:16 UTC 10,879 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9770],{18819:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>h,default:()=>p});var i=t(37876),n=t(10841),o=t.n(n),s=t(89099),l=t(14232),d=t(31777),a=t(47128),c=t(10154),h=!0;function p(e){var r,t,n,h;let{orderID:p,orderDetails:er,error:et,domain:ei}=e,en=(0,s.useRouter)(),{gclid:eo,gid:es,cvs:el,totalPrice:ed}=en.query,ea=es&&el?"".concat(es,"/").concat(el):null,ec=(0,d.wA)(),[eh,ep]=(0,l.useState)(!1),ex=(0,l.useRef)(!1),em=(0,d.d4)(e=>{var r;return(null==(r=e.shop)?void 0:r.trackedConversions)||[]});if((0,l.useEffect)(()=>{if(ea&&ed&&p&&(null==er?void 0:er.status)==="COMPLETED"&&!ex.current)if(em.includes(p))ep(!0),ex.current=!0;else{ex.current=!0;let e=()=>{if(window.gtag)try{window.gtag("event","conversion",{send_to:ea,value:parseFloat(ed),currency:"USD"}),ec({type:"shop/addTrackedConversion",payload:p}),ep(!0)}catch(e){ex.current=!1}else setTimeout(e,100)};e()}},[ea,ed,p,null==er?void 0:er.status]),(0,l.useEffect)(()=>{if(!p||(null==er?void 0:er.status)!=="COMPLETED")return;let e="";try{if(e="tiktok_complete_".concat(p),sessionStorage.getItem(e))return}catch(e){return}let r=(0,c.S6)(er.items),t=er.price,i="number"!=typeof t||Number.isNaN(t)?null!=ed&&""!==ed?parseFloat(ed):0:t;try{sessionStorage.setItem(e,"1")}catch(e){}(0,c.ZU)({value:i,currency:"USD",contents:r,orderId:p});try{sessionStorage.removeItem("tiktok_initiate_checkout")}catch(e){}},[p,null==er?void 0:er.status,null==er?void 0:er.items,null==er?void 0:er.price,ed]),et)return(0,i.jsx)(a.A,{children:(0,i.jsx)("div",{style:x,children:(0,i.jsx)("div",{style:m,children:(0,i.jsxs)("div",{style:u,children:[(0,i.jsx)("div",{style:g,children:(0,i.jsx)("div",{style:j,children:"✕"})}),(0,i.jsx)("h1",{style:v,children:"Something went wrong"}),(0,i.jsx)("p",{style:k,children:et}),(0,i.jsx)("button",{style:X,onClick:()=>en.push("/shop?".concat(new URLSearchParams(en.query).toString())),children:"Back to Shop"})]})})})});let{status:eu,customer_name:ef,email:eg,phone:ey,address:ej,price:eb,items:ev,paypalDetails:eS,invoice_id:ek}=er||{},eC=null==eS||null==(h=eS.purchase_units)||null==(n=h[0])||null==(t=n.payments)||null==(r=t.captures)?void 0:r[0],ew=ek&&ek!==p&&String(ek).startsWith("pp")?ek:"";return(0,i.jsx)("div",{style:x,children:(0,i.jsxs)("div",{style:m,children:[(0,i.jsxs)("div",{style:u,children:["COMPLETED"===eu?(0,i.jsx)("div",{style:f,children:(0,i.jsx)("div",{style:y,children:"✓"})}):(0,i.jsx)("div",{style:g,children:(0,i.jsx)("div",{style:j,children:"✕"})}),(0,i.jsx)("h1",{style:"COMPLETED"===eu?b:v,children:"COMPLETED"===eu?"Order Confirmed!":"Payment Failed"}),(0,i.jsx)("p",{style:"COMPLETED"===eu?S:k,children:"COMPLETED"===eu?"Thank you for your purchase! We've received your payment and your order is being processed.":"We're sorry, but your payment could not be processed. Please try again or use a different payment method."}),"COMPLETED"===eu&&(0,i.jsxs)("div",{style:$,children:[(0,i.jsxs)("div",{style:Q,children:[(0,i.jsx)("div",{style:G,children:(0,i.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("polyline",{points:"22,6 12,13 2,6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,i.jsx)("p",{style:J,children:"Confirmation Email Sent"})]}),(0,i.jsxs)("p",{style:K,children:["We've sent a confirmation email to your registered email address. If you don't receive it within a few minutes, please check your spam folder or contact our support team at ",(0,i.jsx)("span",{style:ee,children:"support@".concat(ei)})]})]})]}),(0,i.jsxs)("div",{style:C,children:[(0,i.jsx)("h2",{style:W,children:"Order Summary"}),(0,i.jsxs)("div",{style:_,children:[(0,i.jsxs)("div",{style:P,children:[(0,i.jsx)("span",{style:T,children:"Order Number"}),(0,i.jsxs)("span",{style:z,children:["#",p]})]}),ew?(0,i.jsxs)("div",{style:P,children:[(0,i.jsx)("span",{style:T,children:"PayPal reference"}),(0,i.jsx)("span",{style:{...z,wordBreak:"break-all"},children:ew})]}):null,(0,i.jsxs)("div",{style:P,children:[(0,i.jsx)("span",{style:T,children:"Order Date"}),(0,i.jsx)("span",{style:z,children:o()(null==eC?void 0:eC.create_time).format("MMM D, YYYY")})]}),(0,i.jsxs)("div",{style:P,children:[(0,i.jsx)("span",{style:T,children:"Total Amount"}),(0,i.jsxs)("span",{style:z,children:["$",null==eb?void 0:eb.toFixed(2)]})]}),(0,i.jsxs)("div",{style:P,children:[(0,i.jsx)("span",{style:T,children:"Status"}),(0,i.jsx)("span",{style:"COMPLETED"===eu?O:L,children:"COMPLETED"===eu?"Confirmed":"Failed"})]})]})]}),(0,i.jsxs)("div",{style:w,children:[(0,i.jsx)("h2",{style:W,children:"Customer Information"}),(0,i.jsxs)("div",{style:D,children:[(0,i.jsxs)("div",{style:R,children:[(0,i.jsx)("strong",{children:"Name:"})," ",ef]}),(0,i.jsxs)("div",{style:R,children:[(0,i.jsx)("strong",{children:"Email:"})," ",eg]}),(0,i.jsxs)("div",{style:R,children:[(0,i.jsx)("strong",{children:"Phone:"})," ",ey]}),(0,i.jsxs)("div",{style:R,children:[(0,i.jsx)("strong",{children:"Shipping Address:"}
1)," ",Array.isArray(ej)?ej.filter(Boolean).join(", "):""]})]})]}),(0,i.jsxs)("div",{style:E,children:[(0,i.jsx)("h2",{style:W,children:"Items Ordered"}),(0,i.jsx)("div",{style:M,children:null==ev?void 0:ev.map((e,r)=>{var t,n;let o=e.product||{},s=e.variants||{};return(0,i.jsxs)("div",{style:I,children:[(0,i.jsx)("div",{style:N,children:(0,i.jsx)("img",{src:null==(t=o.image)?void 0:t[0],alt:o.name,style:B})}),(0,i.jsxs)("div",{style:A,children:[(0,i.jsx)("h3",{style:H,children:o.name}),(0,i.jsxs)("div",{style:F,children:["$",null==(n=o.price)?void 0:n.toFixed(2)]}),(0,i.jsxs)("div",{style:U,children:["Qty: ",e.quantity]}),Object.keys(s).length>0&&(0,i.jsx)("div",{style:q,children:Object.entries(s).map(e=>{let[r,t]=e;return(0,i.jsxs)("span",{style:Y,children:[r,": ",t.label]},r)})})]})]},r)})})]}),(0,i.jsxs)("div",{style:V,children:[(0,i.jsx)("button",{style:X,onClick:()=>en.push("/shop?".concat(new URLSearchParams(en.query).toString())),children:"Continue Shopping"}),(0,i.jsx)("button",{style:Z,onClick:()=>en.push("/order-tracking?".concat(new URLSearchParams(en.query).toString())),children:"Track Your Order"})]})]})})}let x={backgroundColor:"#f8fafc",minHeight:"100vh",padding:"2rem 1rem",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},m={maxWidth:"800px",margin:"0 auto",backgroundColor:"#ffffff",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",overflow:"hidden"},u={textAlign:"center",padding:"3rem 2rem 2rem",backgroundColor:"#f8fafc",borderBottom:"1px solid #e2e8f0"},f={width:"70px",height:"70px",backgroundColor:"#10b981",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem",boxShadow:"0 4px 14px 0 rgba(16, 185, 129, 0.3)"},g={width:"70px",height:"70px",backgroundColor:"#ef4444",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem",boxShadow:"0 4px 14px 0 rgba(239, 68, 68, 0.3)"},y={color:"white",fontSize:"2rem",fontWeight:"bold"},j={color:"white",fontSize:"2rem",fontWeight:"bold"},b={fontSize:"2rem",fontWeight:"700",color:"#1f2937",margin:"0 0 1rem",letterSpacing:"-0.025em"},v={fontSize:"2rem",fontWeight:"700",color:"#dc2626",margin:"0 0 1rem",letterSpacing:"-0.025em"},S={fontSize:"0.8rem",color:"#6b7280",lineHeight:"1.6",margin:"0",maxWidth:"500px",margin:"0 auto"},k={fontSize:"0.8rem",color:"#dc2626",lineHeight:"1.6",margin:"0",maxWidth:"500px",margin:"0 auto"},C={padding:"1.25rem",borderBottom:"1px solid #e2e8f0"},w={padding:"1.25rem",borderBottom:"1px solid #e2e8f0",backgroundColor:"#f8fafc"},E={padding:"1.25rem"},W={fontSize:"1.1rem",fontWeight:"600",color:"#1f2937",margin:"0 0 1rem",paddingBottom:"0.5rem",borderBottom:"2px solid #e5e7eb"},_={display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:"1rem",paddingLeft:"0.75rem"},P={display:"flex",flexDirection:"column",gap:"0.2rem"},T={fontSize:"0.9rem",color:"#6b7280",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.05em"},z={fontSize:"0.9rem",color:"#1f2937",fontWeight:"600"},O={color:"#10b981",fontWeight:"600",fontSize:"0.9rem"},L={color:"#ef4444",fontWeight:"600",fontSize:"0.9rem"},D={display:"grid",gap:"0.75rem",paddingLeft:"0.75rem"},R={fontSize:"0.9rem",color:"#374151",lineHeight:"1.4"},M={display:"flex",flexDirection:"column",gap:"1rem"},I={display:"flex",gap:"0.75rem",padding:"1rem",backgroundColor:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"},N={width:"80px",height:"80px",flexShrink:0},B={width:"100%",height:"100%",objectFit:"cover",borderRadius:"4px"},A={flex:1,display:"flex",flexDirection:"column",gap:"0.4rem"},H={fontSize:"1rem",fontWeight:"600",color:"#1f2937",margin:"0",lineHeight:"1.3"},F={fontSize:"1.1rem",fontWeight:"700",color:"#059669"},U={fontSize:"0.8rem",color:"#6b7280",fontWeight:"500"},q={display:"flex",flexWrap:"wrap",gap:"0.4rem",marginTop:"0.4rem"},Y={fontSize:"0.7rem",color:"#6b7280",backgroundColor:"#f3f4f6",padding:"0.2rem 0.4rem",borderRadius:"3px"},V={padding:"1.5rem",backgroundColor:"#f8fafc",display:"flex",gap:"0.75rem",justifyContent:"center",flexWrap:"wrap"},X={padding:"0.875rem 2rem",backgroundColor:"#3b82f6",color:"white",border:"none",borderRadius:"8px",fontSize:"1rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"},Z={padding:"0.875rem 2rem",backgroundColor:"transparent",color:"#6b7280",border:"2px s
1olid #d1d5db",borderRadius:"8px",fontSize:"1rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s ease"},$={marginTop:"1rem",padding:"1rem",backgroundColor:"#f0f9ff",border:"1px solid #bae6fd",borderRadius:"8px",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"},Q={display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},G={display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",backgroundColor:"#0ea5e9",borderRadius:"50%",color:"white",flexShrink:0},J={fontSize:"0.9rem",fontWeight:"600",color:"#0c4a6e",margin:"0",lineHeight:"1.3"},K={fontSize:"0.8rem",color:"#075985",margin:"0",lineHeight:"1.4"},ee={color:"#0ea5e9",fontWeight:"600",textDecoration:"underline",cursor:"pointer"}},47128:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var i=t(37876),n=t(42008);let o=e=>{let{children:r,...t}=e;return(0,i.jsx)(n.A,{sx:{maxWidth:1400,mx:"auto",mb:2,px:{xs:2,md:2},...t.sx},children:r})}},66948:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/thank-you",function(){return t(18819)}])}},e=>{e.O(0,[3716,636,6593,8792],()=>e(e.s=66948)),_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.