1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7219],{1753:(e,t,a)=>{"use strict";a.d(t,{$:()=>s,X:()=>r});let s=e=>{let t="number"==typeof e?e:parseFloat(e||0);return new Intl.NumberFormat("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2}).format(t)},r=e=>{if(!e)return"";let t=e.replace(/\D/g,"");return t.length<=10?t.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{4})(\d)/,"$1-$2"):t.slice(0,11).replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{5})(\d)/,"$1-$2")}},3279:(e,t,a)=>{"use strict";var s=a(1463);a(3333);var r=a(2115),i=r&&"object"==typeof r&&"default"in r?r:{default:r},n=void 0!==s&&s.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,s=void 0===a?"stylesheet":a,r=t.optimizeForSpeed,i=void 0===r?n:r;c(l(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",c("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="u">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,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(n||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"),"u"<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 n||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},a.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var a="u">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(s){n||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 s=this._tags[e];c(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},a.deleteRule=function(e){if("u"<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,"u">
1typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},a.cssRules=function(){var e=this;return"u"<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 s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var r=document.head||document.getElementsByTagName("head")[0];return a?r.insertBefore(s,a):r.appendChild(s),s},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(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},x={};function u(e,t){if(!t)return"jsx-"+e;var a=String(t),s=e+a;return x[s]||(x[s]="jsx-"+d(e+"-"+a)),x[s]}function h(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var a=e+t;return x[a]||(x[a]=t.replace(/__jsx-style-dynamic-selector/g,e)),x[a]}var m=function(){function e(e){var t=void 0===e?{}:e,a=t.styleSheet,s=void 0===a?null:a,r=t.optimizeForSpeed,i=void 0!==r&&r;this._sheet=s||new o({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),s&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),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()),"u">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),s=a.styleId,r=a.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var i=r.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=i,this._instancesCounts[s]=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 s=this._fromServer&&this._fromServer[a];s?(s.parentNode.removeChild(s),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],s=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:a.nonce?a.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,a=e.dynamic,s=e.id;if(a){var r=u(s,a);return{styleId:r,rules:Array.isArray(t)?t.map(function(e){return h(r,e)}):[h(r,t)]}}return{styleId:u(s),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=r.createContext(null);p.displayName="StyleSheetContext";var f=i.default.useInsertionEffect||i.default.useLayoutEffect,g="u">typeof window?new m:void 0;function b(e){var t=g||r.useContext(p);return t&&("u"<typeof window?t.add(e):f(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 u(e[0],e[1])}).join(" ")},t.style=b},3292:(e,t,a)=>{Promise.resolve().then(a.bind(a,9491))},3333:()=>{},5767:(e,t,a)=>{"use strict";a.d(t,{CartProvider:()=>n,_:()=>l});var s=a(5155),r=a(2115);let i=(0,r.createContext)();function n({children:e}
1){let[t,a]=(0,r.useState)([]),[l,o]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=localStorage.getItem("viana_cart");if(e)try{a(JSON.parse(e))}catch(e){console.error("Error loading cart from localStorage:",e)}o(!0)},[]),(0,r.useEffect)(()=>{l&&localStorage.setItem("viana_cart",JSON.stringify(t))},[t,l]);let c=e=>{a(t=>t.filter(t=>t.id!==e))},d=t.reduce((e,t)=>e+t.quantity,0),x=t.reduce((e,t)=>e+t.price*t.quantity,0);return(0,s.jsx)(i.Provider,{value:{cart:t,addToCart:e=>{a(t=>t.find(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,quantity:t.quantity+1}:t):[...t,{...e,quantity:1}])},removeFromCart:c,updateQuantity:(e,t)=>{t<=0?c(e):a(a=>a.map(a=>a.id===e?{...a,quantity:t}:a))},clearCart:()=>{a([])},cartCount:d,cartTotal:x},children:e})}function l(){let e=(0,r.useContext)(i);if(!e)throw Error("useCart must be used within a CartProvider");return e}},9092:(e,t,a)=>{"use strict";e.exports=a(3279).style},9491:(e,t,a)=>{"use strict";a.d(t,{default:()=>m});var s=a(5155),r=a(2115),i=a(8500),n=a.n(i),l=a(5772),o=a(5767),c=a(1753),d=a(9092),x=a.n(d);function u({items:e,initialIndex:t,onClose:a,onAddToCart:i,onStoryChange:n,onNextCategory:d,onPrevCategory:h,onOpenDetails:m}){var p,f;let g,{cartCount:b}=(0,o._)(),[v,w]=(0,r.useState)(e),[j,y]=(0,r.useState)(t),[N,k]=(0,r.useState)(t);(e!==v||t!==j)&&(w(e),y(t),k(t));let[_,C]=(0,r.useState)(0),[S,z]=(0,r.useState)(!1),[$,R]=(0,r.useState)(!0),[M,E]=(0,r.useState)([]),[L,F]=(0,r.useState)(!1),P=(0,r.useRef)(null),T=(0,r.useRef)(null),I=(0,r.useRef)(0),A=(0,r.useRef)(0),V=(0,r.useRef)(0),B=(0,r.useRef)(0),D=(0,r.useRef)(!1),q=e[N]||e[0]||{},O=q.video_url||q.video||q.imagem&&(q.imagem.endsWith(".mp4")||q.imagem.endsWith(".webm")||q.imagem.endsWith(".mov")),W=q.video_url||q.video||(q.imagem&&(q.imagem.endsWith(".mp4")||q.imagem.endsWith(".webm")||q.imagem.endsWith(".mov"))?q.imagem:""),H=W.startsWith("/")||W.startsWith("http")?W:`/images/itens/${W}`;(0,r.useEffect)(()=>{C(0),F(!1),n&&n(N)},[N,n]),(0,r.useEffect)(()=>{if(S){P.current&&clearInterval(P.current),T.current&&T.current.pause();return}T.current&&T.current.play().catch(()=>{});let e=Date.now()-_/100*6e3;return P.current=setInterval(()=>{let t=Math.min((Date.now()-e)/6e3*100,100);C(t),t>=100&&(clearInterval(P.current),G())},50),()=>{P.current&&clearInterval(P.current)}},[N,S,_]);let U=()=>{let e=V.current-I.current,t=B.current-A.current,s=Math.abs(e),r=Math.abs(t);s>r&&s>55?(D.current=!0,e>0?h&&(h()||C(0)):d&&(d()||a())):r>s&&r>55&&(D.current=!0,t<0&&X({stopPropagation:()=>{},clientX:window.innerWidth/2,clientY:window.innerHeight-120}))},G=()=>{N<e.length-1?k(N+1):d&&d()||a()},X=e=>{e.stopPropagation(),i({id:q.id,nome:q.nome,price:q.preco,codigo:q.codigo}),F(!0);let t=window.innerWidth/2,a=window.innerHeight-100;void 0!==e.clientX&&0!==e.clientX?(t=e.clientX,a=e.clientY):e.changedTouches&&e.changedTouches[0]?(t=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY):e.touches&&e.touches[0]&&(t=e.touches[0].clientX,a=e.touches[0].clientY);let s=Array.from({length:12}).map((e,s)=>{let r=Math.PI/180*(30*s+20*Math.random()-10),i=80+120*Math.random(),n=Math.cos(r)*i,l=Math.sin(r)*i-100;return{id:Date.now()+s,x:t,y:a,scale:.5+.8*Math.random(),targetX:n,targetY:l}});E(e=>[...e,...s]),setTimeout(()=>{E(e=>e.filter(e=>!s.find(t=>t.id===e.id)))},1200),setTimeout(()=>{F(!1)},1500)},Y=(g=(p=q.categoria_nome)?p.toLowerCase():"").includes("vinho")||g.includes("tinto")||g.includes("branco")?"from-rose-950 via-slate-900 to-zinc-950":g.includes("sobremesa")||g.includes("doce")?"from-amber-900 via-slate-900 to-neutral-950":"from-[#101b3b] via-[#253c7f]/60 to-[#0e162c]",J=(f=q.id)?Math.abs("number"==typeof f?f:parseInt(f.toString().replace(/\D/g,""),10)||0)%4:0;return(0,s.jsxs)("div",{onTouchStart:e=>{I.current=e.touches[0].clientX,A.current=e.touches[0].clientY,V.current=e.touches[0].clientX,B.current=e.touches[0].clientY,z(!0)},onTouchMove:e=>{V.current=e.touches[0].clientX,B.current=e.touches[0].clientY},onTouchEnd:()=>{z(!1),U()},onMouseDown:e=>{I.current=e.clientX,A.current=e.clientY,V.current=e.clientX,B.current=e.clientY,z(!0)},onMouseMove:e=>{S&&(V.current=e.clientX,B.current=e.clientY)},onMouseUp:()=>{z(!1),U()},className:"jsx-81867a4219d2f9c3 fixed inset-0 z-[10000] bg-black flex flex-col items-center justify-center select-none animate-fade",children:[(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 relative w-full max-w-[450px] h-full md:h-[92vh] md:rounded-[40px] md:shadow-[0_25px_60px_-15px_rgba(0,0,0,0.8)] overflow-hidden border border-neutral-900 bg-neutral-950 flex flex-col",children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute top-3 left-0 right-0 px-3 flex gap-[3px] z-30 pointer-events-none",children:e.map((e,t)=>(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 h-[2px] flex-1 bg-white/30 rounded-full overflow-hidden",children:(0,s.jsx)("div",{style:{width:t===N?`${_}
1%`:t<N?"100%":"0%",transitionDuration:t!==N||S?"0ms":"50ms"},className:"jsx-81867a4219d2f9c3 h-full bg-white transition-all ease-linear"})},t))}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 absolute top-6 left-0 right-0 px-4 flex justify-between items-center z-30 text-white pointer-events-none",children:[(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 w-8 h-8 rounded-full border border-white/60 bg-black/30 backdrop-blur-sm p-0.5 overflow-hidden flex items-center justify-center shrink-0 shadow-md",children:(0,s.jsx)("img",{src:"/images/viana-logotipo-white.png",alt:"Viana Logo",className:"jsx-81867a4219d2f9c3 w-full h-auto object-contain scale-110"})}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 flex items-center gap-1.5 text-xs drop-shadow-[0_1px_3px_rgba(0,0,0,0.8)]",children:[(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3 font-extrabold tracking-tight",children:"viana.ilhabela"}),(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3 text-white/60",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3 text-white/60 font-light",children:"2 h"})]})]}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 flex items-center gap-2.5 pointer-events-auto",children:[(0,s.jsx)("button",{type:"button",title:"Mais op\xe7\xf5es",className:"jsx-81867a4219d2f9c3 w-8 h-8 flex items-center justify-center text-white/80 hover:text-white active:scale-90 transition-transform",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-5 h-5 fill-current",children:(0,s.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2.9 2-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",className:"jsx-81867a4219d2f9c3"})})}),O&&(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),R(!$)},title:$?"Ativar som":"Desativar som",className:"jsx-81867a4219d2f9c3 w-8 h-8 flex items-center justify-center text-white/80 hover:text-white transition-transform active:scale-95",children:$?(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-5 h-5 fill-current",children:(0,s.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z",className:"jsx-81867a4219d2f9c3"})}):(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-5 h-5 fill-current",children:(0,s.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z",className:"jsx-81867a4219d2f9c3"})})}),(0,s.jsx)("button",{type:"button",onClick:a,title:"Fechar",className:"jsx-81867a4219d2f9c3 w-8 h-8 flex items-center justify-center text-white/80 hover:text-white active:scale-90 transition-transform cursor-pointer",children:(0,s.jsx)("svg",{strokeWidth:"2.2",viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-5.5 h-5.5 fill-none stroke-current",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12",className:"jsx-81867a4219d2f9c3"})})})]})]}),(0,s.jsxs)("div",{onClick:e=>{if(D.current){D.current=!1;return}let t=window.innerWidth;e.clientX<.3*t?N>0?k(N-1):h&&h()||C(0):G()},className:"jsx-81867a4219d2f9c3 w-full h-full relative flex items-center justify-center cursor-pointer overflow-hidden",children:[q.isCategoryCover?(0,s.jsxs)("div",{className:`jsx-81867a4219d2f9c3 w-full h-full bg-gradient-to-br ${Y} flex flex-col justify-center items-center px-8 text-center text-white relative overflow-hidden`,children:[q.imagem?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{src:`/images/categorias/${q.imagem}`,alt:q.nome,fill:!0,priority:!0,sizes:"100vw",className:"object-cover"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute inset-0 bg-black/60 backdrop-blur-[3px] z-10"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-[200px] h-[200px] rounded-full bg-white/5 blur-2xl top-1/4 -left-10 animate-pulse"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-[250px] h-[250px] rounded-full bg-white/5 blur-3xl bottom-1/4 -right-10 animate-pulse"})]}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 relative z-20 flex flex-col items-center gap-6",children:[(0,s.jsxs)("span",{className:"jsx-81867a4219d2f9c3 text-[#fac612] text-[10px] font-extrabold uppercase tracking-[0.25em] animate-pulse bg-white/10 backdrop-blur-md px-4 py-1.5 rounded-full border border-white/10 shadow-sm flex items-center gap-1.5",children:[(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-3 h-3 fill-current",children:(0,s.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z",className:"jsx-81867a4219d2f9c3"})}),(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3",children:"Categoria"})]}),(0,s.jsx)("h2",{className:"jsx-81867a4219d2f9c3 text-4xl md:text-5xl font-black uppercase tracking-wide leading-tight drop-shadow font-display",children:q.nome}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 w-16 h-[3px] bg-[#fac612] rounded-full"}),q.descricao&&(0,s.jsx)("p",{className:"jsx-81867a4219d2f9c3 text-xs md:text-sm font-light leading-relaxed max-w-[280px] text-white/80 drop-shadow-sm",children:q.descricao}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 mt-8 flex flex-col items-center gap-2",children:(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3 text-[9px] text-white/50 uppercase tracking-widest animate-bounce flex items-center gap-1.5 font-bold",children:"Toque para ver os pratos â"})})]})]}
1):O?(0,s.jsx)("video",{ref:T,src:H,autoPlay:!0,playsInline:!0,muted:$,className:"jsx-81867a4219d2f9c3 w-full h-full object-cover"}):q.imagem?(0,s.jsx)(l.default,{src:`/images/itens/${q.imagem}`,alt:q.nome,fill:!0,priority:!0,sizes:"100vw",className:"object-cover"}):(0,s.jsxs)("div",{className:`jsx-81867a4219d2f9c3 w-full h-full bg-gradient-to-br ${Y} flex flex-col justify-center items-center px-8 text-center text-white relative overflow-hidden`,children:[0===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-72 h-72 rounded-full bg-[#fac612]/20 blur-3xl -top-10 -left-10 animate-pulse transition-all duration-1000"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-80 h-80 rounded-full bg-[#9d396f]/20 blur-3xl -bottom-10 -right-10 animate-pulse delay-700 transition-all duration-1000"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-64 h-64 rounded-full bg-[#253c7f]/30 blur-3xl top-1/3 right-5 animate-pulse delay-300"})]}),1===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute top-1/4 left-1/4 w-3 h-3 rounded-full bg-[#fac612]/60 blur-xs animate-ping duration-1000"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute top-1/3 right-1/4 w-4 h-4 rounded-full bg-amber-300/50 blur-xs animate-pulse duration-700"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute bottom-1/3 left-1/3 w-3.5 h-3.5 rounded-full bg-[#fac612]/70 blur-xs animate-bounce duration-1000"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute bottom-1/4 right-1/3 w-2.5 h-2.5 rounded-full bg-yellow-200/60 blur-xs animate-ping duration-1000"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-96 h-96 rounded-full bg-amber-500/15 blur-3xl top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"})]}),2===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-teal-500/20 via-transparent to-transparent animate-pulse"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-72 h-72 rounded-full bg-teal-400/15 blur-3xl top-1/4 left-10 animate-pulse"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-80 h-80 rounded-full bg-blue-600/20 blur-3xl bottom-1/4 right-5 animate-pulse delay-500"})]}),3===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute inset-0 opacity-15 bg-[radial-gradient(#fac612_1px,transparent_1px)] [background-size:24px_24px]"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-80 h-80 rounded-full bg-[#6ea4d5]/20 blur-3xl -top-10 right-0 animate-pulse"}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute w-72 h-72 rounded-full bg-rose-500/15 blur-3xl bottom-10 left-0 animate-pulse delay-500"})]}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 relative z-20 flex flex-col items-center gap-3 -mt-44",children:(0,s.jsx)("img",{src:"/images/viana-logotipo-white.png",alt:"Viana Praia & Restaurante",className:"jsx-81867a4219d2f9c3 w-36 md:w-44 h-auto object-contain drop-shadow-[0_10px_25px_rgba(0,0,0,0.7)] transition-transform hover:scale-105"})})]}),!q.isCategoryCover&&(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 absolute bottom-20 left-0 right-0 px-4 pb-4 bg-gradient-to-t from-black/80 via-black/30 to-transparent text-white text-left z-10 flex flex-col gap-1.5 pointer-events-none",children:[(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 flex items-center gap-2 mb-0.5",children:[q.categoria_nome&&(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3 text-[9px] font-bold text-[#fac612] bg-white/10 backdrop-blur-sm px-2 py-0.5 rounded uppercase tracking-wider",children:q.categoria_nome}),q.codigo&&(0,s.jsxs)("span",{className:"jsx-81867a4219d2f9c3 text-[9px] font-bold text-white/70 bg-white/10 backdrop-blur-sm px-2 py-0.5 rounded uppercase tracking-wider font-mono",children:["C\xf3d: ",q.codigo]})]}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 flex items-baseline gap-2.5",children:[(0,s.jsx)("h3",{className:"jsx-81867a4219d2f9c3 text-xl md:text-2xl font-black uppercase tracking-wide leading-tight text-white drop-shadow-[0_2px_4px_rgba(0,0,0,0.8)] font-display",children:q.nome}),(0,s.jsxs)("span",{className:"jsx-81867a4219d2f9c3 text-base font-extrabold text-[#fac612] drop-shadow-[0_2px_4px_rgba(0,0,0,0.8)]",children:["R$ ",(0,c.$)(q.preco)]})]}),q.descricao&&(0,s.jsx)("p",{className:"jsx-81867a4219d2f9c3 text-xs text-white/95 font-light leading-relaxed max-w-[85%] drop-shadow-[0_1.5px_3px_rgba(0,0,0,0.8)] line-clamp-3",children:q.descricao})]}),!q.isCategoryCover&&(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 absolute bottom-4 left-0 right-0 px-4 z-30 flex items-center gap-3 w-full",children:[(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 flex-1 relative pointer-events-auto",children:(0,s.jsx)("input",{type:"text",placeholder:"Enviar mensagem...",onKeyDown:e=>{if("Enter"===e.key){let t=encodeURIComponent(`Ol\xe1! Estou vendo o prato "${q.nome}" no card\xe1pio de stories e gostaria de tirar uma d\xfavida: ${e.target.value}`);window.open(`https://wa.me/5512997256596?text=${t}`,"_blank"),e.target.value=""}},onTouchStart:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),className:"jsx-81867a4219d2f9c3 w-full h-11 bg-black/40 backdrop-blur-md border border-white/20 rounded-full px-5 text-sm text-white placeholder:text-white/60 focus:outline-none focus:border-white/40 focus:ring-1 focus:ring-white/20 transition-all font-sans"})}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 flex items-center gap-3 shrink-0 pointer-events-auto",children:[(0,s.jsx)("button",{type:"button",onClick:X,onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),title:"Adicionar ao Carrinho",className:`jsx-81867a4219d2f9c3 w-11 h-11 rounded-full flex items-center justify-center border transition-all duration-300 ${L?"bg-red-500 border-red-500 text-white scale-110 shadow-[0_0_15px_rgba(239,68,68,0.5)]":"bg-black/40 border-white/25 text-white backdrop-blur-md hover:bg-black/60 active:scale-95"}`,children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-5.5 h-5.5 fill-current",children:(0,s.jsx)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",className:"jsx-81867a4219d2f9c3"})})}),(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),m&&m(q)},onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),title:"Ver Detalhes do Prato",className:"jsx-81867a4219d2f9c3 w-11 h-11 rounded-full flex items-center justify-center border bg-black/40 border-white/25 text-white backdrop-blur-md hover:bg-black/60 active:scale-95 transition-all",children:(0,s.jsxs)("svg",{strokeWidth:"2.2",viewBox:"0 0 24 24",className:"jsx-81867a4219d2f9c3 w-5.5 h-5.5 fill-none stroke-white",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 111.083.842L10.5 15.75h3.75",className:"jsx-81867a4219d2f9c3"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9h.008v.008H12V9z",className:"jsx-81867a4219d2f9c3"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z",className:"jsx-81867a4219d2f9c3"})]})}),(0,s.jsxs)("div",{className:"jsx-81867a4219d2f9c3 relative",children:[(0,s.jsx)("button",{type:"button",onClick:()=>{window.dispatchEvent(new CustomEvent("open-cart")),a()},onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),title:"Ver Pedido",className:"jsx-81867a4219d2f9c3 w-11 h-11 rounded-full flex items-center justify-center border bg-black/40 border-white/25 text-white backdrop-blur-md hover:bg-black/60 active:scale-95 transition-all p-2.5",children:(0,s.jsx)("img",{src:"/images/icons/carrinho.png",alt:"Carrinho",className:"jsx-81867a4219d2f9c3 w-full h-full object-contain brightness-0 invert scale-110"})}),b>0&&(0,s.jsx)("span",{className:"jsx-81867a4219d2f9c3 absolute -top-1 -right-1 bg-[#fac612] text-[#253c7f] font-black text-[9px] min-w-[18px] h-[18px] rounded-full flex items-center justify-center border border-black shadow-md shrink-0 aspect-square leading-none",children:b})]})]})]})]})]}),(0,s.jsx)("div",{className:"jsx-81867a4219d2f9c3 absolute inset-0 pointer-events-none z-[10001]",children:M.map(e=>(0,s.jsx)("div",{style:{left:`${e.x}px`,top:`${e.y}px`,"--target-x":`${e.targetX}px`,"--target-y":`${e.targetY}px`,"--scale":e.scale},className:"jsx-81867a4219d2f9c3 absolute text-red-500 text-3xl font-bold animate-heart",children:"â¤ï¸"},e.id))}),(0,s.jsx)(x(),{id:"81867a4219d2f9c3",children:"@keyframes heartFly{0%{transform:translate(-50%,-50%)scale(.3);opacity:1}100%{transform:translate(calc(var(--target-x) - 50%),calc(var(--target-y) - 50%))scale(var(--scale));opacity:0}
1}.animate-heart{animation:heartFly 1.1s cubic-bezier(.1,.8,.3,1)forwards}"})]})}function h({item:e,category:t,categoryItems:a=[],allCategories:i=[],allItemsByCategory:n={},onClose:o,onNavigate:d,onAddToCart:x,onOpenCart:u}){let[m,p]=(0,r.useState)(0),[f,g]=(0,r.useState)(1),[b,v]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{p(0),g(1),v(!1)},[e?.id]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key?o():"ArrowRight"===e.key?C():"ArrowLeft"===e.key&&_()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[e,a]),!e)return null;let w=t?.id>=101,j=t?.id||e?.categoria_id,y=a.findIndex(t=>t.id===e.id),N=a.length,k=i.length>0?i.filter(e=>(n[e.id]||[]).length>0):t?[t]:[],_=()=>{N<=1||d(a[(y-1+N)%N])},C=()=>{N<=1||d(a[(y+1)%N])},S=[];e.imagens&&Array.isArray(e.imagens)&&e.imagens.length>0?S=e.imagens.filter(e=>e&&""!==e.trim()):e.imagem&&""!==e.imagem.trim()&&(S=[e.imagem]),0===S.length&&(S=[w?"default-wine.jpg":"default.jpg"]);let z=S[m]||S[0],$=w&&("default.jpg"===z||"default-wine.jpg"===z)?"/images/categorias/":"/images/itens/",R=e=>{if(!e)return null;try{if(e.trim().startsWith("[")||e.trim().startsWith("{")){let t=JSON.parse(e);if(Array.isArray(t))return t;return[t]}}catch(e){}return e.split(/,|\n/).map(e=>e.trim()).filter(Boolean)},M=R(e.ingredientes),E=R(e.alergenos);return(0,s.jsxs)("div",{className:"fixed inset-0 z-[1000] flex items-center justify-center p-[30px] animate-fade",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/75 backdrop-blur-md transition-opacity",onClick:o}),(0,s.jsxs)("div",{className:"relative w-full max-w-[1020px] h-[calc(100vh-60px)] max-h-[680px] bg-white rounded-[32px] shadow-[0_25px_70px_rgba(0,0,0,0.5)] overflow-hidden flex flex-col z-10 border border-slate-100/60 my-auto",children:[(0,s.jsxs)("div",{className:"bg-gradient-to-r from-[#253c7f] via-[#1c2e63] to-[#121f47] text-white px-4 md:px-6 py-3 flex items-center justify-between shrink-0 border-b border-white/10 gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-none py-1 flex-1 pr-2",children:[k.map(e=>{let t=e.id===j;return(0,s.jsx)("button",{type:"button",onClick:()=>{let t;(t=n[e.id]||[]).length>0&&d(t[0])},className:`px-3.5 py-1.5 rounded-full text-[11px] font-extrabold uppercase tracking-wider whitespace-nowrap transition-all duration-200 shrink-0 cursor-pointer ${t?"bg-[#fac612] text-[#253c7f] shadow-md scale-105 border border-white/40 ring-2 ring-[#fac612]/30":"bg-white/10 hover:bg-white/20 text-white/85 hover:text-white border border-white/10"}`,children:e.nome},e.id)}),N>1&&(0,s.jsxs)("span",{className:"text-[10px] bg-[#60c3ae]/25 text-[#60c3ae] px-2.5 py-1 rounded-full font-mono font-bold border border-[#60c3ae]/30 uppercase tracking-wider shrink-0",children:["Item ",y+1," de ",N]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[N>1&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("button",{type:"button",onClick:_,className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 text-white flex items-center justify-center transition-all active:scale-95 text-xs border border-white/10 cursor-pointer",title:"Prato anterior (â)",children:"â"}),(0,s.jsx)("button",{type:"button",onClick:C,className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 text-white flex items-center justify-center transition-all active:scale-95 text-xs border border-white/10 cursor-pointer",title:"Pr\xf3ximo prato (â)",children:"â¶"})]}),(0,s.jsx)("button",{type:"button",onClick:o,className:"w-9 h-9 rounded-full bg-white/10 hover:bg-white/20 text-white flex items-center justify-center transition-all active:scale-95 border border-white/15 cursor-pointer shrink-0 shadow-xs","aria-label":"Fechar",children:(0,s.jsx)("svg",{className:"w-5 h-5 fill-none stroke-current",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]}),(0,s.jsx)("div",{className:"flex-1 p-6 md:p-8 relative min-h-0 flex flex-col overflow-hidden",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-6 md:gap-8 flex-1 min-h-0 items-stretch",children:[(0,s.jsxs)("div",{className:"md:col-span-6 flex flex-col gap-3 overflow-y-auto",children:[(0,s.jsxs)("div",{className:"relative aspect-[4/3] w-full rounded-2xl overflow-hidden shadow-lg border border-slate-100 bg-slate-50 group",children:[(0,s.jsx)(l.default,{src:`${$}${z}`,alt:e.nome,fill:!0,priority:!0,sizes:"(max-width: 768px) 100vw, 400px",className:"object-cover transition-transform duration-500 group-hover:scale-105",onError:e=>{e.target.srcset="",e.target.src=w?"/images/categorias/vinho.jpg":"/images/itens/default.jpg"}}),S.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>p(e=>(e-1+S.length)%S.length),className:"absolute left-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-black/40 hover:bg-black/75 backdrop-blur-md text-white flex items-center justify-center text-xs transition-all active:scale-95 shadow border border-white/20",title:"Foto anterior",children:"â"}),(0,s.jsx)("button",{type:"button",onClick:()=>p(e=>(e+1)%S.length),className:"absolute right-2 top-1/2 -translate-y-1/2 z-20 w-8 h-8 rounded-full bg-black/40 hover:bg-black/75 backdrop-blur-md text-white flex items-center justify-center text-xs transition-all active:scale-95 shadow border border-white/20",title:"Pr\xf3xima foto",children:"â¶"}),(0,s.jsxs)("div",{className:"absolute top-3 right-3 z-20 bg-black/60 backdrop-blur-md text-white text-[10px] font-bold px-2.5 py-0.5 rounded-full border border-white/20 flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-3 h-3 fill-white",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 15c1.66 0 3-1.34 3-3s-1.34-3
1-3-3-3 1.34-3 3 1.34 3 3 3zm9-9h-3.17L16 4H8L6.17 6H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"})}),(0,s.jsxs)("span",{children:[m+1," / ",S.length]})]})]}),(0,s.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-1.5 z-10",children:[1===e.destaque&&(0,s.jsxs)("span",{className:"bg-[#fac612] text-slate-900 text-[10px] font-black px-2.5 py-0.5 rounded-full shadow flex items-center gap-1",children:[(0,s.jsx)("svg",{className:"w-3 h-3 fill-slate-900",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})}),(0,s.jsx)("span",{children:"Destaque"})]}),1===e.vegano&&(0,s.jsxs)("span",{className:"bg-emerald-500 text-white text-[10px] font-black px-2.5 py-0.5 rounded-full shadow flex items-center gap-1",children:[(0,s.jsx)("svg",{className:"w-3 h-3 fill-white",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66C7.58 17.43 9.4 12.3 17 10V8z"})}),(0,s.jsx)("span",{children:"Vegano"})]})]}),e.codigo&&(0,s.jsxs)("div",{className:"absolute bottom-3 right-3 bg-black/70 backdrop-blur-md text-white font-mono text-[10px] px-2.5 py-0.5 rounded-md border border-white/10 font-bold",children:["C\xf3d: ",e.codigo]})]}),S.length>1&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 pt-1",children:[(0,s.jsxs)("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:["Fotos do Prato (",S.length,"):"]}),(0,s.jsx)("div",{className:"flex items-center gap-2 overflow-x-auto pb-1 scrollbar-none",children:S.map((t,a)=>{let r=a===m;return(0,s.jsx)("button",{type:"button",onClick:()=>p(a),className:`relative w-16 h-16 rounded-xl overflow-hidden shrink-0 transition-all cursor-pointer border-2 ${r?"border-[#253c7f] ring-2 ring-[#253c7f]/30 scale-105 shadow-md":"border-slate-200 opacity-70 hover:opacity-100 hover:scale-100"}`,children:(0,s.jsx)(l.default,{src:`${$}${t}`,alt:`${e.nome} foto ${a+1}`,fill:!0,sizes:"64px",className:"object-cover",onError:e=>{e.target.srcset="",e.target.src=w?"/images/categorias/vinho.jpg":"/images/itens/default.jpg"}})},a)})})]})]}),(0,s.jsxs)("div",{className:"md:col-span-6 flex flex-col h-full text-left justify-between min-h-0",children:[(0,s.jsxs)("div",{className:"shrink-0 pb-1",children:[(0,s.jsx)("span",{className:"text-[11px] font-extrabold text-[#60c3ae] uppercase tracking-wider",children:t?.nome||"Gastronomia Viana"}),(0,s.jsx)("h2",{className:"text-xl md:text-2xl font-extrabold text-[#253c7f] tracking-tight leading-snug mt-1",children:e.nome})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto my-2 pr-1 flex flex-col justify-start gap-3 min-h-0",children:[e.descricao&&(0,s.jsx)("p",{className:"text-slate-600 text-sm leading-relaxed font-normal",children:e.descricao}),e.tempo_preparo&&(0,s.jsxs)("div",{className:"flex items-center gap-2 bg-slate-50 p-2 rounded-xl border border-slate-100 w-fit",children:[(0,s.jsx)("svg",{className:"w-4 h-4 fill-[#253c7f]",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})}),(0,s.jsxs)("span",{className:"text-xs font-bold text-slate-700",children:["Tempo de preparo: ",e.tempo_preparo," min"]})]}),w&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 bg-slate-50 p-3 rounded-2xl border border-slate-100 text-xs text-slate-700",children:[e.pais&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5 fill-[#253c7f]",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Origem:"})," ",e.pais," ",e.regiao?`- ${e.regiao}`:""]})]}),e.uva&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5 fill-[#253c7f]",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Uva:"})," ",e.uva]})]}),e.produtor&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5 fill-[#253c7f]",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M6 3v6c0 2.97 2.16 5.43 5 5.91V19H8v2h8v-2h-3v-4.09c2.84-.48 5-2.94 5-5.91V3H6zm10 4H8V5h8v2z"})}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Produtor:"})," ",e.produtor]})]})]}),(M||E)&&(0,s.jsxs)("div",{className:"flex flex-col gap-2 pt-1",children:[M&&M.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-wider",children:"Ingredientes"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1",children:M.map((e,t)=>(0,s.jsx)("span",{className:"text-[11px] bg-slate-100 text-slate-700 px-2.5 py-0.5 rounded-md font-medium",children:e},t))})]}),E&&E.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-[10px] text-red-400 font-bold uppercase tracking-wider",children:"Al\xe9rgenos"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1",children:E.map((e,t)=>(0,s.jsxs)("span",{className:"text-[11px] bg-red-50 text-red-600 px-2.5 py-0.5 rounded-md font-medium border border-red-100 flex items-center gap-1",children:[(0,s.jsx)("svg",{className:"w-3 h-3 fill-red-600",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M1 21h22L12 2
11 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),(0,s.jsx)("span",{children:e})]},t))})]})]})]}),(0,s.jsxs)("div",{className:"shrink-0 pt-3 border-t border-slate-100 flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2.5",children:[(0,s.jsx)("span",{className:"text-xs font-extrabold text-slate-400 uppercase tracking-wider",children:"VALOR:"}),(0,s.jsxs)("span",{className:"text-2xl md:text-3xl font-black text-[#253c7f]",children:["R$ ",(0,c.$)(e.preco)]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-3",children:[(0,s.jsxs)("div",{className:"h-11 px-2 rounded-2xl bg-slate-100/90 border border-slate-200/80 flex items-center justify-between shadow-inner w-full sm:w-auto shrink-0",children:[(0,s.jsx)("button",{type:"button",onClick:()=>g(e=>Math.max(1,e-1)),className:"w-8 h-8 rounded-xl bg-white hover:bg-slate-200 text-slate-700 flex items-center justify-center font-black text-sm shadow-xs active:scale-95 transition-all",title:"Diminuir",children:"ï¼"}),(0,s.jsx)("span",{className:"w-7 text-center font-black text-[#253c7f] text-sm",children:f}),(0,s.jsx)("button",{type:"button",onClick:()=>g(e=>e+1),className:"w-8 h-8 rounded-xl bg-white hover:bg-slate-200 text-slate-700 flex items-center justify-center font-black text-sm shadow-xs active:scale-95 transition-all",title:"Aumentar",children:"ï¼"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{x(e,f),v(!0),setTimeout(()=>{v(!1)},3500)},className:"w-full sm:flex-1 h-11 px-6 bg-[#253c7f] hover:bg-[#1c2e63] active:scale-[0.98] text-white font-extrabold text-xs uppercase tracking-wider rounded-2xl shadow-[0_4px_14px_rgba(37,60,127,0.3)] transition-all flex items-center justify-center gap-2.5 cursor-pointer",children:[(0,s.jsx)("svg",{className:"w-4 h-4 fill-current",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})}),(0,s.jsx)("span",{children:"ADICIONAR AO CARRINHO"})]})]})]}),b&&(0,s.jsxs)("div",{className:"mt-2 bg-emerald-600 text-white font-bold text-xs p-3 rounded-xl shadow-md flex items-center justify-between animate-fade shrink-0",children:[(0,s.jsxs)("span",{children:["â ",f,"x â",e.nome,"â adicionado!"]}),(0,s.jsx)("button",{type:"button",onClick:()=>{o(),u()},className:"underline font-extrabold text-[#fac612] hover:opacity-90 ml-2 cursor-pointer",children:"Ver Carrinho \uD83D\uDED2 â"})]})]})]})}),N>1&&(0,s.jsxs)("div",{className:"bg-slate-50 border-t border-slate-100 px-6 py-3.5 flex items-center justify-between text-xs shrink-0",children:[(0,s.jsx)("button",{type:"button",onClick:_,className:"flex items-center gap-1.5 font-extrabold text-[#253c7f] hover:text-[#1a2d64] transition-colors",children:"â Prato Anterior"}),(0,s.jsx)("span",{className:"text-slate-400 font-medium hidden sm:inline text-[11px]",children:"Use as setas do teclado (â â¶) para navegar pelos pratos"}),(0,s.jsx)("button",{type:"button",onClick:C,className:"flex items-center gap-1.5 font-extrabold text-[#253c7f] hover:text-[#1a2d64] transition-colors",children:"Pr\xf3ximo Prato â¶"})]})]})]})}function m({categories:e,items:t,initialActive:a,whatsappNumber:i,deliveryConfigs:d}){let x,p,f,{cart:g,addToCart:b,removeFromCart:v,updateQuantity:w,cartCount:j,cartTotal:y,clearCart:N}=(0,o._)(),k=e=>e?e.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"):"",_=(e,t,a)=>{try{window.history.replaceState(e,t,a)}catch(e){console.warn("History replaceState blocked:",e)}},[C,S]=(0,r.useState)(()=>{if(a){let t=a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),s=e.find(e=>k(e.nome)===t);if(s)return s.id>=101?"wine":"menu"}return"menu"}),[z,$]=(0,r.useState)(()=>{if(a){let t=a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),s=e.find(e=>k(e.nome)===t);if(s)return s.id}let t=e.filter(e=>e.id<100);return t.length>0?t[0].id:null}),[R,M]=(0,r.useState)(()=>
1{if(a){let t=a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");if(e.find(e=>k(e.nome)===t))return"list"}return"grid"}),[E,L]=(0,r.useState)(""),[F,P]=(0,r.useState)(!1),[T,I]=(0,r.useState)(!1),[A,V]=(0,r.useState)(!1),[B,D]=(0,r.useState)(""),[q,O]=(0,r.useState)(null),[W,H]=(0,r.useState)(null),U=(0,r.useRef)(null),G=(e,t)=>{t&&(t.preventDefault(),t.stopPropagation()),b({id:e.id,nome:e.nome,price:e.preco,codigo:e.codigo}),O(e.id),U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{O(null)},4500)},[X,Y]=(0,r.useState)(!1),[J,K]=(0,r.useState)([]),[Q,Z]=(0,r.useState)(0),[ee,et]=(0,r.useState)(!1),ea=()=>{localStorage.setItem("viana_stories_suggestion_seen","true"),et(!1)},es=e=>{let a=J[Q];if(!a)return!1;let s=a.categoria_id,r=s>=101,i=r?eI:eT,n=i.findIndex(e=>e.id===s);if(-1===n)return!1;let l=n;if("next"===e?l+=1:l-=1,l<0||l>=i.length)return!1;let o=i[l],c=t.filter(e=>e.categoria_id===o.id);if(0===c.length)return!1;let d=[{isCategoryCover:!0,id:`cover-${o.id}`,nome:o.nome,descricao:o.descricao||`Conhe\xe7a nossa sele\xe7\xe3o de ${o.nome.toLowerCase()}`,categoria_nome:o.nome,categoria_id:o.id,imagem:o.imagem||null},...c];return S(r?"wine":"menu"),$(o.id),K(d),Z("next"===e?0:d.length-1),setTimeout(()=>{let e=document.getElementById(`categoria-${o.id}`);e&&e.scrollIntoView({behavior:"smooth",block:"start"})},100),!0},er=(e,a)=>{let s=t.filter(t=>t.categoria_id===e.id),r=s.findIndex(e=>e.id===a.id);K([{isCategoryCover:!0,id:`cover-${e.id}`,nome:e.nome,descricao:e.descricao||`Conhe\xe7a nossa sele\xe7\xe3o de ${e.nome.toLowerCase()}`,categoria_nome:e.nome,categoria_id:e.id,imagem:e.imagem||null},...s]),Z(r>=0?r+1:0),Y(!0)},[ei,en]=(0,r.useState)("mesa"),[el,eo]=(0,r.useState)(""),[ec,ed]=(0,r.useState)(""),[ex,eu]=(0,r.useState)(""),[eh,em]=(0,r.useState)(""),[ep,ef]=(0,r.useState)(""),[eg,eb]=(0,r.useState)(null),[ev,ew]=(0,r.useState)(!1),[ej,ey]=(0,r.useState)(null),[eN,ek]=(0,r.useState)(""),[e_,eC]=(0,r.useState)({show:!1,message:"",type:"info"}),[eS,ez]=(0,r.useState)(!1),[e$,eR]=(0,r.useState)(null),eM=(0,r.useMemo)(()=>[{type:"mesa",name:"\uD83E\uDE91 Mesa",enabled:!d||"1"===d.modality_mesa},{type:"buscar",name:"\uD83D\uDCE6 Retirada",enabled:!d||"1"===d.modality_buscar},{type:"entrega",name:"\uD83D\uDEF5 Entrega",enabled:!d||"1"===d.modality_entrega},{type:"mar",name:"\uD83C\uDF0A Embarca\xe7\xe3o",enabled:!d||"1"===d.modality_mar}].filter(e=>e.enabled),[d]);(0,r.useEffect)(()=>{eM.length>0&&(eM.some(e=>e.type===ei)||en(eM[0].type))},[eM,ei]);let eE=(e,t="warning")=>{eC({show:!0,message:e,type:t})};(0,r.useEffect)(()=>{let e=()=>{P(!0)};return window.addEventListener("open-cart",e),"true"===new URLSearchParams(window.location.search).get("openCart")&&(P(!0),_({},"",window.location.pathname)),()=>{window.removeEventListener("open-cart",e)}},[]),(0,r.useEffect)(()=>{window.dispatchEvent(new CustomEvent("menu-tab-changed",{detail:C}))},[C]),(0,r.useEffect)(()=>{let e=e=>{void 0!==e.detail&&L(e.detail)},t=()=>{S(e=>(window.scrollTo({top:0,behavior:"smooth"}),"wine"===e?"menu":"wine"))};window.addEventListener("trigger-search",e),window.addEventListener("toggle-menu-tab",t);let a=new URLSearchParams(window.location.search).get("busca");if(a){L(a);let e=new URLSearchParams(window.location.search);e.delete("busca");let t=e.toString();_({},"",window.location.pathname+(t?`?${t}`:""))}return()=>{window.removeEventListener("trigger-search",e),window.removeEventListener("toggle-menu-tab",t)}},[]);let eL=(0,r.useRef)(!1),eF=(0,r.useRef)(!0),eP=(0,r.useMemo)(()=>{let a=E.toLowerCase().trim(),s={};return e.forEach(e=>{s[e.id]=[]}),t.forEach(e=>{(!a||e.nome.toLowerCase().includes(a)||e.descricao&&e.descricao.toLowerCase().includes(a)||e.codigo&&e.codigo.includes(a)||e.uva&&e.uva.toLowerCase().includes(a)||e.pais&&e.pais.toLowerCase().includes(a))&&s[e.categoria_id]&&s[e.categoria_id].push(e)}),s},[t,E,e]),eT=e.filter(e=>e.id<100),eI=e.filter(e=>e.id>=101),eA="menu"===C?eT:eI;(0,r.useEffect)(()=>{if(eF.current){eF.current=!1;return}eA.length>0&&$(eA[0].id)},[C]),(0,r.useEffect)(()=>{if("list"!==R)return;let t=new IntersectionObserver(t=>{eL.current||t.forEach(t=>{if(t.isIntersecting){let a=parseInt(t.target.dataset.catid);
1$(a);let s=e.find(e=>e.id===a);if(s){let e=k(s.nome),t=new URLSearchParams(window.location.search);t.get("active")!==e&&(t.set("active",e),_(null,"",`${window.location.pathname}?${t.toString()}`))}}})},{rootMargin:"-120px 0px -60% 0px",threshold:0}),a=document.querySelectorAll(".category-section");return a.forEach(e=>t.observe(e)),()=>{a.forEach(e=>t.unobserve(e))}},[C,R,e]),(0,r.useEffect)(()=>{if(a){let t=a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),s=e.find(e=>k(e.nome)===t);s&&setTimeout(()=>{let e=document.getElementById(`categoria-${s.id}`);if(e){eL.current=!0;let t=window.innerWidth<768?120:145,a=document.body.getBoundingClientRect().top,s=e.getBoundingClientRect().top;window.scrollTo({top:s-a-t,behavior:"smooth"}),setTimeout(()=>{eL.current=!1},800)}},300)}!new URLSearchParams(window.location.search).get("prato")&&(localStorage.getItem("viana_stories_suggestion_seen")||setTimeout(()=>{et(!0)},1500))},[]),(0,r.useEffect)(()=>{let a=new URLSearchParams(window.location.search).get("prato");if(a){let s=t.find(e=>e.id.toString()===a||k(e.nome)===a.toLowerCase());if(s){let a=s.categoria_id;S(a>=101?"wine":"menu"),$(a),M("list");let r=e.find(e=>e.id===a),i=t.filter(e=>e.categoria_id===a),n=i.findIndex(e=>e.id===s.id);K([{isCategoryCover:!0,id:`cover-${a}`,nome:r?r.nome:"",descricao:r?r.descricao||`Conhe\xe7a nossa sele\xe7\xe3o de ${r.nome.toLowerCase()}`:"",categoria_nome:r?r.nome:"",categoria_id:a,imagem:r?r.imagem:null},...i]),Z(n>=0?n+1:0),Y(!0),setTimeout(()=>{let e=document.getElementById(`categoria-${a}`);if(e){let t=document.body.getBoundingClientRect().top,a=e.getBoundingClientRect().top;window.scrollTo({top:a-t-145,behavior:"smooth"})}},500)}}},[t]),(0,r.useEffect)(()=>{if(!z)return;let e=document.getElementById(`nav-btn-${z}`);e&&e.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},[z]);let eV=t=>{if(23===t){S("wine"),M("grid"),window.scrollTo({top:0,behavior:"smooth"}),_(null,"",window.location.pathname);return}S(t>=101?"wine":"menu"),$(t),M("list");let a=e.find(e=>e.id===t);if(a){let e=k(a.nome),t=new URLSearchParams(window.location.search);t.set("active",e),_(null,"",`${window.location.pathname}?${t.toString()}`)}setTimeout(()=>{let e=document.getElementById(`categoria-${t}`);if(e){eL.current=!0;let t=window.innerWidth<768?120:145,a=document.body.getBoundingClientRect().top,s=e.getBoundingClientRect().top;window.scrollTo({top:s-a-t,behavior:"smooth"}),setTimeout(()=>{eL.current=!1},800)}},100)},eB=async e=>{var t;let a;if(e.preventDefault(),0===g.length)return;if(!ex||!eh)return void eE("Por favor, preencha seu nome e telefone.");if("mesa"===ei&&!el)return void eE("Por favor, informe o n\xfamero da sua mesa.");if("entrega"===ei&&!ep)return void eE("Por favor, informe o seu endere\xe7o.");if("mar"===ei&&!ec)return void eE("Por favor, informe o nome da embarca\xe7\xe3o.");if("mar"===ei&&!eg)return void eE("Por favor, capture a sua localiza\xe7\xe3o de GPS para entrega no mar.");let s=("mesa"===ei||"mar"===ei)&&parseFloat(d?.taxa_servico||"13")||0,r=s/100*y,n=y+r;try{let e={tipo_entrega:ei,mesa_numero:"mesa"===ei?parseInt(el||0,10):null,nome_embarcacao:"mar"===ei?ec:null,nome_cliente:ex,telefone:eh,endereco:"entrega"===ei?ep:null,latitude:eg?eg.lat:null,longitude:eg?eg.lng:null,observacoes:eN,total:n,items:g.map(e=>({id:e.id,quantity:e.quantity,price:e.price}))},t=await fetch("/api/pedidos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});t.ok||console.error("Database save order failed:",await t.text())}catch(e){console.error("Database save order client-side error:",e)}let l=`*Pedido Viana â Nova Ordem* 2`;l+=`âââââââââââââââââââââ 3`,g.forEach(e=>{l+=`${e.quantity}x ${e.nome} (${e.codigo||""}) â R$ ${(0,c.$)(e.price*e.quantity)} 4`}),l+=`âââââââââââââââââââââ 5`,s>0&&(l+=`*Subtotal:* R$ ${(0,c.$)(y)} 6*Servi\xe7o (${s}%):* R$ ${(0,c.$)(r)} 7`),l+=`*Total: R$ ${(0,c.$)(n)}* 8 9*Cliente:* ${ex} 10*Telefone:* ${eh} 11`,"mesa"===ei?l+=`*Forma:* ð½ï¸ Na Mesa â *N\xfamero: ${el}* 12`:"buscar"===ei?l+=`*Forma:* ð Vou Buscar no Balc\xe3o 13`:"entrega"===ei?l+=`*Forma:* ð Entrega â *Endere\xe7o: ${ep}*
14`:"mar"===ei&&(l+=`*Forma:* âµ Entrega na Embarca\xe7\xe3o 15*Embarca\xe7\xe3o:* ${ec} 16ð *Coordenadas:* ${eg.lat.toFixed(6)}, ${eg.lng.toFixed(6)} 17ð *Mapa:* https://www.google.com/maps/search/?api=1&query=${eg.lat},${eg.lng} 18`),eN&&(l+=` 19*Obs:* ${eN} 20`);let o=encodeURIComponent(l),x=(t=i||"5512991015473",a=navigator.userAgent||navigator.vendor||window.opera,/android|iphone|ipad|ipod|windows phone/i.test(a)?`whatsapp://send?phone=${t}&text=${o}`:`https://api.whatsapp.com/send?phone=${t}&text=${o}`);D(x),V(!0),window.location.href=x},eD=(e,t)=>{let a=t.id>=101;return e.id,k(e.nome),(0,s.jsxs)("div",{id:`item-card-${e.id}`,onClick:()=>H(e),className:`w-full cursor-pointer ${e$===e.id?"bg-amber-50/20 border-[#fac612] ring-4 ring-[#fac612]/20":"border-b border-slate-100"} py-4 md:p-4 flex gap-4 md:gap-8 text-left md:border md:rounded-2xl md:glass-card md:bg-white relative hover:shadow-md transition-shadow`,children:[(0,s.jsxs)("div",{className:"flex md:hidden w-full gap-4 items-start justify-between",children:[(0,s.jsxs)("button",{type:"button",onClick:a=>{a.preventDefault(),a.stopPropagation(),er(t,e)},className:"w-[78px] h-[78px] shrink-0 relative cursor-pointer group text-left p-0 border-0 bg-transparent",title:"Abrir em Modo Stories \uD83D\uDCF8",children:[(0,s.jsx)("div",{className:"absolute -inset-[2.5px] rounded-2xl bg-gradient-to-tr from-[#fac612] via-[#9d396f] to-[#6ea4d5] opacity-90 group-hover:scale-105 transition-transform"}),(0,s.jsx)("div",{className:"w-full h-full rounded-[14px] overflow-hidden relative shadow-inner bg-slate-50 border border-white z-10",children:(0,s.jsx)(l.default,{src:e.imagem&&""!==e.imagem.trim()?`/images/itens/${e.imagem}`:a?"/images/categorias/vinho.jpg":"/images/itens/default.jpg",alt:e.nome,fill:!0,sizes:"80px",className:"object-cover"})}),(0,s.jsx)("div",{className:"absolute -top-1.5 -left-1.5 z-20 w-5 h-5 rounded-full bg-gradient-to-tr from-[#fac612] via-[#9d396f] to-[#e83e8c] border border-white flex items-center justify-center shadow-md",children:(0,s.jsx)("svg",{className:"w-2.5 h-2.5 fill-white text-white ml-[1px]",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M8 5v14l11-7z",fill:"white"})})})]}),(0,s.jsx)("div",{className:"flex-1 flex flex-col gap-1 min-w-0 pr-2",children:(0,s.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e)},className:"no-underline text-slate-800 hover:text-[#253c7f] transition-colors block text-left bg-transparent border-0 p-0 cursor-pointer",children:[(0,s.jsxs)("h3",{className:"text-sm font-bold text-slate-800 leading-tight",children:[e.codigo&&(0,s.jsx)("span",{className:"text-gray-400 font-light mr-1.5 tracking-wider font-mono",children:e.codigo.toString().padStart(3,"0")}),(0,s.jsx)("span",{children:e.nome})]}),e.descricao&&(0,s.jsx)("p",{className:"text-gray-400 font-light text-[11px] leading-snug mt-1 line-clamp-2",children:e.descricao})]})}),(0,s.jsxs)("div",{className:"w-[100px] shrink-0 flex flex-col items-center gap-2 pt-0.5 relative",children:[(0,s.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e)},className:"no-underline text-center block bg-transparent border-0 p-0 cursor-pointer",children:(0,s.jsxs)("span",{className:"text-base font-extrabold text-[#253c7f] tracking-tight",children:["R$ ",(0,c.$)(e.preco)]})}),(0,s.jsxs)("div",{className:"relative w-full",children:[q===e.id&&(0,s.jsx)("div",{className:"absolute -top-9 left-0 right-0 z-40 animate-fade",children:(0,s.jsxs)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),P(!0)},className:"w-full h-[30px] rounded-full bg-[#253c7f] active:bg-[#1b2b5a] text-white text-[10px] font-extrabold uppercase tracking-wider shadow-md transition-all active:scale-95 flex items-center justify-center gap-1.5 border border-white/20 whitespace-nowrap cursor-pointer px-2",children:[(0,s.jsx)("img",{src:"/images/icons/carrinho.png",alt:"Carrinho",className:"h-[88%] w-auto object-contain brightness-0 invert"}),(0,s.jsx)("span",{children:"Ver Itens"})]})}),(0,s.jsx)("button",{type:"button",onClick:t=>G(e,t),className:"w-full py-1.5 rounded-full bg-[#6ea4d5] hover:bg-[#5b9bd5] text-white text-[10px] font-extrabold uppercase tracking-wider shadow-sm transition-all active:scale-95 flex items-center justify-center gap-1",children:"+ Adicionar"})]})]})]}),(0,s.jsxs)("div",{className:"hidden md:flex w-full gap-8",children:[(0,s.jsxs)("button",{type:"button",onClick:a=>{a.preventDefault(),a.stopPropagation(),er(t,e)},className:"w-[25%] shrink-0 self-center relative group/img cursor-pointer block text-left p-0 border-0 bg-transparent",title:"Abrir em Modo Stories \uD83D\uDCF8",children:[(0,s.jsx)("div",{className:"absolute -inset-[3px] rounded-2xl bg-gradient-to-tr from-[#fac612] via-[#9d396f] to-[#6ea4d5] opacity-90 pointer-events-none group-hover:scale-105 transition-transform"}),(0,s.jsx)("div",{className:"aspect-square w-full rounded-[14px] overflow-hidden relative shadow-inner bg-slate-50 border border-white z-10",children:(0,s.jsx)(l.default,{src:e.imagem&&""!==e.imagem.trim()?`/images/itens/${e.imagem}`:a?"/images/categorias/vinho.jpg":"/images/itens/default.jpg",alt:e.nome,fill:!0,sizes:"120px",className:"object-cover"})}),(0,s.jsx)("div",{className:"absolute -top-2 -left-2 z-20 w-6 h-6 rounded-full bg-gradient-to-tr from-[#fac612] via-[#9d396f] to-[#e83e8c] border border-white flex items-center justify-center shadow-md",children:(0,s.jsx)("svg",{className:"w-3 h-3 fill-white text-white ml-[1px]",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M8 5v14l11-7z",fill:"white"})})})]}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col justify-between min-h-[90px]",children:[(0,s.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e)},className:"flex flex-col gap-1.5 cursor-pointer no-underline text-[#474747] block group text-left bg-transparent border-0 p-0 w-full",children:[(0,s.jsxs)("h3",{className:"text-base md:text-lg font-bold text-slate-800 leading-tight flex items-baseline gap-1.5 group-hover:text-[#253c7f] transition-colors",children:[e.codigo&&(0,s.jsx)("span",{className:"text-gray-400 font-light text-base md:text-lg shrink-0",children:e.codigo}),(0,s.jsx)("span",{children:e.nome})]}),e.descricao&&(0,s.jsx)("p",{className:"text-gray-500 font-light text-xs leading-relaxed line-clamp-2",children:e.descricao}),24===t.id&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 bg-emerald-50/50 p-2 rounded-xl border border-emerald-100/50 text-[11px] font-semibold text-[#0e6b56] w-fit",children:[(0,s.jsx)("span",{children:"\uD83C\uDDE7\uD83C\uDDF7"}),(0,s.jsxs)("span",{children:["Origem: ",(e=>{if(!e)return null;let t=e.split(/[|I]/);return t.length>1?t[t.length-1].trim():e.includes("Ivoti - RS")?"Ivoti - RS":e.includes("Morreste - PR")?"Morretes - PR":e.includes("Betin - MG")?"Betim - MG":null})(e.descricao)||"Alambique Tradicional"]})]}),a&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 mt-1 bg-slate-50 p-2 rounded-xl border border-slate-100 text-xs text-gray-500",children:[e.pais&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"shrink-0 flex items-center",children:(0,s.jsx)(l.default,{src:`/images/bandeiras/${e.pais.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}.jpg`,alt:e.pais,width:16,height:11,className:"w-4 h-3 object-cover rounded shadow-inner",onError:e=>{e.target.style.display="none"}})}),(0,s.jsxs)("span",{children:[e.pais," ⢠",e.regiao]})]}),e.uva&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{children:"\uD83C\uDF47"}),(0,s.jsx)("span",{children:e.uva})]}),e.produtor&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{children:"\uD83C\uDF77"}),(0,s.jsxs)("span",{children:["Produtor: ",e.produtor]})]})]})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-3 pt-2 border-t border-slate-100/40 relative",children:[(0,s.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e)},className:"no-underline text-base md:text-lg font-bold text-[#253c7f] hover:underline bg-transparent border-0 p-0 cursor-pointer text-left",children:["R$ ",(0,c.$)(e.preco)]}),(0,s.jsxs)("div",{className:"relative",children:[q===e.id&&(0,s.jsx)("div",{className:"absolute -top-10 right-0 z-40 animate-fade min-w-[130px]",children:(0,s.jsxs)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),P(!0)},className:"w-full h-[32px] px-3.5 rounded-full bg-[#253c7f] hover:bg-[#1b2b5a] text-white text-xs font-extrabold uppercase tracking-wider shadow-lg transition-all active:scale-95 flex items-center justify-center gap-2 border border-white/20 whitespace-nowrap cursor-pointer",children:[(0,s.jsx)("img",{src:"/images/icons/carrinho.png",alt:"Carrinho",className:"h-[88%] w-auto object-contain brightness-0 invert"}),(0,s.jsx)("span",{children:"Ver Itens"})]})}),(0,s.jsx)("button",{type:"button",onClick:t=>G(e,t),className:"btn-viana btn-viana-blue py-1.5 px-4 text-xs font-bold rounded-full relative z-20 active:scale-95 transition-transform",children:"+ Adicionar"})]})]})]})]})]},e.id)};return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center",children:["grid"===R?(0,s.jsxs)("div",{className:"w-full flex flex-col items-center animate-fade",children:["menu"===C?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"w-full relative aspect-[21/9] rounded-2xl overflow-hidden mb-8 shadow-md",children:(0,s.jsx)(l.default,{src:"/images/imagem_principal.jpg",alt:"Card\xe1pio Viana",fill:!0,priority:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 90vw, 1000px",className:"object-cover object-bottom"})}),(0,s.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-center text-[#474747] font-display uppercase tracking-wider mt-2 mb-2",children:"Card\xe1pio Online"}),(0,s.jsx)("h5",{className:"text-lg md:text-2xl font-light text-center text-[#474747]/80 font-display mb-8",children:"J\xe1 pensou no que vai pedir?"}),(0,s.jsxs)("button",{type:"button",onClick:()=>{S("wine"),window.scrollTo({top:0,behavior:"smooth"})},className:"bg-[#9c3b6f] text-white rounded-t-2xl h-[60px] flex items-center justify-center text-lg md:text-xl font-bold relative w-[275px] pl-[40px] mx-auto mb-8 hover:brightness-110 transition-all duration-300 shadow-md font-display",children:[(0,s.jsx)("span",{className:"absolute left-[15px] h-[40p
20x] w-[40px] flex items-center justify-center pointer-events-none",children:(0,s.jsx)(l.default,{src:"/images/carta-de-vinhos-icone.png",alt:"Carta de Vinhos",width:40,height:40,className:"h-full object-contain pointer-events-none"})}),"Carta de Vinhos"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"w-full flex justify-start mb-6",children:(0,s.jsxs)("button",{onClick:()=>S("menu"),className:"flex items-center gap-2 hover:opacity-80 transition-all duration-200",children:[(0,s.jsx)(l.default,{src:"/images/seta-voltar.png",alt:"Voltar",width:28,height:28,className:"w-[28px] h-[28px] object-contain"}),(0,s.jsx)("span",{className:"text-[#273e7d] font-bold text-sm uppercase tracking-wider",children:"Voltar ao Card\xe1pio"})]})}),(0,s.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-center text-[#474747] font-display uppercase tracking-wider mt-2 mb-2",children:"Carta de Vinhos"}),(0,s.jsx)("h5",{className:"text-lg md:text-2xl font-light text-center text-[#474747]/80 font-display mb-8",children:"A Combina\xe7\xe3o Perfeita!"})]}),(0,s.jsx)("div",{className:"w-full bg-transparent p-0 mb-12",children:(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:eA.map(e=>(0,s.jsxs)(n(),{href:`/cardapio?active=${k(e.nome)}`,onClick:t=>{t.preventDefault(),eV(e.id)},className:"relative aspect-[4/3] rounded-2xl overflow-hidden shadow-md bg-slate-50 cursor-pointer border border-slate-200/30 text-left block w-full",children:[(0,s.jsx)(l.default,{src:`/images/categorias/${e.imagem||("menu"===C?"default.jpg":"default-wine.jpg")}`,alt:e.nome,fill:!0,sizes:"(max-width: 768px) 100vw, 33vw",className:"object-cover pointer-events-none"}),(0,s.jsxs)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/25 to-transparent flex flex-col justify-end p-5 select-none pointer-events-none",children:[(0,s.jsx)("span",{className:`text-[10px] font-extrabold uppercase tracking-widest mb-1.5 ${"menu"===C?"text-[#60c3ae]":"text-[#fac612]"}`,children:"menu"===C?"Ver Itens":"Ver Carta"}),(0,s.jsx)("h3",{className:"text-white text-lg font-bold uppercase tracking-wide leading-tight",children:e.nome}),e.descricao&&(0,s.jsx)("p",{className:"text-white/70 text-[11px] font-light mt-1 line-clamp-1 leading-normal",children:e.descricao})]})]},e.id))})})]}):(0,s.jsxs)("div",{className:"w-full flex flex-col items-center animate-fade",children:[(0,s.jsxs)("div",{className:"hidden md:flex w-full items-center justify-between gap-4 mb-8 border-b border-slate-200/60 pb-4",children:[(0,s.jsxs)("button",{onClick:()=>{M("grid"),_(null,"",window.location.pathname)},className:"flex items-center gap-1.5 hover:opacity-80 transition-all duration-200 shrink-0",children:[(0,s.jsx)(l.default,{src:"/images/seta-voltar.png",alt:"Voltar",width:20,height:20,className:"w-5 h-5 object-contain"}),(0,s.jsx)("span",{className:"text-[#273e7d] font-bold text-xs uppercase tracking-wider",children:"Voltar"})]}),(0,s.jsxs)("div",{className:"relative flex-1 max-w-sm md:max-w-md z-10",children:[(0,s.jsx)("input",{type:"text",placeholder:"Buscar no card\xe1pio...",value:E,onChange:e=>L(e.target.value),className:"w-full h-[60px] px-6 rounded-full border border-slate-200 bg-white focus:outline-none focus:ring-2 focus:ring-[#253c7f]/10 focus:border-[#253c7f] shadow-sm text-sm text-slate-700 placeholder-slate-400"}),E&&(0,s.jsx)("button",{onClick:()=>L(""),className:"absolute right-5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 font-bold text-base",children:"\xd7"})]}),(0,s.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("open-cart")),className:"relative p-2.5 text-[#253c7f] hover:text-[#fac612] transition-colors shrink-0 flex items-center justify-center bg-white rounded-full border border-slate-200 shadow-sm hover:shadow active:scale-95 duration-200","aria-label":"Abrir carrinho",children:(0,s.jsxs)("div",{className:"relative pointer-events-none",children:[(0,s.jsx)("svg",{className:"w-5 h-5 stroke-current pointer-events-none",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.116 60.116 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})}),j>0&&(0,s.jsx)("span",{className:"absolute -top-2.5 -right-3 bg-[#fac612] text-[#253c7f] font-bold text-[9px] w-4.5 h-4.5 rounded-full flex items-center justify-center border border-white shadow-inner animate-pulse pointer-events-none",children:j})]})})]}),(0,s.jsx)("div",{className:`sticky top-[56px] md:top-[60px] z-[990] w-[100vw] border-b pb-2 md:pb-[12px] pt-2 md:pt-[35px] px-3 md:px-6 flex justify-center transition-all duration-300 ${"wine"===C?"bg-[#1c2844] text-[#fac612] border-[#fac612]/20 shadow-lg":"bg-[#fcfaf5]/90 backdrop-blur-md text-slate-800 border-slate-200/60 shadow-sm"}`,children:(0,s.jsx)("div",{className:"w-full max-w-[1000px] flex items-center justify-between gap-4 px-4",children:eS?(0,s.jsxs)("div",{className:"w-full flex items-center gap-2 animate-fade",children:[(0,s.jsx)("input",{type:"text",placeholder:"Buscar no card\xe1pio...",value:E,onChange:e=>
20L(e.target.value),className:`flex-1 h-10 px-4 rounded-full border focus:outline-none focus:ring-2 focus:ring-[#253c7f]/10 focus:border-[#253c7f] text-sm ${"wine"===C?"bg-[#121c33] text-white border-slate-700 placeholder-slate-500":"bg-white text-slate-700 border-slate-200 placeholder-slate-400"}`,autoFocus:!0}),(0,s.jsx)("button",{onClick:()=>{ez(!1),L("")},className:`h-10 w-10 rounded-full border transition-all flex items-center justify-center ${"wine"===C?"bg-transparent text-[#fac612] hover:bg-white/5 border-[#fac612]/30":"bg-white text-slate-505 hover:bg-slate-100 border-slate-200"}`,title:"Fechar busca",children:(0,s.jsx)("svg",{className:"w-4 h-4 stroke-current",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{id:"sticky-categories-container",className:"flex-1 overflow-x-auto flex gap-2 md:gap-3 scrollbar-none scroll-smooth justify-start items-center pr-2 pt-[2px] md:pt-[4px] pb-[4px] md:pb-[15px]",children:[(0,s.jsxs)("button",{onClick:()=>{M("grid"),_(null,"",window.location.pathname)},className:`hidden md:flex h-10 px-4 rounded-full text-xs font-bold uppercase tracking-wider shrink-0 transition-all duration-200 items-center justify-center gap-1.5 border ${"wine"===C?"bg-transparent text-[#fac612] hover:bg-white/5 border-[#fac612]/30":"bg-white text-slate-600 hover:bg-slate-100 border-slate-200"}`,children:[(0,s.jsx)(l.default,{src:"/images/seta-voltar.png",alt:"Voltar",width:14,height:14,className:`w-3.5 h-3.5 object-contain ${"wine"===C?"brightness-[3] hue-rotate-[45deg]":""}`}),"Voltar"]}),eA.map(e=>{let t=e.id===z;return(0,s.jsxs)("button",{id:`nav-btn-${e.id}`,onClick:()=>eV(e.id),className:`h-8 md:h-10 px-3 md:px-4 rounded-full text-[11px] md:text-xs font-bold uppercase tracking-wider shrink-0 transition-all duration-200 flex items-center justify-center gap-1.5 ${t?"wine"===C?"bg-[#fac612] text-[#253c7f] shadow-md scale-105":"bg-[#253c7f] text-white shadow-md scale-105":"wine"===C?"bg-transparent text-[#fac612] hover:bg-white/5 border border-[#fac612]/30":"bg-white text-slate-600 hover:bg-slate-100 border border-slate-200"}`,children:["wine"===C&&101===e.id&&"\uD83C\uDF7E ","wine"===C&&102===e.id&&"\uD83E\uDD42 ","wine"===C&&103===e.id&&"\uD83C\uDF3F ","wine"===C&&104===e.id&&"\uD83C\uDF38 ","wine"===C&&105===e.id&&"\uD83C\uDF77 ",e.nome]},e.id)})]}),(0,s.jsx)("button",{onClick:()=>{S("menu"===C?"wine":"menu"),window.scrollTo({top:0,behavior:"smooth"})},className:`hidden md:flex h-10 w-10 rounded-full border shrink-0 transition-all shadow-sm hover:scale-105 active:scale-95 items-center justify-center ${"wine"===C?"bg-transparent text-[#fac612] hover:bg-white/5 border-[#fac612]/30":"bg-white text-slate-600 hover:bg-slate-100 border-slate-200"}`,title:"menu"===C?"Ver Vinhos":"Ver Card\xe1pio",children:"menu"===C?(0,s.jsxs)("svg",{className:"w-[22px] h-[22px] fill-none stroke-current",strokeWidth:"1.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsxs)("g",{transform:"translate(8, 12) rotate(15) translate(-8, -12)",children:[(0,s.jsx)("path",{d:"M5 20h6"}),(0,s.jsx)("path",{d:"M8 20v-7"}),(0,s.jsx)("path",{d:"M8 13c2.2 0 3-1.8 3-4V4H5v5c0 2.2.8 4 3 4z"}),(0,s.jsx)("path",{d:"M5.5 7h5",opacity:"0.3"})]}),(0,s.jsxs)("g",{transform:"translate(16, 12) rotate(-15) translate(-16, -12)",children:[(0,s.jsx)("path",{d:"M13 20h6"}),(0,s.jsx)("path",{d:"M16 20v-7"}),(0,s.jsx)("path",{d:"M16 13c-2.2 0-3-1.8-3-4V4h6v5c0 2.2-.8 4-3 4z"}),(0,s.jsx)("path",{d:"M13.5 7h5",opacity:"0.3"})]}),(0,s.jsx)("path",{d:"M12 2v2M9.5 4.5l1 1M14.5 4.5l-1 1"})]}):(0,s.jsxs)("svg",{className:"w-[22px] h-[22px] fill-none stroke-current",strokeWidth:"1.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4.5"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"2.8",strokeWidth:"1",opacity:"0.3"}),(0,s.jsx)("path",{d:"M4 5v4a1.5 1.5 0 0 0 3 0V5"}),(0,s.jsx)("path",{d:"M5.5 9v9"}),(0,s.jsx)("path",{d:"M5.5 5v4"}),(0,s.jsx)("path",{d:"M18.5 5v13"}),(0,s.jsx)("path",{d:"M18.5 5c-1.2 0-1.8 1.2-1.8 3v3h1.8"})]})}),(0,s.jsx)("button",{onClick:()=>ez(!0),className:`hidden md:flex h-10 w-10 rounded-full border shrink-0 transition-all shadow-sm hover:scale-105 active:scale-95 items-center justify-center ${"wine"===C?"bg-transparent text-[#fac612] hover:bg-white/5 border-[#fac612]/30":"bg-white text-slate-600 hover:bg-slate-100 border-slate-200"}`,title:"Buscar no card\xe1pio",children:(0,s.jsx)("svg",{className:"w-4 h-4 fill-none stroke-current",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.602 10.602z"})})})]})})}),(0,s.jsx)("div",{className:"w-full max-w-[1000px] mt-8 flex flex-col gap-16",children:eA.map(e=>{let t,a,r=eP[e.id]||[];return 0===r.length?null:(0,s.jsxs)("section",{id:`categoria-${e.id}`,"data-catid":e.id,className:"category-section scroll-mt-36 border-b border-slate-200/50 pb-12 last:border-0",children:[(0,s.jsxs)("div",{className:"mb-8 text-left",children:[(0,s.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-[#253c7f] uppercase font-sans tracking-wide",children:e.nome}),e.descricao&&(0,s.jsx)("p",{className:"text-sm text-gray-500 font-light mt-1.5 italic",children:e.descricao})]}),e.id>=101&&e.id<=105?(t={}
20,r.forEach(e=>{let a=e.pais||"Outras Regi\xf5es";t[a]||(t[a]=[]),t[a].push(e)}),Object.keys(t).map(a=>(0,s.jsxs)("div",{className:"mb-10 last:mb-0",children:[(0,s.jsxs)("h4",{className:"text-base font-bold text-slate-700 mb-5 uppercase tracking-widest border-b border-slate-200/60 pb-2.5 flex items-center gap-2",children:["Chile"===a&&"\uD83C\uDDE8\uD83C\uDDF1","Fran\xe7a"===a&&"\uD83C\uDDEB\uD83C\uDDF7","Brasil"===a&&"\uD83C\uDDE7\uD83C\uDDF7","Argentina"===a&&"\uD83C\uDDE6\uD83C\uDDF7","Portugal"===a&&"\uD83C\uDDF5\uD83C\uDDF9","Espanha"===a&&"\uD83C\uDDEA\uD83C\uDDF8","It\xe1lia"===a&&"\uD83C\uDDEE\uD83C\uDDF9","Uruguai"===a&&"\uD83C\uDDFA\uD83C\uDDFE","Australia"===a&&"\uD83C\uDDE6\uD83C\uDDFA",!["Chile","Fran\xe7a","Brasil","Argentina","Portugal","Espanha","It\xe1lia","Uruguai","Australia"].includes(a)&&"\uD83C\uDF77",(0,s.jsx)("span",{children:a})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:t[a].map(t=>eD(t,e))})]},a))):15===e.id?(a={"Licores & Cremosos":[],"Gins & Vodkas":[],"Rums, Grappas & Cognacs":[],"Doses Variadas":[]},r.forEach(e=>{let t;a[(t=e.nome.toLowerCase()).includes("licor")||t.includes("43")||t.includes("baileys")||t.includes("frang\xe9lico")||t.includes("tia maria")||t.includes("drambuie")||t.includes("carolan")||t.includes("sambuca")||t.includes("ben\xe9dictine")?"Licores & Cremosos":t.includes("vodka")||t.includes("gin")||t.includes("tequila")||t.includes("absolut")||t.includes("smirnoff")||t.includes("tanqueray")||t.includes("jos\xe9 cuervo")||t.includes("jose cuervo")?"Gins & Vodkas":t.includes("rum")||t.includes("havana")||t.includes("bacardi")||t.includes("zacapa")||t.includes("grappa")||t.includes("nonino")||t.includes("cognaq")||t.includes("cognac")||t.includes("hennessy")||t.includes("remy martin")||t.includes("fundador")?"Rums, Grappas & Cognacs":"Doses Variadas"].push(e)}),Object.keys(a).map(t=>0===a[t].length?null:(0,s.jsxs)("div",{className:"mb-10 last:mb-0",children:[(0,s.jsxs)("h4",{className:"text-sm font-bold text-slate-700 mb-5 uppercase tracking-widest border-b border-slate-200/60 pb-2.5 flex items-center gap-2",children:["Licores & Cremosos"===t&&"\uD83C\uDF47","Gins & Vodkas"===t&&"\uD83C\uDF78","Rums, Grappas & Cognacs"===t&&"\uD83E\uDD43","Doses Variadas"===t&&"\uD83E\uDD42",(0,s.jsx)("span",{children:t})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:a[t].map(t=>eD(t,e))})]},t))):(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:r.map(t=>eD(t,e))})]},e.id)})})]}),j>0&&(0,s.jsxs)("button",{onClick:()=>P(!0),className:"fixed top-[120px] right-[30px] z-[997] w-[60px] h-[60px] rounded-full bg-[#253c7f] text-white hidden md:flex items-center justify-center shadow-lg transition-all hover:scale-110 active:scale-95 duration-300 border border-white/20","aria-label":"Abrir carrinho",children:[(0,s.jsx)("svg",{className:"w-6 h-6 text-white fill-current",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})}),(0,s.jsx)("span",{className:"absolute -top-1 -right-1 min-w-[20px] h-[20px] rounded-full bg-[#fac612] text-[#253c7f] font-bold text-xs flex items-center justify-center border-2 border-white shadow-inner animate-pulse shrink-0 aspect-square leading-none",children:j})]}),(0,s.jsxs)("div",{className:`fixed inset-0 z-[1000] transition-all duration-500 ${F?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"}`,children:[(0,s.jsx)("div",{className:"absolute inset-0 backdrop-blur-md bg-black/50",onClick:()=>{P(!1),I(!1)}}),(0,s.jsxs)("div",{className:`absolute right-0 top-0 bottom-0 w-[420px] max-w-[100vw] bg-white flex flex-col transition-transform duration-500 shadow-2xl ${F?"translate-x-0":"translate-x-full"}`,children:[(0,s.jsxs)("div",{className:"p-5 border-b border-slate-100 flex justify-between items-center bg-gradient-to-r from-[#253c7f] via-[#1c2e63] to-[#121f47] text-white shrink-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-white/10 backdrop-blur-md flex items-center justify-center border border-white/20 p-1.5 shadow-inner",children:(0,s.jsx)("img",{src:"/images/icons/carrinho.png",alt:"Carrinho",className:"w-full h-full object-contain brightness-0 invert"})}),(0,s.jsxs)("div",{className:"flex flex-col text-left",children:[(0,s.jsx)("h2",{className:"text-sm font-extrabold uppercase tracking-widest text-white",children:T?"Finalizar Pedido":"Seu Carrinho"}),g.length>0&&!T&&(0,s.jsxs)("span",{className:"text-[10px] text-[#fac612] font-semibold tracking-wider",children:[g.reduce((e,t)=>
20e+t.quantity,0)," ",1===g.reduce((e,t)=>e+t.quantity,0)?"item adicionado":"itens adicionados"]})]})]}),(0,s.jsx)("button",{type:"button",onClick:()=>{P(!1),I(!1)},className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 text-white flex items-center justify-center font-light text-xl transition-all active:scale-95 border border-white/10","aria-label":"Fechar",children:"\xd7"})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto p-5 bg-slate-50/50",children:A?(0,s.jsxs)("div",{className:"h-full flex flex-col items-center justify-center text-center gap-6 animate-fade",children:[(0,s.jsx)("div",{className:"w-20 h-20 rounded-full bg-emerald-100 flex items-center justify-center text-emerald-500 text-4xl shadow-inner font-bold",children:"â"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl font-bold text-gray-800 uppercase tracking-wide",children:"Pedido Enviado!"}),(0,s.jsxs)("p",{className:"text-xs text-gray-500 mt-2 leading-relaxed max-w-[280px] mx-auto",children:["Seu pedido foi registrado no sistema. ",(0,s.jsx)("strong",{children:"Para a prepara\xe7\xe3o iniciar, \xe9 obrigat\xf3rio envi\xe1-lo pelo WhatsApp."})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 w-full max-w-[280px]",children:[(0,s.jsx)("a",{href:B,className:"w-full btn-viana btn-viana-green text-center flex items-center justify-center py-3.5 rounded-xl font-bold uppercase text-xs tracking-wider shadow-lg gap-2",children:"\uD83D\uDCAC Enviar no WhatsApp"}),(0,s.jsx)("button",{type:"button",onClick:()=>{N(),V(!1),P(!1),I(!1)},className:"w-full py-3 rounded-xl border border-slate-200 font-bold uppercase text-xs text-gray-500 hover:bg-slate-50 transition-all text-center",children:"Concluir e Limpar Carrinho"})]})]}):T?(0,s.jsxs)("form",{onSubmit:eB,className:"flex flex-col gap-5 text-sm",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700",children:"Forma de Entrega"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:eM.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>en(e.type),className:`py-2.5 px-3 rounded-xl border font-bold text-xs uppercase transition-all ${ei===e.type?"bg-[#253c7f] text-white border-[#253c7f] shadow":"bg-white text-gray-600 border-slate-200 hover:bg-slate-50"}`,children:e.name},e.type))})]}),"mesa"===ei&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 animate-fade",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700",htmlFor:"table_num",children:"N\xfamero da Mesa *"}),(0,s.jsx)("input",{type:"text",id:"table_num",required:!0,placeholder:"Ex: 5",value:el,onChange:e=>eo(e.target.value),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200/80 bg-slate-50/50 text-slate-700 placeholder-slate-400 focus:outline-none focus:bg-white focus:border-[#253c7f] focus:ring-4 focus:ring-[#253c7f]/5 transition-all"})]}),"entrega"===ei&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 animate-fade",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700",htmlFor:"cust_addr",children:"Endere\xe7o Completo de Entrega *"}),(0,s.jsx)("textarea",{id:"cust_addr",required:!0,rows:2,placeholder:"Rua, n\xfamero, complemento, bairro, Ilhabela",value:ep,onChange:e=>ef(e.target.value),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200/80 bg-slate-50/50 text-slate-700 placeholder-slate-400 focus:outline-none focus:bg-white focus:border-[#253c7f] focus:ring-4 focus:ring-[#253c7f]/5 transition-all"})]}),"mar"===ei&&(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 p-4 rounded-2xl bg-amber-50 border border-amber-200/50 animate-fade",children:[(0,s.jsx)("label",{className:"font-bold text-[#253c7f]",children:"Entrega na Embarca\xe7\xe3o *"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 leading-normal",children:"Nossa equipe utiliza a localiza\xe7\xe3o de sat\xe9lite em tempo real para entregar o pedido diretamente na sua embarca\xe7\xe3o."}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700 text-xs",htmlFor:"vessel_name",children:"Nome da Embarca\xe7\xe3o *"}),(0,s.jsx)("input",{type:"text",id:"vessel_name",required:!0,placeholder:"Ex: Schaefer 400 ou Lancha Phoenix",value:ec,onChange:e=>ed(e.target.value),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 bg-white text-slate-700 placeholder-slate-400 focus:outline-none focus:border-[#253c7f] focus:ring-4 focus:ring-[#253c7f]/5 transition-all"})]}),eg?(0,s.jsxs)("div",{className:"flex flex-col gap-1 bg-white p-3 rounded-xl border border-amber-200 text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-green-600 font-bold",children:[(0,s.jsx)("span",{children:"â GPS Capturado com Sucesso!"}),(0,s.jsx)("button",{type:"button",onClick:()=>eb(null),className:"text-red-500 hover:text-red-700 font-bold",children:"Redefinir"})]}),(0,s.jsxs)("span",{className:"text-gray-500 mt-1",children:["Lat: ",eg.lat.toFixed(6)]}),(0,s.jsxs)("span",{className:"text-gray-500",children:["Long: ",eg.lng.toFixed(6)]}),(0,s.jsxs)("span",{className:"text-[10px] text-gray-400 mt-0.5",children:["Pre
20cis\xe3o: ~",eg.accuracy.toFixed(1),"m"]})]}):(0,s.jsx)("button",{type:"button",onClick:()=>{navigator.geolocation?(ew(!0),ey(null),navigator.geolocation.getCurrentPosition(e=>{eb({lat:e.coords.latitude,lng:e.coords.longitude,accuracy:e.coords.accuracy}),ew(!1)},e=>{console.error("Error capturing GPS coordinates:",e),ey("N\xe3o foi poss\xedvel obter a sua localiza\xe7\xe3o. Verifique as permiss\xf5es de GPS."),ew(!1)},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})):ey("Geolocaliza\xe7\xe3o n\xe3o \xe9 suportada pelo seu navegador.")},disabled:ev,className:`w-full py-2.5 px-4 rounded-xl font-bold text-xs uppercase flex items-center justify-center gap-2 shadow transition-all ${ev?"bg-slate-200 text-gray-400 cursor-not-allowed":"bg-[#fac612] text-[#253c7f] hover:bg-[#e5b40e]"}`,children:ev?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"w-4 h-4 border-2 border-[#253c7f] border-t-transparent rounded-full animate-spin"}),"Capturando GPS..."]}):(0,s.jsx)(s.Fragment,{children:"\uD83D\uDCCD Capturar Localiza\xe7\xe3o GPS"})}),ej&&(0,s.jsxs)("p",{className:"text-xs text-red-600 font-bold mt-1 bg-white p-2.5 rounded-xl border border-red-100",children:["â ï¸ ",ej]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700",htmlFor:"cust_name",children:"Seu Nome *"}),(0,s.jsx)("input",{type:"text",id:"cust_name",required:!0,placeholder:"Nome completo",value:ex,onChange:e=>eu(e.target.value),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200/80 bg-slate-50/50 text-slate-700 placeholder-slate-400 focus:outline-none focus:bg-white focus:border-[#253c7f] focus:ring-4 focus:ring-[#253c7f]/5 transition-all"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700",htmlFor:"cust_phone",children:"Seu WhatsApp *"}),(0,s.jsx)("input",{type:"tel",id:"cust_phone",required:!0,placeholder:"DDD + Celular (ex: 12999999999)",value:eh,onChange:e=>em((0,c.X)(e.target.value)),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200/80 bg-slate-50/50 text-slate-700 placeholder-slate-400 focus:outline-none focus:bg-white focus:border-[#253c7f] focus:ring-4 focus:ring-[#253c7f]/5 transition-all"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"font-bold text-gray-700",htmlFor:"cust_obs",children:"Observa\xe7\xf5es do Pedido"}),(0,s.jsx)("textarea",{id:"cust_obs",rows:2,placeholder:"Ex: sem cebola, ponto da carne, etc.",value:eN,onChange:e=>ek(e.target.value),className:"w-full px-4 py-2.5 rounded-xl border border-slate-200/80 bg-slate-50/50 text-slate-700 placeholder-slate-400 focus:outline-none focus:bg-white focus:border-[#253c7f] focus:ring-4 focus:ring-[#253c7f]/5 transition-all"})]})]}):0===g.length?(0,s.jsxs)("div",{className:"h-full flex flex-col items-center justify-center gap-4 text-gray-400 py-16",children:[(0,s.jsx)("div",{className:"w-16 h-16 rounded-full bg-slate-100 flex items-center justify-center border border-slate-200/60 p-4",children:(0,s.jsx)("img",{src:"/images/icons/carrinho.png",alt:"Carrinho Vazio",className:"w-full h-full object-contain opacity-40"})}),(0,s.jsx)("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Seu carrinho est\xe1 vazio"}),(0,s.jsx)("p",{className:"text-[11px] text-slate-400 max-w-[200px] text-center font-light",children:"Escolha pratos deliciosos no card\xe1pio para adicionar ao seu pedido."})]}):(0,s.jsx)("div",{className:"flex flex-col gap-3",children:g.map(e=>(0,s.jsxs)("div",{className:"p-4 rounded-2xl bg-white border border-slate-200/70 shadow-[0_2px_8px_rgba(15,23,42,0.04)] flex justify-between items-center gap-3 transition-all hover:border-[#253c7f]/30",children:[(0,s.jsxs)("div",{className:"flex-1 text-left pr-1 min-w-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5 mb-1 flex-wrap",children:e.codigo&&(0,s.jsxs)("span",{className:"text-[9px] font-mono font-bold text-slate-500 bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200/60",children:["C\xf3d: ",e.codigo.toString().padStart(3,"0")]})}),(0,s.jsx)("h4",{className:"font-bold text-slate-800 text-sm leading-snug tracking-tight",children:e.nome}),(0,s.jsxs)("p",{className:"text-[11px] text-slate-400 font-medium mt
20-1",children:["R$ ",(0,c.$)(e.price)," ",(0,s.jsx)("span",{className:"text-[10px] text-slate-300",children:"/ un"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col items-end gap-1.5 shrink-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 bg-slate-100 p-1 rounded-full border border-slate-200/80 shadow-inner",children:[(0,s.jsx)("button",{type:"button",onClick:()=>w(e.id,e.quantity-1),className:"w-6 h-6 rounded-full bg-white hover:bg-slate-200 text-slate-700 flex items-center justify-center font-black text-xs shadow-xs active:scale-95 transition-all",title:"Diminuir",children:"-"}),(0,s.jsx)("span",{className:"text-xs font-extrabold w-4 text-center text-[#253c7f]",children:e.quantity}),(0,s.jsx)("button",{type:"button",onClick:()=>w(e.id,e.quantity+1),className:"w-6 h-6 rounded-full bg-white hover:bg-slate-200 text-slate-700 flex items-center justify-center font-black text-xs shadow-xs active:scale-95 transition-all",title:"Aumentar",children:"+"})]}),(0,s.jsxs)("span",{className:"text-sm font-extrabold text-[#253c7f] tracking-tight",children:["R$ ",(0,c.$)(e.price*e.quantity)]}),(0,s.jsxs)("button",{type:"button",onClick:()=>v(e.id),className:"text-[10px] font-semibold text-red-400 hover:text-red-600 transition-colors flex items-center gap-0.5",children:[(0,s.jsx)("svg",{className:"w-2.5 h-2.5 fill-current",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}),(0,s.jsx)("span",{children:"Remover"})]})]})]},e.id))})}),g.length>0&&!A&&(p=(x=("mesa"===ei||"mar"===ei)&&parseFloat(d?.taxa_servico||"13")||0)/100*y,f=y+p,(0,s.jsxs)("div",{className:"p-5 border-t border-slate-200/80 bg-white flex flex-col gap-3 shrink-0",children:[T&&x>0?(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 text-xs text-slate-500 border-b border-slate-100 pb-2 mb-1",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("span",{children:"Subtotal dos itens:"}),(0,s.jsxs)("span",{className:"font-semibold text-slate-700",children:["R$ ",(0,c.$)(y)]})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center text-emerald-600 font-medium",children:[(0,s.jsxs)("span",{children:["Taxa de Servi\xe7o (",x,"%):"]}),(0,s.jsxs)("span",{children:["R$ ",(0,c.$)(p)]})]})]}):null,(0,s.jsxs)("div",{className:"flex justify-between items-baseline text-slate-800",children:[(0,s.jsx)("span",{className:"font-medium text-sm text-slate-500",children:T&&x>0?"Total Final:":"Total do Pedido:"}),(0,s.jsxs)("span",{className:"text-2xl md:text-3xl font-black text-[#253c7f] tracking-tight",children:["R$ ",(0,c.$)(T&&x>0?f:y)]})]})]})),g.length>0&&!A&&(0,s.jsx)("div",{className:"p-5 pt-0 bg-white flex flex-col gap-3 shrink-0",children:T?(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>I(!1),className:"w-[30%] py-3.5 rounded-2xl border border-slate-300 font-bold uppercase text-xs text-slate-600 hover:bg-slate-50 transition-all text-center",children:"Voltar"}),(0,s.jsxs)("button",{type:"button",onClick:eB,className:"w-[70%] py-3.5 px-4 rounded-2xl bg-emerald-600 hover:bg-emerald-700 active:scale-[0.98] text-white font-extrabold text-xs uppercase tracking-wider shadow-md transition-all flex items-center justify-center gap-2 cursor-pointer",children:[(0,s.jsx)("svg",{className:"w-4 h-4 fill-white",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})}),(0,s.jsx)("span",{children:"Enviar no WhatsApp"})]})]}):(0,s.jsxs)("button",{type:"button",onClick:()=>I(!0),className:"w-full py-4 px-6 rounded-2xl bg-[#253c7f] hover:bg-[#1a2c64] active:scale-[0.98] text-white font-extrabold text-xs uppercase tracking-widest shadow-[0_10px_25px_rgba(37,60,127,0.3)] transition-all flex items-center justify-center gap-2 cursor-pointer",children:[(0,s.jsx)("span",{children:"Continuar"}),(0,s.jsx)("svg",{className:"w-4 h-4 fill-white",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})})]})})]})]}),X&&(0,s.jsx)(u,{items:J,initialIndex:Q,onClose:()=>{Y(!1);let e=J[Q];e&&(eR(e.id),setTimeout(()=>{let t=document.getElementById(`item-card-${e.id}`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})},100),setTimeout(()=>{eR(null)},2500));let t=new URLSearchParams(window.location.search);t.delete("prato"),_(null,"",`${window.location.pathname}?${t.toString()}`)},onAddToCart:b,onStoryChange:e=>{Z(e);let t=J[e];if(t){let e=new URLSearchParams(window.location.search);e.set("prato",k(t.nome)),_(null,"",`${window.location.pathname}?${e.toString()}`)}},onNextCategory:()=>es("next"),onPrevCategory:()=>es("prev"),onOpenDetails:e=>{Y(!1),H(e)}}),ee&&(0,s.jsxs)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 animate-fade",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-slate-900/60 backdrop-blur-md transition-all cursor-pointer",onClick:ea}),(0,s.jsxs)("div",{className:"relative bg-white/90 backdrop-blur-xl border border-white/30 rounded-[32px] shadow-2xl p-8 max-w-[380px] w-full text-center flex flex-col items-center gap-6 animate-scaleUp overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute -top-10 -right-10 w-32 h-32 bg-[#fac612]/20 rounded-full blur-2xl pointer-events-none"}),(0,s.jsx)("div",{className:"absolute -bottom-10 -left-10 w-32 h-32 bg-[#60c3ae]/20 rounded-full blur-2xl pointer-events-none"}),(0,s.jsx)("div",{className:"w-20 h-20 rounded-full bg-gradient-to-tr from-[#fac612] via-[#9d396f] to-[#6ea4d5] p-[3px] shadow-lg animate-bounce shrink-0 relative z-10",children:(0,s.jsx)("div",{className:"w-full h-full rounded-full bg-white flex items-center justify-center text-3xl",children:"\uD83D\uDCF8"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 relative z-10 text-center",children:[(0,s.jsx)("h3",{className:"text-2xl font-extrabold text-slate-800 uppercase tracking-wide leading-tight font-display",children:"Card\xe1pio Stories!"}),(0,s.jsx)("p",{className:"text-xs text-slate-500 font-light leading-relaxed",children:"Descubra nossos pratos em um formato interativo e din\xe2mico, igualzinho ao Instagram. Arraste para os lados para mudar de categoria e adicione ao carrinho deslizando para cima!"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 w-full relative z-10",children:[(0,s.jsx)("button",{type:"button",onClick:()=>{localStorage.setItem("viana_stories_suggestion_seen","true"),et(!1);let e=eA.find(e=>t.some(t=>t.categoria_id===e.id))||eA[0];if(e){let a=t.filter(t=>t.categoria_id===e.id);a.length>0&&(K([{isCategoryCover:!0,id:`cover-${e.id}`,nome:e.nome,descricao:e.descricao||`Conhe\xe7a nossa sele\xe7\xe3o de ${e.nome.toLowerCase()}`,categoria_nome:e.nome,categoria_id:e.id,imagem:e.imagem||null},...a]),Z(0),Y(!0))}},className:"w-full py-3.5 rounded-2xl bg-[#fac612] text-[#253c7f] font-extrabold uppercase text-[11px] tracking-widest shadow-md active:scale-95 transition-all text-center",children:"Experimentar Stories \uD83C\uDF1F"}),(0,s.jsx)("button",{type:"button",onClick:ea,className:"w-full py-3 rounded-2xl border border-slate-200 bg-white/60 text-slate-500 font-bold uppercase text-[10px] tracking-wider hover:bg-slate-50 active:scale-95 transition-all text-center",children:"Continuar na listagem \uD83D\uDCCB"})]})]})]}),W&&(0,s.jsx)(h,{item:W,category:e.find(e=>e.id===W.categoria_id),categoryItems:eP[W.categoria_id]||[],allCategories:eA,allItemsByCategory:eP,onClose:()=>H(null),onNavigate:e=>H(e),onAddToCart:(e,t)=>{for(let a=0;a<t;a++)b({id:e.id,nome:e.nome,price:e.preco,codigo:e.codigo})},onOpenCart:()=>P(!0)})]})}}},e=>{e.O(0,[5772,8500,8441,3794,7358],()=>e(e.s=3292)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.