1import{r as d,j as e,S as A,$ as h,K as E}from"./app-g6DC-Zcl.js";import{c as j,u as g,l as f}from"./SeoHead-JPF56HUo.js";/** 2 * @license lucide-react v0.475.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 z=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],O=j("ChevronDown",z);/** 7 * @license lucide-react v0.475.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const T=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],L=j("Menu",T);/** 12 * @license lucide-react v0.475.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const P=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],F=j("X",P);function $(){return e.jsxs("svg",{viewBox:"0 0 24 16",className:"h-full w-full",children:[e.jsx("rect",{width:"24",height:"16",fill:"#B22234"}),e.jsx("g",{fill:"#fff",children:[1,3,5,7,9,11,13].map(a=>e.jsx("rect",{y:a,width:"24",height:"1"},a))}),e.jsx("rect",{width:"10",height:"7",fill:"#3C3B6E"})]})}function D(){return e.jsxs("svg",{viewBox:"0 0 24 16",className:"h-full w-full",children:[e.jsx("rect",{width:"24",height:"16",fill:"#009C3B"}),e.jsx("polygon",{points:"12,2 22,8 12,14 2,8",fill:"#FFDF00"}),e.jsx("circle",{cx:"12",cy:"8",r:"3.2",fill:"#002776"})]})}const v=[{code:"en",label:"USA â EN",Flag:$},{code:"pt-br",label:"BRASIL â PT",Flag:D}];function B(){const a=route().current()??"home";return a.startsWith("pt.")?a.slice(3):a}function I(){const a=g(),[t,r]=d.useState(!1),o=d.useRef(null);d.useEffect(()=>{function n(p){o.current&&!o.current.contains(p.target)&&r(!1)}return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[]);const l=v.find(n=>n.code===a);function c(n){r(!1),n!==a&&A.visit(f(B(),n))}return e.jsx("div",{className:"bg-ink text-xs text-white/80",children:e.jsx("div",{className:"container-x flex h-8 items-center justify-end",children:e.jsxs("div",{className:"relative",ref:o,children:[e.jsxs("button",{type:"button","aria-haspopup":"listbox","aria-expanded":t,onClick:()=>r(n=>!n),className:"flex items-center gap-2 py-1 transition-colors hover:text-white",children:[e.jsx("span",{"aria-hidden":!0,className:"inline-block h-3 w-4 overflow-hidden rounded-[2px]",children:e.jsx(l.Flag,{})}),e.jsx("span",{className:"label-eyebrow tracking-wider",children:l.label}),e.jsx(O,{size:14,className:`transition-transform duration-200 ${t?"rotate-180":""}`})]}),t&&e.jsx("ul",{role:"listbox",className:"absolute top-full right-0 z-50 mt-1 min-w-[10rem] overflow-hidden rounded-[5px] border border-black/5 bg-white py-1 shadow-lg",children:v.map(n=>e.jsx("li",{children:e.jsxs("button",{type:"button",role:"option","aria-selected":n.code===a,onClick:()=>c(n.code),className:`flex w-full items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-[#F5F6FA] ${n.code===a?"text-primary":"text-[#1A1A2E]"}`,children:[e.jsx("span",{"aria-hidden":!0,className:"inline-block h-3 w-4 overflow-hidden rounded-[2px]",children:e.jsx(n.Flag,{})}),e.jsx("span",{className:"label-eyebrow tracking-wider",children:n.label})]})},n.code))})]})})})}function R({className:a=""}){return e.jsx("img",{src:"/images/logo-array.svg",alt:"Array.codes",className:`h-auto w-[194px] ${a}`})}const G={primary:"bg-primary text-primary-foreground hover:brightness-110",accent:"bg-accent text-accent-foreground hover:brightness-110",mint:"bg-[color:var(--color-mint)] text-white hover:brightness-110",outline:"border border-border bg-transparent text-foreground hover:bg-surface"};function y({to:a,href:t,children:r,variant:o="primary",className:l="",onClick:c}){const n=`inline-flex items-center justify-center rounded-[5px] px-5 py-3 label-eyebrow shadow-sm transition-all ${G[o]} ${l}`;return t?e.jsx("a",{href:t,className:n,onClick:c,target:t.startsWith("http")?"_blank":void 0,rel:t.startsWith("http")?"noopener noreferrer":void 0,children:r}):e.jsx(h,{href:a??"/",className:n,onClick:c,children:r})}function U(){const a=E().url.split("?")[0].split("#")[0],t=g(),[r,o]=d.useState(!1),[l,c]=d.use
16State(!1),n=f("home",t),p=f("contact",t),u=[{label:"HOME",to:n},{label:t==="pt-br"?"SOBRE":"ABOUT US",to:f("about",t)}],s=t==="pt-br"?"CONTATO":"CONTACT";d.useEffect(()=>{function i(){c(window.scrollY>40)}return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]);const m=!l;return e.jsxs("header",{className:`sticky top-0 z-40 transition-colors ${m?"-mb-28":"border-border bg-background/95 border-b backdrop-blur"}`,children:[e.jsxs("div",{className:"container-x flex h-28 items-center justify-between",children:[e.jsx(h,{href:n,"aria-label":"Array.codes home",onClick:()=>o(!1),children:e.jsx(R,{})}),e.jsxs("div",{className:"hidden items-center gap-10 md:flex",children:[e.jsx("nav",{className:"flex items-center gap-10",children:u.map(i=>{const b=a===i.to;return e.jsx(h,{href:i.to,className:"label-eyebrow hover:text-primary transition-colors",style:{color:b?"var(--color-primary)":"var(--color-foreground)"},children:i.label},i.label)})}),e.jsx(y,{to:p,children:s})]}),e.jsx("button",{type:"button","aria-label":r?"Close menu":"Open menu","aria-expanded":r,onClick:()=>o(i=>!i),className:"text-foreground md:hidden",children:r?e.jsx(F,{size:26}):e.jsx(L,{size:26})})]}),r&&e.jsxs("div",{className:"border-border bg-background container-x flex flex-col gap-6 border-t py-6 md:hidden",children:[e.jsx("nav",{className:"flex flex-col gap-5",children:u.map(i=>{const b=a===i.to;return e.jsx(h,{href:i.to,onClick:()=>o(!1),className:"label-eyebrow",style:{color:b?"var(--color-primary)":"var(--color-foreground)"},children:i.label},i.label)})}),e.jsx(y,{to:p,className:"w-full",onClick:()=>o(!1),children:s})]})]})}function W(){const a=g();return e.jsx("footer",{className:"bg-footer text-white/80",children:e.jsxs("div",{className:"container-x flex flex-col items-center gap-6 py-8 md:flex-row md:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(h,{href:f("home",a),"aria-label":"Array.codes home",children:e.jsx("img",{src:"/images/logo-icone.png",alt:"",className:"h-11 w-11","aria-hidden":!0})}),e.jsxs("span",{className:"text-base text-white",children:["© 2018 - ",new Date().getFullYear()," | Array.codes - All rights reserved"]})]}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(h,{href:f("privacy-policy",a),className:"text-sm text-white",children:a==="pt-br"?"PolÃtica de Privacidade":"Privacy Policy"}),e.jsx("a",{href:"#settings",className:"text-sm text-white",children:a==="pt-br"?"Configurações de Cookies":"Cookie Settings"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("a",{href:"https://www.facebook.com/arraycodes/",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"transition-transform hover:scale-110",children:e.jsx("img",{src:"/images/facebook.png",alt:"",className:"h-10 w-10"})}),e.jsx("a",{href:"https://www.instagram.com/arraycodes/",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"transition-transform hover:scale-110",children:e.jsx("img",{src:"/images/instagram.png",alt:"",className:"h-10 w-10"})})]})]})]})})}function V(){return e.jsx("a",{href:"https://api.whatsapp.com/send?phone=5511943478557",target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp",className:"whatsapp-float",children:e.jsx("img",{src:"/images/whatsapp-float-icon.svg",alt:"",className:"h-full w-full"})})}const x=["ad_storage","ad_user_data","ad_personalization","analytics_storage","functionality_storage","personalization_storage","security_storage"],w=x.reduce((a,t)=>({...a,[t]:!1}),{}),N={ad_storage:{en:"Ad Storage",pt:"Armazenamento de Anúncios"},ad_user_data:{en:"Ad User Data",pt:"Dados do Usuário para Anúncios"},ad_personalization:{en:"Ad Personalization",pt:"Personalização de Anúncios"},analytics_storage:{en:"Analytics Storage",pt:"Armazenamento de Análises"},functionality_storage:{en:"Functionality Storage",pt:"Armazenamento de Funcionalidade"},personalization_storage:{en:"Personalization Storage",pt:"Armazenamento de Personalização"},security_storage:{en:"Security Storage",pt:"Armazenamento de Segurança"}},k={ad_storage:{en:"Enables storage (such as cookies) related to advertising.",pt:"Permite armazenamento (como cookies) relacionado a anúncios."},ad_user_data:{en:"Sends user data related to advertising to Google.",pt:"Envia dados do usuário relacionados a anúncios para o Google."},ad_personalization:{en:"Enables personalized advertising.",pt:"Permite publicidade personalizada."},analytics_storage:{en:"Enables storage (such as cookies) related to analytics, e.g. visit duration.",pt:"Permite armazenamento (como cookies) relacionado a análises, ex. duração da visita."},functionality_storage:{en:"Enables storage that supports website functionality, e.g. language settings.",pt:"Permite armazenamento que oferece suporte à funcionalidade do site, ex. preferências de idioma."},personalization_storage:{en:"Enables storage related to personalization, e.g. content recommendations.",pt:"Permite armazenamento relacionado à personalização, ex. recomendações de conteúdo."},security_storage:{en:"Enables storage related to security, e.g. authentication, fraud prevention.",pt:"Permite armazenamento relacionado à segurança, ex. autenticação, prevenção de fraude."}};function K(a,t){return t==="pt-br"?N[a].pt:N[a].en}function M(a,t){return t==="pt-br"?k[a].pt:k[a].en}const S="arraycodes_consent_preferences";function H(a){return!a||typeof a!="object"?!1:x.some(t=>typeof a[t]=="boolean")}function Y(){try{const a=localStorage.getItem(S);if(!a)return null;const t=JSON.parse(a);return H(t)?t:null}catch{return null}}function q(a){try{localStorage.setItem(S,JSON.stringify(a))}catch{}}function J(a){window.dataLayer=window.dataLayer||[];const t={};x.forEach(r=>{t[r]=a[r]?"granted":"denied"}),window.dataLayer.push(["consent","update",t])}const _={analytics_storage:"analytics",ad_storage:"marketing",ad_user_data:"marketing",ad_personalization:"marketing"},X={analytics:["_ga","_ga_*","_gid","_gat"],marketing:["_fbp","_fbc","_ttp","ttclid","_gcl_au","_gcl_aw"]};function Q(){return window.location.hostname.replace(/^www\./,"")}function Z(a){const t=Q(),r="Thu, 01 Jan 1970 00:00:00 GMT";["/",window.location.pathname].forEach(o=>{document.cookie=`${a}=; expires=${r}; path=${o}; domain=${t}`,document.cookie=`${a}=; expires=${r}; path=${o}; domain=.${t}`})}function ee(a,t){return t.endsWith("*")?a.startsWith(t.slice(0,-1)):a===t}function ae(a){const t=document.cookie.split(";").map(o=>o.trim().split("=")[0]),r=new Set;Object.keys(_).forEach(o=>{a[o]===!1&&r.add(_[o])}),r.forEach(o=>
16{X[o].forEach(l=>{t.forEach(c=>{ee(c,l)&&Z(c)})})})}const te={en:{title:"Privacy",description:"By browsing this website, you accept the cookies we use to improve your experience.",settings:"Settings",deny:"Deny",acceptAll:"Accept all",preferences:"Consent Preferences",close:"Close",save:"Save settings"},"pt-br":{title:"Privacidade",description:"Ao navegar neste site, você aceita os cookies que usamos para melhorar sua experiência.",settings:"Configurações",deny:"Recusar",acceptAll:"Aceitar todos",preferences:"Preferências de Consentimento",close:"Fechar",save:"Salvar configurações"}};function C(a){return x.reduce((t,r)=>({...t,[r]:a}),{})}function se(){const a=g(),t=te[a],[r,o]=d.useState(!1),[l,c]=d.useState(!1),[n,p]=d.useState(w);d.useEffect(()=>{const s=Y();s?p({...w,...s}):o(!0)},[]),d.useEffect(()=>{function s(m){m.target.closest('a[href="#settings"]')&&(m.preventDefault(),c(!0))}return document.addEventListener("click",s),()=>document.removeEventListener("click",s)},[]);function u(s){p(s),q(s),J(s),ae(s),o(!1),c(!1)}return e.jsxs(e.Fragment,{children:[e.jsx("section",{id:"popup-consent-datalayer",className:r?"active":void 0,children:e.jsxs("div",{className:"popup-consent-datalayer-block",children:[e.jsxs("div",{className:"popup-consent-datalayer-description",children:[e.jsx("div",{className:"popup-consent-datalayer-title",children:t.title}),e.jsx("div",{className:"popup-consent-datalayer-text",children:t.description})]}),e.jsxs("div",{className:"popup-consent-datalayer-buttons",children:[e.jsx("a",{href:"#settings",className:"secondary",children:t.settings}),e.jsx("a",{href:"#",className:"secondary",onClick:s=>{s.preventDefault(),u(C(!1))},children:t.deny}),e.jsx("a",{href:"#",className:"primary",onClick:s=>{s.preventDefault(),u(C(!0))},children:t.acceptAll})]})]})}),e.jsx("div",{className:`cd-popup${l?" is-visible":""}`,children:e.jsxs("div",{className:`cd-popup-container${l?" is-visible":""}`,children:[e.jsx("button",{type:"button",className:"cd-popup-close","aria-label":t.close,onClick:()=>c(!1)}),e.jsx("h2",{children:t.preferences}),e.jsx("div",{className:"cd-preferences",children:x.map(s=>e.jsxs("div",{className:"item-cd-preference",children:[e.jsxs("div",{className:"description-item-cd-preference",children:[e.jsx("label",{htmlFor:`consent-${s}`,children:K(s,a)}),e.jsx("div",{className:"text-item-cd-preference",children:M(s,a)})]}),e.jsx("div",{className:"input-item-cd-preference",children:e.jsxs("span",{className:"switch",children:[e.jsx("input",{id:`consent-${s}`,type:"checkbox",checked:n[s],onChange:m=>p(i=>({...i,[s]:m.target.checked}))}),e.jsx("span",{className:"slider round"})]})})]},s))}),e.jsxs("ul",{className:"cd-buttons",children:[e.jsx("li",{children:e.jsx("a",{href:"#",className:"secondary",onClick:s=>{s.preventDefault(),c(!1)},children:t.close})}),e.jsx("li",{children:e.jsx("a",{href:"#",className:"primary",onClick:s=>{s.preventDefault(),u(n)},children:t.save})})]})]})})]})}function oe({children:a}){return e.jsxs("div",{className:"bg-background flex min-h-screen flex-col",children:[e.jsx(I,{}),e.jsx(U,{}),e.jsx("main",{className:"flex-1",children:a}),e.jsx(W,{}),e.jsx(V,{}),e.jsx(se,{})]})}export{y as C,oe as S,O as a};
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.