1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4194],{63:(e,t,n)=>{"use strict";var r=n(7260);n.o(r,"permanentRedirect")&&n.d(t,{permanentRedirect:function(){return r.permanentRedirect}}),n.o(r,"redirect")&&n.d(t,{redirect:function(){return r.redirect}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},2105:(e,t,n)=>{"use strict";n.d(t,{ScrollReveal:()=>l});var r=n(5155),a=n(9924),o=n(2115),i=n(3890);function l(e){let{children:t,className:n="",threshold:l=.2}=e,{ref:s,animation:c}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.2,{ref:t,inView:n}=(0,i.W)(e),r=(0,o.useMemo)(()=>({initial:{opacity:0,y:20},animate:{opacity:+!!n,y:20*!n}}),[n]);return{ref:t,inView:n,animation:r}}(l);return(0,r.jsx)(a.P.div,{ref:s,initial:c.initial,animate:c.animate,transition:{duration:.55},className:n,children:t})}},3890:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(2115);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.2,t=(0,r.useRef)(null),[n,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!t.current||n)return;let r=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(a(!0),r.disconnect())},{threshold:e});return r.observe(t.current),()=>r.disconnect()},[n,e]),{ref:t,inView:n}}},4106:(e,t,n)=>{"use strict";n.d(t,{FD:()=>b,MY:()=>o,PJ:()=>i,Wl:()=>s,XP:()=>u,_x:()=>a,bL:()=>m,po:()=>c,ql:()=>d,wO:()=>l,yL:()=>g});var r=n(5704);function a(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function o(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function i(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function l(e,t){return t===e||t.startsWith(`${e}/`)}function s(e,t,n){return"string"==typeof e?e:e[t]||n}function c(e){let t=function(){try{return"true"===r.env._next_intl_trailing_slash}catch{return!1}}(),[n,...a]=e.split("#"),o=a.join("#"),i=n;if("/"!==i){let e=i.endsWith("/");t&&!e?i+="/":!t&&e&&(i=i.slice(0,-1))}return o&&(i+="#"+o),i}function d(e,t){let n=c(e),r=c(t);return(function(e){let t=e.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${t}$`)})(n).test(r)}function u(e,t){return"never"!==t.mode&&t.prefixes?.[e]||m(e)}function m(e){return"/"+e}function f(e){return e.includes("[[...")}function p(e){return e.includes("[...")}function h(e){return e.includes("[")}function x(e,t){let n=e.split("/"),r=t.split("/"),a=Math.max(n.length,r.length);for(let e=0;e<a;e++){let t=n[e],a=r[e];if(!t&&a)return -1;if(t&&!a)return 1;if(t||a){if(!h(t)&&h(a))return -1;if(h(t)&&!h(a))return 1;if(!p(t)&&p(a))return -1;if(p(t)&&!p(a))return 1;if(!f(t)&&f(a))return -1;if(f(t)&&!f(a))return 1}}return 0}function b(e){return e.sort(x)}function g(e){return"function"==typeof e.then}},4194:(e,t,n)=>{Promise.resolve().then(n.bind(n,7088)),Promise.resolve().then(n.bind(n,3809)),Promise.resolve().then(n.bind(n,5448)),Promise.resolve().then(n.bind(n,2105))},5448:(e,t,n)=>{"use strict";n.d(t,{ContactFormModalButton:()=>u});var r=n(5155),a=n(6497),o=n(9924),i=n(5229),l=n(2115),s=n(7650),c=n(8955),d=n(6063);function u(e){let{children:t,variant:n="primary",className:u=""}=e,m=(0,c.c)("pages.contact"),f=(0,c.c)("common"),[p,h]=(0,l.useState)(!1),[x,b]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{b(!0)},[]),(0,l.useEffect)(()=>{if(!p)return;let e=document.body.style.overflow,t=document.body.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",n>0&&(document.body.style.paddingRight="".concat(n,"px"));let r=e=>{"Escape"===e.key&&h(!1)};return window.addEventListener("keydown",r),()=>{document.body.style.overflow=e,document.body.style.paddingRight=t,window.removeEventListener("keydown",r)}},[p]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>h(!0),className:"".concat("group inline-flex min-w-36 items-center justify-center rounded-full px-5 py-3 text-sm font-semibold leading-tight transition duration-300 active:scale-[0.98]"," ").concat("primary"===n?"bg-[#1a2744] text-white shadow-[0_10px_24px_-14px_rgba(26,39,68,0.9)] hover:-translate-y-0.5 hover:bg-[#273a63] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#c9a84c] focus-visible:ring-offset-2":"border border-[rgba(26,39,68,0.24)] bg-white text-[#1a2744] hover:-translate-y-0.5 hover:border-[#1a2744] hover:bg-[#1a2744] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#c9a84c] focus-visible:ring-offset-2"," ").concat(u),children:t}),x?(0,s.createPortal)((0,r.jsx)(a.N,{mode:"wait",initial:!1,children:p?(0,r.jsxs)(o.P.div,{className:"fixed inset-0 z-[120] flex items-center justify-center p-4 sm:p-8",initial:{opacity:0,scale:.99}
1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.99},transition:{duration:.2,ease:"easeOut"},role:"dialog","aria-modal":"true","aria-label":m("formTitle"),children:[(0,r.jsx)(o.P.button,{type:"button",onClick:()=>h(!1),"aria-label":f("close"),className:"absolute inset-0 bg-[#0e1628]/70 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"}}),(0,r.jsxs)(o.P.article,{initial:{opacity:0,y:26,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:16,scale:.98},transition:{type:"spring",stiffness:260,damping:28,mass:.9},className:"premium-surface relative z-10 w-full max-w-3xl overflow-hidden bg-[linear-gradient(180deg,rgba(255,255,255,0.98)_0%,rgba(238,243,255,0.65)_100%)] p-6 md:max-h-[90dvh] md:overflow-y-auto md:p-8",children:[(0,r.jsx)("button",{type:"button",onClick:()=>h(!1),"aria-label":f("close"),className:"absolute right-4 top-4 rounded-full border border-[#dce1ec] bg-white/90 p-2 text-[#1a2744] transition hover:bg-white",children:(0,r.jsx)(i.A,{size:18})}),(0,r.jsx)("h2",{className:"hidden pr-10 text-3xl text-[#3D2A9F] md:block md:text-4xl",children:m("formTitle")}),(0,r.jsx)("p",{className:"text-sm leading-relaxed text-[#4f5972] md:mt-3 md:text-base",children:m("formDescription")}),(0,r.jsx)(d.ContactApiForm,{idPrefix:"contact-modal",labels:{name:m("name"),email:m("email"),phone:m("phone"),message:m("message"),send:m("sendMessage"),namePlaceholder:m("namePlaceholder"),emailPlaceholder:m("emailPlaceholder"),phonePlaceholder:m("phonePlaceholder"),messagePlaceholder:m("messagePlaceholder")}})]})]}):null}),document.body):null]})}},6063:(e,t,n)=>{"use strict";n.d(t,{ContactApiForm:()=>o});var r=n(5155),a=n(2115);function o(e){let{labels:t,idPrefix:n="contact"}=e,[o,i]=(0,a.useState)(!1),[l,s]=(0,a.useState)({type:"idle",message:""}),c=(0,a.useMemo)(()=>"".concat(("https://contacto.guadalminaidiomas.es/index.php/formularios-api/v1/forms".trim()||"https://contacto.guadalminaidiomas.es/index.php/formularios-api/v1/forms").replace(/\/$/,""),"/contact"),[]);async function d(e){e.preventDefault(),i(!0),s({type:"idle",message:""});let t=e.currentTarget,n=new FormData(t);n.set("source_page",window.location.pathname),n.set("locale",document.documentElement.lang||"es"),n.set("website","");try{let e=await fetch(c,{method:"POST",body:n}),r=await e.json();if(!e.ok||!r.success)throw Error(r.message||"No se pudo enviar el formulario.");t.reset(),s({type:"success",message:"Tu mensaje se ha enviado correctamente. Te contactaremos pronto."})}catch(e){s({type:"error",message:e instanceof Error?e.message:"Error al enviar el formulario."})}finally{i(!1)}}return(0,r.jsxs)("form",{className:"mt-6 flex flex-1 flex-col",onSubmit:d,noValidate:!0,children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(n,"-name"),className:"mb-2 block text-sm font-semibold text-[#1a2744]",children:t.name}),(0,r.jsx)("input",{id:"".concat(n,"-name"),name:"name",type:"text",required:!0,placeholder:t.namePlaceholder,className:"w-full rounded-xl border border-[#d7deed] bg-white px-4 py-2.5 text-sm text-[#1a2744] outline-none transition placeholder:text-[#8a94ae] focus:border-[#1a2744]"})]}),(0,r.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(n,"-email"),className:"mb-2 block text-sm font-semibold text-[#1a2744]",children:t.email}),(0,r.jsx)("input",{id:"".concat(n,"-email"),name:"email",type:"email",required:!0,placeholder:t.emailPlaceholder,className:"w-full rounded-xl border border-[#d7deed] bg-white px-4 py-2.5 text-sm text-[#1a2744] outline-none transition placeholder:text-[#8a94ae] focus:border-[#1a2744]"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(n,"-phone"),className:"mb-2 block text-sm font-semibold text-[#1a2744]",children:t.phone}),(0,r.jsx)("input",{id:"".concat(n,"-phone"),name:"phone",type:"tel",placeholder:t.phonePlaceholder,className:"w-full rounded-xl border border-[#d7deed] bg-white px-4 py-2.5 text-sm text-[#1a2744] outline-none transition placeholder:text-[#8a94ae] focus:border-[#1a2744]"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"".concat(n,"-message"),className:"mb-2 block text-sm font-semibold text-[#1a2744]",children:t.message}),(0,r.jsx)("textarea",{id:"".concat(n,"-message"),name:"message",rows:5,required:!0,placeholder:t.messagePlaceholder,className:"w-full rounded-xl border border-[#d7deed] bg-white px-4 py-2.5 text-sm text-[#1a2744] outline-none transition placeholder:text-[#8a94ae] focus:border-[#1a2744]"})]}),(0,r.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",className:"hidden"}),"idle"!==l.type&&(0,r.jsx)("p",{className:"text-sm ".concat("success"===l.type?"text-emerald-700":"text-rose-700"),children:l.message})]}),(0,r.jsx)("button",{type:"submit",disabled:o,className:"mt-4 inline-flex w-full items-center justify-center rounded-full border border-[rgba(26,39,68,0.24)] bg-white px-5 py-3 text-sm font-medium leading-tight text-[#1a2744] transition duration-300 hover:-translate-y-0.5 hover:border-[#1a2744] hover:bg-[#1a2744] hover:text-white active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-60 md:mt-auto",children:o?"Enviando...":t.send})]})}}
1,7088:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(2619),a=n(63),o=n(2115),i=n(6809),l=n(7301),s=n(5155),c=(0,o.forwardRef)(function(e,t){let{href:n,locale:o,localeCookie:c,onClick:d,prefetch:u,...m}=e,f=(0,i.Ym)(),p=null!=o&&o!==f,h=(0,a.usePathname)();return p&&(u=!1),(0,s.jsx)(r,{ref:t,href:n,hrefLang:p?o:void 0,onClick:function(e){(0,l.A)(c,h,f,o),d&&d(e)},prefetch:u,...m})})},7301:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8300);function a(e,t,n,a){if(!e||a===n||null==a||!t)return;let o=(0,r.DT)(t),{name:i,...l}=e;l.path||(l.path=""!==o?o:"/");let s=`${i}=${a};`;for(let[e,t]of Object.entries(l))s+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(s+="="+t),s+=";";document.cookie=s}},8300:(e,t,n)=>{"use strict";n.d(t,{DT:()=>s,FP:()=>i,TK:()=>a,Zn:()=>o,aM:()=>l,x3:()=>c});var r=n(4106);function a(e){return"string"==typeof e?{pathname:e}:e}function o(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}function i({pathname:e,locale:t,params:n,pathnames:a,query:i}){function l(e){let l,s=a[e];return s?(l=(0,r.Wl)(s,t,e),n&&Object.entries(n).forEach(([e,t])=>{let n,r;Array.isArray(t)?(n=`(\\[)?\\[...${e}\\](\\])?`,r=t.map(e=>String(e)).join("/")):(n=`\\[${e}\\]`,r=String(t)),l=l.replace(RegExp(n,"g"),r)}),l=new URL(l=l.replace(/\[\[\.\.\..+\]\]/g,""),"http://l").pathname):l=e,l=(0,r.po)(l),i&&(l+=o(i)),l}if("string"==typeof e)return l(e);{let{pathname:t,...n}=e;return{...n,pathname:l(t)}}}function l(e,t,n){let a=(0,r.FD)(Object.keys(n)),o=decodeURI(t);for(let t of a){let a=n[t];if("string"==typeof a){if((0,r.ql)(a,o))return t}else if((0,r.ql)((0,r.Wl)(a,e,t),o))return t}return t}function s(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function c(e,t,n,a){let o,{mode:i}=n.localePrefix;return void 0!==a?o=a:(0,r._x)(e)&&("always"===i?o=!0:"as-needed"===i&&(o=n.domains?!n.domains.some(e=>e.defaultLocale===t):t!==n.defaultLocale)),o?(0,r.PJ)((0,r.XP)(t,n.localePrefix),e):e}},8955:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(6809);function a(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let o=a(0,r.c3);a(0,r.kc)}}]);
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.