1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[795],{2329:(e,t,n)=>{n.d(t,{CookieConsentProvider:()=>u,useCookieConsent:()=>m});var a=n(6892),o=n(8016);let i="cargoos-consent",s={essential:!0,analytics:!1,marketing:!1},c={essential:!0,analytics:!0,marketing:!0},r=(e,t)=>{let n={status:e,categories:t,timestamp:new Date().toISOString()},a=encodeURIComponent(JSON.stringify(n)),o=window.location.hostname.endsWith("cargoos.com.br")?"; domain=.cargoos.com.br":"";document.cookie="".concat(i,"=").concat(a,"; path=/").concat(o,"; max-age=").concat(31536e3,"; SameSite=Lax; Secure"),t.analytics||l(),window.dispatchEvent(new CustomEvent("cargoos-consent-change",{detail:n}))},l=()=>{let e=[window.location.hostname,".".concat(window.location.hostname)];for(let t of["_ga","_gid","_gat"]){for(let n of e)document.cookie="".concat(t,"=; path=/; domain=").concat(n,"; max-age=0");document.cookie="".concat(t,"=; path=/; max-age=0")}},d=(0,o.createContext)(null),u=e=>{let{children:t}=e,[n,l]=(0,o.useState)(null),[u,m]=(0,o.useState)(!1),[w,h]=(0,o.useState)(!1),[g,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=(()=>{try{let e=document.cookie.split("; ").find(e=>e.startsWith("".concat(i,"=")));if(!e)return null;let t=decodeURIComponent(e.split("=").slice(1).join("=")),n=JSON.parse(t);if(!n.status||!n.categories)return null;return n}catch(e){return null}})();l(e),m(!0),e||h(!0)},[]);let f=(0,o.useCallback)(()=>{let e={status:"accepted",categories:c,timestamp:new Date().toISOString()};r("accepted",c),l(e),h(!1),p(!1)},[]),x=(0,o.useCallback)(()=>{let e={status:"rejected",categories:s,timestamp:new Date().toISOString()};r("rejected",s),l(e),h(!1),p(!1)},[]),C=(0,o.useCallback)(e=>{let t={status:"custom",categories:e,timestamp:new Date().toISOString()};r("custom",e),l(t),h(!1),p(!1)},[]),k=(0,o.useCallback)(()=>{h(!0),p(!0)},[]),v=(0,o.useCallback)(()=>{p(!1),n&&h(!1)},[n]),b=(0,o.useMemo)(()=>({consent:n,isLoaded:u,showBanner:w,isSettingsOpen:g,acceptAll:f,rejectAll:x,saveCustom:C,openSettings:k,closeSettings:v}),[n,u,w,g,f,x,C,k,v]);return(0,a.jsx)(d,{value:b,children:t})},m=()=>{let e=(0,o.useContext)(d);if(!e)throw Error("useCookieConsent must be used within CookieConsentProvider");return e}},3611:(e,t,n)=>{n.d(t,{Ec:()=>s,OV:()=>i,rj:()=>o});let a="cargoos_fbclid",o=()=>{try{let e=new URLSearchParams(window.location.search).get("fbclid");if(!e)return;let t={value:e,ts:Date.now()};window.localStorage.setItem(a,JSON.stringify(t))}catch(e){}},i=()=>
1{if(document.cookie.split("; ").some(e=>e.startsWith("_fbc=")))return;let e=new URLSearchParams(window.location.search).get("fbclid"),t=e?{value:e,ts:Date.now()}:(()=>{try{let e=window.localStorage.getItem(a);if(!e)return null;let t=JSON.parse(e);return"string"==typeof t.value&&"number"==typeof t.ts?t:null}catch(e){return null}})();if(!t)return;let n="fb.1.".concat(t.ts,".").concat(t.value),o=window.location.hostname.endsWith("cargoos.com.br")?"; domain=.cargoos.com.br":"";document.cookie="_fbc=".concat(n,"; path=/").concat(o,"; max-age=").concat(7776e3,"; SameSite=Lax; Secure")},s=e=>{var t,n;null==(t=(n=window).fbq)||t.call(n,"trackCustom",e)}},5658:(e,t,n)=>{n.d(t,{CookieConsentBanner:()=>u});var a=n(6892),o=n(8016),i=n(7444),s=n.n(i),c=n(9093),r=n(2329);let l=e=>{let{label:t,description:n,checked:o,disabled:i,onChange:s}=e;return(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 py-3",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-[14px] font-medium ".concat(i?"text-[#6B7280]/50":"text-[#1D1D1F]"),children:t}),(0,a.jsx)("p",{className:"text-[12px] leading-[1.4] text-[#6B7280]",children:n})]}),(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":o,disabled:i,onClick:()=>s(!o),className:"\n relative h-5 w-10 flex-shrink-0 rounded-full transition-colors duration-200\n ".concat(i?"cursor-not-allowed opacity-50":"cursor-pointer","\n ").concat(o?"bg-[#059669]":"bg-[#D1D5DB]","\n "),children:(0,a.jsx)("span",{className:"\n absolute top-0.5 left-0.5 h-4 w-4 rounded-full bg-white shadow-sm transition-transform duration-200\n ".concat(o?"translate-x-5":"translate-x-0","\n ")})})]})},d=()=>{var e,t;let{consent:n,saveCustom:i,acceptAll:s}=(0,r.useCookieConsent)(),[d,u]=(0,o.useState)(null!=(e=null==n?void 0:n.categories.analytics)&&e),[m,w]=(0,o.useState)(null!=(t=null==n?void 0:n.categories.marketing)&&t);return(0,a.jsxs)("div",{className:"border-t border-[#E5E5EA] pt-4",children:[(0,a.jsx)("p",{className:"text-[13px] font-medium text-[#6B7280]",children:"Configura\xe7\xf5es de Cookies"}),(0,a.jsxs)("div",{className:"mt-2 divide-y divide-[#F3F4F6]",children:[(0,a.jsx)(l,{label:"Essenciais",description:"Necess\xe1rios para o funcionamento b\xe1sico.",checked:!0,disabled:!0,onChange:()=>{}}),(0,a.jsx)(l,{label:"Anal\xedticos",description:"Nos ajudam a entender como voc\xea usa o site.",checked:d,onChange:u}),(0,a.jsx)(l,{label:"Marketing",description:"Permitem an\xfancios mais relevantes.",checked:m,onChange:w})]}),(0,a.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,a.jsx)(c.$n,{variant:"candy",size:"sm",onClick:()=>{i({essential:!0,analytics:d,marketing:m})},className:"flex-1",children:"Salvar prefer\xeancias"}),(0,a.jsx)(c.$n,{variant:"secondary",size:"sm",onClick:s,children:"Aceitar todos"})]})]})},u=()=>{let{isLoaded:e,showBanner:t,isSettingsOpen:n,acceptAll:i,rejectAll:l,openSettings:u}=(0,r.useCookieConsent)(),[m,w]=(0,o.useState)(!1),[h,g]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{if(t&&e){let e=setTimeout(()=>w(!0),100);return()=>clearTimeout(e)}if(!t&&m){g(!0);let e=setTimeout(()=>{w(!1),g(!1)},200);return()=>clearTimeout(e)}},[t,e,m]),e&&(t||h))?(0,a.jsxs)("div",{className:"\n fixed bottom-6 left-6 z-50\n w-[calc(100vw-48px)] max-w-100\n rounded-[14px] border border-[#E5E5EA] bg-white\n p-5 shadow-[0_20px_60px_rgba(0,0,0,0.12)]\n transition-all duration-400\n ".concat(m&&!h?"animate-[consent-enter_400ms_cubic-bezier(0.16,1,0.3,1)_both]":h?"opacity-0 translate-y-2 transition-all duration-200":"opacity-0 translate-y-4","\n "),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[#6B7280]",children:[(0,a.jsx)("path",{d:"M2 12C2 17.5228 6.48759 22 12.0233 22C17.2307 22 21.5107 18.0382 22 12.9709C21.8512 12.9901 21.6995 13 21.5455 13C19.6848 13 18.1625 11.5548 18.0446 9.72818C17.7481 9.90098 17.4031 10 17.035 10C15.9278 10 15.0303 9.10457 15.0303 8C15.0303 7.39892 15.2961 6.85978 15.7168 6.49315C14.7043 5.87927 14.028 4.76843 14.028 3.5C14.028 3.05943 14.1096 2.63788 14.2585 2.24956C13.5398 2.08624 12.7916 2 12.0233 2C6.48759 2 2 6.47715 2 12Z"}),(0,a.jsx)("path",{d:"M12.0078 18L11.9988 18",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M10.5 5.5L9 7",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M17 14L15 16",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M6.5 14.5L8.5 16.5",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M11.125 12H11M11.25 12C11.25 12.1381 11.1381 12.25 11 12.25C10.8619 12.25 10.75 12.1381 10.75 12C10.75 11.8619 10.8619 11.75 11 11.75C11.1381 11.75 11.25 11.8619 11.25 12Z",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M6.125 10H6M6.25 10C6.25 10.1381 6.13807 10.25 6 10.25C5.86193 10.25 5.75 10.
11381 5.75 10C5.75 9.86193 5.86193 9.75 6 9.75C6.13807 9.75 6.25 9.86193 6.25 10Z",strokeLinecap:"round"})]}),(0,a.jsx)("p",{className:"text-[15px] font-medium text-[#1D1D1F]",children:"N\xf3s usamos cookies"})]}),(0,a.jsxs)("p",{className:"mt-2 text-[13px] leading-normal text-[#6B7280]",children:["Utilizamos cookies para melhorar sua experi\xeancia. Leia nossa"," ",(0,a.jsx)(s(),{href:"/privacidade",className:"text-[#1D1D1F] underline underline-offset-2 transition-colors hover:text-[#059669]",children:"Pol\xedtica de Privacidade"}),"."]}),n?(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(d,{})}):(0,a.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,a.jsx)(c.$n,{variant:"candy",size:"sm",onClick:i,className:"flex-1",children:"Aceitar todos"}),(0,a.jsx)(c.$n,{variant:"secondary",size:"sm",onClick:u,children:"Configura\xe7\xf5es"}),(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:l,children:"Rejeitar"})]})]}):null}},9711:(e,t,n)=>{n.d(t,{AnalyticsScripts:()=>d});var a=n(8016),o=n(393),i=n(2329),s=n(3611);let c=n(7811).env.NEXT_PUBLIC_GA_ID,r="ga-script",l="meta-pixel-script",d=()=>{let{consent:e}=(0,i.useCookieConsent)(),t=(0,o.usePathname)(),n=!!(c&&(null==e?void 0:e.categories.analytics)),d=!!(null==e?void 0:e.categories.marketing);return(0,a.useEffect)(()=>{var e,t,a;if(!c)return;let o="ga-disable-".concat(c);if(!n){Reflect.set(window,o,!0),null==(e=document.getElementById(r))||e.remove(),window.__cargoosGaInitialized=!1,window.gtag=void 0,window.dataLayer=void 0;return}if(Reflect.set(window,o,!1),window.dataLayer=null!=(t=window.dataLayer)?t:[],window.gtag=null!=(a=window.gtag)?a:function(){for(var e,t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];null==(e=window.dataLayer)||e.push(n)},window.__cargoosGaInitialized||(window.gtag("js",new Date),window.gtag("config",c),window.__cargoosGaInitialized=!0),!document.getElementById(r)){let e=document.createElement("script");e.id=r,e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=".concat(c),document.head.appendChild(e)}},[n]),(0,a.useEffect)(()=>{(0,s.rj)()},[t]),(0,a.useEffect)(()=>{if(!d){var e,t;null==(e=(t=window).fbq)||e.call(t,"consent","revoke");return}if((0,s.OV)(),window.fbq||(window.fbq=(()=>{let e=function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];e.callMethod?e.callMethod(...n):e.queue.push(n)};return e.queue=[],e.push=e,e.loaded=!0,e.version="2.0",e})(),window._fbq=window.fbq),window.fbq("consent","grant"),window.__cargoosMetaPixelInitialized||(window.fbq("init","1578855746969809"),window.__cargoosMetaPixelInitialized=!0),window.fbq("track","PageView"),!document.getElementById(l)){let e=document.createElement("script");e.id=l,e.async=!0,e.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(e)}},[d,t]),null}}}]);
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.