PageSourceSearch

https://innovationbrindes.com.br/_next/static/chunks/3469-e1d8e0cf…?dpl=dpl_ByHw21PTpFz7No9nVRPt6zEtFwij

js innovationbrindes.com.br collected 2026-10-04 01:51:34 UTC 35,762 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3469],{1962:(e,t,s)=>{s.d(t,{d:()=>r});var a=s(14232);let r=(e,t)=>{let[s,r]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let s=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(s)}},[e,t]),s}},7507:(e,t,s)=>{s.d(t,{U:()=>r});var a=s(14232);function r(e){let[t,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!window.matchMedia)return;let t=window.matchMedia(e);function a(e){s(e.matches)}return s(t.matches),t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),[t]}},33469:(e,t,s)=>{s.r(t),s.d(t,{default:()=>es});var a=s(37876),r=s(54587),n=s.n(r),o=s(89099),l=s(28517),i=s(48230),c=s.n(i),d=s(14232),x=s(81151),m=s(1992),u=s(1962),p=s(42012),g=s(56316),h=s(45715);function f(e,t="pt-BR"){let s=String(e??"").trim().toLocaleLowerCase(t);if(!s)return"";let[a,...r]=Array.from(s);return a.toLocaleUpperCase(t)+r.join("")}function b(e){let t="number"==typeof e?e:Number.parseFloat(e);return Number.isFinite(t)?t:0}function v(e){let t=b(e);return Number.isFinite(t)&&t>0}function j(e){let t=String(e??"").trim();return/^\d+$/.test(t)?t.replace(/^0+(?=\d)/,""):""}var w=s(96122);let y={pt:{products:"Produtos sugeridos",categories:"Categorias",noResults:"Nenhuma sugest\xe3o encontrada",viewAll:"Ver todos os resultados",loading:"Buscando sugest\xf5es...",code:"C\xf3d.",startingAt:"A partir de",productCount:"produtos"},en:{products:"Suggested products",categories:"Categories",noResults:"No suggestions found",viewAll:"View all results",loading:"Finding suggestions...",code:"Code",startingAt:"Starting at",productCount:"products"}
1,es:{products:"Productos sugeridos",categories:"Categor\xedas",noResults:"No se encontraron sugerencias",viewAll:"Ver todos los resultados",loading:"Buscando sugerencias...",code:"C\xf3d.",startingAt:"Desde",productCount:"productos"},de:{products:"Produktvorschl\xe4ge",categories:"Kategorien",noResults:"Keine Vorschl\xe4ge gefunden",viewAll:"Alle Ergebnisse anzeigen",loading:"Vorschl\xe4ge werden gesucht...",code:"Code",startingAt:"Ab",productCount:"Produkte"},fr:{products:"Produits sugg\xe9r\xe9s",categories:"Cat\xe9gories",noResults:"Aucune suggestion trouv\xe9e",viewAll:"Voir tous les r\xe9sultats",loading:"Recherche de suggestions...",code:"Code",startingAt:"\xc0 partir de",productCount:"produits"},it:{products:"Prodotti suggeriti",categories:"Categorie",noResults:"Nessun suggerimento trovato",viewAll:"Vedi tutti i risultati",loading:"Ricerca suggerimenti...",code:"Cod.",startingAt:"A partire da",productCount:"prodotti"}};async function N(e,t){if(!e||"pt"===t)return e;try{let s=new AbortController,a=setTimeout(()=>s.abort(),3500),r=await fetch(`/api/traduzir-termo-busca?termo=${encodeURIComponent(e)}&idioma=${t}`,{signal:s.signal});if(clearTimeout(a),!r.ok)return e;let n=await r.json();return n?.termo_traduzido||e}catch{return e}}async function C(e,t){let s=await N(e,t);return((await w.FH.get(`/site/v2/pedido/busca-palavra-chave/${encodeURIComponent(s)}`,{params:{idioma:t}})).data||[]).map((e,t)=>({id:`legacy-${t}-${e.descricao_categoria}`,type:"category",name:e.descricao_categoria,category:e.descricao_categoria,url:e.link_categoria,productC
1ount:0}))}async function F(e,t){let s=await N(e,t);try{let e=await fetch(`/api/smart-search-suggestions?q=${encodeURIComponent(s)}&hitsPerPage=20&idioma=${encodeURIComponent(t)}`);if(e.ok)return(await e.json()).hits||[]}catch(e){console.warn("Busca inteligente indispon\xedvel; usando sugest\xf5es legadas.",e)}return C(e,t)}function k({locale:e,navigate:t,maxWidth:s=340}){let[r,n]=(0,d.useState)(""),[o,l]=(0,d.useState)(!1),[i,w]=(0,d.useState)(-1),N=(0,d.useRef)(null),C=(0,u.d)(r.trim(),120),k=(0,p.$)(e),_=(0,g.iO)(e),E=_.language,$=_.bcp47,L=y[E]||y.pt,A=""!==j(C),{data:S=[],isFetching:R}=(0,m.useQuery)({queryKey:["smart-search",C,E],queryFn:()=>F(C,E),enabled:C.length>=2,staleTime:6e5*!A,retry:!!A&&1}),z=(0,d.useMemo)(()=>(function(e,t=3,s=10,a=""){let r=Array.isArray(e)?e:[],n=r.filter(e=>"category"===e.type).slice(0,t),o=j(a);return[...n,...r.filter(e=>"product"===e.type&&v(e.startingPrice)).sort((e,t)=>{let s=""!==o&&j(e.code)===o;return s!==(""!==o&&j(t.code)===o)?s?-1:1:b(e.startingPrice)-b(t.startingPrice)}).slice(0,s)]})(S,3,10,C),[C,S]);return(0,d.useEffect)(()=>{w(-1),l(C.length>=2)},[C]),(0,d.useEffect)(()=>{function e(e){N.current&&!N.current.contains(e.target)&&l(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,a.jsxs)("div",{ref:N,className:"relative w-full",style:{maxWidth:s},children:[(0,a.jsxs)("form",{onSubmit:function(e){e.preventDefault();let s=r.trim();s&&(l(!1),t(`/search/${encodeURIComponent(s)}`))},className:"relative w-full px-4 py-1 border border-[#000000] rounded-md flex items-center focus-within:border-[#80BC00] focus-within:ring-2 focus-within:ring-[#80BC00]/20 bg-white overflow-hidden",role:"search",children:[(0,a.jsx)("input",{id:"search",name:"search",type:"search",autoComplete:"off",className:"flex-1 min-w-0 text-lg rounded-md placeholder:text-[#000000] bg-transparent outline-none",placeholder:k.search?.placeholderSearch,value:r,onChange:e=>n(e.target.value),onFocus:()=>C.length>=2&&l(!0),onKeyDown:function(e){o&&0!==z.length&&("ArrowDown"===e.key?(e.preventDefault(),w(e=>(e+1)%z.length)):"ArrowUp"===e.key?(e.preventDefault(),w(e=>e<=0?z.length-1:e-1)):"Enter"===e.key&&i>=0?(e.preventDefault(),l(!1),t(z[i].url)):"Escape"===e.key&&l(!1))},role:"combobox","aria-label":k.search?.placeholderSearch||k.header?.search,"aria-autocomplete":"list","aria-controls":"smart-search-suggestions","aria-expanded":o,"aria-activedescendant":i>=0?`smart-search-option-${i}`:void 0}),(0,a.jsx)("button",{type:"submit",className:"shrink-0 flex items-center justify-center","aria-label":k.header?.search,children:(0,a.jsx)(x.EO$,{className:"text-2xl"})})]}),o&&(0,a.jsx)("div",{id:"smart-search-suggestions",role:"listbox",className:"absolute z-[100] top-[calc(100%+8px)] right-0 w-[min(520px,calc(100vw-24px))] rounded-xl border border-[#dfe8d2] bg-white text-gray-950 shadow-2xl overflow-hidden",children:R&&0===z.length?(0,a.jsxs)("div",{className:"p-5 flex items-center gap-3 text-sm font-semibold text-gray-700","aria-live":"polite",children:[(0,a.jsx)("span",{className:"h-4 w-4 rounded-full border-2 border-[#dce8c8] border-t-[#80BC00] animate-spin"}),L.loading]}):0===z.length?(0,a.jsx)("div",{className:"p-5 text-sm font-semibold text-gray-700",children:L.noResults}):(0,a.jsxs)(a.Fragment,{children:[z.map((e,t)=>{let s=z.slice(0,t),n="category"===e.type&&!s.some(e=>"category"===e.type),o="product"===e.type&&!s.some(e=>"product"===e.type),d=f(e.name,$),m=f(e.theme,$),u="product"===e.type&&v(e.startingPrice);return(0,a.jsxs)("div",{children:[(n||o)&&(0,a.jsx)("div",{className:"px-4 pt-3 pb-1 text-[11px] font-extrabold uppercase tracking-[0.12em] text-[#4d6d16]",children:n?L.categories:L.products}),(0,a.jsxs)(c(),{id:`smart-search-option-${t}`,role:"option","aria-selected":i===t,href:e.url||`/search/${encodeURIComponent(r)}`,onMouseEnter:()=>w(t),onClick:()=>l(!1),className:`flex items-center gap-3 px-4 py-2.5 transition-colors ${i===t?"bg-[#f0f7e5]":"hover:bg-[#f7faf2]"}`,children:["product"===e.type&&e.image?(0,a.jsx)("img",{src:e.image,alt:"",className:"h-12 w-12 rounded-lg border border-gray-100 object-cover"}):(0,a.jsx)("span",{className:"h-10 w-10 rounded-lg bg-[#edf6df] text-[#568400] flex items-center justify-center shrink-0",children:(0,a.jsx)(x.kE7,{className:"text-xl"})}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:"block truncate text-sm font-bold text-gray-950",children:d}),"product"===e.type?(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",children:[e.code&&(0,a.jsxs)("span",{className:"shrink-0 text-gray-600",children:[L.code," ",e.code]}),e.code&&u&&(0,a.jsx)("span",{className:"text-gray-400",children:"\xb7"}),u&&(0,a.jsxs)("span",{className:"truncate font-extrabold text-[#568400]",children:[L.startingAt," ",(0,h.$g)(e.startingPrice)]})]}):(0,a.jsx)("span",{className:"block truncate text-xs text-gray-600",children:m||(e.productC
1ount?`${e.productCount} ${L.productCount}`:L.categories)})]}),(0,a.jsx)(x.TN8,{className:"shrink-0 text-lg text-[#6f9d1d]"})]})]},e.id)}),(0,a.jsxs)("button",{type:"button",onClick:()=>{l(!1),t(`/search/${encodeURIComponent(r.trim())}`)},className:"w-full border-t border-gray-100 px-4 py-3 text-left text-sm font-extrabold text-[#426b00] hover:bg-[#f7faf2]",children:[L.viewAll," “",r.trim(),"”"]})]})})]})}function _(){let e=(0,o.useRouter)(),{localidadeSelecionada:t}=(0,l.yw)();return(0,a.jsx)(k,{locale:t,navigate:t=>e.push(t),maxWidth:340})}var E=s(84283),$=s(81635),L=s(21829),A=s(19090),S=s(8145),R=s.n(S);let z=async e=>{let t=e||(0,g.mT)(),s=t?(0,g.H9)(t):null,{data:a}=await R().get("https://api.innovationbrindes.com.br/api/site/v2/produto/dropp-arte/listar-categorias-droppart",{params:s&&"pt"!==s?{idioma:s}:void 0});return a},U=e=>(0,m.useQuery)(["exclusivos",e],()=>z(e),{staleTime:3e5,cacheTime:6e5});function P({menuLinks:e}){let{localidadeSelecionada:t}=(0,l.yw)(),s=(0,p.$)(t),{data:r,isLoading:n}=U(t),i=(0,o.useRouter)(),[m,u]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{let e=()=>u(!0);return i.events.on("routeChangeComplete",e),()=>i.events.off("routeChangeComplete",e)},[i]),(0,a.jsxs)("nav",{className:"flex items-center gap-2 whitespace-nowrap",children:[(0,a.jsxs)("button",{"aria-label":s.navigation.gifts,className:"flex text-xs uppercase font-bold relative items-center group hover:text-[#F45100] py-2",onMouseEnter:()=>u(!1),children:[s.navigation.gifts,(0,a.jsx)(x.WnU,{className:"text-xl"}),(0,a.jsx)(D,{list:e?.subcategorias,forcedClosed:m,onItemClick:()=>u(!0)})]}),(0,a.jsxs)("button",{"aria-label":s.navigation.segments,className:"flex text-xs uppercase font-bold relative items-center group hover:text-[#F45100] py-2",children:[s.navigation.segments,(0,a.jsx)(x.WnU,{className:"text-xl"}),(0,a.jsx)(D,{list:e?.segmentos})]}),(0,a.jsx)(c(),{href:"/segmento/novidades/6",children:(0,a.jsx)("button",{"aria-label":s.navigation.launches,className:"text-xs uppercase font-bold hover:text-[#F45100] py-2",children:s.navigation.launches})}),(0,a.jsx)(c(),{href:"/ultra-rapido",prefetch:!1,children:(0,a.jsx)("button",{"aria-label":s.navigation.ready48Hours,className:"text-xs uppercase font-bold hover:text-[#F45100] py-2",children:s.navigation.ready48Hours})}),(0,a.jsxs)("button",{"aria-label":s.navigation.exclusiveInnovation,className:"flex text-xs text-white uppercase font-bold relative items-center group rounded-full pl-3 pr-3 py-2 gap-1.5",style:{background:"linear-gradient(to right, #93C011, #529410)",overflow:"visible"},children:[(0,a.jsx)("span",{className:"absolute inset-0 w-1/2 h-full bg-shine-gradient animate-shine opacity-30 rounded-full overflow-hidden"}),(0,a.jsx)(E.gt3,{className:"text-sm relative z-10"}),(0,a.jsx)("span",{className:"relative z-10",children:s.navigation.exclusiveInnovation}),(0,a.jsx)(x.WnU,{className:"text-xl relative z-10"}),!n&&r&&(0,a.jsx)(B,{list:r})]})]})}function D({list:e=[],forcedClosed:t,onItemClick:s}){return(0,a.jsx)("ul",{className:"no-zoom hidden border overflow-hidden group-hover:block absolute z-[9999] top-full left-0 bg-white shadow-lg columns-4 whitespace-normal",style:t?{display:"none"}:void 0,children:e?.map((e,t)=>(0,a.jsx)("li",{className:"text-black py-2 px-4 hover:bg-[#F9F9F9]  w-full text-start animate-fade-in-left font-normal relative before:w-0 hover:before:w-2 before:h-full before:absolute before:top-0 before:left-0 before:bg-[#80BC00]",children:(0,a.jsx)(c(),{href:e.link,className:"w-[200px] block",onClick:s,children:e.nome||e.name})},t))})}function B({list:e=[]}){let{localidadeSelecionada:t}=(0,l.yw)(),s=(0,p.$)(t),r=(0,g.iO)(t).bcp47,[o,i]=(0,d.useState)(null),m="pt"===t||"br"===t||!t,u=[...e].sort((e,t)=>3===e.id_pai?1:3===t.id_pai?-1:0);return(0,a.jsx)("div",{className:"no-zoom hidden group-hover:block fixed z-[9999] w-full max-w-[1366px] whitespace-normal",style:{top:"67px",left:"50%",transform:"translateX(-50%)"},children:(0,a.jsxs)("div",{className:"bg-white shadow-lg border",children:[(0,a.jsxs)("div",{className:"flex p-6 gap-6",children:[(0,a.jsxs)("div",{className:"w-1/5 flex flex-col justify-center text-start",children:[(0,a.jsx)("h3",{className:"text-base font-normal text-black mb-2 p-1 bg-primary/20 text-start w-fit px-2",children:s.navigation.exclusiveTitle}),(0,a.jsx)("p",{className:"text-base text-black mb-1 normal-case font-normal",children:s.navigation.exclusiveDescription1}),(0,a.jsx)("p",{className:"text-base text-black mb-3 normal-case font-normal",children:s.navigation.exclusiveDescription2}),(0,a.jsx)("p",{className:"text-xs text-black normal-case font-normal",children:s.navigation.exclusiveDescription3})]}),(0,a.jsx)("div",{className:"flex-1 grid grid-cols-4 gap-4",children:u?.map((e,t)=>(0,a.jsxs)("div",{className:"relative h-full",children:[(0,a.jsxs)("button",{onClick:e=>{e.preventDefault(),i(o===t?null:t)},className:`flex flex-col hover:shadow-md transition-all group/item cursor-pointer text-start w-full ${o===t?"shadow-md":""}`,children:[(0,a.jsxs)("div",{className:"text-center mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1 text-xs text-gray-600 mb-1",children:[(0,a.jsx)("h4",{className:"capitalize text-sm text-gray-900 mb-1 font-normal",children:e.nome.toLowerCase()}),(0,a.jsx)($.MWp,{className:"text-primary text-xl"}),(0,a.jsx)("span",{className:"font-normal text-gray-900 ",children:e.capacidade})]}),(0,a.jsxs)("p",{className:"text-xs text-[#575757] font-light bg-[#FBFBFB] w-fit roun
1ded-md mx-auto px-2",children:[(0,a.jsx)("strong",{children:e.quantidade_total})," ",s.navigation.models]})]}),(0,a.jsx)("div",{className:"bg-[#F5F5F5] flex items-center justify-center mb-3 h-full min-h-[250px] max-h-[250px] py-4 px-4",style:{borderRadius:"9px"},children:(0,a.jsx)("img",{src:e.imagem,alt:e.nome,className:`max-w-full object-contain max-h-[200px] ${0===t?"scale-75":""}`,onError:e=>{e.target.style.display="none"}})}),(0,a.jsx)("div",{className:"text-center pb-2",children:(0,a.jsx)("span",{className:`text-xs font-medium group-hover/item:text-[#F45100] transition-colors ${o===t?"text-[#F45100]":"text-gray-800"}`,children:s.navigation.explorePrints})})]}),o===t&&null!==o&&(0,a.jsx)("div",{className:"absolute bottom-[-25px] left-1/2 -translate-x-1/2 z-10",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-0 h-0 border-l-[11px] border-l-transparent border-r-[11px] border-r-transparent border-b-[11px] border-b-gray-300"}),(0,a.jsx)("div",{className:"absolute top-[1px] left-1/2 -translate-x-1/2 w-0 h-0 border-l-[10px] border-l-transparent border-r-[10px] border-r-transparent border-b-[10px] border-b-white"})]})})]},t))})]}),null!==o&&(0,a.jsx)("div",{className:"bg-white border-t animate-fade-in-down",children:(0,a.jsxs)("div",{className:"flex px-6 py-6 gap-6",children:[(0,a.jsxs)("div",{className:"w-1/5 flex flex-col gap-2",children:[(0,a.jsxs)(c(),{href:`/exclusivos/${u[o]?.slug||u[o]?.nome.toLowerCase().replace(/\s+/g,"-")}/ver-todas-estampas`,className:"flex capitalize items-center gap-2 px-3 py-2 pr-8 bg-white border-gray-300 text-gray-700 font-medium text-sm rounded hover:border-primary hover:text-primary transition-all relative",children:[(0,a.jsx)(L.qf5,{className:"h-4 w-4 text-[#F45100]"}),s.navigation.viewAllPrints,(0,a.jsx)(A.eLu,{className:"absolute right-3 top-1/2 -translate-y-1/2 text-sm"})]}),(0,a.jsxs)(c(),{href:`/exclusivos/${u[o]?.slug||u[o]?.nome.toLowerCase().replace(/\s+/g,"-")}/mais-vendidos`,className:"flex capitalize items-center gap-2 px-3 py-2 pr-8 bg-white border border-gray-200 text-gray-700 font-medium text-sm rounded hover:bg-[#F45100] hover:text-white transition-all relative group",children:[(0,a.jsx)(E.gt3,{className:"h-4 w-4 group-hover:text-white transition-colors",style:{color:"#F45100"}}),s.navigation.bestSellers,(0,a.jsx)(A.eLu,{className:"absolute right-3 top-1/2 -translate-y-1/2 text-sm group-hover:text-white transition-colors",style:{color:"#F45100"}})]}),m&&(0,a.jsxs)(c(),{href:"/copa",className:"font-bold flex capitalize items-center gap-2 px-3 py-2 pr-8 border border-gray-200 text-gray-700 text-sm rounded relative group bg-white hover:bg-gradient-to-r hover:from-[#009C3B] hover:to-[#FFDF00] hover:text-white hover:border-transparent transition-colors duration-300",onMouseEnter:()=>{let e=new Audio("/copa/vinheta-brasil.mp3");e.volume=.4,e.play().catch(()=>{})},children:[(0,a.jsx)(n(),{src:"/copa/icone_brasil.png",alt:"Copa do Mundo",width:32,height:21,style:{aspectRatio:"32 / 21"}}),(0,a.jsx)("span",{className:"normal-case",children:s.navigation.worldCup}),(0,a.jsx)(A.eLu,{className:"absolute right-3 top-1/2 -translate-y-1/2 text-sm group-hover:text-white transition-colors duration-300",style:{color:"#009045"}})]})]}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:"grid grid-cols-4 gap-1",children:(()=>{let e=[...u[o]?.subcategorias||[]].sort((e,t)=>e.nome.localeCompare(t.nome,r,{sensitivity:"base"})),t=Math.ceil(e.length/4),s=[];for(let a=0;a<t;a++)for(let r=0;r<4;r++){let n=r*t+a;n<e.length&&s.push(e[n])}return s.map((e,t)=>{let s=Math.floor(t/4),r=u[o]?.slug||u[o]?.nome.toLowerCase().replace(/\s+/g,"-"),n=e.slug||e.nome.toLowerCase().replace(/\s+/g,"-"),l=`/exclusivos/${r}/${n}`;return(0,a.jsxs)(c(),{href:l,className:"font-normal capitalize text-xs text-gray-700 hover:text-[#F45100] p-1 rounded transition-colors flex items-center gap-2 border border-transparent hover:border-[#F45100]",style:{backgroundColor:s%2==0?"#FFFFFF":"#F2F2F2"},children:[(0,a.jsx)("span",{children:e.nome}),(0,a.jsx)(x.WnU,{className:"rotate-[-90deg] text-base flex-shrink-0 ml-auto"})]},e.id)})})()})})]})})]})})}var M=s(88677);function W(){let{setOpenChat:e}=(0,M.Mm)();return(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 cursor-pointer",onClick:()=>e(!0),children:[(0,a.jsx)(E.dRU,{className:"text-[#3D3D3D] text-xl"}),(0,a.jsx)("span",{className:"font-semibold text-base",children:"+55 11 2649-6030"})]})}var I=s(57183);function T({compact:e=!1}){let t=(0,l.yw)(),s=(0,I.g)(),r="function"==typeof s.selecionarLocalidade,n=r?s.localidadeSelecionada:t.localidadeSelecionada,o=r?s.selecionarLocalidade:t.selecionarLocalidade,i=(0,p.$)(n),[c,x]=(0,d.useState)(!1),m=(0,d.useRef)(null),u=(0,g.iO)(n);return(0,d.useEffect)(()=>{function e(e){m.current&&!m.current.contains(e.target)&&x(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a.jsxs)("div",{ref:m,className:"relative",children:[(0,a.jsxs)("button",{type:"button","aria-label":i.header.selectCountry,onClick:()=>x(e=>!e),className:`flex items-center rounded-full border border-[#80BC00] hover:text-[#F45100] hover:border-[#F45100] transition-colors ${e?"px-2 py-0.5":"px-3 py-1"}`,children:[(0,a.jsx)("img",{src:u.flag,alt:"",className:"h-4 w-4 roun
1ded-sm object-cover"}),(0,a.jsx)("span",{className:"ml-2 text-sm font-medium",children:i.paisesNomes?.[u.id]||u.label}),(0,a.jsx)("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",className:`ml-1 h-5 w-5 transition-transform duration-200 ${c?"rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 15l6-6 6 6"})})]}),c&&(0,a.jsx)("ul",{className:"absolute right-0 top-full z-[9999] mt-1 max-h-[320px] w-[210px] overflow-auto border bg-white shadow-lg",children:g.q8.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("button",{type:"button",onClick:()=>{o(e.id),x(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-xs hover:bg-[#F9F9F9] ${e.id===n?"bg-[#F5F5F5] font-semibold":""}`,children:[(0,a.jsx)("img",{src:e.flag,alt:"",className:"h-5 w-7 rounded-sm object-cover"}),(0,a.jsx)("span",{children:i.paisesNomes?.[e.id]||e.label})]})},e.id))})]})}function H({compact:e=!1}){let{moedas:t,moedaSelecionada:s,carregando:r,selecionarMoeda:n,localidadeSelecionada:o}=(0,l.yw)(),i=(0,p.$)(o),[c,x]=(0,d.useState)(!1),m=(0,d.useRef)(null);if((0,d.useEffect)(()=>{function e(e){m.current&&!m.current.contains(e.target)&&x(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),r||!t.length)return null;let u=t.filter((e,t,s)=>s.findIndex(t=>t.moeda===e.moeda)===t),g=u.find(e=>e.moeda===s)||u[0];return(0,a.jsxs)("div",{ref:m,className:"relative",children:[(0,a.jsxs)("button",{type:"button","aria-label":i.header.selectCurrency,onClick:()=>x(e=>!e),className:`flex items-center gap-1 rounded-full border border-[#80BC00] font-semibold text-[#414042] hover:text-[#F45100] hover:border-[#F45100] transition-colors ${e?"px-2 py-0.5 text-[11px]":"px-3 py-1 text-xs"}`,children:[(0,a.jsx)("span",{children:g.simbolo}),(0,a.jsx)("span",{children:g.moeda}),(0,a.jsxs)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:e?"11":"14",width:e?"11":"14",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})]}),c&&(0,a.jsx)("ul",{className:"absolute z-[9999] top-full right-0 mt-1 bg-white border shadow-lg w-[190px] max-h-[280px] overflow-auto",children:u.map(e=>(0,a.jsxs)("li",{onClick:()=>{n(e.moeda),x(!1)},className:`flex items-center gap-2 px-3 py-2 text-xs cursor-pointer hover:bg-[#F9F9F9] ${e.moeda===s?"bg-[#F5F5F5] font-semibold":""}`,children:[(0,a.jsx)("span",{children:e.simbolo}),(0,a.jsx)("span",{className:"flex-1",children:e.pais||e.moeda}),(0,a.jsx)("span",{className:"text-[#414042]",children:e.moeda})]},e.moeda))})]})}let V=()=>{let{localidadeSelecionada:e}=(0,I.g)(),t=(0,p.$)(e),s="pt"===e||"br"===e||!e;return(0,a.jsxs)("div",{className:" container mx-auto flex flex-wrap items-center justify-end gap-x-2 gap-y-2 px-3 md:px-0 border-b md:border-none py-2 md:py-0 mb-2 md:mb-0 ",children:[s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c(),{href:"/trabalhe-conosco",prefetch:!1,className:"text-xs text-[#414042] cursor-pointer whitespace-nowrap",children:t.linksHeader.consultant}),(0,a.jsx)("div",{className:"w-px h-3 bg-[#414042] shrink-0"})]}),(0,a.jsx)(c(),{href:"/acompanhe-seu-pedido",prefetch:!1,className:"text-xs text-[#414042] cursor-pointer whitespace-nowrap",children:t.linksHeader.orderStatus}),(0,a.jsx)("div",{className:"w-px h-3 bg-[#414042] shrink-0"}),(0,a.jsx)(c(),{href:"https://blog.innovationbrindes.com.br",className:"text-xs text-[#414042] cursor-pointer whitespace-nowrap",children:t.linksHeader.blog}),(0,a.jsx)("div",{className:"w-px h-3 bg-[#414042] shrink-0"}),!(s&&1)&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,a.jsx)(T,{compact:!0}),(0,a.jsx)(H,{compact:!0})]})]})};var q=s(2266),O=s(18847),G=s.n(O);let K=G()(()=>Promise.all([s.e(5925),s.e(4820)]).then(s.bind(s,84820)).then(e=>e.Cart),{loadableGenerated:{webpack:()=>[84820]},ssr:!1});function X({menuLinks:e}){let[t,s]=(0,d.useState)(!1),[r,i]=(0,d.useState)(null),[m,u]=(0,d.useState)(null),{localidadeSelecionada:h}=(0,l.yw)(),f=(0,p.$)(h),b=(0,g.iO)(h).bcp47,v=(0,o.useRouter)();(0,d.useEffect)(()=>{let e=()=>s(!1);return v.events.on("routeChangeComplete",e),()=>v.events.off("routeChangeComplete",e)},[v]);let{data:j,isLoading:w}=U(h),y="pt"===h||"br"===h||!h,N=e=>{i(r===e?null:e)};return(0,a.jsxs)("nav",{className:"relative flex w-full items-center px-2",children:[(0,a.jsx)("button",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-2xl z-10",onClick:()=>s(!t),"aria-label":"Menu","aria-expanded":t,children:(0,a.jsx)(q.Jtp,{className:"text-2xl"})}),(0,a.jsx)("div",{className:"w-full flex items-center justify-center",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 w-full max-w-[340px] pl-9",children:[(0,a.jsx)(c(),{href:"/",children:(0,a.jsx)(n(),{style:{height:"38px"},src:"https://imgproductioncrm.s3.us-east-2.amazonaws.com/logo%20mobile-01.svg",width:40,height:38,alt:"Logo innovation brindes",className:"object-contain"})}),(0,a.jsx)(W,{}),(0,a.jsx)(K,{})]})}),t&&(0,a.jsxs)("div",{className:"gap-2 flex flex-col fixed animate-fade-in-left inset-0 bg-white z-[9999] overflow-auto",children:[(0,a.jsx)("button",{className:"text-2xl absolute top-4 right-4 z-10",onClick:()=>s(!t),children:(0,a.jsx)(A.cW1,{className:"text-3xl text-gray-600"})}),(0,a.jsxs)("div",{className:"flex items-center gap-3 border-b p-4",children:[(0,a.jsx)(n(),{style:{height:"40px"},src:"https://imgproductioncrm.s3.us-east-2.amazonaws.com/logo%20mobile-01.svg",width:40,height:40,alt:"Logo innovation brindes",className:"object-contain"}),(0,a.jsx)("span",{className:"text-base uppercase font-bold",children:f.navigation.gifts})]}),!(y&&1)&&(0,a.jsxs)("div",{className:"flex items-center gap-3 border-b px-4 py-3",children:[(0,a.jsx)(T,{}),(0,a.jsx)(H,{})]}),(0,a.jsxs)("div",{className:"flex flex-col px-4 pb-4",children:[(0,a.jsxs)("div",{className:"border-b",children:[(0,a.jsxs)("button",{onClick:()=>N("brindes"),className:"flex items-center justify-between w-full py-4 text-left font-medium text-gray-900",children:[(0,a.jsx)("span",{className:"uppercase text-sm ml-4",children:f.navigation.gifts}),"brindes"===r?(0,a.jsx)(x.rAP,{className:"text-2xl"}):(0,a.jsx)(x.WnU,{className:"text-2xl"})]}),"brindes"===r&&(0,a.jsx)("div",{className:"pb-4 space-y-0",children:e?.
1subcategorias?.map((e,t)=>{let r=t%2==0;return(0,a.jsxs)(c(),{href:e.link,onClick:()=>s(!1),className:"flex items-center justify-between py-3 px-3 text-sm text-gray-700 hover:text-[#F45100] transition-colors",style:{backgroundColor:r?"#FFFFFF":"#F2F2F2"},children:[(0,a.jsx)("span",{children:e.name}),(0,a.jsx)(x.WnU,{className:"rotate-[-90deg] text-base text-gray-400"})]},t)})})]}),(0,a.jsxs)("div",{className:"border-b",children:[(0,a.jsxs)("button",{onClick:()=>N("exclusivos"),className:"flex items-center justify-between w-full py-4 text-left font-medium text-gray-900",children:[(0,a.jsx)("span",{className:"uppercase text-sm ml-4",children:f.navigation.exclusiveInnovation}),"exclusivos"===r?(0,a.jsx)(x.rAP,{className:"text-2xl"}):(0,a.jsx)(x.WnU,{className:"text-2xl"})]}),"exclusivos"===r&&!w&&j&&(0,a.jsx)("div",{className:"pb-4 space-y-3",children:j.map((e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{onClick:()=>{u(m===t?null:t)},className:"flex items-center justify-between bg-[#F5F5F5] rounded-lg px-4 py-3 hover:bg-[#E8E8E8] transition-colors w-full",children:[(0,a.jsx)("div",{className:"flex items-center gap-3 flex-1",children:(0,a.jsx)("span",{className:"text-xs font-medium text-gray-900 uppercase",children:e.nome})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)($.MWp,{className:"text-primary text-lg"}),(0,a.jsxs)("span",{className:"text-sm text-gray-700 min-w-[80px]",children:[e.quantidade_total||0," ",f.navigation.models]}),m===t?(0,a.jsx)(x.rAP,{className:"text-gray-500 text-xl"}):(0,a.jsx)(x.WnU,{className:"text-gray-500 text-xl"})]})]}),m===t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c(),{href:`/exclusivos/${e.slug||e.nome.toLowerCase().replace(/\s+/g,"-")}/ver-todas-estampas`,onClick:()=>s(!1),className:"flex items-center mt-2 mb-2 gap-2 px-3 py-2 pr-8 bg-white  border-gray-300 text-gray-700 font-medium text-xs rounded hover:border-primary hover:text-primary transition-all relative",children:[(0,a.jsx)(L.qf5,{className:"text-base"}),f.navigation.viewAllPrints,(0,a.jsx)(A.eLu,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-sm"})]}),(0,a.jsxs)(c(),{href:`/exclusivos/${e.slug||e.nome.toLowerCase().replace(/\s+/g,"-")}/mais-vendidos`,onClick:()=>s(!1),className:"flex items-center gap-2 px-3 py-2 pr-8 bg-white border border-gray-300 text-gray-700 font-medium text-xs rounded hover:bg-[#F45100] hover:text-white transition-all relative group",children:[(0,a.jsx)(E.gt3,{className:"h-4 w-4 text-[#F45100] group-hover:text-white transition-colors"}),f.navigation.bestSellers,(0,a.jsx)(A.eLu,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-sm"})]}),y&&(0,a.jsxs)(c(),{href:"/copa",onClick:()=>s(!1),className:"flex items-center gap-2 px-3 py-2 pr-8 border border-gray-300 text-gray-700 font-medium text-xs rounded relative group bg-white hover:bg-gradient-to-r hover:from-[#009C3B] hover:to-[#FFDF00] hover:text-white hover:border-transparent transition-colors duration-300",onMouseEnter:()=>{let e=new Audio("/copa/vinheta-brasil.mp3");e.volume=.4,e.play().catch(()=>{})},children:[(0,a.jsx)("span",{className:"text-base leading-none",children:"\uD83C\uDDE7\uD83C\uDDF7"}),f.navigation.worldCup,(0,a.jsx)(A.eLu,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-sm group-hover:text-white transition-colors duration-300",style:{color:"#009045"}})]}),(0,a.jsxs)("div",{className:"mt-2 flex gap-3 animate-fade-in-down",children:[(0,a.jsx)("div",{className:"w-48 flex-shrink-0 flex flex-col gap-2",children:(0,a.jsx)("div",{className:"rounded-lg p-2 flex items-start justify-center",children:(0,a.jsx)("img",{src:e.imagem,alt:e.nome,className:"max-w-full max-h-[240px] object-contain",onError:e=>{e.target.style.display="none"}})})}),(0,a.jsx)("div",{className:"flex-1 space-y-0",children:e.subcategorias?.slice().sort((e,t)=>e.nome.localeCompare(t.nome,b,{sensitivity:"base"})).map((t,r)=>{let n=e.slug||e.nome.toLowerCase().replace(/\s+/g,"-"),o=t.slug||t.nome.toLowerCase().replace(/\s+/g,"-"),l=`/exclusivos/${n}/${o}`;return(0,a.jsxs)(c(),{href:l,onClick:()=>s(!1),className:"flex items-center justify-between py-2 px-3 text-xs text-gray-700 hover:text-[#F45100] transition-colors",style:{backgroundColor:r%2==0?"#FFFFFF":"#F2F2F2"},children:[(0,a.jsx)("span",{className:"flex-1",children:t.nome}),(0,a.jsx)(x.WnU,{className:"rotate-[-90deg] text-base text-gray-400 flex-shrink-0"})]},t.id)})})]})]})]},e.id_pai))})]}),(0,a.jsxs)(c(),{href:"/segmento/novidades/6",onClick:()=>s(!1),className:"flex items-center justify-between bg-[#FFF4EE] rounded-lg px-4 py-4 my-2 hover:bg-[#FFE8D9] transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(E.uoG,{className:"text-[#F45100] text-xl"}),(0,a.jsx)("span",{className:"uppercase text-sm font-medium text-gray-900",children:f.navigation.launches})]}),(0,a.jsx)(A.eLu,{className:"text-[#F45100] text-xl"})]}),(0,a.jsxs)(c(),{href:"/ultra-rapido",prefetch:!1,onClick:()=>s(!1),className:"flex items-center justify-between bg-[#FFF4EE] rounded-lg px-4 py-4 hover:bg-[#FFE8D9] transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(E.w_X,{className:"text-[#F45100] text-xl"}),(0,a.jsx)("span",{className:"uppercase text-sm font-medium text-gray-900",children:f.navigation.ready48Hours})]}),(0,a.jsx)(A.eLu,{className:"text-[#F45100] text-xl"})]})]})]})]})}var Y=s(7507);function Q(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"no-zoom px-2 py-1 bg-[#f5f5f5] hidden md:block font-sans animate-pulse",children:(0,a.jsxs)("div",{className:"container w-full mx-auto flex items-center gap-8",children:[(0,a.jsx)("div",{className:"bg-gray-300 text-lg font-bold px-4 roun
1ded-3xl py-1 ml-auto h-8 w-[320px]"}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer relative",children:[(0,a.jsx)("div",{className:"bg-gray-300 rounded-full h-[30px] w-[30px]"}),(0,a.jsx)("div",{className:"bg-gray-300 h-4 w-[120px] rounded"})]})})]})}),(0,a.jsx)("div",{className:"block md:hidden w-full px-4 py-2 bg-[#f5f5f5] animate-pulse",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{className:"bg-gray-300 h-6 w-[180px] rounded"}),(0,a.jsx)("div",{className:"bg-gray-300 rounded-full h-[24px] w-[24px]"})]})})]})}function J(){return(0,a.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer animate-pulse",children:[(0,a.jsx)("div",{className:"w-9 h-9 md:w-11 md:h-11 rounded-full flex items-center justify-center bg-[#f5caba]",children:(0,a.jsx)("div",{className:"w-5 h-5 bg-[#f7dbd1] rounded"})}),(0,a.jsx)("div",{className:"w-6 h-7 bg-[#f5caba] rounded text-xl font-bold"})]})}var Z=s(98719);let ee=G()(()=>Promise.all([s.e(4188),s.e(580),s.e(5646),s.e(8992),s.e(8530),s.e(5901),s.e(4633)]).then(s.bind(s,24633)).then(e=>e.FreteGratis),{loadableGenerated:{webpack:()=>[24633]},ssr:!1,loading:()=>(0,a.jsx)(Q,{})}),et=G()(()=>Promise.all([s.e(5925),s.e(4820)]).then(s.bind(s,84820)).then(e=>e.Cart),{loadableGenerated:{webpack:()=>[84820]},ssr:!1,loading:()=>(0,a.jsx)(J,{})}),es=function({subcategorias:e,segmentos:t,frete:s=!0,hasCategoria:r=!0,hasSegmento:l=!0,hasSearch:i=!0,hasCart:x=!0,hasAtendimento:m=!0,hasLinks:u=!0,hasLogo:p=!0}){let[h]=(0,Y.U)("(max-width: 768px)"),{localidadeSelecionada:f,carregando:b}=(0,I.g)(),v=(0,o.useRouter)(),j=(0,g.S$)(v.locale),[w,y]=(0,d.useState)(!1),[N,C]=(0,d.useState)(e),[F,k]=(0,d.useState)(t);(0,d.useEffect)(()=>{y(h)},[h]),(0,d.useEffect)(()=>{if(b)return;if("pt"===f||f===j){C(e),k(t);return}let s=!0;return Promise.all([(0,Z.sW)(f),(0,Z.Xw)(f)]).then(([a,r])=>{s&&(C(a?.subcategorias||e),k(r?.segmentos||t))}),()=>{s=!1}},[b,f,j,e,t]);let E={segmentos:F?.map(e=>({name:e.descricao,url_site:e.link_segmento,cod_grupo:e.codigo_segmento,link:e.link_segmento})),subcategorias:N?.map(e=>({name:e.name,url_site:e.url_site,cod_grupo:e.codigo_grupo_produto,link:`/categoria/${e.url_site}/${e.cod_grupo}`}))};return(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(V,{}),(0,a.jsx)("header",{className:"bg-white shadow-sm pb-5 pt-2 items-center flex-col hidden md:flex",children:(0,a.jsxs)("div",{className:"flex container mx-auto items-center justify-start flex-1 gap-6",children:[p&&(0,a.jsx)(c(),{href:"/",children:(0,a.jsx)("div",{style:{position:"relative",width:"130px",height:"50px",objectFit:"contain"},children:(0,a.jsx)(n(),{src:"https://imgproductioncrm.s3.us-east-2.amazonaws.com/logobanner.png",width:130,height:50,alt:"Logo innovation brindes",className:"cursor-pointer object-contain",priority:!0,style:{aspectRatio:"130 / 50"}})})}),(r||l)&&(0,a.jsx)(P,{menuLinks:E}),i&&(0,a.jsx)(_,{}),(0,a.jsx)("div",{className:"flex items-center gap-2 ml-auto",children:x&&(0,a.jsx)(et,{})})]})}),w&&(r||l)&&(0,a.jsx)(X,{menuLinks:E}),w&&i&&(0,a.jsx)("div",{className:"md:hidden flex items-center justify-center py-2 w-full",children:(0,a.jsx)(_,{})}),s&&"pt"===f&&(0,a.jsx)(ee,{})]})}},79055:(e,t,s)=>{var a=s(65364);a.env.SYNC_SUPABASE_URL,a.env.SYNC_SUPABASE_SERVICE_KEY},98719:(e,t,s)=>{function a(e){return String(e||"").trim().toLocaleLowerCase().split(/\s+/).filter(Boolean).map(e=>e.charAt(0).toLocaleUpperCase()+e.slice(1)).join(" ")}async function r(e){try{let t=await fetch(`/api/segmento-rodape?idioma=${encodeURIComponent(e||"pt")}`),s=t.ok?await t.json():[];return{segmentos:Array.isArray(s)?s:[]}}catch(e){return console.log(e.message),{segmentos:[]}}}async function n(e){try{let t=await fetch(`/api/menu-cache?idioma=${encodeURIComponent(e||"pt")}`),s=t.ok?await t.json():[],r=[...new Set(s.map(e=>a(e.descricao_grupo_produto_pai)).filter(Boolean))].sort(),n=s.map(e=>({name:a(e.descricao_grupo_produto),cod_grupo:e.codigo_grupo_produto,url_site:e.url_site})).filter(e=>e.name);n.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0});let o=r.map((e,t)=>({[t]:[{categoria:e},...s.filter(t=>a(t.descricao_grupo_produto_pai)===e).map(e=>({name:a(e.descricao_grupo_produto),cod_grupo:e.codigo_grupo_produto,url_site:e.url_site})).filter(e=>e.name)]}));return{categorias:r,subcategorias:n,menu_categorias:o}}catch(e){return console.log(Object.keys(e),e.message),{categorias:[],subcategorias:[],menu_categorias:[]}}}s.d(t,{Xw:()=>r,sW:()=>n}),s(79055)}}]);

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.