1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{5300:(t,e,r)=>{r.d(e,{IG:()=>u,db:()=>o});var n=r(2078),i=r(2553),a=r(9996),l=r(9708);let s=(0,n.Dk)().length?(0,n.Sx)():(0,n.Wp)({apiKey:"AIzaSyAdoEGjNhu8IdfPNn8xULGZdSqmDkCga80",authDomain:"valman-948a2.firebaseapp.com",projectId:"valman-948a2",storageBucket:"valman-948a2.firebasestorage.app",messagingSenderId:"1096113279835",appId:"1:1096113279835:web:9adee3676605f942ab807e"}),u=null,o=null;try{(0,i.xI)(s),(0,i.xI)(s),u=(0,a.c7)(s),o=(0,l._A)(s,{localCache:(0,l.vK)({tabManager:(0,l.K7)()})})}catch(t){console.warn("Firebase initialization warning:",t)}},6823:(t,e,r)=>{function n(t){return t?"string"==typeof t?[t.trim()]:Array.isArray(t)?Array.from(new Set(t.map(t=>{if("string"==typeof t)return t.trim();if("object"==typeof t&&null!==t){if("string"==typeof t.url)return t.url.trim();if("string"==typeof t.src)return t.src.trim();if("string"==typeof t.image)return t.image.trim();if("string"==typeof t.link)return t.link.trim()}return null}).filter(t=>!!t))):[]:[]}function i(t){return t?"string"==typeof t?[t.trim()]:Array.isArray(t)?Array.from(new Set(t.map(t=>{if("string"==typeof t)return t.trim();if("object"==typeof t&&null!==t){if("string"==typeof t.url)return t.url.trim();if("string"==typeof t.src)return t.src.trim();if("string"==typeof t.link)return t.link.trim()}return null}).filter(t=>!!t))):[]:[]}function a(t){if(!t)return null;if("string"==typeof t)return t.trim();if("object"==typeof t){if("string"==typeof t.url)return t.url.trim();if("string"==typeof t.src)return t.src.trim()}return null}r.d(e,{Hb:()=>a,bk:()=>i,xC:()=>n}),r(5155),r(2115),r(9708),r(5300)},7138:(t,e,r)=>{r.d(e,{$3:()=>w,Dc:()=>U,Yn:()=>I,al:()=>x,b3:()=>D,fQ:()=>k,j0:()=>j,jE:()=>v,jY:()=>C});var n=r(9708),i=r(5300);let a=null,l=null,s=null,u=null,o=null,f=null,c=null,p=null,d=null,g=null,m=null,y=null,b=null,A=null,h=null,G=null;function k(t){return t.toString().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"").toLowerCase().trim()}async function v(){return a||(l||(l=(0,n.GG)((0,n.rJ)(i.db,"category")).then(t=>{let e=t.docs.map(t=>{let e=t.data();return{...e,id:t.id,name:e.name||e.title||""}});return e.sort((t,e)=>{let r=k(t.name||""),n=k(e.name||"");return r.localeCompare(n,"pt-BR")}),a=e,e})),l)}async function j(){return s||(u||(u=(0,n.GG)((0,n.rJ)(i.db,"products")).then(t=>{let e=t.docs.map(t=>{let e=t.data();return{...e,id:t.id,name:e.name||e.title||""}});return e.sort((t,e)=>{let r=k(t.name||""),n=k(e.name||"");return r.localeCompare(n,"pt-BR")}),s=e,e})),u)}async function w(){return o||(f||(f=(0,n.GG)((0,n.rJ)(i.db,"clients")).then(t=>o=t.docs.map(t=>({id:t.id,...t.data()})))),f)}async function x(){return d||(g||(g=(0,n.GG)((0,n.rJ)(i.db,"socialProjects")).then(t=>d=t.docs.map(t=>({id:t.id,...t.data()})))),g)}async function U(){return b||(A||(A=(0,n.GG)((0,n.rJ)(i.db,"certificates")).then(t=>b=t.docs.map(t=>{let e=t.data(),r="string"==typeof e.name?e.name:"string"==typeof e.title?e.title:null,n="string"==typeof e.pdfUrl?e.pdfUrl:"string"==typeof e.pdf?e.pdf:"string"==typeof e.file?e.file:"string"==typeof e.url?e.url:null,i=null;return"string"==typeof e.imageUrl?i=e.imageUrl:"string"==typeof e.image?i=e.image:Array.isArray(e.images)&&e.images.length&&"string"==typeof e.images[0]&&(i=e.images[0]),{id:t.id,name:r,pdfUrl:n,imageUrl:i}}))),A)}async function C(){return m||(y||(y=(0,n.GG)((0,n.rJ)(i.db,"catalogs")).then(t=>{let e=t.docs.map(t=>({id:t.id,...t.data()}));return e.sort((t,e)=>{let r=t=>{var e;return(null==(e=t.createdAt)?void 0:e.seconds)||(t.createdAt instanceof Date?t.createdAt.getTime()/1e3:0)};return r(e)-r(t)}),m=e})),y)}async function D(){return h||(G||(G=(0,n.GG)((0,n.rJ)(i.db,"carousel")).then(t=>{let e=t.docs.map(t=>({id:t.id,...t.data()}));return e.sort((t,e)=>{let r=t=>{var e;return(null==(e=t.createdAt)?void 0:e.seconds)||(t.createdAt instanceof Date?t.createdAt.getTime()/1e3:0)};return r(e)-r(t)}),h=e})),G)}async function I(){return c||(p||(p=(0,n.GG)((0,n.rJ)(i.db,"news")).then(t=>c=t.docs.map(t=>{let e=t.data(),r="string"==typeof e.title?e.title:"string"==typeof e.name?e.name:null,n="string"==typeof e.excerpt&&e.excerpt.trim()?e.excerpt:"string"==typeof e.content?e.content.substring(0,150)+"...":"string"==typeof e.description?e.description.substring(0,150)+"...":null,i="string"==typeof e.date?e.date:null,a=null;"string"==typeof e.imageUrl?a=e.imageUrl:"string"==typeof e.image?a=e.image:Array.isArray(e.images)&&e.images.length&&"string"==typeof e.images[0]&&(a=e.images[0]);let l="string"==typeof e.mediaUrl?e.mediaUrl:null;if(!l&&Array.isArray(e.mediaList)&&e.mediaList.length){let t=e.mediaList[0];"string"==typeof t?l=t:t&&t.url&&(l=t.url)}let s="string"==typeof e.href?e.href:"string"==typeof e.url?e.url:"#",u="string"==typeof e.content?e.content:null,o="string"==typeof e.description?e.description:null;return{id:t.id,title:r,excerpt:n,content:u,description:o,imageUrl:a,mediaUrl:l,createdAt:e.createdAt,date:i,href:s}}))),p)}}}]);
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.