1import{j as e,a as V}from"./query-vendor-D21EOBPj.js";import{r as N,L as l,h as M}from"./react-vendor-wzkxw4Be.js";import{S as E,I as H}from"./SaveToListButton-Dz8U7gvW.js";import{c as U,b as W,s as J}from"./index-D2LQAM4H.js";import{N as S}from"./Navbar-UeLYwKvv.js";import{F as R}from"./Footer-CmLVERiy.js";import{S as B}from"./SmartImage-B26KSXp3.js";import{B as d}from"./button-B86YiuNJ.js";import{B as o}from"./badge-BKiA7n5q.js";import{S as L,G as P}from"./skeleton-CKqgDaBh.js";import{b as Q,a as A}from"./useIngredients-BkI1tig5.js";import{c as K}from"./useTypicalDishes-yjmf-KYc.js";import{u as X}from"./usePlaces-hdAmWKUM.js";import{T as Y}from"./TypicalDishCard-DxRe2jqy.js";import{R as Z}from"./RestaurantCard-DH_R3YgF.js";import{I as ee}from"./ImageAttributionOverlay-Bu8SO39F.js";import{S as se}from"./SeoHead-BO0JG3qI.js";import{j as re,b as ae}from"./seo-63IBLTlX.js";import{a as te}from"./useIgs-9_sYlWIY.js";import{A as D}from"./dropdown-menu-CDQdTKmJ.js";import{C as u}from"./chevron-left-B0-0WVss.js";import{C as k}from"./chevron-right-KBDJSA4M.js";import{L as $}from"./leaf-DvGi22cd.js";import{m as x}from"./motion-vendor-BAXfWeLF.js";import{U as ie}from"./utensils-crossed-_iEShIoN.js";import{S as F}from"./store-DmwBAru_.js";import{S as oe}from"./shopping-cart-gPTaZuwz.js";import{A as ne}from"./activity-uvAkg_3x.js";import{S as le}from"./sparkles-eMjYJsYH.js";import"./check-BfrsabcL.js";import"./share-2-D4a1d99Q.js";import"./useUserLists-vbTIxqJW.js";import"./input-CQECCY9r.js";import"./plus-CFja9yuX.js";import"./chevron-down-BPvMgUtW.js";import"./lock-DP_e5mm6.js";import"./seo-vendor-CwGKcEKF.js";import"./radix-vendor-BPyhJHu2.js";import"./supabase-vendor-kR6BuSaZ.js";import"./i18n-vendor-DHTM_nKn.js";import"./dialog-rJDUBHd6.js";import"./search-DC8mLYoW.js";import"./shopping-bag-BafzGVyU.js";import"./map-pin-N3k91gsM.js";import"./settings-CSAbYrcD.js";import"./layers-B6MEx3r9.js";import"./tag-DG5US6i2.js";import"./book-open-DgjXuDZl.js";import"./user-B6PNVBxR.js";import"./map-CRh90O0Y.js";import"./shield-check-D9Z6_2ZX.js";import"./useSiteSettings-CU2L9fPl.js";import"./supabaseImage-rzV-CW3s.js";import"./useLocalizedContent-Deh0qLW9.js";import"./FavoriteButton-DT-jEOot.js";import"./useUserInteractions-ppZDCcNc.js";import"./utensils-D6Akr9KJ.js";import"./flame-D84TeY3T.js";import"./imageAttribution-DtBsUZvK.js";import"./info-CHoTIFhJ.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const de=U("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]),ce=p=>p==="DO"?{short:"DO",className:"bg-brazil-green text-white"}:{short:"IP",className:"bg-brazil-yellow text-brazil-green-dark"};function me({ingredientId:p}){const{data:s=[],isLoading:z}=te(p),{trackEvent:y}=W(),c=N.useRef(null);if(z||s.length===0)return null;const j=i=>c.current?.scrollBy({left:i*240,behavior:"smooth"});return e.jsxs("section",{"aria-labelledby":"ing-igs-title",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{id:"ing-igs-title",className:"font-display font-semibold text-xl text-foreground flex items-center gap-2",children:[e.jsx(D,{size:20,className:"text-brazil-green"})," Indicações Geográficas"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(l,{to:"/indicacoes-geograficas",className:"text-xs text-primary font-medium hover:underline mr-2",children:"Ver todas â"}),s.length>3&&e.jsxs(e.Fragment,{children:[e.jsx(d,{size:"icon",variant:"ghost",onClick:()=>j(-1),"aria-label":"Anterior",className:"h-8 w-8",children:e.jsx(u,{size:16})}),e.jsx(d,{size:"icon",variant:"ghost",onClick:()=>j(1),"aria-label":"Próximo",className:"h-8 w-8",children:e.jsx(k,{size:16})})]})]})]}),e.jsx("div",{ref:c,className:"flex gap-4 overflow-x-auto pb-2 -mx-1 px-1 snap-x scrollbar-hide",children:s.map(i=>{const h=ce(i.tipo);return e.jsx(l,{to:`/indicacoes-geograficas/${i.slug}`,state:{from:"ingrediente"},onClick:()=>y("ig_card_clicked",{ig_id:i.id,ig_slug:i.slug,from:"ingrediente",source_id:p}),className:"snap-start shrink-0 w-[220px] group",children:e.jsxs("div",{className:"rounded-xl overflow-hidden border border-border bg-card hover:border-brazil-green/40 hover:shadow-md transition-all",children:[e.jsxs("div",{className:"aspect-[4/3] bg-gradient-to-br from-brazil-green/5 to-brazil-yellow/5 flex items-center justify-center p-6 relative",children:[i.logo_url?e.jsx("img",{src:i.logo_url,alt:`Logo ${i.nome}`,className:"max-w-[70%] max-h-[80%] object-contain transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):e.jsx(D,{className:"h-12 w-12 text-brazil-green/30"}),e.jsx(o,{className:`absolute top-2 left-2 ${h.className} text-[10px] font-bold`,children:h.short})]}),e.jsxs("div",{className:"p-3 space-y-1",children:[e.jsx("h3",{className:"font-semibold text-sm text-foreground line-clamp-2 leading-tight group-hover:text-brazil-green-vivid transition-colors",children:i.nome}),i.uf&&e.jsx("p",{className:"text-xs text-muted-foreground",children:i.uf})]})]})},i.id)})})]})}function bs(){const{slug:p}=M(),{data:s,isLoading:z}=Q(p),{data:y=[]}=K(),c=N.useMemo(()=>
6{if(!s)return[];const r=s.id;return y.filter(t=>(t.ingredient_ids??[]).includes(r)||(t.receita?.variations??[]).some(m=>(m.ingredientes_receita??[]).some(_=>_.ingredient_id===r))?!0:(t.receita?.ingredientes_receita??[]).some(m=>m.ingredient_id===r))},[s,y]),{data:j=[]}=X({type:"restaurant"}),i=N.useMemo(()=>{if(!s)return[];const r=s.name.toLowerCase();return j.filter(t=>(t.key_ingredients??[]).some(n=>n.toLowerCase().includes(r)||r.includes(n.toLowerCase())))},[s,j]),{data:h=[]}=A(s?.can_substitute??null),{data:I=[]}=A(s?.substituted_by??null),{data:w=[]}=V({queryKey:["mkp_produtos_ingrediente",s?.id],enabled:!!s?.id,queryFn:async()=>{const{data:r,error:t}=await J.from("marketplace_produto_ingrediente").select(` 7 marketplace_produtos ( 8 id, nome, slug, preco, nota_media, 9 marketplace_produto_imagens ( url ) 10 ) 11 `).eq("ingrediente_id",s.id).eq("marketplace_produtos.status","publicado");if(t)throw t;return(r||[]).map(n=>n.marketplace_produtos).filter(Boolean).slice(0,6)},retry:1}),C=N.useRef(null),g=N.useRef(null),f=(r,t)=>r.current?.scrollBy({left:t*320,behavior:"smooth"});if(z)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(S,{}),e.jsxs("div",{className:"pt-20",children:[e.jsx(L,{className:"w-full h-[40vh]"}),e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl py-10 space-y-4",children:[e.jsx(L,{className:"h-8 w-1/2"}),e.jsx(L,{className:"h-4 w-full"})]})]}),e.jsx(R,{})]});if(!s)return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(S,{}),e.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 text-center pt-20 px-4",children:[e.jsx("div",{className:"rounded-full bg-muted p-6",children:e.jsx($,{className:"h-10 w-10 text-muted-foreground"})}),e.jsx("h2",{className:"font-display text-2xl font-bold",children:"Ingrediente não encontrado"}),e.jsx(l,{to:"/gastronomia",className:"text-primary hover:underline",children:"Ver gastronomia"})]}),e.jsx(R,{})]});const v=s.nutrition??{},a=s.culinary_properties??{},O=Object.values(v).some(r=>r!=null),T=!!(a.texture||a.flavor||a.absorbs_liquid||a.forms_crust||a.thickens||a.glycemic_index||a.processing_level)||(s.purchase_forms?.length??0)>0,q=s.description||`Conheça tudo sobre o ingrediente ${s.name}: benefÃcios nutricionais, propriedades culinárias, receitas tÃpicas e substitutos.`,G=[re({nome:s.name,descricao:q,imagem:s.image_url??null,categoria:s.category??null,origem:s.origin??null,tags:s.tags??null}),ae([{name:"InÃcio",url:"/"},{name:"Gastronomia",url:"/gastronomia"},{name:"Ingredientes",url:"/gastronomia/ingredientes"},{name:s.name}])];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(se,{title:s.name,description:q,image:s.image_url??null,path:`/gastronomia/ingredientes/${s.slug}`,type:"website",structuredData:G}),e.jsx(S,{}),e.jsxs("div",{className:"pt-20",children:[e.jsxs("div",{className:"relative h-[40vh] min-h-[280px] overflow-hidden",children:[s.image_url?e.jsx(B,{src:s.image_url,alt:`Foto de ${s.name}`,width:1600,height:640,priority:!0,quality:80,sizes:"100vw",className:"absolute inset-0 w-full h-full object-cover scale-105"}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-green-700/40 to-emerald-900/40 flex items-center justify-center",children:e.jsx($,{className:"h-24 w-24 text-white/15"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),e.jsx(ee,{entityType:"ingredient",entityId:s.id,imageUrl:s.image_url}),e.jsxs("div",{className:"absolute top-4 right-4 bg-background/85 backdrop-blur-sm rounded-full px-1 flex items-center gap-1",children:[e.jsx(E,{itemId:s.id,itemType:"ingredient",itemName:s.name,size:22}),e.jsx(H,{itemId:s.id,itemType:"ingredient",size:22})]}),e.jsxs("div",{className:"absolute bottom-0 left-0 w-full p-6 md:p-10",children:[e.jsxs("nav",{className:"flex items-center gap-1.5 text-white/60 text-xs mb-3",children:[e.jsx(l,{to:"/",className:"hover:text-white transition-colors",children:"InÃcio"}),e.jsx(k,{size:12}),e.jsx(l,{to:"/gastronomia",className:"hover:text-white transition-colors",children:"Gastronomia"}),e.jsx(k,{size:12}),e.jsx(l,{to:"/gastronomia/ingredientes",className:"hover:text-white transition-colors",children:"Ingredientes"}),e.jsx(k,{size:12}),e.jsx("span",{className:"text-white/90",children:s.name})]}),e.jsx(x.h1,{initial:{opacity:0,y:16}
11,animate:{opacity:1,y:0},className:"font-display text-3xl md:text-4xl font-bold text-white",children:s.name}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-2",children:[s.category&&e.jsx("span",{className:"text-white/65 text-sm",children:s.category}),(s.tags??[]).length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.tags.map(r=>e.jsx(o,{variant:"secondary",className:"bg-white/15 text-white border-0 backdrop-blur-sm",children:r},r))})]})]})]}),e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl py-10 space-y-12",children:[(s.short_summary||s.description)&&e.jsxs("section",{className:"space-y-4",children:[s.short_summary&&e.jsx("p",{className:"text-foreground/90 text-lg leading-relaxed font-medium",children:s.short_summary}),s.description&&e.jsx("p",{className:"text-foreground/75 leading-relaxed whitespace-pre-line",children:s.description})]}),(s.origin||s.history)&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(P,{size:18,className:"text-emerald-600"}),"Origem e contexto cultural do ",s.name]}),e.jsxs("div",{className:"space-y-4",children:[s.origin&&e.jsxs("div",{className:"bg-muted/40 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold mb-1",children:"Origem"}),e.jsx("p",{className:"text-foreground/85",children:s.origin})]}),s.history&&e.jsx("p",{className:"text-foreground/80 leading-relaxed whitespace-pre-line",children:s.history})]})]}),e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border",children:["Pratos que usam ",s.name]}),c.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center bg-muted/30 rounded-2xl",children:[e.jsx(ie,{className:"h-10 w-10 text-muted-foreground mb-3"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Nenhum prato cadastrado com este ingrediente ainda."})]}):e.jsxs("div",{className:"relative -mx-1",children:[c.length>3&&e.jsx(d,{variant:"ghost",size:"icon",className:"absolute -left-3 top-[88px] -translate-y-1/2 z-10 h-8 w-8 rounded-full bg-background shadow-md border border-border hidden md:flex",onClick:()=>f(C,-1),"aria-label":"Rolar pratos para esquerda",children:e.jsx(u,{size:15})}),e.jsx(x.div,{ref:C,initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.07}}},className:"flex gap-4 overflow-x-auto scrollbar-hide snap-x pb-2 px-1",children:c.map(r=>e.jsx(x.div,{variants:{hidden:{opacity:0,y:12},visible:{opacity:1,y:0}},whileHover:{y:-4,scale:1.02},transition:{duration:.2,ease:"easeOut"},className:"snap-start shrink-0 w-[200px] will-change-transform",children:e.jsx(Y,{dish:r})},r.id))}),c.length>3&&e.jsx(d,{variant:"ghost",size:"icon",className:"absolute -right-3 top-[88px] -translate-y-1/2 z-10 h-8 w-8 rounded-full bg-background shadow-md border border-border hidden md:flex",onClick:()=>f(C,1),"aria-label":"Rolar pratos para direita",children:e.jsx(u,{size:15,className:"rotate-180"})})]})]}),w.length>0&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(F,{size:18,className:"text-emerald-600"}),"Produtos no Mercado com ",s.name]}),e.jsxs("div",{className:"relative -mx-1",children:[w.length>3&&e.jsx(d,{variant:"ghost",size:"icon",className:"absolute -left-3 top-[88px] -translate-y-1/2 z-10 h-8 w-8 rounded-full bg-background shadow-md border border-border hidden md:flex",onClick:()=>f(g,-1),"aria-label":"Rolar produtos para esquerda",children:e.jsx(u,{size:15})}),e.jsx(x.div,{ref:g,initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.07}}},className:"flex gap-4 overflow-x-auto scrollbar-hide snap-x pb-2 px-1",children:w.map(r=>{const t=r.marketplace_produto_imagens?.[0]?.url;return e.jsx(x.div,{variants:{hidden:{opacity:0,y:12},visible:{opacity:1,y:0}},whileHover:{y:-4,scale:1.02},transition:{duration:.2,ease:"easeOut"},className:"snap-start shrink-0 w-[200px] will-change-transform",children:e.jsxs(l,{to:`/marketplace/${r.slug}-${r.id}`,className:"bg-card border border-border/60 rounded-2xl overflow-hidden hover:shadow-[0_8px_30px_rgb(0,0,0,0.06)] hover:border-primary/20 transition-all duration-300 group flex flex-col h-full",children:[e.jsx("div",{className:"aspect-square bg-muted relative overflow-hidden",children:t?e.jsx(B,{src:t,alt:r.nome,width:300,height:300,aspect:"auto",sizes:"200px",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700 ease-in-out"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-secondary/30 text-muted-foreground
11/30",children:e.jsx(oe,{size:32})})}),e.jsxs("div",{className:"p-3 flex flex-col flex-1 gap-2",children:[e.jsx("h3",{className:"font-semibold text-xs leading-snug text-foreground group-hover:text-primary transition-colors line-clamp-2",children:r.nome}),e.jsxs("div",{className:"mt-auto",children:[e.jsxs("p",{className:"font-black text-sm text-foreground",children:["R$ ",r.preco.toFixed(2).replace(".",",")]}),r.nota_media>0&&e.jsx("div",{className:"flex items-center gap-1 mt-1 text-[10px] text-amber-600",children:e.jsxs("span",{children:["â ",r.nota_media]})})]})]})]})},r.id)})}),w.length>3&&e.jsx(d,{variant:"ghost",size:"icon",className:"absolute -right-3 top-[88px] -translate-y-1/2 z-10 h-8 w-8 rounded-full bg-background shadow-md border border-border hidden md:flex",onClick:()=>f(g,1),"aria-label":"Rolar produtos para direita",children:e.jsx(u,{size:15,className:"rotate-180"})})]})]}),e.jsx(me,{ingredientId:s.id}),(s.world_uses?.length??0)>0&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(P,{size:18,className:"text-blue-600"}),"Uso do ",s.name," no mundo"]}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-border",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-muted/50",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left px-4 py-2.5 font-semibold text-foreground/80",children:"PaÃs"}),e.jsx("th",{className:"text-left px-4 py-2.5 font-semibold text-foreground/80",children:"Nome local"}),e.jsx("th",{className:"text-left px-4 py-2.5 font-semibold text-foreground/80",children:"Forma de uso"})]})}),e.jsx("tbody",{children:s.world_uses.map((r,t)=>e.jsxs("tr",{className:"border-t border-border",children:[e.jsx("td",{className:"px-4 py-2.5 font-medium",children:r.country}),e.jsx("td",{className:"px-4 py-2.5 text-foreground/80 italic",children:r.local_name||"â"}),e.jsx("td",{className:"px-4 py-2.5 text-foreground/75",children:r.description||"â"})]},t))})]})})]}),O&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(ne,{size:18,className:"text-rose-600"}),"Informação nutricional do ",s.name," ",e.jsxs("span",{className:"text-sm font-normal text-muted-foreground",children:["(",v.household_measure||"por 100g",")"]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[["calories","Calorias","kcal",null],["carbs_g","Carboidratos","g","carbs_pct"],["protein_g","ProteÃnas","g","protein_pct"],["fat_g","Gorduras","g","fat_pct"],["fiber_g","Fibras","g","fiber_pct"]].map(([r,t,n,b])=>{const m=v[r],_=b?v[b]:null;return e.jsxs("div",{className:"bg-muted/40 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold mb-1",children:t}),e.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[m??"â",e.jsx("span",{className:"text-xs text-muted-foreground font-normal ml-0.5",children:m!=null?n:""})]}),_!=null&&e.jsxs("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:[_,"% VD"]})]},r)})}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mt-3",children:[["saturated_fat_g","Gord. Saturada","g"],["trans_fat_g","Gord. Trans","g"],["sugar_g","Açúcares","g"],["sodium_mg","Sódio","mg"]].map(([r,t,n])=>{const b=v[r];return b==null?null:e.jsxs("div",{className:"bg-muted/40 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold mb-1",children:t}),e.jsxs("p",{className:"text-xl font-bold text-foreground",children:[b,e.jsx("span",{className:"text-xs text-muted-foreground font-normal ml-0.5",children:n})]})]},r)})}),e.jsxs("div",{className:"mt-4 p-4 bg-muted/30 border border-border rounded-xl text-xs text-muted-foreground space-y-1.5 leading-relaxed",children:[e.jsx("p",{className:"font-medium text-foreground/80 mb-1",children:"Aviso Legal e Nutricional"}),e.jsx("p",{children:"⢠Os valores nutricionais apresentados são estimativas médias baseadas em tabelas de composição de alimentos (como a TACO) e podem variar dependendo do cultivo, safra, clima e método de preparo."}),e.jsx("p",{children:"⢠% Valores Diários de referência com base em uma dieta de 2.000 kcal ou 8.400 kJ. Seus valores diários podem ser maiores ou menores dependendo de suas necessidades energéticas."}),e.jsx("p",{children:"⢠As informações aqui contidas têm caráter estritamente educativo e informativo, não substituindo, em nenhuma hipótese, o aconselhamento, diagnóstico ou tratamento por um médico ou nutricionista."})]})]}),T&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(le,{size:18,className:"text-amber-600"}),"Propriedades culinárias do ",s.name]}),(a.processing_level||a.glycemic_index)&&e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[a.processing_level&&e.jsx(o,{variant:"outline",className:"bg-amber-500/10 text-amber-700 border-amber-500/20",children:a.processing_level}),a.glycemic_index&&e.jsxs(o,{variant:"outline",className:"bg-emerald-500/10 text-emerald-700 border-emerald-500/20",children:["IG: ",a.glycemic_index]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[(a.texture||a.flavor)&&e.jsxs("div",{className:"space-y-2",children:[a.texture&&e.jsxs("div",{children:[e.jsx("span",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold",children:"Textura: "}
11),e.jsx("span",{className:"text-foreground/85",children:a.texture})]}),a.flavor&&e.jsxs("div",{children:[e.jsx("span",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold",children:"Sabor: "}),e.jsx("span",{className:"text-foreground/85",children:a.flavor})]})]}),(a.absorbs_liquid||a.forms_crust||a.thickens)&&e.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.absorbs_liquid&&e.jsx(o,{variant:"secondary",children:"Absorve lÃquido"}),a.forms_crust&&e.jsx(o,{variant:"secondary",children:"Forma crosta"}),a.thickens&&e.jsx(o,{variant:"secondary",children:"Espessa"})]})]}),(s.purchase_forms?.length??0)>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold mb-2",children:"Formas de compra"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.purchase_forms.map(r=>e.jsx(o,{variant:"outline",children:r},r))})]})]}),(h.length>0||I.length>0)&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(de,{size:18,className:"text-violet-600"}),"Substituições para ",s.name]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[h.length>0&&e.jsxs("div",{className:"bg-muted/40 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold mb-2",children:"Pode substituir"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:h.map(r=>e.jsx(l,{to:`/gastronomia/ingredientes/${r.slug??r.id}`,children:e.jsx(o,{variant:"secondary",className:"hover:bg-primary/15 cursor-pointer",children:r.name})},r.id))})]}),I.length>0&&e.jsxs("div",{className:"bg-muted/40 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground font-semibold mb-2",children:"Pode ser substituÃdo por"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:I.map(r=>e.jsx(l,{to:`/gastronomia/ingredientes/${r.slug??r.id}`,children:e.jsx(o,{variant:"secondary",className:"hover:bg-primary/15 cursor-pointer",children:r.name})},r.id))})]})]})]}),i.length>0&&e.jsxs("section",{children:[e.jsxs("h2",{className:"font-display font-semibold text-xl text-foreground mb-5 pb-2 border-b border-border flex items-center gap-2",children:[e.jsx(F,{size:18,className:"text-amber-600"}),"Restaurantes com ",s.name]}),e.jsxs("div",{className:"relative -mx-1",children:[i.length>3&&e.jsx(d,{variant:"ghost",size:"icon",className:"absolute -left-3 top-[110px] -translate-y-1/2 z-10 h-8 w-8 rounded-full bg-background shadow-md border border-border hidden md:flex",onClick:()=>f(g,-1),"aria-label":"Rolar restaurantes para esquerda",children:e.jsx(u,{size:15})}),e.jsx(x.div,{ref:g,initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.07}}},className:"flex gap-4 overflow-x-auto scrollbar-hide snap-x pb-2 px-1",children:i.map(r=>e.jsx(x.div,{variants:{hidden:{opacity:0,y:12},visible:{opacity:1,y:0}},className:"snap-start shrink-0 w-[200px] will-change-transform",children:e.jsx(Z,{place:r})},r.id))}),i.length>3&&e.jsx(d,{variant:"ghost",size:"icon",className:"absolute -right-3 top-[110px] -translate-y-1/2 z-10 h-8 w-8 rounded-full bg-background shadow-md border border-border hidden md:flex",onClick:()=>f(g,1),"aria-label":"Rolar restaurantes para direita",children:e.jsx(u,{size:15,className:"rotate-180"})})]})]})]})]}),e.jsx(R,{})]})}export{bs as default};
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.