PageSourceSearch

https://posthog.com/component---src-pages-merch-orders-tsx-4390a4716f5ac27ad347.js

js posthog.com collected 2026-09-24 08:00:10 UTC 3,861 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkposthog_com=self.webpackChunkposthog_com||[]).push([[3746],{63524:function(e,t,r){r.r(t),r.d(t,{default:function(){return b}});var i=r(19371),s=r(30758),o=r(72717),a=r(8462),n=r(8693),c=r(72753),l=r(61112),m=r(49271),d=r(93747),u=r(86070);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(){const{0:e,1:t}=(0,s.useState)(""),{0:r,1:i}=(0,s.useState)(!1),{handleSubmit:p,submitForm:b,touched:f,errors:x,getFieldProps:y,isSubmitting:g}=(0,o.Wx)({initialValues:{orderNumber:"",email:""},validate:e=>{const t={};return e.orderNumber.trim()||(t.orderNumber="Required"),e.email.trim()?/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e.email)||(t.email="Invalid email"):t.email="Required",t},onSubmit:async e=>{t("");try{const r=await fetch("https://better-animal-d658c56969.strapiapp.com/api/orders/lookup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderNumber:e.orderNumber.trim(),email:e.email.trim()})});if(r.ok){const e=await r.json();if(e.statusURL)return i(!0),void(window.location.href=e.statusURL)}if(404===r.status)return void t("No order found. Double check both fields.");if(429===r.status)return void t("Too many attempts. Try again in a minute.");t("Something went wrong. Try again in a moment.")}catch(r){t("Something went wrong. Try again in a moment.")}}});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.Ay,{title:"Order lookup - PostHog Merch",description:"Look up your PostHog merch order to check 
1status, request a return, or cancel."}),(0,u.jsx)("div",{className:"size-full",children:(0,u.jsx)(n.A,{leftNavigation:(0,u.jsxs)("div",{className:"text-sm",children:["Need help?"," ",(0,u.jsx)("a",{href:"mailto:[email protected]",className:"text-red dark:text-yellow font-semibold",children:"Email us"})]}),rightNavigation:(0,u.jsx)("div",{className:"flex items-center space-x-2",children:(0,u.jsx)(c.E0,{disabled:g||r,type:"primary",size:"sm",onClick:b,className:"flex-shrink-0",children:g?(0,u.jsx)(m.IconSpinner,{className:"size-4 animate-spin my-0.5"}):r?"Redirecting...":"Find my order"})}),children:(0,u.jsxs)("div",{className:"bg-accent flex gap-6 px-8 py-6 flex-1",children:[(0,u.jsx)("div",{className:"max-w-20",children:(0,u.jsx)(d.A,{src:"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/src/images/shopahogic.png",className:"w-20"})}),(0,u.jsxs)("div",{"data-scheme":"primary",className:"flex-1",children:[(0,u.jsx)("h3",{className:"text-base font-semibold leading-tight mb-2",children:"Find your merch order"}),(0,u.jsx)("p",{className:"text-sm text-secondary mb-4",children:"Enter the details from your confirmation email to check status, cancel, or request a return."}),(0,u.jsxs)("form",{onSubmit:p,className:"space-y-2 mb-4",children:[(0,u.jsx)(l.A,h(h({label:"Order #",type:"text",size:"sm",direction:"row",touched:!!f.orderNumber,error:x.orderNumber},y("orderNumber")),{},{placeholder:"#1234"})),(0,u.jsx)(l.A,h(h({label:"Email",type:"email",size:"sm",direction:"row",touched:!!f.email,error:x.email},y("email")),{},{placeholder:"[email protected]"})),(0,u.jsx)("button",{type:"submit",className:"hidden"})]}),e&&(0,u.jsx)("p",{className:"text-red dark:text-yellow text-sm m-0 mb-3 font-bold",children:e})]})]})})})]})}}}]);
2//# sourceMappingURL=component---src-pages-merch-orders-tsx-4390a4716f5ac27ad347.js.map

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.