PageSourceSearch

https://www.valman.com.br/_next/static/chunks/app/homepage/page-7c5eca2422976251.js

js valman.com.br collected 2026-10-06 13:15:37 UTC 21,319 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[539],{4092:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(5155),n=r(2115),l=r(7301);let s=e=>!!e&&/\.(mp4|webm|ogg|mov)(\?.*)?$/i.test(String(e)),i=()=>{let{carouselItems:e,isLoading:t}=(0,l.nu)(),[r,i]=(0,n.useState)(0),o=e||[],c=()=>{if(0!==o.length)i(r===o.length-1?0:r+1)};if((0,n.useEffect)(()=>{if(0===o.length)return;let e=o[r];if(!e||s(e.mediaUrl))return;let t=setInterval(()=>{i(e=>e===o.length-1?0:e+1)},5e3);return()=>clearInterval(t)},[o,r]),t)return(0,a.jsx)("div",{className:"w-full m-auto h-56 sm:h-72 md:h-[28rem] flex items-center justify-center bg-gray-100 rounded-lg animate-pulse",children:(0,a.jsx)("div",{className:"text-gray-400",children:"Carregando destaques..."})});if(0===o.length)return null;let d=o[r],u=s(d.mediaUrl)?(0,a.jsx)("video",{src:d.mediaUrl,autoPlay:!0,muted:!0,playsInline:!0,onEnded:c,className:"w-full h-full object-contain object-center ".concat(d.redirectUrl?"cursor-pointer":"")},d.mediaUrl):(0,a.jsx)("img",{src:d.mediaUrl,alt:"Destaque",className:"w-full h-full object-contain object-center ".concat(d.redirectUrl?"cursor-pointer":"")});return(0,a.jsx)("div",{className:"w-full m-auto",children:(0,a.jsx)("div",{className:"w-full h-56 sm:h-72 md:h-[28rem] flex items-center justify-center",children:(0,a.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center bg-gray-100 rounded-lg border border-gray-200 transition-all duration-500 ease-in-out overflow-hidden",children:[d.redirectUrl?(0,a.jsx)("a",{href:d.redirectUrl,target:"_blank",rel:"noopener noreferrer",className:"w-full h-full block",children:u}):u,o.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>{0!==o.length&&i(0===r?o.length-1:r-1)},"aria-label":"Slide anterior",className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow z-10",children:"‹"}),(0,a.jsx)("button",{onClick:c,"aria-label":"Pr\xf3ximo slide",className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow z-10",children:"›"})]}),o.length>1&&(0,a.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-2.5 z-10",children:o.map((e,t)=>(0,a.jsx)("button",{className:"h-3 w-3 rounded-full ".concat(t===r?"bg-gray-700":"bg-gray-300"),onClick:()=>{i(t)},"aria-label":"Ir para o slide ".concat(t+1)},e.id))})]})})})}},4977:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(5155);r(2115);var n=r(7301);function l(){var e;let{catalogs:t}=(0,n.tk)(),r=t&&t.length>0&&(null==(e=t.find(e=>e.pdfUrl))?void 0:e.pdfUrl)||"";return(0,a.jsxs)("div",{className:"md:hidden flex flex-col items-center gap-3 mb-4 px-2 font-sans",children:[(0,a.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-black text-center",children:"Confira nosso cat\xe1logo completo"}),(0,a.jsx)("a",{href:r||"#",target:"_blank",rel:"noopener noreferrer",onClick:e=>{r||(e.preventDefault(),alert("Aguarde o carregamento do cat\xe1logo."))},className:"rounded-md bg-[#CC3333] px-6 py-3 text-sm font-bold uppercase tracking-wide text-white hover:bg-red-700 transition-colors",children:"Cat\xe1logo Completo"})]})}},5300:(e,t,r)=>{"use strict";r.d(t,{IG:()=>o,db:()=>c});var a=r(2078),n=r(2553),l=r(9996),s=r(9708);let i=(0,a.Dk)().length?(0,a.Sx)():(0,a.Wp)({apiKey:"AIzaSyAdoEGjNhu8IdfPNn8xULGZdSqmDkCga80",authDomain:"valman-948a2.firebaseapp.com",projectId:"valman-948a2",storageBucket:"valman-948a2.firebasestorage.app",messagingSenderId:"1096113279835",appId:"1:1096113279835:web:9adee3676605f942ab807e"}),o=null,c=null;try{(0,n.xI)(i),(0,n.xI)(i),o=(0,l.c7)(i),c=(0,s._A)(i,{localCache:(0,s.vK)({tabManager:(0,s.K7)()})})}catch(e){console.warn("Firebase initialization warning:",e)}},7125:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var a=r(2115),n=r(7138);function l(e){return(0,n.fQ)(e).replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function s(e,t){var r,s;let i=null!=(r=null==t?void 0:t.pageSize)?r:30,o=null!=(s=null==t?void 0:t.initialVisibleCount)?s:i,[c,d]=(0,a.useState)([]),[u,m]=(0,a.useState)(!0),[g,f]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=!1;return(0,n.j0)().then(t=>{e||(d(t),m(!1))}).catch(t=>{e||(console.error("[useFirestoreProducts] Error:",t),f(t instanceof Error?t:Error(String(t))),m(!1))}),()=>{e=!0}},[]);let[p,h]=(0,a.useState)(e),x=(0,a.useRef)(0);(0,a.useEffect)(()=>{let t=Date.now(),r=t-x.current;if(x.current=t,r<300){let t=setTimeout(()=>h(e),150);return()=>clearTimeout(t)}h(e)},[e]);let b=(0,a.useMemo)(()=>c.length?p?c.filter(e=>(function(e,t){if(Array.isArray(e.categoryIds)&&e.categoryIds.length>0)return e.categoryIds.includes(t);let r=[e.categoria,e.category,e.categoryId,e.category_id,e.categorias],a=[];for(let e of r)e&&(Array.isArray(e)?a.push(...e):a.push(e));let n=String(t).toLowerCase().trim(),s=l(t);return a.some(e=>{if(!e)return!1;let t="",r="";"string"==typeof e?t=e:"object"==typeof e?(t=e.id?String(e.id):e.path?String(e.path).split("/").pop()||"":String(e),e.name&&(r=String(e.name)),e.title&&(r=String(e.title))):t=String(e);let a=t.toLowerCase().trim();if(a===n||a===s)return!0;
1if(r){let e=r.toLowerCase().trim();if(e===n||l(e)===s)return!0}return!1})})(e,p)):c:[],[c,p]),[y,v]=(0,a.useState)(o),j=(0,a.useRef)(!0);(0,a.useEffect)(()=>{if(j.current){j.current=!1;return}v(i)},[p,i]);let w=b.slice(0,y),N=y<b.length;return{products:w,allProducts:b,isLoading:u,isLoadingMore:!1,hasMore:N,loadMore:(0,a.useCallback)(()=>{v(e=>e+i)},[i]),error:g,totalCount:b.length}}},7138:(e,t,r)=>{"use strict";r.d(t,{$3:()=>S,Dc:()=>C,Yn:()=>D,al:()=>U,b3:()=>k,fQ:()=>j,j0:()=>N,jE:()=>w,jY:()=>A});var a=r(9708),n=r(5300);let l=null,s=null,i=null,o=null,c=null,d=null,u=null,m=null,g=null,f=null,p=null,h=null,x=null,b=null,y=null,v=null;function j(e){return e.toString().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"").toLowerCase().trim()}async function w(){return l||(s||(s=(0,a.GG)((0,a.rJ)(n.db,"category")).then(e=>{let t=e.docs.map(e=>{let t=e.data();return{...t,id:e.id,name:t.name||t.title||""}});return t.sort((e,t)=>{let r=j(e.name||""),a=j(t.name||"");return r.localeCompare(a,"pt-BR")}),l=t,t})),s)}async function N(){return i||(o||(o=(0,a.GG)((0,a.rJ)(n.db,"products")).then(e=>{let t=e.docs.map(e=>{let t=e.data();return{...t,id:e.id,name:t.name||t.title||""}});return t.sort((e,t)=>{let r=j(e.name||""),a=j(t.name||"");return r.localeCompare(a,"pt-BR")}),i=t,t})),o)}async function S(){return c||(d||(d=(0,a.GG)((0,a.rJ)(n.db,"clients")).then(e=>c=e.docs.map(e=>({id:e.id,...e.data()})))),d)}async function U(){return g||(f||(f=(0,a.GG)((0,a.rJ)(n.db,"socialProjects")).then(e=>g=e.docs.map(e=>({id:e.id,...e.data()})))),f)}async function C(){return x||(b||(b=(0,a.GG)((0,a.rJ)(n.db,"certificates")).then(e=>x=e.docs.map(e=>{let t=e.data(),r="string"==typeof t.name?t.name:"string"==typeof t.title?t.title:null,a="string"==typeof t.pdfUrl?t.pdfUrl:"string"==typeof t.pdf?t.pdf:"string"==typeof t.file?t.file:"string"==typeof t.url?t.url:null,n=null;return"string"==typeof t.imageUrl?n=t.imageUrl:"string"==typeof t.image?n=t.image:Array.isArray(t.images)&&t.images.length&&"string"==typeof t.images[0]&&(n=t.images[0]),{id:e.id,name:r,pdfUrl:a,imageUrl:n}}))),b)}async function A(){return p||(h||(h=(0,a.GG)((0,a.rJ)(n.db,"catalogs")).then(e=>{let t=e.docs.map(e=>({id:e.id,...e.data()}));return t.sort((e,t)=>{let r=e=>{var t;return(null==(t=e.createdAt)?void 0:t.seconds)||(e.createdAt instanceof Date?e.createdAt.getTime()/1e3:0)};return r(t)-r(e)}),p=t})),h)}async function k(){return y||(v||(v=(0,a.GG)((0,a.rJ)(n.db,"carousel")).then(e=>{let t=e.docs.map(e=>({id:e.id,...e.data()}));return t.sort((e,t)=>{let r=e=>{var t;return(null==(t=e.createdAt)?void 0:t.seconds)||(e.createdAt instanceof Date?e.createdAt.getTime()/1e3:0)};return r(t)-r(e)}),y=t})),v)}async function D(){return u||(m||(m=(0,a.GG)((0,a.rJ)(n.db,"news")).then(e=>u=e.docs.map(e=>{let t=e.data(),r="string"==typeof t.title?t.title:"string"==typeof t.name?t.name:null,a="string"==typeof t.excerpt&&t.excerpt.trim()?t.excerpt:"string"==typeof t.content?t.content.substring(0,150)+"...":"string"==typeof t.description?t.description.substring(0,150)+"...":null,n="string"==typeof t.date?t.date:null,l=null;"string"==typeof t.imageUrl?l=t.imageUrl:"string"==typeof t.image?l=t.image:Array.isArray(t.images)&&t.images.length&&"string"==typeof t.images[0]&&(l=t.images[0]);let s="string"==typeof t.mediaUrl?t.mediaUrl:null;if(!s&&Array.isArray(t.mediaList)&&t.mediaList.length){let e=t.mediaList[0];"string"==typeof e?s=e:e&&e.url&&(s=e.url)}let i="string"==typeof t.href?t.href:"string"==typeof t.url?t.url:"#",o="string"==typeof t.content?t.content:null,c="string"==typeof t.description?t.description:null;return{id:e.id,title:r,excerpt:a,content:o,description:c,imageUrl:l,mediaUrl:s,createdAt:t.createdAt,date:n,href:i}}))),m)}},7275:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(5155);r(2115);var n=r(7301),l=r(63);let s=[{id:1,title:"Valman inaugura nova linha de produ\xe7\xe3o",excerpt:"A Valman investiu em novas m\xe1quinas para ampliar a capacidade produtiva e reduzir prazos.",imageUrl:"/images/carrossel1.png",date:"20/10/2025",href:"#"},{id:2,title:"Programa socioambiental chega a mais comunidades",excerpt:"Projeto social da Valman beneficia escolas locais com palestras e materiais educativos.",imageUrl:"/images/carrossel2.png",date:"12/09/2025",href:"#"},{id:3,title:"Certifica\xe7\xe3o de qualidade obtida",excerpt:"Recebemos uma importante certifica\xe7\xe3o que refor\xe7a nosso compromisso com padr\xf5es internacionais.",imageUrl:"/images/certificado.jpg",date:"01/08/2025",href:"#"},{id:4,title:"Valman participa de feira internacional",excerpt:"Nossa equipe esteve presente na feira XYZ apresentando solu\xe7\xf5es inovadoras para o setor.",imageUrl:"/images/carrossel3.png",date:"25/07/2025",href:"#"}];function i(){let{news:e,isLoading:t}=(0,n.My)();function r(e){if(!e)return 0;try{if("function"==typeof e.toDate)return e.toDate().getTime();if("number"==typeof e.seconds){let t=e.seconds,r="number"==typeof e.nanoseconds?e.nanoseconds:e.nanosecond||0;return 1e3*t+Math.floor(r/1e6)}if(e instanceof Date)return e.getTime();let t=Date.parse(String(e));return isNaN(t)?0:t}catch(e){return 0}}let i=!t&&Array.isArray(e)&&e.length?[...e].sort((e,t)=>
1r(t.createdAt)-r(e.createdAt)).slice(0,3).map(e=>({id:e.id,title:e.title||"",excerpt:e.excerpt||"",imageUrl:e.imageUrl||null,mediaUrl:e.mediaUrl||e.imageUrl||null,date:e.date,href:e.href})):s.slice(0,3),o=(0,l.useRouter)(),c=i.length>6;return(0,a.jsxs)("section",{className:"w-full px-6 py-10 font-sans",children:[(0,a.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between mb-6 gap-2",children:[(0,a.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-black",children:"\xdaltimas not\xedcias"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-gray-600",children:"Fique por dentro das \xfaltimas novidades"})]})}),(0,a.jsx)("div",{className:"".concat(c?"max-h-[42rem] overflow-y-auto pr-2":""),children:(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 gap-4",children:i.map(e=>(0,a.jsxs)("article",{className:"border rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow duration-150 bg-white cursor-pointer","aria-labelledby":"post-".concat(e.id,"-title"),role:"button",tabIndex:0,onClick:()=>{o.push("/noticias?id=".concat(encodeURIComponent(String(e.id))))},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),o.push("/noticias?id=".concat(encodeURIComponent(String(e.id)))))},children:[(0,a.jsx)("div",{className:"w-full h-40 bg-gray-100 flex items-center justify-center overflow-hidden",children:e.mediaUrl||e.imageUrl?/\.(mp4|webm|ogg)(\?.*)?$/i.test(String(e.mediaUrl||e.imageUrl))?(0,a.jsx)("video",{src:e.mediaUrl||e.imageUrl,className:"w-full h-full object-contain object-center",controls:!0}):(0,a.jsx)("img",{src:e.mediaUrl||e.imageUrl,alt:e.title,className:"w-full h-full object-contain object-center"}):(0,a.jsx)("div",{className:"text-gray-400",children:"Sem imagem"})}),(0,a.jsxs)("div",{className:"p-4 flex flex-col",children:[(0,a.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:e.date}),(0,a.jsx)("h3",{id:"post-".concat(e.id,"-title"),className:"text-lg font-semibold text-gray-900 mb-2",children:e.title}),(0,a.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,a.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),o.push("/noticias?id=".concat(encodeURIComponent(String(e.id))))},className:"text-sm text-[#8C1D18] font-semibold hover:underline","aria-label":"Ler not\xedcia: ".concat(e.title),children:"Ler not\xedcia"}),(0,a.jsx)("button",{type:"button",className:"px-3 py-1 rounded bg-[#8C1D18] text-white text-sm hover:opacity-95",onClick:t=>{t.stopPropagation(),o.push("/noticias?id=".concat(encodeURIComponent(String(e.id))))},children:"Ver"})]})]})]},e.id))})})]})}},7301:(e,t,r)=>{"use strict";r.d(t,{My:()=>d,Qh:()=>s,Tt:()=>i,f_:()=>l,nu:()=>c,tk:()=>o});var a=r(2115),n=r(7138);function l(){let[e,t]=(0,a.useState)([]),[r,l]=(0,a.useState)(!0),[s,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return(0,n.$3)().then(r=>{e||(t(r),l(!1))}).catch(t=>{e||(i(t),l(!1))}),()=>{e=!0}},[]),{clients:e,isLoading:r,error:s}}function s(){let[e,t]=(0,a.useState)([]),[r,l]=(0,a.useState)(!0),[s,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return(0,n.al)().then(r=>{e||(t(r),l(!1))}).catch(t=>{e||(i(t),l(!1))}),()=>{e=!0}},[]),{socialProjects:e,isLoading:r,error:s}}function i(){let[e,t]=(0,a.useState)([]),[r,l]=(0,a.useState)(!0),[s,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return(0,n.Dc)().then(r=>{e||(t(r),l(!1))}).catch(t=>{e||(i(t),l(!1))}),()=>{e=!0}},[]),{certificates:e,isLoading:r,error:s}}function o(){let[e,t]=(0,a.useState)([]),[r,l]=(0,a.useState)(!0),[s,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return(0,n.jY)().then(r=>{e||(t(r),l(!1))}).catch(t=>{e||(i(t),l(!1))}),()=>{e=!0}},[]),{catalogs:e,isLoading:r,error:s}}function c(){let[e,t]=(0,a.useState)([]),[r,l]=(0,a.useState)(!0),[s,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return(0,n.b3)().then(r=>{e||(t(r),l(!1))}).catch(t=>{e||(i(t),l(!1))}),()=>{e=!0}},[]),{carouselItems:e,isLoading:r,error:s}}function d(){let[e,t]=(0,a.useState)([]),[r,l]=(0,a.useState)(!0),[s,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return(0,n.Yn)().then(r=>{e||(t(r),l(!1))}).catch(t=>{e||(i(t),l(!1))}),()=>{e=!0}},[]),{news:e,isLoading:r,error:s}}},7307:(e,t,r)=>{Promise.resolve().then(r.bind(r,7275)),Promise.resolve().then(r.bind(r,4092)),Promise.resolve().then(r.bind(r,4977)),Promise.resolve().then(r.bind(r,8308))},8308:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var a=r(5155),n=r(2115),l=r(63),s=r(7125),i=r(8612);let o=()=>{var e;let{products:t,isLoading:r}=(0,s.D)(void 0,{pageSize:1e5}),o=(0,l.useRouter)(),c=(0,n.useMemo)(()=>(t||[]).map(e=>({__type:"product",id:e.id,name:e.name,imageUrl:e.imageUrl||e.image||null,thumbnailUrl:e.thumbnailUrl||null,slug:e.slug||(e.name?e.name.toString().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/[^a-z0-9]+/g,"-"):String(e.id))}
1)),[t]),d="productList:homepage",[u]=(0,n.useState)(()=>{try{let e=sessionStorage.getItem(d);return e?JSON.parse(e):null}catch(e){return null}}),[m,g]=(0,n.useState)(null!=(e=null==u?void 0:u.visibleCount)?e:6),f=c.slice(0,m),p=m<c.length,h=(0,n.useRef)(!1);(0,n.useEffect)(()=>{r||!u||h.current||(h.current=!0,requestAnimationFrame(()=>{window.scrollTo({top:u.scrollY,behavior:"instant"});try{sessionStorage.removeItem(d)}catch(e){}}))},[r,u]);let x=()=>{try{sessionStorage.setItem(d,JSON.stringify({visibleCount:m,scrollY:window.scrollY}))}catch(e){}};if(r)return(0,a.jsxs)("section",{className:"w-full p-0 md:p-8 font-sans",children:[(0,a.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-black mb-6 px-4 md:px-0",children:"Todos os produtos"}),(0,a.jsx)("div",{className:"hidden md:grid grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((e,t)=>(0,a.jsxs)("div",{className:"border-2 border-gray-200 rounded-lg overflow-hidden flex flex-col bg-gray-50 animate-pulse",children:[(0,a.jsx)("div",{className:"w-full h-44 bg-gray-200"}),(0,a.jsx)("div",{className:"h-10 bg-gray-300"})]},t))}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3 md:hidden px-4",children:Array.from({length:6}).map((e,t)=>(0,a.jsxs)("div",{className:"border-2 border-gray-200 rounded-lg overflow-hidden flex flex-col bg-gray-50 animate-pulse",children:[(0,a.jsx)("div",{className:"w-full aspect-square bg-gray-200"}),(0,a.jsx)("div",{className:"h-12 bg-gray-300 flex items-center justify-center px-2",children:(0,a.jsx)("div",{className:"h-3 w-3/4 bg-gray-400 rounded"})})]},t))})]});function b(e){let{name:t}=e,r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=r.current;if(!e)return;let t=e.parentElement,a=14;function n(){e&&(e.style.fontSize=a+"px",e.scrollHeight>e.clientHeight&&a>8&&(a-=1,requestAnimationFrame(n)))}e.style.whiteSpace="normal",e.style.overflow="hidden",e.style.lineHeight="1.05",n();let l=new ResizeObserver(()=>{a=14,n()});return t&&l.observe(t),()=>l.disconnect()},[t]),(0,a.jsx)("h3",{ref:r,className:"text-white font-semibold transition-opacity duration-150 px-2 py-0.5 flex items-center justify-center text-center h-full w-full mx-auto group-hover:opacity-0 text-xs sm:text-sm",children:t})}return(0,a.jsxs)("section",{className:"w-full p-0 md:p-8 font-sans",children:[(0,a.jsx)("div",{className:"flex w-full justify-center items-center mb-6 px-4 md:px-0",children:(0,a.jsxs)("h2",{className:"text-2xl sm:text-3xl font-bold text-black text-center",children:[(0,a.jsx)("span",{className:"md:hidden",children:"Todos os produtos"}),(0,a.jsx)("span",{className:"hidden md:inline",children:"Produtos em Destaque"})]})}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3 md:hidden px-4 md:px-0",children:c.map(e=>(0,a.jsxs)("div",{className:"border-2 border-[#8C1D18] rounded-lg overflow-hidden flex flex-col bg-gray-50 cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>{x(),o.push("/produtos/".concat(encodeURIComponent(e.slug),"/").concat(encodeURIComponent(String(e.id))))},children:[(0,a.jsx)(i.A,{src:e.imageUrl,thumbnailUrl:e.thumbnailUrl,alt:e.name||"Produto",variant:"card",className:"w-full aspect-square bg-white"}),(0,a.jsx)("div",{className:"bg-[#8C1D18] px-2 py-1.5 flex items-center justify-center h-12",children:(0,a.jsx)("h3",{className:"text-white text-xs font-semibold text-center line-clamp-2 leading-tight",children:e.name||"Produto"})})]},"".concat(e.__type,"-").concat(e.id)))}),(0,a.jsx)("div",{className:"hidden md:grid grid-cols-2 lg:grid-cols-3 gap-4",children:f.map(e=>(0,a.jsxs)("div",{className:"border-2 border-[#8C1D18] rounded-lg shadow-md overflow-hidden flex flex-col bg-gray-50 group transform-gpu transition duration-200 ease-out hover:shadow-2xl motion-reduce:transform-none motion-reduce:transition-none",role:"button",onClick:()=>{x(),o.push("/produtos/".concat(encodeURIComponent(e.slug),"/").concat(encodeURIComponent(String(e.id))))},children:[(0,a.jsx)(i.A,{src:e.imageUrl,thumbnailUrl:e.thumbnailUrl,alt:e.name||"Produto",variant:"card",className:"w-full h-28 sm:h-36 md:h-44 bg-white"}),(0,a.jsxs)("div",{className:"bg-[#8C1D18] text-center relative h-8 sm:h-10",children:[(0,a.jsx)(b,{name:e.name}),(0,a.jsx)("button",{type:"button",className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-150 bg-white text-[#8C1D18] font-semibold text-xs px-2 py-0.5 rounded","aria-label":"Ver mais sobre ".concat(e.name),onClick:t=>{t.stopPropagation(),x(),o.push("/produtos/".concat(encodeURIComponent(e.slug),"/").concat(encodeURIComponent(String(e.id))))},children:"Ver mais"})]})]},"".concat(e.__type,"-").concat(e.id)))}),p&&(0,a.jsx)("div",{className:"hidden md:flex justify-center mt-6 px-4",children:(0,a.jsx)("button",{onClick:()=>g(e=>e+6),className:"rounded-md bg-[#CC3333] px-6 py-3 text-sm font-bold uppercase tracking-wide text-white hover:bg-red-700 transition-colors",children:"Mais produtos"})})]})}},8612:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(5155),n=r(2115),l=r(5239);let s=e=>{let{src:t,thumbnailUrl:r,alt:s,priority:i=!1,className:o="",variant:c="card"}
1=e,[d,u]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),f=r||t;return!f||m?(0,a.jsx)("div",{className:"flex items-center justify-center bg-gray-50 ".concat(o),children:(0,a.jsx)("span",{className:"text-gray-400 text-xs",children:"Sem imagem"})}):(0,a.jsxs)("div",{className:"relative overflow-hidden ".concat(o),children:[!d&&(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-200 animate-pulse"}),(0,a.jsx)(l.default,{src:f,alt:s,fill:!0,sizes:"mobile"===c?"96px":"detail"===c?"(max-width: 768px) 100vw, 50vw":"(max-width: 768px) 100vw, 33vw",priority:i,className:"\n          ".concat("mobile"===c?"object-contain":"object-cover"," transition-opacity duration-300 ease-in-out\n          ").concat(d?"opacity-100":"opacity-0","\n        "),onLoad:()=>u(!0),onError:()=>{g(!0)},unoptimized:!0})]})}}},e=>{e.O(0,[135,204,31,394,441,255,358],()=>e(e.s=7307)),_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.