1import{r as s,j as e,l as g,P as i,o as f,T as u,b as j,S as w,F as N}from"./index-BCW6nnV8.js";function v(){const[d,l]=s.useState(""),[a,o]=s.useState(""),[c,n]=s.useState(!1),[p,m]=s.useState(!1),x=s.useRef(null);s.useEffect(()=>{if(typeof window>"u")return;if(window.YQV5){n(!0);return}const r=document.querySelector('script[src*="17track.net/externalcall.js"]');if(r){r.addEventListener("load",()=>n(!0));return}const t=document.createElement("script");t.src="https://www.17track.net/externalcall.js",t.async=!0,t.onload=()=>n(!0),document.body.appendChild(t)},[]),s.useEffect(()=>{if(!(!c||!a||!window.YQV5)){m(!0);try{window.YQV5.trackSingle({YQ_ContainerId:"YQContainer",YQ_Height:560,YQ_Fc:"0",YQ_Lang:"en",YQ_Num:a})}finally{setTimeout(()=>m(!1),400)}}},[c,a]);const b=r=>{r.preventDefault();const t=d.trim();t&&(o(t),setTimeout(()=>{x.current?.scrollIntoView({behavior:"smooth",block:"start"})},100))};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(g,{}),e.jsxs("main",{children:[e.jsxs("section",{className:"relative border-b border-border overflow-hidden",children:[e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 opacity-60",style:{background:"var(--gradient-hero)"}}),e.jsx("div",{"aria-hidden":!0,className:"absolute -top-32 -right-32 h-96 w-96 rounded-full blur-3xl op
1acity-30",style:{background:"var(--gradient-brand)"}}),e.jsxs("div",{className:"relative mx-auto max-w-3xl px-4 md:px-6 py-16 md:py-24 text-center",children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.3em] text-brand",children:"Order Tracking"}),e.jsxs("h1",{className:"mt-3 font-display text-4xl md:text-6xl font-extrabold uppercase",children:["Track Your ",e.jsx("span",{className:"text-brand",children:"Shipment"})]}),e.jsx("p",{className:"mt-4 text-muted-foreground md:text-lg max-w-xl mx-auto",children:"Enter your tracking number below to see live shipping status, carrier updates and delivery progress â powered by 17TRACK."}),e.jsxs("form",{onSubmit:b,className:"mt-8 mx-auto max-w-xl rounded-2xl border border-border bg-surface/80 backdrop-blur p-3 sm:p-2 sm:pl-5 flex flex-col sm:flex-row gap-2 sm:gap-3 sm:items-center shadow-[var(--shadow-card)]",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(i,{className:"h-5 w-5 text-brand shrink-0"}),e.jsx("input",{type:"text",value:d,onChange:r=>l(r.target.value),placeholder:"Enter your tracking number","aria-label":"Tracking number",className:"flex-1 bg-transparent h-11 text-sm sm:text-base outline-none placeholder:text-muted-foreground"})]}),e.jsxs("button",{type:"submit",className:"h-11 px-5 rounded-xl font-display text-sm font-bold uppercase tracking-wider btn-glow hover:btn-glow-hover inline-flex items-center justify-center gap-2",children:[e.jsx(f,{className:"h-4 w-4"})," Track"]})]}),e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:"Tip: your tracking number is in your shipping confirmation email."})]})]}),e.jsxs("section",{ref:x,className:"mx-auto max-w-4xl px-4 md:px-6 py-12 md:py-16",children:[a?e.jsxs("div",{className:"rounded-2xl border border-border bg-surface overflow-hidden shadow-[var(--shadow-card)]",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 md:px-6 py-3 border-b border-border bg-surface-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i,{className:"h-4 w-4 text-brand"}),e.jsx("span",{className:"font-display text-xs font-bold uppercase tracking-wider",children:"Tracking"}),e.jsx("span",{className:"text-sm text-foreground font-mono",children:a})]}),e.jsx("button",{type:"button",onClick:()=>{o(""),l("")},className:"text-xs text-muted-foreground hover:text-brand transition",children:"Track another"})]}),e.jsxs("div",{className:"relative bg-white",children:[p&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/80 z-10",children:e.jsx(j,{className:"h-6 w-6 animate-spin text-brand"})}),e.jsx("div",{id:"YQContainer",style:{minHeight:560}})]})]}):e.jsxs("div",{className:"rounded-2xl border border-dashed border-border bg-surface/40 p-10 md:p-16 text-center",children:[e.jsx("div",{className:"mx-auto h-14 w-14 rounded-2xl bg-brand/15 text-brand flex items-center justify-center mb-4",children:e.jsx(u,{className:"h-7 w-7"})}),e.jsx("h2",{className:"font-display text-xl md:text-2xl font-bold uppercase",children:"Awaiting tracking number"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground max-w-md mx-auto",children:"Drop your tracking number into the box above and we'll pull live shipping details from the carrier right here on the page."})]}),e.jsx("div",{className:"mt-10 grid sm:grid-cols-3 gap-4",children:[{icon:u,title:"Live Carrier Updates",body:"Status pulled directly from 1,500+ couriers worldwide."},{icon:w,title:"Secure & Private",body:"We never store your tracking number â lookups are direct."},{icon:i,title:"Need Help?",body:"Stuck on a shipment? Tap the chat bubble and we'll jump in."}].map(({icon:r,title:t,body:h})=>e.jsxs("div",{className:"rounded-2xl border border-border bg-surface p-5",children:[e.jsx("div",{className:"h-9 w-9 rounded-lg bg-brand/15 text-brand flex items-center justify-center mb-3",children:e.jsx(r,{className:"h-4 w-4"})}),e.jsx("h3",{className:"font-display text-sm font-bold uppercase tracking-wider",children:t}),e.jsx("p",{className:"mt-1.5 text-sm text-muted-foreground leading-relaxed",children:h})]},t))})]})]}),e.jsx(N,{})]})}
1export{v as component};
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.