1import{S as e}from"./chunk-DeonM-eN.js";import{i as t,s as n}from"./chunk-Dm8GJiRx.js";import{r}from"./chunk-z7WLrbiK.js";/* empty css */var i=e(n(),1),a=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),o=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),c=e=>{let t=s(e);return t.charAt(0).toUpperCase()+t.slice(1)},l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},u=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},d=(0,i.createContext)({}),f=()=>(0,i.useContext)(d),p=(0,i.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:o=``,children:s,iconNode:c,...d},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,color:_=`currentColor`,className:v=``}=f()??{},y=r??g?Number(n??h)*24/Number(t??m):n??h;return(0,i.createElement)(`svg`,{ref:p,...l,width:t??m??l.width,height:t??m??l.height,stroke:e??_,strokeWidth:y,className:a(`lucide`,v,o),...!s&&!u(d)&&{"aria-hidden":`true`},...d},[...c.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(s)?s:[s]])}),m=(e,t)=>{let n=(0,i.forwardRef)(({className:n,...r},s)=>(0,i.createElement)(p,{ref:s,iconNode:t,className:a(`lucide-${o(c(e))}`,`lucide-${e}`,n),...r}));return n.displayName=c(e),n},h=m(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),g=m(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),_=m(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),v=m(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),y=t(),b=[{fi:`us`,code:`US`,href:`/en/`,label:`United States`,shortLabel:`English`},{fi:`ca`,code:`CA`,href:`/en/`,label:`Canada`,shortLabel:`English`},{fi:`br`,code:`BR`,href:`/br/`,label:`Brasil`,shortLabel:`Português`}];function x({fi:e}){return(0,y.jsx)(`span`,{className:`fi fi-${e}`,style:{width:18,height:13,borderRadius:2,display:`inline-block`,backgroundSize:`cover`,flexShrink:0}})}function S(){try{return localStorage.getItem(`matera-territory`)||``}catch{return``}}function C(e){try{localStorage.setItem(`matera-territory`,e)}catch{}let t=location.protocol===`https:`?`;Secure`:``;document.cookie=`matera-territory=${e};path=/;max-age=${3600*24*365};SameSite=Lax${t}`}function w(e){if(e.startsWith(`/br`))return`br`;if(e.startsWith(`/en`))return S()===`CA`?`ca`:`us`;let t=S();return t===`CA`?`ca`:t===`BR`?`br`:t===`US`?`us`:(document.querySelector(`meta[name="cf-country"]`)?.getAttribute(`content`)||``)===`CA`?`ca`:`us`}var T=({iconOnly:e=!1})=>{let[t,n]=(0,i.useState)(!1),a=(0,i.useRef)(null),o=w(r().pathname),s=b.find(e=>e.fi===o)??b[0];return(0,i.useEffect)(()=>{let e=e=>{a.current&&!a.current.contains(e.target)&&n(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]),(0,y.jsxs)(`div`,{ref:a,style:{position:`relative`},children:[(0,y.jsxs)(`button`,{onClick:()=>n(!t),style:{background:`none`,border:`1px solid rgba(255,255,255,0.35)`,borderRadius:`6px`,cursor:`pointer`,padding:`5px 10px`,display:`flex`,alignItems:`center`,gap:`6px`,transition:`border-color 0.2s`,color:`var(--matera-white)`},"aria-label":`Select territory`,"aria-haspopup":`menu`,"aria-expanded":t,"aria-controls":`territory-selector-menu`,onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.7)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.35)`},children:[(0,y.jsx)(g,{size:16,strokeWidth:2}),!e&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{style:{fontSize:`0.85rem`,fontWeight:500,whiteSpace:`nowrap`},children:s.label}),(0,y.jsx)(h,{size:12,style:{transition:`transform 0.2s`,transform:t?`rotate(180deg)`:`none`}})]})]}),(0,y.jsx)(`div`,{id:`territory-selector-menu`,role:`menu`,"aria-hidden":!t,style:{position:`absolute`,top:`calc(100% + 8px)`,right:0,background:`#4c12aa`,border:`1px solid rgba(255,255,255,0.15)`,borderRadius:`8px`,padding:`4px`,display:`flex`,flexDirection:`column`,gap:`2px`,boxShadow:`0 8px 24px rgba(0,0,0,0.4)`,zIndex:1001,minWidth:`140px`,opacity:+!!t,visibility:t?`visible`:`hidden`,pointerEvents:t?`auto`:`none`,transition:`opacity 0.15s`},children:b.map(e=>(0,y.jsxs)(`a`,{href:e.href,title:e.label,role:`menuitem`,tabIndex:t?0:-1,onClick:()=>{C(e.code),n(!1)},style:{display:`flex`,alignItems:`center`,gap:`10px`,textDecoration:`none`,padding:`8px 12px`,borderRadius:`6px`,transition:`background 0.15s`,color:`var(--matera-white)`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.08)`},onMouseLeave:e=>{e.currentTarget.style.background=`none`},children:[(0,y.jsx)(x,{fi:e.fi}),(0,y.jsx)(`span`,{style:{fontSize:`0.85rem`,fontWeight:500},children:e.label})]},e.code))})]})};export{h as i,v as n,_ as r,T as t};
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.