1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13642,e=>{"use strict";var t=e.i(43476),a=e.i(57688),l=e.i(5232);e.s(["default",0,function(){let e=(0,l.useT)("footer"),s=(0,l.useLocalizedHref)();return(0,t.jsxs)("footer",{className:"mt-auto flex flex-col w-full border-t border-neutral-700 shadow-inner bg-black text-white",children:[(0,t.jsx)("div",{className:"pt-20 pb-10 md:pb-14 lg:pb-16 px-6 md:px-8",children:(0,t.jsxs)("div",{className:"w-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center mb-16 gap-8",children:[(0,t.jsx)("img",{src:"/images/logo-domini-cat-light.svg",alt:".cat 20 anys",className:"h-10 md:h-14 object-contain w-auto",width:120,height:40}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-3 md:gap-4",children:[(0,t.jsx)("span",{className:"font-pixel text-[13px] leading-[16px] text-white text-left md:text-right",children:e.managedBy}),(0,t.jsx)(a.default,{src:"/images/logo (1).png",alt:"Accent Obert",width:150,height:64,className:"h-10 md:h-14 object-contain"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between gap-12 lg:gap-16 border-b border-neutral-700 pb-10",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-12 lg:gap-14",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"font-pixeloid uppercase text-accent-500 text-base md:text-[19px] md:leading-[26px]",children:e.colBeCat}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("a",{href:s("/per-que-un-cat"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.perque}),(0,t.jsx)("a",{href:s("/comparativa-de-preus"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.comparativa}),(0,t.jsx)("a",{href:s("/emprenedors"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.emprenedors}),(0,t.jsx)("a",{href:s("/entitats"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.entitats}),(0,t.jsx)("a",{href:s("/docents"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.docents}),(0,t.jsx)("a",{href:s("/generador-dominis"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.generador}),(0,t.jsx)("a",{href:s("/registradors"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.registradors})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"font-pixeloid uppercase text-accent-500 text-base md:text-[19px] md:leading-[26px]",children:e.colConsolidate}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("a",{href:s("/preguntes-frequents"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.faq}),(0,t.jsx)("a",{href:s("/formacio/categoria/tutorials"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.tutorials}),(0,t.jsx)("a",{href:s("/formacio/categoria/guies"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.guies}),(0,t.jsx)("a",{href:s("/eines"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.eines}),(0,t.jsx)("a",{href:s("/contactans"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.contacta})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"font-pixeloid uppercase text-accent-500 text-base md:text-[19px] md:leading-[26px]",children:e.colMore}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("a",{href:s("/nosaltres"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.nosaltres}),(0,t.jsx)("a",{href:s("/categoria/actualitat"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.actualitat}),(0,t.jsx)("a",{href:s("/20-anys-del-cat"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.vintanys}),(0,t.jsx)("a",{href:s("/casos-exit"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.casos}),(0,t.jsx)("a",{href:s("/concurs-wapps"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.concurs}),(0,t.jsx)("a",{href:s("/comunitat"),className:"font-pixel text-white hover:text-white/80 transition-colors text-body-base",children:e.links.comunitat})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-8 lg:items-end lg:text-right lg:w-[451px] lg:shrink-0",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"font-pixeloid uppercase text-accent-500 text-base md:text-[19px] md:leading-[26px]",children:e.contact}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("p",{className:"font-pixel text-white text-body-base",children:[e.addressLine1,(0,t.jsx)("br",{}),e.addressLine2]}),(0,t.jsxs)("p",{className:"font-pixel text-white text-body-base",children:[(0,t.jsx)("a",{href:"tel:+34936750354",className:"hover:text-white/80 underline underline-offset-4 decoration-white/30 hover:decoration-white transition-colors",children:"+34 936 750 354"}),(0,t.jsx)("br",{}),(0,t.jsx)("a",{href:"mailto:[email protected]",className:"hover:text-white/80 underline underline-offset-4 decoration-white/30 hover:decoration-white transition-colors",children:"[email protected]"})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"font-pixeloid uppercase text-accent-500 text-base md:text-[19px] md:leading-[26px]",children:e.connect}),(0,t.jsxs)("div",{className:"flex items-center lg:justify-end gap-3",children:[(0,t.jsx)("a",{href:"https://www.linkedin.com/company/puntcat/",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"text-white hover:text-white/80 transition-colors",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}),(0,t.jsx)("a",{href:"mailto:[email protected]","aria-label":"[email protected]",className:"text-white hover:text-white/80 transition-colors",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})})]})]})]})]})]})}),(0,t.jsx)("div",{className:"pt-2 pb-8 px-6 md:px-8",children:(0,t.jsxs)("div",{className:"w-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-center lg:items-end gap-12",children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-center sm:items-end gap-4 md:gap-5 lg:translate-y-8",children:[(0,t.jsx)(a.default,{src:"/images/mixu-bafarada.png",alt:"Hola sóc el Mixu",className:"w-[100px] md:w-[130px] lg:w-[150px] h-auto object-contain block translate-y-[1px]",width:352,height:439}),(0,t.jsxs)("div",{className:"flex flex-col mb-8 md:mb-12 lg:mb-8 lg:-translate-y-10 text-center sm:text-left",children:[(0,t.jsx)("span",{className:"font-pixeloid text-base md:text-[19px] md:leading-[26px] uppercase text-accent-500 mb-2",children:e.didYouKnow}),(0,t.jsx)("h3",{className:"font-pixel text-white leading-[1.2] max-w-[32rem] text-xl md:text-dh4",children:e.fact})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center lg:items-end gap-4 mb-4 md:mb-6 lg:mb-8 w-full lg:w-auto",children:[(0,t.jsx)("span",{className:"font-pixel text-accent-500 text-body-sm",children:e.partOf}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center lg:justify-end gap-4 md:gap-6",children:[(0,t.jsx)(a.default,{src:"/images/logo-icann.png",alt:"ICANN",width:120,height:96,className:"h-8 md:h-10 lg:h-12 w-auto object-contain brightness-0 invert opacity-100"}),(0,t.jsx)(a.default,{src:"/images/global-cyber-alliance-logo-vector 1.png",alt:"Global Cyber Alliance",width:276,height:96,className:"h-8 md:h-10 lg:h-12 w-auto object-contain brightness-0 invert opacity-100"}),(0,t.jsx)("span",{className:"font-pixel text-neutral-200 text-body-lg",children:"geoTLD.group"}),(0,t.jsx)(a.default,{src:"/images/logo-centr-light.png",alt:"CENTR",width:381,height:96,className:"h-8 md:h-10 lg:h-12 w-auto object-contain opacity-80"}),(0,t.jsx)(a.default,{src:"/images/logo-ens.jpg",alt:"ENS",width:105,height:128,className:"h-14 md:h-16 w-auto object-contain"})]})]})]}
1),(0,t.jsx)("hr",{className:"border-t border-neutral-700 w-full mt-8 mb-6"}),(0,t.jsxs)("div",{className:"w-full flex flex-wrap justify-center lg:justify-start gap-x-6 gap-y-3 pt-2",children:[(0,t.jsx)("a",{href:s("/normativa-del-domini-cat"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.normativa}),(0,t.jsx)("a",{href:s("/contact-registrant"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.contactarPropietari}),(0,t.jsx)("a",{href:s("/whois-access"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.accesDades}),(0,t.jsx)("a",{href:s("/report-problem"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.notificar}),(0,t.jsx)("a",{href:s("/avis-legal"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.avisLegal}),(0,t.jsx)("a",{href:s("/politica-de-privacitat"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.privacitat}),(0,t.jsx)("a",{href:s("/politica-de-galetes"),className:"font-pixel text-neutral-400 hover:text-white transition-colors text-body-sm",children:e.legal.galetes})]})]})})]})}])},2971,e=>{"use strict";var t=e.i(43476),a=e.i(22016),l=e.i(18566),s=e.i(71645);let r=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim(),i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n={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"};let o=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:i="",children:o,iconNode:c,...d},x)=>(0,s.createElement)("svg",{ref:x,...n,width:t,height:t,stroke:e,strokeWidth:l?24*Number(a)/Number(t):a,className:r("lucide",i),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),c=(e,t)=>{let a=(0,s.forwardRef)(({className:a,...l},n)=>(0,s.createElement)(o,{ref:n,iconNode:t,className:r(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l}));return a.displayName=i(e),a},d=c("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),x=c("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),h=c("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"}]]);var m=e.i(18071);function p({className:e="",onNavigate:r}){let i=(0,l.usePathname)()||"/",{lang:n}=(0,m.splitLocale)(i.split("/").filter(Boolean)),[o,c]=(0,s.useState)(!1),[d,x]=(0,s.useState)(null),f=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=!0;return c(!1),x(null),(async()=>{try{let t=await fetch(`/api/translations?path=${encodeURIComponent(i)}`),a=await t.json();e&&x(a.links||{})}catch{e&&x({})}})(),()=>{e=!1}},[i]),(0,s.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&c(!1)},t=e=>"Escape"===e.key&&c(!1);return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[]);let u=m.LOCALES.filter(e=>e!==n&&!!d?.[e]);return null===d?(0,t.jsx)("div",{className:`w-[18px] h-[18px] ${e}`,"aria-hidden":!0}):0===u.length?null:(0,t.jsxs)("div",{ref:f,className:`relative ${e}`,children:[(0,t.jsx)("button",{type:"button","aria-label":"Canvia d'idioma","aria-expanded":o,onClick:()=>c(e=>!e),className:"hover:opacity-70 transition-opacity flex items-center justify-center",children:(0,t.jsx)(h,{className:"w-[18px] h-[18px]",strokeWidth:1.5})}),o&&(0,t.jsx)("div",{className:"absolute right-0 top-full mt-2 bg-white border border-black shadow-[3px_3px_0_0_#000] min-w-[84px] z-[110]",children:u.map(e=>(0,t.jsx)(a.default,{href:d[e],onClick:()=>{c(!1),r?.()},className:"block px-3 py-2 font-puntcat text-[15px] leading-6 text-black hover:bg-zinc-100 transition-colors whitespace-nowrap",children:m.LOCALE_LABELS[e]},e))})]})}var f=e.i(21605),u=e.i(5232);let b={"user-fill":[11,14],"send-plane-fill":[14,14],"artboard-fill":[
115,16]};e.s(["default",0,function({primaryMenus:e,secondaryMenus:r}){let i=(0,l.usePathname)(),n=(0,u.useLocale)(),o=(0,u.useT)("common"),c=e[n]??e.ca??[],h=r[n]??r.ca??[],{isSinglePost:g}=(0,f.useHeaderTheme)(),w=(0,m.canonicalCaPath)(i),j="/dominis-curts"===w||"/dominis-defensius"===w||"/concurs-wapps"===w||g,v="/"===w||"/emprenedors"===w||"/entitats"===w||"/docents"===w||"/idn"===w||"/sabies-que-el-domini-cat-posiciona-millor"===w||"/comunitat"===w||"/generador-dominis"===w||"/per-que-un-cat"===w||"/nosaltres"===w||"/20-anys-del-cat"===w||w.includes("/20-anys")||w.includes("/20anys")||w.includes("/vint-anys")||w.includes("/vintanys")||"/estadistiques"===w,N=j||v,[y,k]=(0,s.useState)(!1),[C,L]=(0,s.useState)(!1),[z,_]=(0,s.useState)(!1),E=(0,s.useRef)(0),S=(0,s.useRef)(!1),$=(0,s.useRef)(z);return $.current=z,(0,s.useEffect)(()=>{let e=()=>{S.current=!1;let e=window.scrollY;k(e>100),e<=100?L(!1):!$.current&&(e>E.current+6?L(!0):e<E.current-6&&L(!1)),E.current=e},t=()=>{S.current||(S.current=!0,window.requestAnimationFrame(e))};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:`${y?"fixed":"absolute"} top-0 left-0 right-0 z-50 px-6 md:px-8 h-[80px] lg:h-[100px] flex items-center transition-[transform,background-color,color,border-color,box-shadow] duration-300 ${C?"-translate-y-full":"translate-y-0"} ${y?"bg-white text-black border-b border-zinc-200":N?`bg-transparent ${j?"text-black":"text-white"}`:"bg-white border-b border-zinc-200 text-black"}`,children:(0,t.jsxs)("div",{className:"w-full h-full flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center h-full gap-3 lg:gap-6",children:[(0,t.jsx)(a.default,{href:(0,m.localeHome)(n),className:"shrink-0 flex items-center h-full",children:(0,t.jsx)("img",{src:y?"/images/logo-domini-cat-accent.svg":!N||j?"/images/logo-domini-cat-dark.svg":"/images/logo-domini-cat-light.svg",alt:".cat 20 anys",className:"h-10 md:h-12 object-contain w-auto",width:120,height:40})}),(0,t.jsx)("nav",{className:"hidden xl:flex items-center gap-2 lg:gap-3 text-[13px] xl:text-[15px] xl:font-sans tracking-wide font-medium uppercase h-full",children:c?.map(e=>{let l=e.children?.some(e=>i===e.uri||i+"/"===e.uri),s=i===e.uri||i+"/"===e.uri||l,r="bg-black text-white";return v&&!y&&(r="/generador-dominis"===w||"/comunitat"===w?"bg-white text-black":"bg-white text-primary-500"),(0,t.jsxs)("div",{className:"relative group flex items-center h-full",children:[(0,t.jsxs)(a.default,{href:e.uri,className:`flex items-center justify-center whitespace-nowrap transition-opacity font-pixel text-[17px] uppercase min-w-0 px-1.5 py-1 ${s?r:"hover:opacity-70"}`,children:[e.label,e.children?.length>0&&" +"]}),e.children?.length>0&&(0,t.jsx)("ul",{className:"absolute left-0 top-[60%] lg:top-[65%] hidden group-hover:block w-[300px] pt-[10px] lg:pt-[14px]",children:(0,t.jsx)("div",{className:"bg-white border-[0.5px] border-[#4D4D4D] p-4 flex flex-col gap-4",children:e.children.map(e=>{let l=e.menuItemStyleData?.menuStyle||"normal",s=e.menuItemStyleData?.menuIcon,r=e.menuItemStyleData?.menuSeparatorAfter;return"boto"===l?(0,t.jsxs)("li",{children:[(0,t.jsx)(a.default,{href:e.uri,className:"flex items-center justify-center bg-black text-white font-puntcat text-[16px] leading-6 normal-case px-4 py-2 h-10 hover:opacity-90 transition-opacity",children:e.label}),r&&(0,t.jsx)("hr",{className:"border-0 border-t border-black mt-4"})]},e.id):"destacat"===l?(0,t.jsxs)("li",{children:[(0,t.jsxs)(a.default,{href:e.uri,className:"flex items-center gap-2 px-2 h-6 font-puntcat text-[16px] leading-6 normal-case font-semibold text-black hover:opacity-70 transition-opacity",children:[s&&(0,t.jsx)("img",{src:`/images/menu-icons/${s}.svg`,alt:"",className:"shrink-0",width:b[s]?.[0],height:b[s]?.[1]}),(0,t.jsx)("span",{children:e.label})]}),r&&(0,t.jsx)("hr",{className:"border-0 border-t border-black mt-4"})]},e.id):(0,t.jsxs)("li",{children:[(0,t.jsx)(a.default,{href:e.uri,className:"flex items-center px-2 h-6 font-puntcat text-[16px] leading-6 normal-case text-black hover:opacity-70 transition-opacity",children:e.label}),r&&(0,t.jsx)("hr",{className:"border-0 border-t border-black mt-4"})]},e.id)})})})]},e.id)})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-4",children:[(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-2 lg:gap-3 text-[11px] lg:text-[13px] lg:font-sans tracking-wider up
1percase font-medium",children:[h?.map(e=>{let l=e.children?.some(e=>i===e.uri||i+"/"===e.uri),s=i===e.uri||i+"/"===e.uri||l,r="bg-black text-white";return v&&!y&&(r="/generador-dominis"===w||"/comunitat"===w?"bg-white text-black":"bg-white text-primary-500"),(0,t.jsxs)("div",{className:"relative group flex items-center h-full",children:[(0,t.jsxs)(a.default,{href:e.uri,className:`flex items-center whitespace-nowrap transition-opacity font-pixel text-[14px] uppercase min-w-0 pt-[1px] ${s?`${r} px-1.5 py-1`:"hover:opacity-70 px-1.5 py-1"}`,children:[e.label,e.children?.length>0&&" +"]}),e.children?.length>0&&(0,t.jsx)("ul",{className:"absolute right-0 top-[60%] lg:top-[65%] hidden group-hover:block w-[300px] pt-[10px] lg:pt-[14px]",children:(0,t.jsx)("div",{className:"bg-white border-[0.5px] border-[#4D4D4D] p-4 flex flex-col gap-4",children:e.children.map(e=>{let l=e.menuItemStyleData?.menuStyle||"normal",s=e.menuItemStyleData?.menuIcon,r=e.menuItemStyleData?.menuSeparatorAfter;return"boto"===l?(0,t.jsxs)("li",{children:[(0,t.jsx)(a.default,{href:e.uri,className:"flex items-center justify-center bg-black text-white font-puntcat text-[16px] leading-6 normal-case px-4 py-2 h-10 hover:opacity-90 transition-opacity",children:e.label}),r&&(0,t.jsx)("hr",{className:"border-0 border-t border-black mt-4"})]},e.id):"destacat"===l?(0,t.jsxs)("li",{children:[(0,t.jsxs)(a.default,{href:e.uri,className:"flex items-center gap-2 px-2 h-6 font-puntcat text-[16px] leading-6 normal-case font-semibold text-black hover:opacity-70 transition-opacity",children:[s&&(0,t.jsx)("img",{src:`/images/menu-icons/${s}.svg`,alt:"",className:"shrink-0",width:b[s]?.[0],height:b[s]?.[1]}),(0,t.jsx)("span",{children:e.label})]}),r&&(0,t.jsx)("hr",{className:"border-0 border-t border-black mt-4"})]},e.id):(0,t.jsxs)("li",{children:[(0,t.jsx)(a.default,{href:e.uri,className:"flex items-center px-2 h-6 font-puntcat text-[16px] leading-6 normal-case text-black hover:opacity-70 transition-opacity",children:e.label}),r&&(0,t.jsx)("hr",{className:"border-0 border-t border-black mt-4"})]},e.id)})})})]},e.id)}),(0,t.jsx)(p,{})]}),(0,t.jsx)("button",{className:"xl:hidden flex items-center justify-center hover:opacity-70 transition-opacity p-1 -mr-1",onClick:()=>_(!0),"aria-label":o.openMenu,children:(0,t.jsx)(d,{className:"w-8 h-8",strokeWidth:1.5})})]})]})}),z&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] bg-white text-zinc-900 flex flex-col h-screen overflow-y-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-6 md:px-8 h-[80px] lg:h-[100px] shrink-0 border-b border-zinc-100",children:[(0,t.jsx)(a.default,{href:(0,m.localeHome)(n),className:"shrink-0 flex items-center h-full",onClick:()=>_(!1),children:(0,t.jsx)("img",{src:"/images/logo-domini-cat-dark.svg",alt:".cat 20 anys",className:"h-10 md:h-12 object-contain w-auto",width:120,height:40})}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(p,{onNavigate:()=>_(!1)}),(0,t.jsx)("button",{onClick:()=>_(!1),"aria-label":o.closeMenu,className:"p-2 -mr-2 hover:opacity-70 transition-opacity",children:(0,t.jsx)(x,{className:"w-8 h-8",strokeWidth:1.5})})]})]}),(0,t.jsx)("div",{className:"flex-1 py-8 px-6 md:px-8 flex flex-col",children:(0,t.jsxs)("nav",{className:"flex flex-col gap-5 text-base tracking-wide uppercase font-medium",children:[c?.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.default,{href:e.uri,className:"hover:text-[#E1142C] transition-colors",onClick:()=>_(!1),children:e.label}),e.children?.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2.5 pl-4 border-l-2 border-zinc-100",children:e.children.map(e=>(0,t.jsx)(a.default,{href:e.uri,className:"text-[13px] normal-case text-zinc-500 hover:text-black transition-colors font-normal",onClick:()=>_(!1),children:e.label},e.id))})]},e.id)),(0,t.jsx)("hr",{className:"border-zinc-200 my-2"}),(0,t.jsx)("div",{className:"flex flex-col gap-4 text-sm tracking-widest",children:h?.map(e=>{let l=i===e.uri||i+"/"===e.uri;return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.default,{href:e.uri,className:`transition-colors ${l?"text-[#E1142C] font-bold":"hover:text-[#E1142C]"}`,onClick:()=>_(!1),children:e.label}),e.children?.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2.5 pl-4 border-l-2 border-zinc-100",children:e.children.map(e=>(0,t.jsx)(a.default,{href:e.uri,className:"text-[13px] normal-case text-zinc-500 hover:text-black transition-colors font-normal",onClick:()=>_(!1),children:e.label},e.id))})]},e.id)})})]})})]}),!N&&(0,t.jsx)("div",{className:"h-[80px] lg:h-[100px] w-full shrink-0"})]})}],2971)},84686,e=>{"use strict";var t=e.i(43476),a=e.i(71645),l=e.i(57688),s=e.i(5232),r=e.i(34024);e.s(["default",0,function(){let e=(0,s.useLocale)(),i=(0,r.getDictionary)(e).chatbot,[n,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(()=>[{role:"model",content:i.greeting}]),[x,h]=(0,a.useState)(""),[m,p]=(0,a.useState)(!1),f=(0,a.useRef)(null);(0,a.useEffect)(()=>{d(e=>1===e.length&&"model"===e[0].role?[{role:"model",content:i.greeting}]:e)},[i.greeting]),(0,a.useEffect)(()=>{n&&f.current?.scrollIntoView({behavior:"smooth"})},[c,m,n]),(0,a.useEffect)(()=>{let e=()=>
1o(!0);return window.addEventListener("open-mixu-chat",e),()=>window.removeEventListener("open-mixu-chat",e)},[]);let u=async()=>{if(!x.trim()||m)return;let t=x.trim();h(""),d(e=>[...e,{role:"user",content:t}]),p(!0);try{let a=c.slice(-12),l=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:a,userText:t,locale:e})});if(429===l.status){let e=await l.json().catch(()=>null);d(t=>[...t,{role:"model",content:e?.text||i.errorBusy}]);return}if(!l.ok)throw Error(`Chat API returned ${l.status}`);let s=(await l.json()).text||i.errorFallback;d(e=>[...e,{role:"model",content:s}])}catch(e){console.error("Error al xatbot:",e),d(e=>[...e,{role:"model",content:i.errorGeneric}])}finally{p(!1)}};return(0,t.jsxs)("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col items-end",children:[n&&(0,t.jsxs)("div",{className:"bg-white border border-black w-[90vw] sm:w-[400px] shadow-[3px_3px_0px_0px_#000000] mb-4 flex flex-col h-[500px] max-h-[80vh] overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex bg-[#fcffea] items-center justify-between p-3 border-b border-black shrink-0 relative overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-10 pointer-events-none",style:{backgroundImage:"radial-gradient(#000 1px, transparent 1px)",backgroundSize:"4px 4px"}}),(0,t.jsxs)("div",{className:"flex items-center gap-3 relative z-10",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full border border-black overflow-hidden bg-white",children:(0,t.jsx)(l.default,{src:"/images/avatar-mixu.png",alt:"Mixu",width:40,height:40,className:"w-full h-full object-cover"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-bold font-pixel tracking-wide text-lg text-zinc-900 leading-none",children:"Mixu"}),(0,t.jsx)("p",{className:"text-[10px] text-zinc-500 uppercase tracking-widest font-bold mt-1",children:i.statusLabel})]})]}),(0,t.jsx)("button",{"aria-label":i.close,onClick:()=>o(!1),className:"relative z-10 text-black hover:text-[#E1142C] hover:scale-110 font-bold p-2 transition-transform",children:(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col gap-5 bg-zinc-50 relative custom-scrollbar",children:[c.map((e,a)=>(0,t.jsxs)("div",{className:`flex ${"user"===e.role?"justify-end":"justify-start"}`,children:["model"===e.role&&0!==a&&(0,t.jsx)("div",{className:"w-6 h-6 rounded-full border border-black overflow-hidden bg-white shrink-0 mr-2 self-end mb-1",children:(0,t.jsx)(l.default,{src:"/images/avatar-mixu.png",alt:"Mixu",width:24,height:24,className:"w-full h-full object-cover"})}),"model"===e.role&&0===a&&(0,t.jsx)("div",{className:"w-8 h-8 rounded-full border border-black overflow-hidden bg-white shrink-0 mr-2 self-end mb-1",children:(0,t.jsx)(l.default,{src:"/images/avatar-mixu.png",alt:"Mixu",width:32,height:32,className:"w-full h-full object-cover"})}),(0,t.jsx)("div",{className:`p-3 text-sm md:text-base leading-relaxed max-w-[80%] whitespace-pre-wrap ${"user"===e.role?"bg-[#E1142C] text-white border border-black shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] rounded-xl rounded-br-none font-medium [&>strong]:font-black":"bg-white text-zinc-900 border border-black shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] rounded-xl rounded-bl-none [&>strong]:font-black"}`,dangerouslySetInnerHTML:{__html:e.content.replace(/</g,"<").replace(/>/g,">").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,(e,t,a)=>{let l;return(l=a.trim()).startsWith("/")||/^(https?:|mailto:|tel:)/i.test(l)?`<a href="${a}" target="_blank" rel="noopener noreferrer" class="underline text-[#E1142C] hover:opacity-80">${t}</a>`:t})}})]},a)),m&&(0,t.jsxs)("div",{className:"flex justify-start items-end",children:[(0,t.jsx)("div",{className:"w-6 h-6 rounded-full border border-black overflow-hidden bg-white shrink-0 mr-2 mb-1",children:(0,t.jsx)(l.default,{src:"/images/avatar-mixu.png",alt:"Mixu",width:24,height:24,className:"w-full h-full object-cover"})}),(0,t.jsxs)("div",{className:"bg-white border border-black shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] rounded-xl rounded-bl-none p-3 flex gap-1 items-center h-[46px]",children:[(0,t.jsx)("div",{className:"w-2.5 h-2.5 bg-zinc-400 rounded-none animate-bounce",style:{animationDelay:"0ms"}}),(0,t.jsx)("div",{className:"w-2.5 h-2.5 bg-zinc-400 rounded-none animate-bounce",style:{animationDelay:"150ms"}}),(0,t.jsx)("div",{className:"w-2.5 h-2.5 bg-zinc-400 rounded-none animate-bounce",style:{animationDelay:"300ms"}})]})]}),(0,t.jsx)("div",{ref:f})]}),(0,t.jsxs)("div",{className:"border-t border-black p-3 bg-white flex items-center shrink-0",children:[(0,t.jsx)("input",{type:"text",value:x,maxLength:600,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&u(),placeholder:i.placeholder,className:"flex-1 outline-none text-base p-2 w-full font-medium"}),(0,t.jsx)("button",{onClick:u,disabled:!x.trim()||m,className:"ml-2 w-10 h-10 bg-[#E1142C] select-none text-white shadow-[2px_2px_0_0_#000000] hover:shadow-[1px_1px_0_0_#000000] hover:translate-x-[1px] hover:translate-y-[1px] border border-black disabled:opacity-50 flex items-center justify-center transition-all focus:outline-none",children:(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,t.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]})]}),!n&&(0,t.jsxs)("div",{className:"hidden sm:block absolute bottom-16 right-0 transform -translate-x-4 bg-white border-2 border-zinc-300 rounded-xl p-3 text-sm font-semibold font-sans whitespace-nowrap animate-pulse indicator-bubble text-zinc-800",children:[i.helpBubble,(0,t.jsx)("div",{className:"absolute -bottom-2 right-5 w-4 h-4 bg-white border-b-2 border-r-2 border-zinc-300 transform rotate-45"})]}),(0,t.jsx)("button",{onClick:()=>o(!n),className:`w-[54px] h-[54px] sm:w-[64px] sm:h-[64px] rounded-full border border-zinc-200 overflow-hidden bg-white transition-all hover:-translate-y-1 ${n?"scale-90 ring-4 ring-[#E1142C]":""}`,"aria-label":i.open,children:(0,t.jsx)(l.default,{src:"/images/avatar-mixu.png",alt:"Mixu Xatbot",width:64,height:64,quality:100,unoptimized:!0,className:"object-cover w-full h-full"})}),(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:` 2 .custom-scrollbar::-webkit-scrollbar {
3 width: 8px; 4 } 5 .custom-scrollbar::-webkit-scrollbar-track { 6 background: #f4f4f4; 7 border-left: 2px solid #000; 8 } 9 .custom-scrollbar::-webkit-scrollbar-thumb { 10 background: #000; 11 border-radius: 0; 12 } 13 .indicator-bubble { 14 animation: popIn 3s infinite alternate ease-in-out; 15 } 16 @keyframes popIn { 17 0% { transform: scale(0.95); opacity: 0.8; } 18 100% { transform: scale(1.05); opacity: 1; } 19 } 20 `}})]})}])}]);
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.