(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2495],{68291:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var r=a(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=(0,r.Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},63715:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var r=a(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=(0,r.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},92851:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var r=a(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=(0,r.Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},11961:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var r=a(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=(0,r.Z)("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]])},97298:function(e,t,a){Promise.resolve().then(a.bind(a,64636))},64636:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return j}});var r=a(57437),i=a(2265),n=a(24033),s=a(11961),l=a(41827),d=a(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,d.Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var c=a(63715),u=a(68291),m=a(46339),x=a(81517),p=a(5567),f=a(93023),h=a(51908),y=a(66672),v=a(86110),N=a(12284),b=a(75965);function j(){let{language:e,t}=(0,N.Z)(),a=(0,n.useRouter)(),[d,j]=(0,i.useState)(""),[g,M]=(0,i.useState)(!1),[w,Z]=(0,i.useState)(null),k=async t=>{if(t.preventDefault(),d.trim()){M(!0),Z(null);try{let t=parseInt(d);if(isNaN(t)){Z("en"===e?"Please enter a valid order number":"Veuillez entrer un num\xe9ro de commande valide"),M(!1);return}a.push("/orders/track/".concat(t))}catch(t){Z("en"===e?"Something went wrong":"Une erreur est survenue"),M(!1)}}};return(0,r.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,r.jsx)(m.Navbar,{}),(0,r.jsxs)("main",{className:"pt-20 lg:pt-16 pb-16",children:[(0,r.jsx)(p.m,{title:"en"===e?"Track Your Order":"Suivre votre Commande",subtitle:"en"===e?"Enter your order number to see real-time updates":"Entrez votre num\xe9ro de commande pour voir les mises \xe0 jour en temps r\xe9el",icon:(0,r.jsx)(s.Z,{className:"w-5 h-5 text-primary"})}),(0,r.jsx)("div",{className:"container mx-auto px-4 mt-12",children:(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsx)(b.Zu,{children:(0,r.jsxs)(v.Zb,{className:"border-border/50 shadow-sm",children:[(0,r.jsxs)(v.Ol,{children:[(0,r.jsx)(v.ll,{className:"text-xl",children:"en"===e?"Find Your Order":"Trouver votre Commande"}),(0,r.jsx)(v.SZ,{children:"en"===e?"You can find your order number in your confirmation email.":"Vous pouvez trouver votre num\xe9ro de commande dans votre e-mail de confirmation."})]}),(0,r.jsx)(v.aY,{children:(0,r.jsxs)("form",{onSubmit:k,className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(y._,{htmlFor:"orderNumber",children:"en"===e?"Order Number":"Num\xe9ro de Commande"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(h.I,{id:"orderNumber",placeholder:"e.g. 1001",value:d,onChange:e=>j(e.target.value),className:"pl-10",required:!0}),(0,r.jsx)(l.Z,{className:"w-4 h-4 absolute left-3 top-3 text-muted-foreground"})]})]}),w&&(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 text-sm text-destructive bg-destructive/10 rounded-lg",children:[(0,r.jsx)(o,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:w})]}),(0,r.jsxs)(f.z,{type:"submit",className:"w-full",disabled:g,children:[g?(0,r.jsx)(c.Z,{className:"w-4 h-4 animate-spin mr-2"}):(0,r.jsx)(u.Z,{className:"w-4 h-4 mr-2"}),"en"===e?"Track Order":"Suivre la Commande"]})]})})]})}),(0,r.jsx)(b.Zu,{delay:.1,className:"mt-8 text-center text-sm text-muted-foreground",children:(0,r.jsxs)("p",{children:["en"===e?"Need help? Contact us at ":"Besoin d'aide ? Contactez-nous \xe0 ",(0,r.jsx)("a",{href:"mailto:info@musafoods.ca",className:"text-primary font-medium hover:underline",children:"info@musafoods.ca"})]})})]})})]}),(0,r.jsx)(x.Footer,{})]})}},75965:function(e,t,a){"use strict";a.d(t,{Zu:function(){return s}});var r=a(57437),i=a(68329);let n={up:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0}},down:{hidden:{opacity:0,y:-40},visible:{opacity:1,y:0}},left:{hidden:{opacity:0,x:40},visible:{opacity:1,x:0}},right:{hidden:{opacity:0,x:-40},visible:{opacity:1,x:0}}};function s(e){let{children:t,className:a,delay:s=0,direction:l="up"}=e;return(0,r.jsx)(i.E.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},variants:n[l],transition:{duration:.6,delay:s,ease:[.25,.1,.25,1]},className:a,children:t})}},5567:function(e,t,a){"use strict";a.d(t,{m:function(){return s}});var r=a(57437),i=a(68329),n=a(92851);function s(e){let{title:t,subtitle:a,icon:s}=e;return(0,r.jsxs)("section",{className:"relative bg-gradient-to-br from-foreground via-foreground/95 to-foreground/90 py-16 lg:py-24 overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wMyI+PHBhdGggZD0iTTM2IDE2YzAtNi42MjcgNS4zNzMtMTIgMTItMTJzMTIgNS4zNzMgMTIgMTItNS4zNzMgMTItMTIgMTItMTItNS4zNzMtMTItMTJ6TTAgMTZjMC02LjYyNyA1LjM3My0xMiAxMi0xMnMxMiA1LjM3MyAxMiAxMi01LjM3MyAxMi0xMiAxMi0xMi01LjM3My0xMi0xMnoiLz48L2c+PC9nPjwvc3ZnPg==')] opacity-40"}),(0,r.jsx)(i.E.div,{className:"absolute top-0 right-0 w-96 h-96 bg-primary/5 rounded-full blur-3xl",animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),(0,r.jsx)(i.E.div,{className:"absolute bottom-0 left-0 w-96 h-96 bg-amber-500/5 rounded-full blur-3xl",animate:{scale:[1.2,1,1.2],opacity:[.5,.3,.5]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),(0,r.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,r.jsxs)("div",{className:"max-w-3xl",children:[s&&(0,r.jsx)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-6",children:(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 bg-primary/10 backdrop-blur-sm px-4 py-2 rounded-full border border-primary/20",children:[s,(0,r.jsx)(n.Z,{className:"w-4 h-4 text-primary"})]})}),(0,r.jsxs)(i.E.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},children:[(0,r.jsx)("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-bold text-background mb-6 leading-tight",children:t}),(0,r.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,r.jsx)(i.E.div,{className:"h-1 bg-primary rounded-full",initial:{width:0},animate:{width:80},transition:{duration:.8,delay:.3}}),(0,r.jsx)(i.E.div,{className:"h-1 bg-primary/50 rounded-full",initial:{width:0},animate:{width:40},transition:{duration:.8,delay:.4}}),(0,r.jsx)(i.E.div,{className:"h-1 bg-primary/30 rounded-full",initial:{width:0},animate:{width:20},transition:{duration:.8,delay:.5}})]}),(0,r.jsx)("p",{className:"text-background/80 text-lg md:text-xl leading-relaxed max-w-2xl",children:a})]})]})}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-primary/50 to-transparent"})]})}},86110:function(e,t,a){"use strict";a.d(t,{Ol:function(){return l},SZ:function(){return o},Zb:function(){return s},aY:function(){return c},ll:function(){return d}});var r=a(57437),i=a(2265),n=a(39311);let s=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",a),...i})});s.displayName="Card";let l=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...i})});l.displayName="CardHeader";let d=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)("h3",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",a),...i})});d.displayName="CardTitle";let o=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",a),...i})});o.displayName="CardDescription";let c=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",a),...i})});c.displayName="CardContent";let u=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",a),...i})});u.displayName="CardFooter"},66672:function(e,t,a){"use strict";a.d(t,{_:function(){return o}});var r=a(57437),i=a(2265),n=a(36743),s=a(96061),l=a(39311);let d=(0,s.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)(n.f,{ref:t,className:(0,l.cn)(d(),a),...i})});o.displayName=n.f.displayName},36743:function(e,t,a){"use strict";a.d(t,{f:function(){return l}});var r=a(2265),i=a(31033),n=a(57437),s=r.forwardRef((e,t)=>(0,n.jsx)(i.WV.label,{...e,ref:t,onMouseDown:t=>{let a=t.target;a.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var l=s}},function(e){e.O(0,[6207,415,9906,1396,389,2774,9213,4636,2587,6053,2971,7864,1744],function(){return e(e.s=97298)}),_N_E=e.O()}]);