1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57736,e=>{"use strict";e.s(["generateSlug",()=>t]);let t=(e,t)=>"".concat(e.toLowerCase().replace(/\s+/g,"-"),"-").concat(null==t?void 0:t.toLowerCase().replace(/\s+/g,"-"))},1068,e=>{"use strict";e.s(["default",()=>h],1068);var t=e.i(43476),a=e.i(57688),r=e.i(71645),s=e.i(26469);let n=r.forwardRef(function(e,t){let{title:a,titleId:s,...n}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},n),a?r.createElement("title",{id:s},a):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});var i=e.i(5766);let l=e=>{var l,o;let{isOpen:c,onClose:d,menu:u}=e,[h,m]=r.default.useState(1),[x,p]=r.default.useState(""),{addToCart:f}=(0,s.useCart)();return c&&u?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:e=>{e.target===e.currentTarget&&d()},role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:(0,t.jsxs)("div",{className:"bg-white text-gray-800 w-full max-w-md mx-auto rounded-lg shadow-2xl max-h-[90vh] overflow-hidden grid grid-rows-[auto_1fr_auto]",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"relative h-48 sm:h-64 overflow-hidden",children:[(0,t.jsx)(a.default,{src:u.imageUrl,alt:u.title,layout:"fill",objectFit:"cover",className:"rounded-t-xl",fill:!0}),(0,t.jsx)("button",{className:"absolute top-3 right-3 p-1.5 bg-white/80 rounded-full shadow-lg hover:bg-white transition",onClick:d,"aria-label":"Close modal",children:(0,t.jsx)(n,{className:"h-6 w-6 text-gray-700"})})]}),(0,t.jsxs)("div",{className:"p-6 overflow-y-auto flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,t.jsx)("h2",{id:"modal-title",className:"text-2xl font-bold text-gray-800",children:u.title}),(0,t.jsxs)("span",{className:"text-xl font-bold text-orange-500",children:["à§³",u.price]})]}),(0,t.jsx)("p",{className:"text-gray-600 mb-6",children:u.description}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Details"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Cuisine"}),(0,t.jsx)("p",{className:"font-medium",children:u.cuisine})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Category"}),(0,t.jsx)("p",{className:"font-medium",children:u.category})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Rating"}),(0,t.jsxs)("p",{className:"font-medium",children:[u.rating," â
"]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Availability"}),(0,t.jsx)("p",{className:"font-medium ".concat(u.availability?"text-green-600":"text-red-600"),children:u.availability?"Available":"Not Available"})]})]})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Ingredients"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:null==(l=u.ingredients)?void 0:l.map((e,a)=>(0,t.jsx)("span",{className:"px-3 py-1 bg-gray-100 rounded-full text-sm",children:e},a))})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Dietary Information"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:null==(o=u.dietaryTags)?void 0:o.map((e,a)=>(0,t.jsx)("span",{className:"px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm",children:e},a))})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Special Instructions"}),(0,t.jsx)("textarea",{placeholder:"e.g. No mayo, extra spicy",className:"w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-orange-500 focus:border-transparent",rows:3,value:x,onChange:e=>p(e.target.value)})]})]}),(0,t.jsxs)("div",{className:"sticky gap-4 bottom-0 bg-white border-t border-gray-200 p-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-lg",children:[(0,t.jsx)("button",{onClick:()=>{h>1&&m(h-1)},className:"px-4 py-2 text-gray-600 hover:bg-gray-100","aria-label":"Decrease quantity",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})})}),(0,t.jsx)("span",{className:"px-4 py-2",children:h}),(0,t.jsx)("button",{onClick:()=>{m(h+1)},className:"px-4 py-2 text-gray-600 hover:bg-gray-100","aria-label":"Increase quantity",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})})})]}),(0,t.jsx)("button",{onClick:()=>{f(u,h,x),i.toast.success((0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"font-medium",children:u.title}),(0,t.jsx)("span",{className:"mx-2",children:"added to cart!"})]}),{duration:3e3,position:"top-center",style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},iconTheme:{primary:"#f97316",secondary:"#fff"}}),d()},className:"px-6 py-3 w-full bg-orange-500 text-white font-semibold rounded-full hover:bg-orange-600 transition-colors",children:"Add to Cart"})]})]})}):null};var o=e.i(22016),c=e.i(57736),d=e.i(17255),u=e.i(92199);let h=e=>{var s,n,h;let{menu:m,restaurant:x,ratingData:p={avg:null,count:0}}=e,{data:f}=(0,d.useSession)(),[g,v]=(0,r.useState)(!1),[y,b]=(0,r.useState)(!1),[w,j]=(0,r.useState)(!1),N=(0,r.useRef)(!0),k=(0,r.useMemo)(()=>null==m?void 0:m._id,[null==m?void 0:m._id]);(0,r.useMemo)(()=>{var e;return null==f||null==(e=f.user)?void 0:e.id},[null==f||null==(s=f.user)?void 0:s.id]);let S=(0,r.useMemo)(()=>{var e;return(null==x?void 0:x.name)?(0,c.generateSlug)(x.name,null==(e=x.location)?void 0:e.area):""},[null==x?void 0:x.name,null==x||null==(n=x.location)?void 0:n.area]),C=(0,r.useCallback)(async e=>{if(e.stopPropagation(),!f)return i.toast.error("Please login to manage favorites");if(w)return;let t=!y;b(t),j(!0);try{if(!(await fetch("/api/favorites",{method:t?"POST":"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({menuId:k,restaurantId:null==x?void 0:x._id})})).ok)throw Error("Favorite toggle failed");i.toast.success(t?"Added to favorites!":"Removed from favorites!")}catch(e){b(!t),i.toast.error("Failed to update favorite.")}finally{j(!1)}},[f,y,w,k,null==x?void 0:x._id]),F=(0,r.useCallback)(()=>v(!0),[]),_=(0,r.useCallback)(()=>v(!1),[]);return(0,r.useEffect)(()=>()=>{N.current=!1},[]),(0,t.jsxs)("div",{className:"bg-white rounded-xl shadow-md hover:shadow-lg transition-all overflow-hidden",children:[(0,t.jsxs)("div",{className:"relative h-40 w-full",children:[(0,t.jsx)(a.default,{src:m.imageUrl||"/images/placeholder-food.jpg",alt:m.title,fill:!0,sizes:"(min-width:1280px) 25vw, (min-width:1024px) 33vw, (min-width:640px) 50vw, 100vw",className:"rounded-t-xl object-cover"}),(0,t.jsx)("div",{className:"absolute top-2 left-2 bg-orange-500 text-white text-xs font-bold px-2 py-1 rounded-full",children:(null==x||null==(h=x.location)?void 0:h.area)||"Unknown"}),(0,t.jsxs)("div",{className:"absolute top-2 right-2 bg-orange-500 text-white text-xs font-bold px-2 py-1 rounded-full",children:["à§³",m.price]}),m.isSpecialOffer&&(0,t.jsxs)("div",{className:"absolute bottom-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded-full",children:[m.discountRate,"% OFF"]})]}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,t.jsx)(o.default,{href:"/menus/".concat(k),className:"text-lg font-semibold text-orange-600 hover:text-orange-700 line-clamp-1",children:m.title}),(0,t.jsx)("button",{onClick:C,disabled:w,"aria-label":"toggle favorite",className:"p-1 rounded-full hover:bg-gray-100",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 transition-all duration-200 ".concat(y?"text-red-500 fill-red-500 scale-110":"text-gray-400 hover:text-red-500"),viewBox:"0 0 24 24",strokeWidth:2,fill:"none",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})})})]}),null!==p.avg&&p.avg>0&&p.count>0?(0,t.jsxs)("div",{className:"flex items-center mt-1 text-sm text-gray-700",children:[(0,t.jsx)(u.FiStar,{className:"text-yellow-400 mr-1"}),(0,t.jsx)("span",{children:p.avg.toFixed(1)}),(0,t.jsxs)("span",{className:"ml-1 text-gray-500",children:["(",p.count,")"]})]}):(0,t.jsx)("p",{className:"text-sm text-gray-400 mb-2",children:"No ratings yet"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 line-clamp-2",children:m.description}),(0,t.jsxs)("div",{className:"flex justify-between items-center mt-3 pt-3 border-t border-gray-100",children:[x&&(0,t.jsxs)(o.default,{href:"/restaurants/".concat(S),className:"flex items-center",children:[(0,t.jsx)(a.default,{src:x.logo||"/images/placeholder-restaurant.jpg",alt:x.name,width:32,height:32,className:"rounded-full object-cover border border-gray-200"}),(0,t.jsx)("span",{className:"ml-2 text-sm font-medium text-gray-700 hover:text-orange-500",children:x.name})]}),(0,t.jsx)("button",{onClick:F,className:"w-10 h-10 bg-orange-500 hover:bg-orange-600 rounded-full flex items-center justify-center text-white text-xl shadow-md transition-transform hover:scale-105",children:"+"})]})]}),g&&(0,t.jsx)(l,{isOpen:g,onClose:_,menu:m,restaurant:x})]})}},72520,e=>{"use strict";e.s(["ArrowRight",()=>t],72520);
1let t=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},33477,e=>{"use strict";e.s(["default",()=>l]);var t=e.i(43476),a=e.i(72520),r=e.i(57688),s=e.i(22016),n=e.i(18566);e.i(71645);var i=e.i(30955);function l(e){let{blog:l}=e,o=(0,n.useRouter)(),{_id:c,title:d,excerpt:u,coverImage:h,tags:m,visitCount:x,author:p,createdAt:f}=l,g=async e=>{e.preventDefault();try{await fetch("/api/blogs/".concat(c),{method:"POST"}),o.push("/blogs/".concat(c))}catch(e){o.push("/blogs/".concat(c))}};return(0,t.jsxs)("section",{className:"group relative flex h-full flex-col overflow-hidden rounded-2xl border border-gray-200 dark:border-gray-700 shadow-md transition-all duration-300 hover:shadow-xl hover:-translate-y-1",children:[(0,t.jsxs)("figure",{className:"relative h-60 md:h-72 overflow-hidden",children:[h&&(0,t.jsx)(r.default,{src:h||"/hero-privacy.jpg",alt:d,width:500,height:300,className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-110"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-transparent transition-opacity duration-300"}),(0,t.jsx)("div",{className:"absolute top-3 left-3 flex flex-wrap items-center gap-2",children:null==m?void 0:m.slice(0,2).map((e,a)=>(0,t.jsxs)("span",{className:"text-xs font-semibold bg-orange-500/90 text-white px-3 py-1 rounded-full shadow-md",children:["#",e]},a))}),(0,t.jsxs)("div",{className:"absolute top-3 right-3 flex items-center gap-1 bg-transparent bg-blur dark:bg-gray-800/90 text-gray-100 dark:text-gray-200 px-2 py-1 rounded-full text-xs font-medium shadow-md border border-gray-900",children:[(0,t.jsx)(i.FaEye,{className:"w-4 h-4 text-white"})," ",x||0]})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,t.jsx)("h1",{className:"text-lg md:text-xl font-bold mb-2 line-clamp-2 text-gray-900 dark:text-gray-100 group-hover:text-orange-500 transition-colors",children:d}),(0,t.jsx)("div",{className:"flex items-center justify-between text-xs md:text-sm text-gray-600 dark:text-gray-400 mb-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.default,{src:"/user.png",alt:p||"Author",width:28,height:28,className:"rounded-full border border-gray-200 dark:border-gray-600 object-cover"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"font-semibold text-xs",children:"Mr. Blogger"}),f&&(0,t.jsx)("span",{className:"text-xs",children:new Date(f).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})]})}),(0,t.jsx)("p",{className:"text-sm text-gray-700 dark:text-gray-300 line-clamp-2 mb-4",children:u}),(0,t.jsx)("hr",{className:"border-orange-200 dark:border-gray-700 mb-3"}),(0,t.jsx)("div",{className:"flex flex-1 items-center justify-end",children:(0,t.jsxs)(s.default,{href:"/blogs/".concat(c),onClick:g,className:"flex items-center gap-1 text-sm font-semibold text-gray-500 dark:text-gray-300 hover:text-orange-500 dark:hover:text-orange-400 transition-colors",children:["Read More",(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-1"})]})})]})]})}},63727,e=>{"use strict";e.s(["Briefcase",()=>t],63727);let t=(0,e.i(75254).default)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},70273,3116,e=>{"use strict";e.s(["Star",()=>a],70273);var t=e.i(75254);let a=(0,t.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Clock",()=>r],3116);let r=(0,t.default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},16015,(e,t,a)=>{},98547,(e,t,a)=>{var r=e.i(47167);e.r(16015);var s=e.r(71645),n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(s),i=void 0!==r.default&&r.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,a=t.name,r=void 0===a?"stylesheet":a,s=t.optimizeForSpeed,n=void 0===s?i:s;c(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,a=e.prototype;return a.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},a.isOptimizeForSpeed=function(){return this._optimizeForSpeed},a.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,a){return"number"==typeof a?e._serverSheet.cssRules[a]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),a},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},a.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},a.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},a.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var a=this.getSheet();"number"!=typeof t&&(t=a.cssRules.length);try{a.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},a.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var a="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!a.cssRules[e])return e;a.deleteRule(e);try{a.insertRule(t,e)}catch(r){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),a.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},a.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},a.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},a.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,a){return a?t=t.concat(Array.prototype.map.call(e.getSheetForTag(a).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},a.makeStyleTag=function(e,t,a){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return a?s.insertBefore(r,a):s.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,a=e.length;a;)t=33*t^e.charCodeAt(--a);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var a=String(t),r=e+a;return u[r]||(u[r]="jsx-"+d(e+"-"+a)),u[r]}function m(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var a=e+t;return u[a]||(u[a]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[a]}var x=function(){function e(e){var t=void 0===e?{}:e,a=t.styleSheet,r=void 0===a?null:a,s=t.optimizeForSpeed,n=void 0!==s&&s;this._sheet=r||new o({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),r&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var a=this.getIdAndRules(e),r=a.styleId,s=a.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var n=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=n,this._instancesCounts[r]=1},t.remove=function(e){var t=this,a=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(a in this._instancesCounts,"styleId: `"+a+"` not found"),this._instancesCounts[a]-=1,this._instancesCounts[a]<1){var r=this._fromServer&&this._fromServer[a];r?(r.parentNode.removeChild(r),delete this._fromServer[a]):(this._indices[a].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[a]),delete this._instancesCounts[a]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],a=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return a[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,a;return t=this.cssRules(),void 0===(a=e)&&(a={}),t.map(function(e){var t=e[0],r=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:a.nonce?a.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,a=e.dynamic,r=e.id;if(a){var s=h(r,a);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return m(s,e)}):[m(s,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=s.createContext(null);function f(){return new x}function g(){return s.useContext(p)}p.displayName="StyleSheetContext";var v=n.default.useInsertionEffect||n.default.useLayoutEffect,y="undefined"!=typeof window?f():void 0;function b(e){var t=y||g();return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},a.StyleRegistry=function(e){var t=e.registry,a=e.children,r=s.useContext(p),i=s.useState(function(){return r||t||f()})[0];return n.default.createElement(p.Provider,{value:i},a)},a.createStyleRegistry=f,a.style=b,a.useStyleRegistry=g},37902,(e,t,a)=>{t.exports=e.r(98547).style},85923,e=>{"use strict";e.s(["default",()=>s]);var t=e.i(43476),a=e.i(37902),r=e.i(71645);let s=e=>{let{size:s="2xl",variant:n="typewriter",showText:i=!0,className:l=""}=e,[o,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(0),[h,m]=(0,r.useState)(!0),x="FastFeast";(0,r.useEffect)(()=>
1{if("typewriter"===n&&d<x.length){let e=setTimeout(()=>{c(e=>e+x[d]),u(e=>e+1)},150);return()=>clearTimeout(e)}if("typewriter"===n&&d>=x.length){let e=setTimeout(()=>{c(""),u(0)},2e3);return()=>clearTimeout(e)}},[d,n]),(0,r.useEffect)(()=>{let e=setInterval(()=>{m(e=>!e)},530);return()=>clearInterval(e)},[]);let p={sm:{container:"h-8 w-8",text:"text-sm",logo:"text-2xl",subtext:"text-xs"},md:{container:"h-12 w-12",text:"text-base",logo:"text-3xl",subtext:"text-sm"},lg:{container:"h-16 w-16",text:"text-lg",logo:"text-4xl",subtext:"text-base"},xl:{container:"h-24 w-24",text:"text-xl",logo:"text-5xl",subtext:"text-lg"},"2xl":{container:"h-32 w-32",text:"text-2xl",logo:"text-6xl",subtext:"text-xl"},"3xl":{container:"h-40 w-40",text:"text-3xl",logo:"text-7xl",subtext:"text-2xl"}},f={typewriter:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"font-bold tracking-wide ".concat(p[s].logo),children:[(0,t.jsx)("span",{className:"bg-gradient-to-r from-orange-600 via-orange-500 to-amber-500 bg-clip-text text-transparent",children:o}),(0,t.jsx)("span",{className:"inline-block w-1 h-[0.9em] ml-1 bg-orange-500 ".concat(h?"opacity-100":"opacity-0"),style:{transition:"opacity 0.1s"}})]}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-orange-400/20 to-amber-400/20 blur-xl -z-10"})]}),i&&(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-3",children:[(0,t.jsx)("div",{className:"text-gray-500 font-light tracking-widest ".concat(p[s].subtext),children:"LOADING"}),(0,t.jsxs)("div",{className:"flex space-x-1.5",children:[(0,t.jsx)("div",{className:"w-2.5 h-2.5 bg-gradient-to-r from-orange-500 to-amber-500 rounded-full animate-bounce"}),(0,t.jsx)("div",{className:"w-2.5 h-2.5 bg-gradient-to-r from-orange-500 to-amber-500 rounded-full animate-bounce",style:{animationDelay:"0.15s"}}),(0,t.jsx)("div",{className:"w-2.5 h-2.5 bg-gradient-to-r from-orange-500 to-amber-500 rounded-full animate-bounce",style:{animationDelay:"0.3s"}})]})]})]}),elegant:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"font-bold tracking-wide ".concat(p[s].logo," relative"),children:[(0,t.jsx)("span",{className:"bg-gradient-to-r from-orange-600 via-orange-500 to-amber-500 bg-clip-text text-transparent animate-pulse",children:"FastFeast"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white to-transparent opacity-30 animate-shimmer"})]}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-orange-400/30 to-amber-400/30 blur-2xl animate-pulse"})]}),i&&(0,t.jsx)("div",{className:"text-gray-400 font-light tracking-[0.3em] ".concat(p[s].subtext," animate-pulse"),children:"CRAFTING EXPERIENCE"})]}),premium:(0,t.jsxs)("div",{className:"relative flex flex-col items-center justify-center space-y-6",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-transparent bg-gradient-to-r from-orange-500 via-amber-500 to-orange-500 animate-spin ".concat(p[s].container),style:{maskImage:"linear-gradient(transparent 40%, black 60%)"}}),(0,t.jsx)("div",{className:"absolute inset-2 rounded-full bg-gradient-to-r from-orange-400/20 to-amber-400/20 blur-md animate-pulse"}),(0,t.jsx)("div",{className:"relative flex items-center justify-center ".concat(p[s].container),children:(0,t.jsx)("div",{className:"font-bold bg-gradient-to-r from-orange-600 to-amber-500 bg-clip-text text-transparent ".concat(p[s].logo),children:"FF"})})]}),i&&(0,t.jsx)("div",{className:"text-gray-500 font-light tracking-widest ".concat(p[s].subtext),children:"LOADING"})]}),wave:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6",children:[(0,t.jsx)("div",{className:"flex items-center justify-center",children:["F","a","s","t","F","e","a","s","t"].map((e,a)=>(0,t.jsx)("span",{className:"font-bold bg-gradient-to-b from-orange-600 to-amber-500 bg-clip-text text-transparent ".concat(p[s].logo),style:{animation:"wave 2s ease-in-out infinite",animationDelay:"".concat(.1*a,"s")},children:e},a))}),i&&(0,t.jsx)("div",{className:"text-gray-400 font-light tracking-[0.25em] ".concat(p[s].subtext),children:"PLEASE WAIT"})]}),glitch:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"font-bold tracking-wide ".concat(p[s].logo),children:(0,t.jsxs)("span",{className:"relative inline-block",children:[(0,t.jsx)("span",{className:"bg-gradient-to-r from-orange-600 to-amber-500 bg-clip-text text-transparent",children:"FastFeast"}),(0,t.jsx)("span",{className:"absolute top-0 left-0 bg-gradient-to-r from-orange-600 to-amber-500 bg-clip-text text-transparent animate-glitch",children:"FastFeast"}),(0,t.jsx)("span",{className:"absolute top-0 left-0 bg-gradient-to-r from-orange-600 to-amber-500 bg-clip-text text-transparent animate-glitch",style:{animationDelay:"0.3s"},children:"FastFeast"})]})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-orange-400/20 to-amber-400/20 blur-xl"})]}),i&&(0,t.jsx)("div",{className:"text-gray-500 font-light tracking-widest ".concat(p[s].subtext),children:"INITIALIZING"})]})};return(0,t.jsxs)("div",{className:"jsx-7d8b5ec4b0724662 "+"fixed inset-0 flex items-center justify-center bg-gradient-to-br from-slate-50 via-white to-orange-50/30 z-50 ".concat(l),children:[(0,t.jsx)(a.default,{id:"7d8b5ec4b0724662",children:"@keyframes wave{0%,to{transform:translateY(0)}50%{transform:translateY(-15px)}}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes glitch{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}.animate-shimmer.jsx-7d8b5ec4b0724662{animation:2s infinite shimmer}.animate-glitch.jsx-7d8b5ec4b0724662{opacity:.8;animation:.3s infinite glitch}"}),(0,t.jsx)("div",{className:"jsx-7d8b5ec4b0724662 text-center",children:f[n]||f.typewriter})]})}},2562,(e,t,a)=>{e.e,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var s in t=arguments[a])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};e.CountUp=function(){function e(e,a,r){var s=this;this.endVal=a,this.options=r,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmou
1nt:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){s.startTime||(s.startTime=e);var t=e-s.startTime;s.remaining=s.duration-t,s.useEasing?s.countDown?s.frameVal=s.startVal-s.easingFn(t,0,s.startVal-s.endVal,s.duration):s.frameVal=s.easingFn(t,s.startVal,s.endVal-s.startVal,s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(t/s.duration);var a=s.countDown?s.frameVal<s.endVal:s.frameVal>s.endVal;s.frameVal=a?s.endVal:s.frameVal,s.frameVal=Number(s.frameVal.toFixed(s.options.decimalPlaces)),s.printValue(s.frameVal),t<s.duration?s.rAF=requestAnimationFrame(s.count):null!==s.finalEndVal?s.update(s.finalEndVal):s.options.onCompleteCallback&&s.options.onCompleteCallback()},this.formatNumber=function(e){var t,a,r,n=(Math.abs(e).toFixed(s.options.decimalPlaces)+"").split(".");if(t=n[0],a=n.length>1?s.options.decimal+n[1]:"",s.options.useGrouping){r="";for(var i=3,l=0,o=0,c=t.length;o<c;++o)s.options.useIndianSeparators&&4===o&&(i=2,l=1),0!==o&&l%i==0&&(r=s.options.separator+r),l++,r=t[c-o-1]+r;t=r}return s.options.numerals&&s.options.numerals.length&&(t=t.replace(/[0-9]/g,function(e){return s.options.numerals[+e]}),a=a.replace(/[0-9]/g,function(e){return s.options.numerals[+e]})),(e<0?"-":"")+s.options.prefix+t+a+s.options.suffix},this.easeOutExpo=function(e,t,a,r){return a*(1-Math.pow(2,-10*e/r))*1024/1023+t},this.options=t(t({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof e?document.getElementById(e):e,a=null==a?this.parse(this.el.innerHTML):a,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(a),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return s.handleScroll(s)}),window.onscroll=function(){window.onScrollFns.forEach(function(e){return e()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,a=e.el.getBoundingClientRect(),r=a.top+window.pageYOffset,s=a.top+a.height+window.pageYOffset;s<t&&s>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>s||r>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;if(this.countDown=this.startVal>e,Math.abs(e-this.startVal)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var t=this.countDown?1:-1;this.endVal=e+t*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var a=this.formattingFn(e);(null==(t=this.options.plugin)?void 0:t.render)?this.options.plugin.render(this.el,a):"INPUT"===this.el.tagName?this.el.value=a:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=a:this.el.
1innerHTML=a}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e.prototype.parse=function(e){var t=function(e){return e.replace(/([.,'Â ])/g,"\\$1")},a=t(this.options.separator),r=t(this.options.decimal);return parseFloat(e.replace(RegExp(a,"g"),"").replace(RegExp(r,"g"),"."))},e}()}(a)},83846,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e.r(71645),s=e.r(2562);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){!function(e,t,a){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(){return(l=Object.assign.bind()).apply(this,arguments)}function o(e,t){if(null==e)return{};var a,r,s=function(e,t){if(null==e)return{};var a,r,s={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(s[a]=e[a]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}var d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function u(e){var t=r.useRef(e);return d(function(){t.current=e}),r.useCallback(function(){for(var e=arguments.length,a=Array(e),r=0;r<e;r++)a[r]=arguments[r];return t.current.apply(void 0,a)},[])}var h=function(e,t){var a=t.decimal,r=t.decimals,n=t.duration,i=t.easingFn,l=t.end,o=t.formattingFn,c=t.numerals,d=t.prefix,u=t.separator,h=t.start,m=t.suffix,x=t.useEasing,p=t.useGrouping,f=t.useIndianSeparators,g=t.enableScrollSpy,v=t.scrollSpyDelay,y=t.scrollSpyOnce,b=t.plugin;
1return new s.CountUp(e,l,{startVal:h,duration:n,decimal:a,decimalPlaces:r,easingFn:i,formattingFn:o,numerals:c,separator:u,prefix:d,suffix:m,plugin:b,useEasing:x,useIndianSeparators:f,useGrouping:p,enableScrollSpy:g,scrollSpyDelay:v,scrollSpyOnce:y})},m=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],x={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},p=function(e){var t=Object.fromEntries(Object.entries(e).filter(function(e){return void 0!==(function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,s,n,i,l=[],o=!0,c=!1;try{n=(a=a.call(e)).next,!1;for(;!(o=(r=n.call(a)).done)&&(l.push(r.value),l.length!==t);o=!0);}catch(e){c=!0,s=e}finally{try{if(!o&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(c)throw s}}return l}}(e,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var a=Object.prototype.toString.call(e).slice(8,-1);if("Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return c(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1]})),a=r.useMemo(function(){return i(i({},x),t)},[e]),s=a.ref,n=a.startOnMount,l=a.enableReinitialize,d=a.delay,p=a.onEnd,f=a.onStart,g=a.onPauseResume,v=a.onReset,y=a.onUpdate,b=o(a,m),w=r.useRef(),j=r.useRef(),N=r.useRef(!1),k=u(function(){return h("string"==typeof s?s:s.current,b)}),S=u(function(e){var t=w.current;if(t&&!e)return t;var a=k();return w.current=a,a}),C=u(function(){var e=function(){return S(!0).start(function(){null==p||p({pauseResume:F,reset:_,start:R,update:E})})};d&&d>0?j.current=setTimeout(e,1e3*d):e(),null==f||f({pauseResume:F,reset:_,update:E})}),F=u(function(){S().pauseResume(),null==g||g({reset:_,start:R,update:E})}),_=u(function(){S().el&&(j.current&&clearTimeout(j.current),S().reset(),null==v||v({pauseResume:F,start:R,update:E}))}),E=u(function(e){S().update(e),null==y||y({pauseResume:F,reset:_,start:R})}),R=u(function(){_(),C()}),O=u(function(e){n&&(e&&_(),C())});return r.useEffect(function(){N.current?l&&O(!0):(N.current=!0,O())},[l,N,O,d,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),r.useEffect(function(){return function(){_()}},[_]),{start:R,pauseResume:F,reset:_,update:E,getCountUp:S}},f=["className","redraw","containerProps","children","style"];a.default=function(e){var t=e.className,a=e.redraw,s=e.containerProps,n=e.children,c=e.style,d=o(e,f),h=r.useRef(null),m=r.useRef(!1),x=p(i(i({},d),{},{ref:h,startOnMount:"function"!=typeof n||0===e.delay,enableReinitialize:!1})),g=x.start,v=x.reset,y=x.update,b=x.pauseResume,w=x.getCountUp,j=u(function(){g()}),N=u(function(t){e.preserveValue||v(),y(t)}),k=u(function(){if("function"==typeof e.children&&!(h.current instanceof Element))return void console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.');w()});r.useEffect(function(){k()},[k]),r.useEffect(function(){m.current&&N(e.end)},[e.end,N]);var S=a&&e;return(r.useEffect(function(){a&&m.current&&j()},[j,a,S]),r.useEffect(function(){!a&&m.current&&j()},[j,a,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.className,e.formattingFn]),r.useEffect(function(){m.current=!0},[]),"function"==typeof n)?n({countUpRef:h,start:g,reset:v,update:y,pauseResume:b,getCountUp:w}):r.createElement("span",l({className:t,ref:h,style:c},s),void 0!==e.start?w().formattingFn(e.start):"")},a.useCountUp=p},54513,e=>{"use strict";e.s(["useInView",()=>l]);var t=e.i(71645),a=Object.defineProperty,r=new Map,s=new WeakMap,n=0,i=void 0;function l(){var e;let{threshold:a,delay:l,trackVisibility:o,rootMargin:c,root:d,triggerOnce:u,skip:h,initialInView:m,fallbackInView:x,onChange:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[f,g]=t.useState(null),v=t.useRef(p),[y,b]=t.useState({inView:!!m,entry:void 0});v.current=p,t.useEffect(()=>{let e;if(!h&&f)return e=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;if(void 0===window.IntersectionObserver&&void 0!==l){let r=e.getBoundingClientRect();return t(l,{isIntersecting:l,target:e,intersectionRatio:"number"==typeof a.threshold?a.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:o,observer:c,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var a;return"".concat(t,"_").concat("root"===t?(a=e.root)?(s.has(a)||(n+=1,s.set(a,n.toString())),s.get(a)):"0":e[t])}).toString(),a=r.get(t);if(!a){let s,n=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var a;let r=t.isIntersecting&&s.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(a=n.get(t.target))||a.forEach(e
1=>{e(r,t)})})},e);s=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:t,observer:i,elements:n},r.set(t,a)}return a}(a),u=d.get(e)||[];return d.has(e)||d.set(e,u),u.push(t),c.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(d.delete(e),c.unobserve(e)),0===d.size&&(c.disconnect(),r.delete(o))}}(f,(t,a)=>{b({inView:t,entry:a}),v.current&&v.current(t,a),a.isIntersecting&&u&&e&&(e(),e=void 0)},{root:d,rootMargin:c,threshold:a,trackVisibility:o,delay:l},x),()=>{e&&e()}},[Array.isArray(a)?a.toString():a,f,d,c,u,h,o,x,l]);let w=null==(e=y.entry)?void 0:e.target,j=t.useRef(void 0);f||!w||u||h||j.current===w||(j.current=w,b({inView:!!m,entry:void 0}));let N=[g,y.inView,y.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}t.Component},53709,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476);e.i(71645);var a=e.i(80401);e.i(41983);var r=e.i(72225),s=e.i(57688);let n=[{src:"https://i.ibb.co.com/VcC54xRN/1.png",alt:"Partner Logo 1"},{src:"https://i.ibb.co.com/fm2tYG4/2.png",alt:"Partner Logo 2"},{src:"https://i.ibb.co.com/tTzpTRXx/3.png",alt:"Partner Logo 3"},{src:"https://i.ibb.co.com/8Dtwjvjn/4.png",alt:"Partner Logo 4"},{src:"https://i.ibb.co.com/LXJM9jKV/5.png",alt:"Partner Logo 5"},{src:"https://i.ibb.co.com/sppkFvDq/6.png",alt:"Partner Logo 6"},{src:"https://i.ibb.co.com/j9cR6QFK/7.png",alt:"Partner Logo 7"}],i=()=>(0,t.jsx)("section",{className:"w-full",children:(0,t.jsxs)("div",{className:"container mx-auto py-16 px-4",children:[(0,t.jsx)("div",{className:"text-center mb-12",children:(0,t.jsxs)("h2",{className:"mb-4 text-4xl font-bold text-gray-800 dark:text-white",children:["Our ",(0,t.jsx)("span",{className:"text-orange-600",children:"Partners"})]})}),(0,t.jsx)(a.Swiper,{modules:[r.Autoplay],spaceBetween:30,loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1},breakpoints:{320:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:4,spaceBetween:30},1024:{slidesPerView:5,spaceBetween:40}},className:"mySwiper",children:n.map((e,r)=>(0,t.jsx)(a.SwiperSlide,{className:"cursor-pointer",children:(0,t.jsx)("div",{className:"relative flex items-center justify-center h-40 lg:h-60",children:(0,t.jsx)(s.default,{src:e.src,alt:e.alt,fill:!0,className:"max-h-60 w-auto object-contain filter hover:grayscale-0 transition-all duration-300 hover:scale-110"})})},r))})]})})},96333,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476);e.i(71645);var a=e.i(57688),r=e.i(30955),s=e.i(22016);let n=[{id:1,title:"List Your Restaurant on FastFeast",description:"Want millions of new customers to enjoy your delicious food? Join our network to grow your business and reach more hungry people than ever before.",buttonText:"Become a Partner",link:"/register-restaurant",backgroundImage:"https://images.unsplash.com/photo-1555396273-367ea4eb4db5?q=80&w=1074"},{id:2,title:"Become a FastFeast Rider",description:"Enjoy flexible working hours and competitive earnings. Join our rider fleet today and earn up to à§³25,000 a month delivering happiness.",buttonText:"Become a Rider",link:"/register-rider",backgroundImage:"/food-delivery-riderorange.jpg"}];function i(){return(0,t.jsx)("section",{className:"h-screen w-full bg-orange-800 overflow-hidden",children:(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 h-full w-full",children:n.map(e=>(0,t.jsxs)("div",{className:"container mx-auto px-4 group relative h-full w-full overflow-hidden shadow-xl transition duration-500 hover:shadow-2xl",children:[(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(a.default,{src:e.backgroundImage,alt:e.title,fill:!0,className:"object-cover transition-transform duration-700 ease-in-out group-hover:scale-110"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/50 to-transparent"})]}),(0,t.jsx)("div",{className:"relative z-10 h-full w-full flex flex-col justify-center items-center text-center p-8 sm:p-12 lg:p-16",children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h3",{className:"mb-3 text-2xl md:text-3xl font-bold leading-snug drop-shadow-lg text-white",children:e.title}),(0,t.jsx)("p",{className:"mb-5 text-gray-200 text-sm md:text-base leading-relaxed line-clamp-3",children:e.description}),(0,t.jsx)(s.default,{href:e.link,className:"flex justify-center",children:(0,t.jsxs)("button",{className:"flex w-fit items-center gap-2 rounded-lg bg-gradient-to-r from-orange-500 to-red-500 px-5 py-2.5 font-semibold text-white shadow-md transition-transform duration-300 hover:scale-[1.03] focus:outline-none focus:ring-2 focus:ring-orange-300",children:[e.buttonText,(0,t.jsx)(r.FaArrowRight,{className:"transition-transform group-hover:translate-x-1"})]})})]})})]},e.id))})})}},27403,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476),a=e.i(71645),r=e.i(69620),s=e.i(57688);let n=[{question:"How fast is the delivery?",answer:"Average delivery times in your area are displayed for each restaurant before you order, t
1ypically ranging from 25-45 minutes."},{question:"How can I place an order?",answer:"You can place an order through our website or mobile app. Simply browse restaurants, choose your meal, add it to the cart, and proceed to checkout."},{question:"What payment methods do you accept?",answer:"We accept all major credit/debit cards, mobile banking services like bKash and Nagad, and also offer Cash on Delivery (COD) in most areas."},{question:"Can I track my order in real-time?",answer:"Absolutely! Once your order is confirmed and a rider is assigned, you'll receive a live tracking link to monitor your delivery's progress on a map until it reaches your doorstep."},{question:"What if there's an issue with my order?",answer:"We're here to help! You can contact our customer support team directly through the app's help section. We'll work to resolve any issues with your order as quickly as possible."}];function i(){let[e,i]=(0,a.useState)(0);return(0,t.jsx)("section",{className:"w-full py-12 md:py-16",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-stretch",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,t.jsxs)("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-extrabold text-gray-800 dark:text-white mb-6",children:["Frequently Asked ",(0,t.jsx)("span",{className:"text-orange-600",children:"Questions"})]}),(0,t.jsx)("div",{className:"space-y-2 cursor-pointer",children:n.map((a,s)=>(0,t.jsxs)("div",{className:"transition-all cursor-pointer duration-300 hover:shadow-md rounded-lg overflow-hidden bg-white",children:[(0,t.jsxs)("button",{className:"w-full flex justify-between items-center p-4 sm:p-5 text-left font-medium text-gray-800",onClick:()=>i(e===s?null:s),children:[(0,t.jsx)("span",{className:"cursor-pointer text-base hover:text-orange-600 sm:text-lg",children:a.question}),(0,t.jsx)(r.IoChevronForward,{className:"h-5 w-5 cursor-pointer text-gray-800 hover:text-orange-600 transition-transform duration-300 ".concat(e===s?"rotate-90":"")})]}),(0,t.jsx)("div",{className:"overflow-hidden transition-[max-height] duration-500 ease-in-out ".concat(e===s?"max-h-96":"max-h-0"),children:(0,t.jsx)("div",{className:"px-4 sm:px-5 pb-4 sm:pb-5 text-gray-600 text-sm sm:text-base",children:a.answer})})]},s))})]}),(0,t.jsx)("div",{className:"relative w-full h-full min-h-[400px] md:min-h-[600px] rounded-lg overflow-hidden shadow-xl flex",children:(0,t.jsx)(s.default,{src:"https://i.ibb.co/jZ5HNJ7s/FAQ-in-orange-for-food-quary-in-a-website-faq-section-1.jpg",alt:"FAQ Illustration",fill:!0,className:"object-cover object-center w-full h-full",sizes:"(max-width: 768px) 100vw, 50vw",priority:!0})})]})})})}},97301,e=>{"use strict";e.s(["default",()=>o]);var t=e.i(43476),a=e.i(71645),r=e.i(46932),s=e.i(57688);let n=[{id:"01",icon:"https://i.ibb.co.com/4nD9P4ct/Navigation-amico.png",title:"Real-Time Order Tracking",description:"Track your food live with GPS and get real-time updates from kitchen to doorstep, knowing exactly when your meal will arrive."},{id:"02",icon:"https://i.ibb.co.com/gMrpH4ds/Take-Away-pana.png",title:"Fast Delivery by Riders",description:"Experience speedy, reliable delivery handled by trained riders who ensure your food arrives hot, fresh, and right on schedule."},{id:"03",icon:"https://i.ibb.co.com/gZ4RTFpj/Order-food-pana.png",title:"Online Food Ordering",description:"Easily browse restaurants, explore diverse menus, customize your dishes, and place secure orders within just a few quick taps."},{id:"04",icon:"https://i.ibb.co.com/5g4RzxQC/Business-deal-bro.png",title:"Restaurant Partnership",description:"Expand your restaurantâs reach, manage orders efficiently, update menus anytime, and grow your sales with our trusted platform."}],i={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},l={hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}}};function o(){let[e,o]=(0,a.useState)({});return(0,t.jsx)("section",{className:" py-16",children:(0,t.jsxs)("div",{className:"container mx-auto px-4",children:[(0,t.jsxs)("h2",{className:"text-4xl font-bold text-center mb-12 text-gray-800 dark:text-white",children:["How ",(0,t.jsx)("span",{className:"text-orange-600",children:"FastFeast"})," Works"]}),(0,t.jsx)(r.motion.div,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",variants:i,initial:"hidden",
1whileInView:"visible",viewport:{once:!0,amount:.3},children:n.map(a=>(0,t.jsx)(r.motion.div,{className:"group relative h-72 cursor-pointer [perspective:1000px]",variants:l,initial:"hidden",animate:"visible",onClick:()=>{var e;return e=a.id,void o(t=>t===e?null:e)},children:(0,t.jsxs)("div",{className:"relative w-full h-full transition-transform duration-700 [transform-style:preserve-3d] ".concat(e===a.id?"[transform:rotateY(180deg)]":"","\n lg:group-hover:[transform:rotateY(180deg)] hover:shadow-xl transition-all"),children:[(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col bg-white rounded-xl shadow-md p-6 py-5 items-center justify-center [backface-visibility:hidden]",children:[(0,t.jsx)(s.default,{src:a.icon,alt:"service",height:200,width:180,className:"h-[200px] w-[180px] object-cover transition-transform duration-300 group-hover:scale-110 pt-5"}),(0,t.jsx)("h3",{className:"text-xl font-bold text-gray-800 text-center group-hover:text-orange-500 transition-colors duration-300 py-5",children:a.title})]}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col rounded-xl items-center justify-center px-6 text-center shadow-md bg-white [transform:rotateY(180deg)] [backface-visibility:hidden]",children:[(0,t.jsx)("h3",{className:"text-xl font-bold text-gray-800 text-center group-hover:text-orange-500 transition-colors duration-300 pb-2",children:a.title}),(0,t.jsx)("p",{className:"text-gray-700",children:a.description})]})]})},a.id))})]})})}},40578,e=>{"use strict";e.s(["default",()=>l]);var t=e.i(43476),a=e.i(71645),r=e.i(72520),s=e.i(22016),n=e.i(57688);let i=[{name:"Taste of Thailand",id:"thaifood",imageUrl:"/Taste-of-Thailand .jpg"},{name:"Savor the Flavors of China",id:"chinesefood",imageUrl:"/Savor-the-Flavors-of-China__.jpg"},{name:"Experience the Tastes of India",id:"indianfood",imageUrl:"/Experience-the-Tastes-of-India__.jpg"},{name:"Taste the Tradition of Italy",id:"italianfood",imageUrl:"/Taste-the-Tradition-of-Italy__.jpg"},{name:"Discover the Art of Japan",id:"japanesefood",imageUrl:"/Taste-the-Tradition-of-japanese food.jpg"},{name:"Spice Up Your Day with Korea",id:"koreanfood",imageUrl:"/Spice-Up-Your-Day-with-Korean-food.jpg"}],l=()=>{let[e,l]=(0,a.useState)(i[0].imageUrl),[o,c]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=setInterval(()=>{c(e=>2===e?0:e+1)},2500);return()=>clearInterval(e)},[]),(0,t.jsxs)("section",{className:"md:max-h-screen w-full overflow-hidden relative",children:[(0,t.jsx)("div",{className:"absolute left-1/2 transform -translate-x-1/2 z-10 transition-all duration-500 hidden md:block ".concat(0===o?"top-0 opacity-0 -translate-y-full scale-75":1===o?"top-1/2 -translate-y-1/2 opacity-100 scale-100":"top-full opacity-0 translate-y-0 scale-50"),children:(0,t.jsx)("div",{className:"w-32 h-32 md:w-48 md:h-48 lg:w-56 lg:h-56",children:(0,t.jsx)(n.default,{src:"/animateBriyani.svg",alt:"Animated Biryani",width:224,height:224,className:"w-full h-full object-contain drop-shadow-lg",priority:!0})})}),(0,t.jsxs)("div",{className:"container px-4 mx-auto grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 h-full items-center py-8",children:[(0,t.jsxs)("div",{className:"flex flex-col md:w-2/3 mx-auto h-full max-h-full overflow-y-auto",children:[(0,t.jsxs)("div",{className:"space-y-2 md:space-y-3 flex-shrink-0",children:[(0,t.jsxs)("h2",{className:"text-xl md:text-2xl lg:text-3xl font-serif text-gray-800 dark:text-white leading-tight",children:["Our traditional ",(0,t.jsx)("span",{className:"font-bold",children:"dishes"})]}),(0,t.jsx)("p",{className:"text-sm md:text-base text-gray-600 dark:text-gray-300",children:"Celebrates the rich culinary heritage passed down through generations. Each recipe tells a story of cultural identity."})]}),(0,t.jsx)("div",{className:"mt-4 md:mt-6 divide-y divide-gray-300 flex-grow pr-12 overflow-y-auto",children:i.map((e,a)=>(0,t.jsxs)("div",{className:"group flex items-center justify-between py-2 md:py-3 cursor-pointer transition-all duration-300 ease-in-out",onMouseEnter:()=>{l(i[a].imageUrl)},children:[(0,t.jsx)(s.default,{href:"/".concat(e.id),className:"text-base md:text-lg font-semibold text-gray-800 dark:text-gray-200 transition-all duration-300 ease-in-out transform hover:text-orange-600 group-hover:scale-[1.02] group-hover:translate-x-1",children:e.name}),(0,t.jsx)(s.default,{href:"/".concat(e.id),children:(0,t.jsx)(r.ArrowRight,{size:16,className:"text-gray-500 dark:text-gray-300 transition-transform duration-300 ease-in-out group-hover:translate-x-1 group-hover:text-amber-700"})})]},e.id))}),(0,t.jsx)(s.default,{href:"/menu",className:"flex-shrink-0",children:(0,t.jsx)("button",{className:"mt-4 md:mt-6 px-4 w-full py-2 md:px-5 md:py-2.5 border border-gray-800 dark:border-gray-300 text-gray-800 dark:text-gray-300 font-medium uppercase text-xs md:text-sm hover:bg-orange-600 hover:text-white transition-colors duration-300",children:"See All"})})]}),(0,t.jsx)("div",{className:"hidden h-full lg:flex relative overflow-hidden lg:px-12",children:(0,t.jsx)("div",{className:"relative md:w-2/3 h-full mx-auto",children:(0,t.jsx)(n.default,{src:e,alt:"Traditional dish or food",fill:!0,priority:!0,sizes:"(max-width: 1024px) 100vw, 50vw",className:"items-center rounded-xl justify-center object-cover transition-all duration-500 ease-in-out hover:scale-[1.05]",onError:e=>{e.target.style.backgroundColor="#f3f4f6"}})})})]})]})}},74055,e=>{"use strict";e.s(["default",()=>c]);var t=e.i(43476),a=e.i(71645),r=e.i(30955),s=e.i(46932),n=e.i(88653),i=e.i(57688);let l=["Hear What Our Valued Customers Say...","Why People Choose FastFeast Every Time..","Trusted and Loved by Thousands of Happy Users!"],o=[{id:1,name:"Sarah Johnson",rating:5,review:"The food arrived hot and fresh! Delivery was faster than expected. Will definitely order again!",photo:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?q=80&w=1288",order:"Pizza & Pasta Combo"},{id:2,name:"Mike Chen",rating:4,review:"Great service and delicious food. The app makes ordering so convenient and the tracking is accurate.",photo:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?q=80&w=1287",order:"Sushi Platter"},{id:3,name:"Fatima Ahmed",rating:5,review:"Kacchi Bhai never disappoints! The order
1came perfectly packed and the taste was authentic. 10/10.",photo:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=1287",order:"Mutton Kacchi Biryani"},{id:4,name:"David Lee",rating:4,review:"The variety of restaurants is amazing. I can always find something new to try. Reliable and fast.",photo:"https://images.unsplash.com/photo-1552058544-f2b08422138a?q=80&w=1288",order:"Thai Green Curry"},{id:5,name:"Aisha Khan",rating:5,review:"Perfect for late-night cravings. The 24/7 service is a lifesaver. My go-to app for food delivery.",photo:"https://images.unsplash.com/photo-1580489944761-15a19d654956?q=80&w=1361",order:"Chicken Burger & Fries"}],c=()=>{let[e,c]=(0,a.useState)(0),[d,u]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=setInterval(()=>{c(e=>(e+1)%l.length)},3e3);return()=>clearInterval(e)},[]),(0,t.jsx)("section",{className:"py-16 my-10",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 items-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.AnimatePresence,{mode:"wait",children:(0,t.jsxs)(s.motion.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.6},className:"lg:text-5xl text-3xl font-serif font-bold text-gray-800 dark:text-white leading-tight",children:[(0,t.jsx)("span",{className:"text-orange-500",children:l[e].split(" ")[0]})," ",l[e].split(" ").slice(1).join(" ")]},e)}),(0,t.jsx)("p",{className:"text-lg text-gray-600 dark:text-gray-300 max-w-md my-8",children:"Real stories from our happy customers. We always focus on quality, fast delivery, and excellent service."}),(0,t.jsxs)("div",{className:"w-full max-w-[400px] flex justify-center mt-10 gap-4",children:[(0,t.jsx)("button",{onClick:()=>u(e=>(e-1+o.length)%o.length),className:"p-4 bg-orange-500 hover:bg-orange-600 rounded-full cursor-pointer transition shadow-lg shadow-orange-300/50",children:(0,t.jsx)(r.FaArrowLeft,{className:"text-white"})}),(0,t.jsx)("button",{onClick:()=>u(e=>(e+1)%o.length),className:"p-4 bg-gradient-to-r from-amber-400 to-orange-600 hover:from-amber-500 hover:to-orange-700 rounded-full transition shadow-lg cursor-pointer shadow-orange-300/50",children:(0,t.jsx)(r.FaArrowRight,{className:"text-white"})})]})]}),(0,t.jsx)("div",{className:"w-full flex flex-col items-center justify-center py-12 px-6 relative bg-rounded-2xl bg-center bg-contain bg-no-repeat",style:{backgroundImage:"url('/photoFrame.png')"},children:(0,t.jsx)(n.AnimatePresence,{mode:"wait",children:(0,t.jsxs)(s.motion.div,{initial:{opacity:0,scale:.9,y:40},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-40},transition:{duration:.6},className:"w-[520px] md:w-[600px] p-8 flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"relative w-[400px] h-auto bg-center bg-contain bg-no-repeat flex items-center justify-center mx-auto mb-2",children:(0,t.jsx)(i.default,{src:o[d].photo,alt:o[d].name,width:120,height:120,className:"w-20 h-20 md:w-28 md:h-28 mb-2 rounded-full object-cover shadow-lg"})}),(0,t.jsx)("div",{className:"flex mb-2",children:Array.from({length:5},(e,a)=>(0,t.jsx)(r.FaStar,{className:"".concat(a<o[d].rating?"text-yellow-500":"text-gray-300")},a))}),(0,t.jsxs)("p",{className:"text-gray-700 w-3/6 text-sm italic font-semibold md:text-base mb-5 line-clamp-6",children:['"',o[d].review,'"']}),(0,t.jsx)("h4",{className:"font-semibold text-gray-900 mt-4",children:o[d].name}),(0,t.jsxs)("span",{className:"text-gray-500 text-xs md:text-sm mt-2",children:["Ordered: ",o[d].order]})]},d)})})]})})})}},19572,e=>{"use strict";e.s(["default",()=>l]);var t=e.i(43476),a=e.i(22016),r=e.i(33477),s=e.i(72520),n=e.i(46932),i=e.i(71645);function l(){let[e,l]=(0,i.useState)([]),[o,c]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/blogs"),t=await e.json(),a=[];Array.isArray(t)?a=t:Array.isArray(t.blogs)?a=t.blogs:Array.isArray(t.data)&&(a=t.data),l(a)}catch(e){l([])}finally{c(!1)}})()},[]);let d=Array.isArray(e)?[...e].sort((e,t)=>(t.visitCount||0)-(e.visitCount||0)).slice(0,4):[],u={hidden:e=>({opacity:0,x:e.x,y:e.y,scale:.9}),visible:{opacity:1,x:0,y:0,scale:1,transition:{duration:.7,ease:"easeOut"}}},h=[{x:-60,y:0},{x:60,y:0},{x:0,y:60},{x:0,y:-60}];return(0,t.jsxs)("section",{className:"relative py-20 overflow-hidden transition-colors duration-500",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(255,179,71,0.15),transparent_50%)] dark:bg-[radial-gradient(circle_at_bottom_left,rgba(255,140,0,0.15),transparent_60%)] pointer-events-none"}),(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:"easeOut"},className:"text-center max-w-2xl font-serif mx-auto mb-16 px-4",children:[(0,t.jsxs)("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-extrabold text-gray-900 dark:text-gray-100 mb-4",children:["Popular"," ",(0,t.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-orange-600 to-yellow-400",children:"Blogs"})]}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 text-sm md:text-base leading-relaxed",children:"Discover what everyoneâs reading! These trending articles are handpicked for food lovers â full of stories, flavors, and culinary secrets."}),(0,t.jsx)("div",{className:"mt-5 mx-auto w-20 h-1 bg-gradient-to-r from-orange-500 to-yellow-400 rounded-full shadow-md shadow-orange-300/30"})]}),(0,t.jsx)("div",{className:"container mx-auto px-4",children:o?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 space-y-4",children:[(0,t.jsx)("div",{className:"w-10 h-10 border-4 border-orange-400 border-t-transparent roun
1ded-full animate-spin"}),(0,t.jsx)("p",{className:"text-lg font-semibold text-transparent bg-clip-text bg-gradient-to-r from-orange-500 via-yellow-400 to-orange-500 bg-[length:200%_auto] animate-[shimmer_2.5s_linear_infinite] dark:from-orange-400 dark:via-yellow-300 dark:to-orange-500",children:"Loading Popular Blogs..."})]}):0===d.length?(0,t.jsx)("div",{className:"text-center text-gray-500 dark:text-gray-400 py-12",children:"No blogs found."}):(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8",children:d.map((e,a)=>(0,t.jsx)(n.motion.div,{custom:h[a%4],variants:u,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.3},transition:{delay:.15*a},className:"hover:scale-[1.02] transition-transform duration-300",children:(0,t.jsx)(r.default,{blog:e})},e._id||a))})}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,ease:"easeOut"},className:"flex items-center justify-center mt-16",children:(0,t.jsxs)(a.default,{href:"/blogs",className:"absolute bottom-4 left-1/2 z-10 -translate-x-1/2 animate-pulse cursor-pointer group flex items-center gap-2 px-10 py-3.5 bg-transparent text-gray-900 hover:bg-orange-500 hover:bg-gradient-to-r from-orange-600 to-orange-400 hover:text-white font-semibold rounded-xl hover:shadow-lg shadow-none hover:shadow-orange-400/60 hover:-translate-y-0.5 transition-all duration-300 my-8",children:["Show All",(0,t.jsx)(s.ArrowRight,{className:"w-5 h-5 transition-transform duration-300 group-hover:translate-x-1"})]})})]})}},81480,e=>{"use strict";e.s(["default",()=>y],81480);var t=e.i(43476);e.i(71645);var a=e.i(46932),r=e.i(75254);let s=(0,r.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var n=e.i(70273);let i=(0,r.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),l=(0,r.default)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var o=e.i(63727);let c=(0,r.default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),d=(0,r.default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]),u=(0,r.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),h=(0,r.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),m=(0,r.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);var x=e.i(3116);let p=(0,r.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),f=[{icon:i,value:"50K+",label:"Happy Customers",color:"text-orange-500"},{icon:l,value:"100K+",label:"Orders Delivered",color:"text-emerald-500"},{icon:o.Briefcase,value:"500+",label:"Restaurant Partners",color:"text-orange-600"},{icon:n.Star,value:"4.9/5",label:"Customer Rating",color:"text-yellow-500"},{icon:x.Clock,value:"25min",label:"Avg Delivery Time",color:"text-blue-500"},{icon:p,value:"98%",label:"Satisfaction Rate",color:"text-pink-500"}],g=[{icon:u,text:"Lightning Fast Delivery",gradient:"from-orange-500 to-red-500"},{icon:h,text:"Food Safety Guaranteed",gradient:"from-emerald-500 to-teal-500"},{icon:m,text:"Fresh Ingredients",gradient:"from-purple-500 to-pink-500"},{icon:s,text:"24/7 Support",gradient:"from-blue-500 to-cyan-500"},{icon:c,text:"Best Price Guarantee",gradient:"from-green-500 to-emerald-500"},{icon:d,text:"Quality Certified",gradient:"from-amber-500 to-orange-500"}],v=["Dhaka","Barishal","Rangpur","Chattogram","Sylhet","Rajshahi","Khulna","Mymensingh","Cumilla","Noakhali","Jashore","Faridpur"],y=()=>(0,t.jsxs)("div",{className:"relative min-h-screen overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0",children:(0,t.jsxs)("div",{className:"w-full h-full bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url('https://i.ibb.co.com/q3fyWc1B/eating-in-restaurant.jpg')"},children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-orange-500/10 to-emerald-500/5"})]})}),(0,t.jsxs)("div",{className:"relative z-10 py-20 space-y-20",children:[(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)(a.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[(0,t.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",style:{fontFamily:"Inter, sans-serif"},children:["Serving ",(0,t.jsx)("span",{className:"text-orange-400",children:"Bangladesh"})," with Excellence"]}),(0,t.jsx)("p",{className:"text-lg text-gray-200 max-w-2xl mx-auto",children:"Join thousands of satisfied customers who trust us for their daily meals"}),(0,t.jsx)("div",{className:"w-24 h-1 bg-gradient-to-r from-orange-500 to-emerald-500 mx-auto rounded-full mt-4"})]}),(0,t.jsxs)("div",{className:"relative overflow-hidden py-8",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-32 bg-gradient-to-r from-transparent via-black/50 to-transparent z-10"}),(0,t.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-32 bg-gradient-to-l from-transparent via-black/50 to-transparent z-10"}),(0,t.jsx)(a.motion.div,{className:"flex gap-8",animate:{x:[0,-1920]},transition:{x:{repeat:1/0,repeatType:"loop",duration:40,ease:"linear"}},children:[...f,...f].map((e,a)=>(0,t.jsx)("div",{className:"flex-shrink-0 bg-white/95 backdrop-blur-sm rounded-2xl p-6 shadow-2xl border border-white/20 hover:border-orange-300 transition-all duration-300 hover:shadow-xl hover:scale-105 min-w-[240px] group",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-xl bg-gradient-to-br ".concat(e.color.includes("orange")?"from-orange-100 to-orange-200":e.color.includes("emerald")?"from-emerald-100 to-emerald-200":e.color.includes("yellow")?"from-yellow-100 to-yellow-200":e.color.includes("blue")?"from-blue-100 to-blue-200":"from-pink-100 to-pink-200"," flex items-center justify-center shadow-md group-hover:shadow-lg transition-shadow"),children:(0,t.jsx)(e.icon,{className:"w-7 h-7 ".concat(e.color)})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-2xl font-extrabold text-gray-900",style:{fontFamily:"Inter, sans-serif"},children:e.value}),(0,t.jsx)("div",{className:"text-sm font-medium text-gray-600",style:{fontFamily:"Inter, sans-serif"},children:e.label})]})]})},a))})]})]}),(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)(a.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[(0,t.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",style:{fontFamily:"Inter, sans-serif"},children:["Why Choose ",(0,t.jsx)("span",{className:"text-emerald-400",children:"Us"}),"?"]}),(0,t.jsx)("div",{className:"w-20 h-1 bg-gradient-to-r from-emerald-500 to-orange-500 mx-auto rounded-full"})]}),(0,t.jsxs)("div",{className:"relative overflow-hidden py-8",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-24 bg-gradient-to-r from-transparent via-black/50 to-transparent z-10"}),(0,t.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-24 bg-gradient-to-l from-transparent via-black/50 to-transparent z-10"}),(0,t.jsx)(a.motion.div,{className:"flex gap-6",animate:{x:[-1440,0]},transition:{x:{repeat:1/0,repeatType:"loop",duration:25,ease:"linear"}},children:[...g,...g].map((e,a)=>(0,t.jsx)("div",{className:"flex-shrink-0 bg-white/95 backdrop-blur-sm rounded-xl p-6 shadow-2xl border border-white/20 hover:shadow-lg transition-all duration-300 min-w-[280px] group",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-br ".concat(e.gradient," flex items-center justify-center shadow-md group-hover:scale-110 transition-transform"),children:(0,t.jsx)(e.icon,{className:"w-6 h-6 text-white"})}),(0,t.jsx)("span",{className:"font-semibold text-gray-800 text-lg",style:{fontFamily:"Inter, sans-serif"},children:e.text})]})},a))})]})]}),(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)(a.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[(0,t.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",style:{fontFamily:"Inter, sans-serif"},children:["Serving Across ",(0,t.jsx)("span",{className:"text-orange-400",children:"Bangladesh"})]}),(0,t.jsx)("p",{className:"text-lg text-gray-200 max-w-2xl mx-auto",children:"Delivering delicious meals to every corner of the country"}),(0,t.jsx)("div",{className:"w-24 h-1 bg-gradient-to-r from-orange-500 to-emerald-500 mx-auto rounded-full mt-4"})]}),(0,t.jsxs)("div",{className:"relative overflow-hidden py-8",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-24 bg-gradient-to-r from-transparent via-black/50 to-transparent z-10"}),(0,t.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-24 bg-gradient-to-l from-transparent via-black/50 to-transparent z-10"}),(0,t.jsx)(a.motion.div,{className:"flex gap-12",animate:{x:[0,-1200]},transition:{x:{repeat:1/0,repeatType:"loop",duration:20,ease:"linear"}},children:[...v,...v,...v].map((e,a)=>(0,t.jsxs)("div",{className:"flex-shrink-0 flex items-center gap-3 text-2xl md:text-4xl font-bold text-white hover:text-orange-400 transition-colors duration-300 whitespace-nowrap group",style:{fontFamily:"Inter, sans-serif"},children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-emerald-400 rounded-full group-hover:bg-orange-400 transition-colors"}),e]},a))})]})]})]})]})},1950,e=>{"use strict";e.s(["default",()=>u],1950);var t,a,r=e.i(43476),s=e.i(71645);e.i(47167);
1var n={exports:{}},i={},l=(a||(a=1,n.exports=function(){if(t)return i;t=1;var e=Symbol.for("react.transitional.element");function a(t,a,r){var s=null;if(void 0!==r&&(s=""+r),void 0!==a.key&&(s=""+a.key),"key"in a)for(var n in r={},a)"key"!==n&&(r[n]=a[n]);else r=a;return{$$typeof:e,type:t,key:s,ref:void 0!==(a=r.ref)?a:null,props:r}}return i.Fragment=Symbol.for("react.fragment"),i.jsx=a,i.jsxs=a,i}()),n.exports);function o(e,t){if(!e)throw Error("Invariant failed")}function c(e){return e.naturalHeight/e.naturalWidth}let d=e=>{let{aspectRatio:t="taller",handle:a=null,handleSize:r=40,hover:n=!1,leftImage:i,leftImageAlt:d="",leftImageCss:u={},leftImageLabel:h=null,onSliderPositionChange:m,rightImage:x,rightImageAlt:p="",rightImageCss:f={},rightImageLabel:g=null,skeleton:v=null,sliderLineColor:y="#ffffff",sliderLineWidth:b=2,sliderPositionPercentage:w=.5,vertical:j=!1}=e,N=!j,[k,S]=(0,s.useState)(w),[C,F]=(0,s.useState)(!1),[_,E]=(0,s.useState)(0),[R,O]=(0,s.useState)(0),A=function(e){let t=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{if(!t.current)return;let a=new ResizeObserver(t=>{o(t[0],"ResizeObserver should have at least one entry"),e(t[0].contentRect.width)});return a.observe(t.current),e(t.current.getBoundingClientRect().width),()=>{a.disconnect()}},[e]),t}(e=>E(e)),I=(0,s.useRef)(null),L=(0,s.useRef)(null),[T,P]=(0,s.useState)(!1),V=(0,s.useCallback)(()=>{var e,t;(null==(e=L.current)?void 0:e.complete)&&(null==(t=I.current)?void 0:t.complete)&&P(!0)},[]);(0,s.useEffect)(()=>(V(),()=>{P(!1)}),[i,x,V]),(0,s.useEffect)(()=>{L.current&&I.current&&0!==_&&T&&O(function(e,t,a,r){return e*("taller"===r?Math.max(t,a):Math.min(t,a))}(_,c(L.current),c(I.current),t))},[_,T,t]),(0,s.useEffect)(()=>{if(!A.current||!T)return;let e=e=>{let t,a;if(!A.current)return;let r=A.current.getBoundingClientRect();if(e instanceof TouchEvent){let r=e.touches[0];o(r),t=r.clientX,a=r.clientY}else t=e.clientX,a=e.clientY;let s=N?t-r.left:a-r.top,n=b/2,i=N?_-n:R-n,l=Math.min(Math.max(s,n),i)/(N?_:R);S(l),null==m||m(l)},t=t=>{F(!0),"touches"in t||t.preventDefault(),e(t),window.addEventListener("mousemove",e),window.addEventListener("touchmove",e)},a=()=>{F(!1),window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e)},r=A.current;return r.addEventListener("touchstart",t),window.addEventListener("touchend",a),n?(r.addEventListener("mousemove",e),r.addEventListener("mouseleave",a)):(r.addEventListener("mousedown",t),window.addEventListener("mouseup",a)),()=>{r.removeEventListener("touchstart",t),window.removeEventListener("touchend",a),r.removeEventListener("mousemove",e),r.removeEventListener("mouseleave",a),r.removeEventListener("mousedown",t),window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e)}},[T,t,R,_,N,n,b,A]);let z={container:{boxSizing:"border-box",position:"relative",width:"100%",height:"".concat(R,"px"),overflow:"hidden"},rightImage:{clipPath:N?"inset(0px 0px 0px ".concat(_*k,"px)"):"inset(".concat(R*k,"px 0px 0px 0px)"),display:"block",height:"100%",objectFit:"cover",position:"absolute",width:"100%",...f},leftImage:{clipPath:N?"inset(0px ".concat(_*(1-k),"px 0px 0px)"):"inset(0px 0px ".concat(R*(1-k),"px 0px)"),display:"block",height:"100%",objectFit:"cover",position:"absolute",width:"100%",...u},slider:{alignItems:"center",display:"flex",justifyContent:"center",position:"absolute",...N?{cursor:"ew-resize",flexDirection:"column",height:"100%",left:"".concat(_*k-r/2,"px"),top:0,width:"".concat(r,"px")}:{cursor:"ns-resize",flexDirection:"row",height:"".concat(r,"px"),left:0,top:"".concat(R*k-r/2,"px"),width:"100%"}},line:{background:y,boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",flex:"0 1 auto",height:N?"100%":"".concat(b,"px"),width:N?"".concat(b,"px"):"100%"},handleCustom:{alignItems:"center",boxSizing:"border-box",display:"flex",flex:"1 0 auto",height:"auto",justifyContent:"center",width:"auto"},handleDefault:{alignItems:"center",border:"".concat(b,"px solid ").concat(y),borderRadius:"100%",boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",boxSizing:"border-box",display:"flex",flex:"1 0 auto",height:"".concat(r,"px"),justifyContent:"center",width:"".concat(r,"px"),transform:N?"none":"rotate(90deg)"},leftArrow:{border:"inset ".concat(.15*r,"px rgba(0,0,0,0)"),borderRight:"".concat(.15*r,"px solid ").concat(y),height:"0px",marginLeft:"-".concat(.25*r,"px"),marginRight:"".concat(.25*r,"px"),width:"0px"},rightArrow:{border:"inset ".concat(.15*r,"px rgba(0,0,0,0)"),borderLeft:"".concat(.15*r,"px solid ").concat(y),height:"0px",marginRight:"-".concat(.25*r,"px"),width:"0px"},leftLabel:{background:"rgba(0, 0, 0, 0.5)",color:"white",left:N?"5%":"50%",opacity:+!C,padding:"10px 20px",position:"absolute",top:N?"50%":"3%",transform:N?"translate(0,-50%)":"translate(-50%, 0)",transition:"opacity 0.1s ease-out"},rightLabel:{background:"rgba(0, 0, 0, 0.5)",color:"white",opacity:+!C,padding:"10px 20px",position:"absolute",...N?{right:"5%",top:"50%",transform:"translate(0,-50%)"}:{left:"50%",bottom:"3%",transform:"translate(-50%, 0)"},transition:"opacity 0.1s ease-out"},leftLabelContainer:{clipPath:N?"inset(0px ".concat(_*(1-k),"px 0px 0px)"):"inset(0px 0px ".concat(R*(1-k),"px 0px)"),height:"100%",position:"absolute",width:"100%"},rightLabelContainer:{clipPath:N?"inset(0px 0px 0px ".concat(_*k,"px)"):"inset(".concat(R*k,"px 0px 0px 0px)"),height:"100%",position:"absolute",width:"100%"}};return l.jsxs(l.Fragment,{children:[v&&!T&&l.jsx("div",{style:{...z.container},children:v}),l.jsxs("div",{style:{...z.container,display:T?"block":"none"},ref:A,"data-testid":"container",children:[l.jsx("img",{onLoad:()=>V(),alt:p,"data-testid":"right-image",ref:I,src:x,style:z.rightImage}),l.jsx("img",{onLoad:()=>V(),alt:d,"data-testid":"left-image",ref:L,src:i,style:z.leftImage}),l.jsxs("div",{style:z.slider,children:[l.jsx("div",{style:z.line}),a?l.jsx("div",{style:z.handleCustom,children:a}):l.jsxs("div",{style:z.handleDefault,children:[l.jsx("div",{style:z.leftArrow}),l.jsx("div",{style:z.rightArrow})]}),l.jsx("div",{style:z.line})]}),h&&l.jsx("div",{style:z.leftLabelContainer,children:l.jsx("div",{style:z.leftLabel,children:h})}),g&&l.jsx("div",{style:z.rightLabelContainer,children:l.jsx("div",{style:z.rightLabel,children:g})})]})]})};function u(){return(0,r.jsx)("section",{children:(0,r.jsxs)("div",{className:" container mx-auto px-4 py-6 grid grid-cols-1 lg:grid-cols-2 gap-10 items-center",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-4xl text-gray-900 lg:text-5xl font-extrabold leading-tight mb-6",children:["Nothing But ",(0,r.jsx)("br",{}),"The ",(0,r.jsx)("span",{className:"text-orange-600",children:"Best Ingredients"})]}),(0,r.jsx)("p",{className:"text-lg leading-relaxed text-gray-700 max-w-xl mb-10",children:"We believe great food starts with great ingredients. Thatâs why we use only the freshest produce, qual
1ity grains, and carefully sourced proteins for every recipe."})]}),(0,r.jsxs)("div",{className:"relative w-full h-full shadow-md rounded-lg overflow-hidden",children:[(0,r.jsx)(d,{leftImage:"https://i.ibb.co.com/jvm9VWcv/raw-meet-in-bowl-with-some-spices-prepared-for-cook-in-white-background.jpg",rightImage:"https://i.ibb.co.com/5hNKqbQc/mutton-curry-in-bowl-in-white-background-upper-view.jpg",sliderLineColor:"#ffffff",handleSize:40,sliderPositionPercentage:.5}),(0,r.jsx)("span",{className:"absolute top-4 left-4 text-orange-600 font-semibold text-sm bg-white/70 px-2 py-1 rounded",children:"Using..."}),(0,r.jsx)("span",{className:"absolute top-4 right-4 text-orange-600 font-semibold text-sm bg-white/70 px-2 py-1 rounded",children:"You Feed..."})]})]})})}},48567,e=>{"use strict";e.s(["default",()=>s],48567);var t=e.i(43476),a=e.i(71645),r=e.i(1068);let s=()=>{let[e,s]=(0,a.useState)(""),[n,i]=(0,a.useState)({mood:"",timeOfDay:"",age:"",dietaryPreferences:"",budget:"",cuisinePreference:"",healthGoals:""}),[l,o]=(0,a.useState)({timeOfDay:"",suggestionType:""}),[c,d]=(0,a.useState)(!1);(0,a.useEffect)(()=>{d(!0);let e=function(){let e=new Date().getHours(),t="",a="";return e>=5&&e<11?(t="morning",a="breakfast"):e>=11&&e<16?(t="afternoon",a="lunch"):e>=16&&e<21?(t="evening",a="dinner"):(t="night",a="late night"),{timeOfDay:t,suggestionType:a}}();o(e),i(t=>({...t,timeOfDay:e.timeOfDay}))},[]);let{timeOfDay:u,suggestionType:h}=l,[m,x]=(0,a.useState)([]),[p,f]=(0,a.useState)([]),[g,v]=(0,a.useState)(null),[y,b]=(0,a.useState)([]),[w,j]=(0,a.useState)(null),[N,k]=(0,a.useState)(!1),[S,C]=(0,a.useState)(null),[F,_]=(0,a.useState)(!0),[E,R]=(0,a.useState)({}),O=(0,a.useRef)(!1),A=(0,a.useRef)(!1),I={};p.forEach(e=>{(null==e?void 0:e._id)&&(I[e._id]=e)});let L=(0,a.useCallback)(async()=>{if(!O.current){O.current=!0;try{let[e,t]=await Promise.all([fetch("/api/menus",{cache:"no-store"}),fetch("/api/restaurants",{cache:"no-store"})]);if(!e.ok||!t.ok)throw Error("Failed to fetch data");let[a,r]=await Promise.all([e.json(),t.json()]),s=Array.isArray(a)?a:[],n=Array.isArray(r)?r:[];if(x(s),f(n),s.length>0){let e=s.map(e=>e._id);await T(e)}}catch(e){v(e.message)}}},[]),T=async e=>{if(e&&0!==e.length)try{let t=await fetch("/api/menus/reviews/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({menuIds:e})});if(t.ok){let e=await t.json();e.success&&(R(e.ratings),Object.keys(e.ratings).forEach(t=>{sessionStorage.setItem("rating-".concat(t),JSON.stringify(e.ratings[t]))}))}}catch(e){}};(0,a.useEffect)(()=>{u&&c&&(async()=>{await L(),await P()})()},[L,u,c]);let P=async()=>{if(!A.current){A.current=!0;try{let e=await fetch("/api/ai/food-suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userInput:"",context:{timeOfDay:u}})});if(e.ok){let t=await e.json();t.suggestions&&Array.isArray(t.suggestions)&&(b(t.suggestions),j(t.summary),_(!0))}else V()}catch(e){V()}}},V=()=>{var e;if(0===m.length)return;let t=[];switch(h){case"breakfast":t=m.filter(e=>{var t,a;return"Cakes"===e.category||(null==(t=e.title)?void 0:t.toLowerCase().includes("pancake"))||(null==(a=e.title)?void 0:a.toLowerCase().includes("breakfast"))||"Snacks"===e.category&&e.price<300});break;case"lunch":t=m.filter(e=>["Biryani","Noodles","Pasta"].includes(e.category)||"Snacks"===e.category&&e.price>=300&&e.price<=600);break;case"dinner":t=m.filter(e=>["Kebab","Pizza","Sushi"].includes(e.category)||"Snacks"===e.category&&e.price>400);break;default:t=m.filter(e=>e.isSpecialOffer||e.rating>=4)}let a=t.sort((e,t)=>(t.rating||0)-(e.rating||0)).slice(0,8).map((e,t)=>({menuId:e._id||e.id,title:e.title,reason:"Perfect ".concat(h," option for ").concat(u),matchScore:80-5*t,perfectFor:[h,"popular"],restaurantInfo:p.find(t=>t._id===e.restaurantId)||{name:"Local Restaurant"}}));b(a),j({totalSuggestions:a.length,bestMatch:(null==(e=a[0])?void 0:e.title)||"Popular dishes",reasoning:"Great ".concat(h," options for ").concat(u)}),_(!0)},z=async e=>{if(e.trim()){k(!0),_(!1);try{let t=await fetch("/api/ai/food-suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userInput:e,context:{...n,timeOfDay:u}})});if(t.ok){let a=await t.json();a.suggestions&&Array.isArray(a.suggestions)?(b(a.suggestions),j(a.summary)):M(e)}else throw Error("API request failed")}catch(t){M(e)}finally{k(!1)}}},M=e=>{var t;if(!e.trim()||0===m.length)return;
1let a=m.filter(t=>{var a,r,s,n;return(null==(a=t.title)?void 0:a.toLowerCase().includes(e.toLowerCase()))||(null==(r=t.description)?void 0:r.toLowerCase().includes(e.toLowerCase()))||(null==(s=t.cuisine)?void 0:s.toLowerCase().includes(e.toLowerCase()))||(null==(n=t.category)?void 0:n.toLowerCase().includes(e.toLowerCase()))}).slice(0,8).map(t=>({menuId:t._id||t.id,title:t.title,reason:'Matches your search for "'.concat(e,'"'),matchScore:75,perfectFor:["search match"],restaurantInfo:p.find(e=>e._id===t.restaurantId)||{name:"Local Restaurant"}}));b(a),j({totalSuggestions:a.length,bestMatch:(null==(t=a[0])?void 0:t.title)||"No exact match",reasoning:"Found ".concat(a.length,' items matching "').concat(e,'"')})},D=async e=>{C(e),s(e),await z(e),C(null)};return(0,t.jsx)("section",{className:"w-full py-12",children:(0,t.jsxs)("div",{className:"container mx-auto px-4",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsxs)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-800 dark:text-white mb-4",children:["Our ",(0,t.jsx)("span",{className:"text-orange-600",children:"Suggestion"})," for you"]}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-gray-800 dark:text-gray-200 mb-2",children:c?F?"Best Picks for ".concat(h):"Search Results":"Discover Great Food Options"})]}),(0,t.jsxs)("div",{className:"w-full mx-auto mb-8",children:[(0,t.jsx)("div",{className:"text-center mb-6",children:(0,t.jsxs)("h3",{className:"text-xl font-semibold text-gray-800 dark:text-gray-200 mb-3",children:[(0,t.jsx)("span",{className:"text-orange-600",children:"What are you craving?"})," ","Choose from popular categories."]})}),(0,t.jsx)("div",{className:"flex flex-wrap gap-3 justify-center",children:["Best deals today","Spicy & flavorful","Light & healthy","Quick lunch","Low budget options"].map(e=>(0,t.jsx)("button",{type:"button",disabled:S===e,onClick:()=>D(e),className:"px-5 py-3 text-base font-medium rounded-xl bg-white text-gray-700 border-2 border-orange-200 hover:bg-orange-500 hover:text-white hover:border-orange-500 disabled:opacity-50 transition-all duration-200 shadow-sm hover:shadow-md min-w-[140px]",children:S===e?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-orange-500 border-t-transparent rounded-full animate-spin"}),"Loading..."]}):e},e))})]}),(0,t.jsxs)("div",{className:"w-full mx-auto",children:[w&&(0,t.jsx)("div",{className:"text-center mb-8",children:(0,t.jsxs)("p",{className:"text-gray-600 dark:text-gray-300",children:[w.reasoning," ⢠",w.totalSuggestions," ","suggestions found",w.bestMatch&&(0,t.jsxs)("span",{className:"block text-orange-600 font-semibold mt-1",children:["Best match: ",w.bestMatch]})]})}),g&&(0,t.jsxs)("div",{className:"max-w-2xl mx-auto text-center p-6 bg-red-50 rounded-2xl border border-red-200",children:[(0,t.jsx)("p",{className:"text-red-700 font-medium",children:"Failed to load menu data"}),(0,t.jsx)("p",{className:"text-red-600 text-sm mt-1",children:g})]}),y&&y.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:y.map((e,a)=>{var s,n,i;let l=(e=>{if(!e)return null;let t=e.toString();return m.find(e=>{var a;return(null==(a=(null==e?void 0:e._id)||(null==e?void 0:e.id))?void 0:a.toString())===t})})(e.menuId);return l?(0,t.jsx)("div",{className:"h-full",children:(0,t.jsx)(r.default,{menu:l,restaurant:I[l.restaurantId],ratingData:E[l._id]||{avg:null,count:0}})},"".concat(e.menuId,"-").concat(a)):(0,t.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-lg border border-gray-200 hover:shadow-xl transition-all duration-300 h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,t.jsx)("h4",{className:"text-xl font-bold text-gray-900",children:e.title}),(0,t.jsxs)("span",{className:"px-2 py-1 bg-orange-100 text-orange-700 text-xs font-medium rounded-full",children:[e.matchScore,"% match"]})]}),(0,t.jsx)("p",{className:"text-gray-600 mb-4 text-sm flex-grow",children:e.reason}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-gray-500",children:"Restaurant:"}),(0,t.jsx)("span",{className:"font-medium text-gray-900",children:(null==(s=e.restaurantInfo)?void 0:s.name)||"Local Restaurant"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-gray-500",children:"Delivery:"}),(0,t.jsx)("span",{className:"font-medium text-gray-900",children:(null==(n=e.restaurantInfo)?void 0:n.estimatedDeliveryTime)||"30-40 min"})]})]}),(0,t.jsx)("div",{className:"mt-4 flex flex-wrap gap-1",children:null==(i=e.perfectFor)?void 0:i.slice(0,3).map((e,a)=>(0,t.jsx)("span",{className:"px-2 py-1 bg-gray-100 text-gray-700 text-xs rounded-full",children:e},a))})]},"fallback-".concat(a))})}):!N&&m.length>0&&(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"text-gray-400 text-6xl mb-4",children:"ð½ï¸"}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-600 mb-2",children:"No suggestions foun
1d"}),(0,t.jsx)("p",{className:"text-gray-500",children:"Try selecting different categories to find more options."})]}),N&&(0,t.jsx)("div",{className:"flex justify-center items-center py-12",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 border-4 border-orange-500 border-t-transparent rounded-full animate-spin"}),(0,t.jsx)("p",{className:"text-gray-600",children:"Finding the perfect meals for you..."})]})}),0===m.length&&!g&&!N&&(0,t.jsx)("div",{className:"flex justify-center items-center py-12",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 border-4 border-orange-500 border-t-transparent rounded-full animate-spin"}),(0,t.jsx)("p",{className:"text-gray-600",children:"Loading food options..."})]})})]})]})})}},59219,e=>{"use strict";e.s(["default",()=>y],59219);var t=e.i(43476),a=e.i(80401);e.i(41983);var r=e.i(72225),s=e.i(15208),s=s,n=e.i(46932),i=e.i(88653),l=e.i(71645),o=e.i(18566),c=e.i(55487),d=e.i(52313);let u=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#FF7E8B",width:"20",height:"20",viewBox:"0 0 20 20",className:"mr-2 flex-shrink-0",children:(0,t.jsx)("path",{d:"M10.2 0.42c-4.5 0-8.2 3.7-8.2 8.3 0 6.2 7.5 11.3 7.8 11.6 0.2 0.1 0.3 0.1 0.4 0.1s0.3 0 0.4-0.1c0.3-0.2 7.8-5.3 7.8-11.6 0.1-4.6-3.6-8.3-8.2-8.3zM10.2 11.42c-1.7 0-3-1.3-3-3s1.3-3 3-3c1.7 0 3 1.3 3 3s-1.3 3-3 3z"})}),h=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#4F4F4F",width:"12",height:"12",viewBox:"0 0 20 20",className:"flex-shrink-0",children:(0,t.jsx)("path",{d:"M20 5.42l-10 10-10-10h20z"})}),m=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#828282",width:"18",height:"18",viewBox:"0 0 20 20",className:"mr-2 flex-shrink-0",children:(0,t.jsx)("path",{d:"M19.78 19.12l-3.88-3.9c1.28-1.6 2.080-3.6 2.080-5.8 0-5-3.98-9-8.98-9s-9 4-9 9c0 5 4 9 9 9 2.2 0 4.2-0.8 5.8-2.1l3.88 3.9c0.1 0.1 0.3 0.2 0.5 0.2s0.4-0.1 0.5-0.2c0.4-0.3 0.4-0.8 0.1-0.1zM1.5 9.42c0-4.1 3.4-7.5 7.5-7.5s7.48 3.4 7.48 7.5-3.38 7.5-7.48 7.5c-4.1 0-7.5-3.4-7.5-7.5z"})}),x=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#FFFFFF",width:"16",height:"16",viewBox:"0 0 20 20",className:"flex-shrink-0",children:(0,t.jsx)("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})}),p=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"white",width:"24",height:"24",viewBox:"0 0 24 24",className:"ml-2 flex-shrink-0",children:(0,t.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})}),f=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#FFFFFF",width:"18",height:"18",viewBox:"0 0 24 24",className:"flex-shrink-0",children:(0,t.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"})}),g=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#4CAF50",width:"18",height:"18",viewBox:"0 0 24 24",className:"flex-shrink-0 animate-pulse",children:(0,t.jsx)("path",{d:"M12 2C13.1 2 14 2.9 14 4V12C14 13.1 13.1 14 12 14S10 13.1 10 12V4C10 2.9 10.9 2 12 2ZM17 12C17 14.8 14.8 17 12 17S7 14.8 7 12H5C5 15.9 8.1 19 12 19S19 15.9 19 12H17Z"})}),v=[{image:"/banner1.webp",title:(0,t.jsxs)(t.Fragment,{children:["Endless",(0,t.jsx)("span",{className:"text-orange-600",children:" Choices, Delivered "}),"Fast"]}),description:"From burgers to biryani, pizza to pasta - discover new favorites and old classics with FastFeast delivery."},{image:"/banner2.webp",title:(0,t.jsxs)(t.Fragment,{children:["Craving Something",(0,t.jsx)("span",{className:"text-orange-600",children:" Delicious?"})]}),description:"Get your favorite meals delivered in minutes. From local favorites to international cuisine, FastFeast brings the feast to you!"},{image:"/banner3.webp",title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-orange-600",children:"Fast"})," Food,"," ",(0,t.jsx)("span",{className:"text-orange-600",children:"Feast"})," Quality"]}),description:"Experience the perfect blend of speed and quality. Fresh ingredients, amazing flavors, delivered when you're hungry."}],y=()=>{let e=(0,o.useRouter)(),y=(0,c.useDispatch)(),{searchQuery:b,location:w}=(0,c.useSelector)(e=>e.filters),[j,N]=(0,l.useState)(!1),[k,S]=(0,l.useState)(!1),[C,F]=(0,l.useState)(!1),[_,E]=(0,l.useState)(""),[R,O]=(0,l.useState)(0),A=(0,l.useRef)(null),I=(0,l.useRef)(null),L=(0,l.useRef)(null),T=(0,l.useMemo)(()=>["Dhanmondi","Mirpur","Uttara","Banani","Gulshan"],[]);(0,l.useEffect)(()=>{let e=!0,t=window.SpeechRecognition||window.webkitSpeechRecognition;
1return e&&F(!!t),t&&e&&(A.current=new t,A.current.continuous=!1,A.current.interimResults=!0,A.current.lang="en-US",A.current.onresult=t=>{if(!e)return;let a=Array.from(t.results).map(e=>e[0].transcript).join("");E(a),y((0,d.setSearchQuery)(a))},A.current.onend=()=>{e&&(S(!1),E(""))},A.current.onerror=t=>{e&&(S(!1),E(""))}),()=>{if(e=!1,A.current){try{A.current.stop()}catch(e){}A.current=null}}},[y]);let P=(0,l.useCallback)(e=>{y((0,d.setLocation)(e)),N(!1)},[y]),V=(0,l.useCallback)(t=>{("keydown"!==t.type||"Enter"===t.key)&&(b||w)&&e.push("/menus")},[e,b,w]),z=(0,l.useCallback)(()=>{y((0,d.clearFilters)()),e.push("/menus")},[y,e]),M=(0,l.useCallback)(()=>{y((0,d.setSearchQuery)(""))},[y]),D=(0,l.useCallback)(()=>{y((0,d.setLocation)(""))},[y]),B=(0,l.useCallback)(()=>{if(A.current&&!k)try{A.current.start(),S(!0),E("")}catch(e){S(!1)}},[k]),q=(0,l.useCallback)(()=>{A.current&&k&&(A.current.stop(),S(!1))},[k]),U=(0,l.useCallback)(()=>{k?q():B()},[k,B,q]);(0,l.useEffect)(()=>{let e=e=>{I.current&&!I.current.contains(e.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let H=(0,l.useCallback)(()=>{window.scrollTo({top:window.innerHeight,behavior:"smooth"})},[]),W=(0,l.useMemo)(()=>b||w,[b,w]);return(0,l.useEffect)(()=>()=>{L.current&&(L.current.destroy(!0,!0),L.current=null)},[]),(0,t.jsxs)("section",{className:"relative h-screen w-full overflow-hidden",children:[(0,t.jsxs)(a.Swiper,{spaceBetween:30,centeredSlides:!0,effect:"fade",fadeEffect:{crossFade:!0},autoplay:{delay:5e3,disableOnInteraction:!1},speed:1200,modules:[r.Autoplay,s.default],className:"h-full w-full",onSlideChange:e=>O(e.activeIndex),onSwiper:e=>L.current=e,children:[" ",v.map((e,r)=>(0,t.jsxs)(a.SwiperSlide,{className:"relative",children:[(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,t.jsx)(n.motion.div,{className:"w-full h-full bg-cover bg-center",style:{backgroundImage:"url(".concat(e.image,")")},initial:{scale:1.1},animate:{scale:1},transition:{duration:10,ease:"easeOut"}}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/30 to-black/20"})]}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-4",children:[(0,t.jsx)(i.AnimatePresence,{mode:"wait",children:R===r&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50},transition:{duration:.8},className:"text-center mb-8",children:[(0,t.jsx)(n.motion.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-4 leading-tight text-white",children:e.title}),(0,t.jsx)(n.motion.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"mb-6 opacity-90 text-white max-w-2xl mx-auto",children:e.description})]},"content-".concat(r))}),(0,t.jsxs)("div",{className:"w-full max-w-3xl",children:[(0,t.jsxs)("div",{className:"flex w-full items-center rounded-lg bg-orange-500/50 backdrop-blur-sm p-3 shadow-lg",children:[(0,t.jsxs)("div",{className:"relative w-2/5",ref:I,children:[(0,t.jsxs)("div",{className:"flex items-center pr-2 cursor-pointer",onClick:()=>N(!j),children:[(0,t.jsx)(u,{}),(0,t.jsx)("input",{type:"text",placeholder:"Select Location",value:w,readOnly:!0,className:"w-full bg-transparent text-sm text-white outline-none placeholder:text-white cursor-pointer"}),(0,t.jsx)(h,{})]}),j&&(0,t.jsx)("div",{className:"absolute top-full mt-2 w-full rounded-md bg-orange-500/90 shadow-lg z-10 border border-orange-500/30",children:(0,t.jsx)("ul",{children:T.map(e=>(0,t.jsx)("li",{onClick:()=>P(e),className:"px-4 py-2 text-sm text-white hover:bg-orange-600 cursor-pointer",children:e},e))})})]}),(0,t.jsx)("div",{className:"h-6 border-l border-gray-300"}),(0,t.jsxs)("div",{className:"flex flex-1 items-center pl-4",children:[(0,t.jsx)(m,{}),(0,t.jsx)("input",{type:"text",placeholder:"Search for restaurant, cuisine or a dish",value:b,onChange:e=>y((0,d.setSearchQuery)(e.target.value)),onKeyDown:V,className:"w-full bg-transparent text-sm text-white outline-none placeholder:text-white"}),C&&(0,t.jsx)("button",{onClick:U,className:"ml-2 p-1 rounded-full transition-all duration-300 ".concat(k?"bg-green-500 hover:bg-green-600":"bg-white/20 hover:bg-white/30"),"aria-label":k?"Stop listening":"Start voice search",children:k?(0,t.jsx)(g,{}):(0,t.jsx)(f,{})})]}),W&&(0,t.jsx)("button",{onClick:()=>y((0,d.clearFilters)()),className:"ml-2 p-2 bg-white/20 rounded-full hover:bg-white/30 transition-colors","aria-label":"Clear filters",children:(0,t.jsx)(x,{})})]}
1),k&&(0,t.jsx)("div",{className:"mt-2 text-center",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-green-500/20 rounded-full border border-green-500/30",children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),(0,t.jsxs)("p",{className:"text-green-300 text-sm font-medium",children:["Listening... ",_&&'"'.concat(_,'"')]}),(0,t.jsx)("button",{onClick:q,className:"text-green-300 hover:text-white text-xs underline",children:"Stop"})]})}),W&&!k&&(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2 justify-center",children:[b&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-3 py-1 bg-white/20 rounded-full text-white text-sm",children:[(0,t.jsxs)("span",{children:["Search: ",b]}),(0,t.jsx)("button",{onClick:M,className:"ml-1","aria-label":"Clear search",children:(0,t.jsx)(x,{})})]}),w&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-3 py-1 bg-white/20 rounded-full text-white text-sm",children:[(0,t.jsxs)("span",{children:["Location: ",w]}),(0,t.jsx)("button",{onClick:D,className:"ml-1","aria-label":"Clear location",children:(0,t.jsx)(x,{})})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 mt-8 justify-center",children:[(b||w)&&(0,t.jsx)("button",{onClick:V,className:"bg-green-500 hover:bg-green-600 text-white font-semibold py-3 px-8 rounded-full transition-all duration-300 transform hover:scale-105 shadow-lg cursor-pointer",children:"Search Now"}),(0,t.jsxs)("button",{onClick:z,className:"relative inline-flex cursor-pointer items-center px-12 py-3 overflow-hidden text-lg font-medium text-orange-600 border-2 border-orange-600 rounded-full hover:text-white group hover:bg-gray-50",children:[(0,t.jsx)("span",{className:"absolute left-0 block w-full h-0 transition-all bg-orange-600 opacity-100 group-hover:h-full top-1/2 group-hover:top-0 duration-500 ease"}),(0,t.jsx)("span",{className:"absolute right-0 flex items-center justify-start w-10 h-10 duration-300 transform translate-x-full group-hover:translate-x-0 ease",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})}),(0,t.jsx)("span",{className:"relative",children:"Explore Menu"})]})]})]})]},r))]}),(0,t.jsx)("div",{className:"absolute bottom-4 left-1/2 z-10 -translate-x-1/2 flex animate-bounce cursor-pointer items-center",onClick:H,children:(0,t.jsxs)("div",{className:"text-sm text-white xl:text-base 2xl:text-lg flex items-center",children:["Scroll down",(0,t.jsx)(p,{})]})})]})}},69093,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return c}});let r=e.r(43476),s=e.r(71645),n=e.r(67585),i=e.r(52157);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},a=(0,s.lazy)(()=>t.loader().then(l)),c=t.loading;function d(e){let l=c?(0,r.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?s.Suspense:s.Fragment,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(a,{...e})]}):(0,r.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(a,{...e})});return(0,r.jsx)(d,{...o?{fallback:l}:{},children:u})}return d.displayName="LoadableComponent",d}},70703,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return s}});let r=e.r(55682)._(e.r(69093));function s(e,t){var a;let s={};"function"==typeof e&&(s.loader=e);let n={...s,...t};return(0,r.default)({...n,modules:null==(a=n.loadableGenerated)?void 0:a.modules})}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},20353,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476),a=e.i(70703),r=e.i(85923);let s=()=>(0,t.jsx)("div",{className:"min-h-[300px] flex items-center justify-center bg-gray-50/50 rounded-lg",children:(0,t.jsx)(r.default,{size:"md",variant:"elegant",showText:!1,
1className:"bg-transparent"})}),n=(0,a.default)(()=>e.A(247),{loadableGenerated:{modules:[71197]},ssr:!1,loading:()=>(0,t.jsx)(s,{})});function i(){return(0,t.jsx)(n,{})}},55635,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476),a=e.i(70703),r=e.i(85923);let s=()=>(0,t.jsx)("div",{className:"min-h-[300px] flex items-center justify-center bg-gray-50/50 rounded-lg",children:(0,t.jsx)(r.default,{size:"md",variant:"elegant",showText:!1,className:"bg-transparent"})}),n=(0,a.default)(()=>e.A(7207),{loadableGenerated:{modules:[66822]},ssr:!1,loading:()=>(0,t.jsx)(s,{})});function i(){return(0,t.jsx)(n,{})}},99,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(43476),a=e.i(70703),r=e.i(85923);let s=()=>(0,t.jsx)("div",{className:"min-h-[500px] flex items-center justify-center bg-orange-50",children:(0,t.jsx)(r.default,{size:"md",variant:"elegant",showText:!1})}),n=(0,a.default)(()=>e.A(68486),{loadableGenerated:{modules:[71216]},ssr:!1,loading:()=>(0,t.jsx)(s,{})});function i(){return(0,t.jsx)(n,{})}},91910,e=>{"use strict";e.s(["default",()=>s]);var t=e.i(43476),a=e.i(71645),r=e.i(1068);function s(e){let{specials:s,restaurants:n}=e,[i,l]=(0,a.useState)({}),o=(0,a.useMemo)(()=>{let e=Object.create(null);return(n||[]).forEach(t=>{let a=(null==t?void 0:t._id)||(null==t?void 0:t.id);a&&(e[a]=t)}),e},[n]);return(0,a.useEffect)(()=>{let e=(s||[]).map(e=>null==e?void 0:e._id).filter(Boolean);if(!e.length)return;let t=!1;return(async()=>{try{let a=await fetch("/api/menus/reviews/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({menuIds:e})});if(!a.ok)return;let r=await a.json();!t&&(null==r?void 0:r.success)&&(null==r?void 0:r.ratings)&&l(r.ratings)}catch(e){}})(),()=>{t=!0}},[s]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{children:"\n .scrollbar-hide::-webkit-scrollbar { display: none; }\n .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }\n"}),(0,t.jsx)("div",{className:" w-full lg:w-1/2 lg:max-h-[calc(100vh-2rem)] overflow-y-auto lg:overflow-y-auto scrollbar-hide pr-1 right-section ","data-lenis-prevent":!0,style:{WebkitOverflowScrolling:"touch"},role:"region","aria-label":"Special offer menus",children:(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 pb-4",children:(null==s?void 0:s.length)?s.map(e=>{var a,s;return(0,t.jsx)(r.default,{menu:e,restaurant:o[null==e?void 0:e.restaurantId]||o[null==e||null==(a=e.restaurant)?void 0:a._id]||o[null==e||null==(s=e.restaurant)?void 0:s.id]||o["string"==typeof(null==e?void 0:e.restaurant)?e.restaurant:""]||null,ratingData:i[e._id]||{avg:null,count:0}},e._id)}):(0,t.jsx)("p",{className:"text-gray-500 text-center col-span-2",children:"No special offers available right now."})})})]})}},247,e=>{e.v(t=>Promise.all(["static/chunks/80f7d174cdf4cd06.css","static/chunks/e98329388ed2120e.js"].map(t=>e.l(t))).then(()=>t(71197)))},7207,e=>{e.v(t=>Promise.all(["static/chunks/6e7a92b7d4f1c4d5.js"].map(t=>e.l(t))).then(()=>t(66822)))},68486,e=>{e.v(t=>Promise.all(["static/chunks/73b98efa26bb3502.js"].map(t=>e.l(t))).then(()=>t(71216)))}]);
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.