(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51338,e=>{"use strict";e.s(["BookOpen",()=>t],51338);let t=(0,e.i(4668).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},16515,e=>{"use strict";e.s(["Layers",()=>t],16515);let t=(0,e.i(4668).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},39602,68407,e=>{"use strict";e.s(["Mail",()=>a],39602);var t=e.i(4668);let a=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Users",()=>r],68407);let r=(0,t.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},97345,e=>{"use strict";e.s(["MapPin",()=>t],97345);let t=(0,e.i(4668).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},88452,e=>{"use strict";e.s(["Heart",()=>t],88452);let t=(0,e.i(4668).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]])},49482,35738,29753,e=>{"use strict";e.s(["CheckCircle2",()=>a],49482);var t=e.i(4668);let a=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["AlertCircle",()=>r],35738);let r=(0,t.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["submitForm",()=>n],29753),e.i(82568);let s="https://forms-backend-eta.vercel.app",l="Something went wrong. Please try again later.";async function n(e,t){if(!s)return console.error("NEXT_PUBLIC_FORMS_API_URL is not configured"),{status:"error",message:l};try{let r=await fetch("".concat(s).concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await r.json().catch(()=>({}));if(!r.ok||"error"===n.status){var a;return{status:"error",message:null!=(a=n.message)?a:l,errors:n.errors}}return{status:"success",message:n.message}}catch(e){return console.error("Error submitting form:",e),{status:"error",message:l}}}},42975,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let r=e.r(37342);function s(e){let{reason:t,children:a}=e;if("undefined"==typeof window)throw Object.defineProperty(new r.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}},18680,(e,t,a)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"encodeURIPath",{enumerable:!0,get:function(){return r}})},75068,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"PreloadChunks",{enumerable:!0,get:function(){return i}});let r=e.r(10725),s=e.r(23199),l=e.r(171),n=e.r(18680);function i(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let a=l.workAsyncStorage.getStore();if(void 0===a)return null;let i=[];if(a.reactLoadableManifest&&t){let e=a.reactLoadableManifest;for(let a of t){if(!e[a])continue;let t=e[a].files;i.push(...t)}}return 0===i.length?null:(0,r.jsx)(r.Fragment,{children:i.map(e=>{let t=a.assetPrefix+"/_next/"+(0,n.encodeURIPath)(e);return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style"},e):((0,s.preload)(t,{as:"script",fetchPriority:"low"}),null)})})}},87895,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return o}});let r=e.r(10725),s=e.r(72600),l=e.r(42975),n=e.r(75068);function i(e){return{default:e&&"default"in e?e.default:e}}let d={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},o=function(e){let t={...d,...e},a=(0,s.lazy)(()=>t.loader().then(i)),o=t.loading;function c(e){let i=o?(0,r.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,c=d?s.Suspense:s.Fragment,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(n.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(a,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(a,{...e})});return(0,r.jsx)(c,{...d?{fallback:i}:{},children:u})}return c.displayName="LoadableComponent",c}},12295,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return s}});let r=e.r(27880)._(e.r(87895));function s(e,t){var a;let s={};"function"==typeof e&&(s.loader=e);let l={...s,...t};return(0,r.default)({...l,modules:null==(a=l.loadableGenerated)?void 0:a.modules})}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},70042,e=>{"use strict";e.s(["default",()=>y],70042);var t=e.i(10725),a=e.i(72600),r=e.i(12295),s=e.i(97345),l=e.i(39602);let n=(0,e.i(4668).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var i=e.i(68407),d=e.i(51338),o=e.i(88452),c=e.i(16515),u=e.i(49482),m=e.i(35738);function x(e){let{tabs:a,selectedTab:r,onTabChange:s,showText:l=!0}=e;return(0,t.jsx)("section",{className:"bg-brand-light container mx-auto px-4 py-8 pb-12 relative z-20",children:(0,t.jsx)("div",{className:"max-w-5xl mx-auto",children:(0,t.jsx)("div",{className:"bg-white rounded-2xl shadow-lg border border-brand-light/50 p-2",children:(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-2",children:a.map(e=>{let a=e.icon;return(0,t.jsxs)("button",{onClick:()=>s(e.id),className:"px-4 py-3 rounded-xl font-medium transition-all text-sm flex items-center justify-center gap-2 ".concat(r===e.id?"bg-brand-blue text-brand-white shadow-md":"text-brand-dark hover:bg-brand-light/50"),children:[a&&(0,t.jsx)(a,{className:"w-4 h-4"}),l&&(0,t.jsx)("span",{className:"hidden xl:inline",children:e.name.split(" ")[0]})]},e.id)})})})})})}var b=e.i(62950),h=e.i(74422),f=e.i(29753);function p(){let e=(0,h.useTranslations)("contact");return(0,t.jsx)("div",{className:"w-full h-full bg-brand-light flex items-center justify-center",children:(0,t.jsx)("p",{className:"text-brand-gray",children:e("mapLoading")})})}let g=(0,r.default)(()=>e.A(79776),{loadableGenerated:{modules:[39085]},ssr:!1,loading:()=>(0,t.jsx)(p,{})});function j(e){let{pending:a}=e,r=(0,h.useTranslations)("contact.form");return(0,t.jsx)(b.Button,{type:"submit",disabled:a,className:"w-full bg-brand-blue text-brand-white hover:bg-brand-blue/90 py-6 text-lg font-semibold shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:r(a?"submitting":"submit")})}function y(){var e,r,b,p;let y=(0,h.useTranslations)("contact"),[v,N]=(0,a.useState)([]),[w,k]=(0,a.useState)(null),[P,_]=(0,a.useState)("all"),[M,C]=(0,a.useState)({status:"idle"}),[O,T]=(0,a.useState)(!1);async function S(e){e.preventDefault();let t=e.currentTarget;T(!0);let a=new FormData(t),r=await (0,f.submitForm)("/api/contact",{name:a.get("name"),email:a.get("email"),subject:a.get("subject"),message:a.get("message")});C(r),T(!1),"success"===r.status&&t.reset()}(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/data/contacts/locations.json");if(e.ok){let t=await e.json();N(t)}}catch(e){console.error("Error loading locations:",e)}})()},[]),(0,a.useEffect)(()=>{if(w){let e=document.getElementById("location-".concat(w.id));e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}},[w]);let L=v.filter(e=>"all"===P||e.type===P),A=[{id:"all",name:y("filterTabs.all"),icon:c.Layers},{id:"coordinator",name:y("filterTabs.coordinator"),icon:i.Users},{id:"mc_active",name:y("filterTabs.mcActive"),icon:o.Heart},{id:"mc_contemplative",name:y("filterTabs.mcContemplative"),icon:d.BookOpen},{id:"mc_priests",name:y("filterTabs.mcPriests"),icon:s.MapPin}];return(0,t.jsxs)("div",{className:"min-h-screen bg-brand-light",children:[(0,t.jsxs)("section",{className:"relative py-16 md:py-24 bg-brand-dark overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-96 h-96 bg-brand-blue/20 rounded-full -translate-x-1/3 -translate-y-1/3"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-brand-blue/20 rounded-full translate-x-1/3 translate-y-1/3"}),(0,t.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,t.jsx)("h1",{className:"text-4xl md:text-5xl lg:text-6xl mb-6 text-brand-white",children:y("hero.title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-brand-white/80 leading-relaxed max-w-2xl mx-auto",children:y("hero.subtitle")})]})})]}),(0,t.jsx)(x,{tabs:A,selectedTab:P,onTabChange:e=>{_(e),k(null)}}),(0,t.jsx)("section",{className:"py-12 md:py-16",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("div",{className:"grid lg:grid-cols-2 gap-8",children:[(0,t.jsx)("div",{className:"bg-brand-white rounded-lg shadow-lg overflow-hidden h-[600px]",children:(0,t.jsx)(g,{locations:L,selectedLocation:w,onLocationSelect:k})}),(0,t.jsx)("div",{id:"location-list",className:"space-y-4 max-h-[600px] overflow-y-auto pr-2",children:0===L.length?(0,t.jsx)("div",{className:"bg-brand-white rounded-lg shadow-md p-8 text-center text-brand-gray",children:y("noContacts")}):L.map(e=>(0,t.jsx)("div",{id:"location-".concat(e.id),onClick:()=>k(e),className:"bg-brand-white rounded-lg shadow-md hover:shadow-xl transition-all p-6 cursor-pointer ".concat((null==w?void 0:w.id)===e.id?"ring-4 ring-brand-blue ring-inset bg-brand-blue/5":""),children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-12 h-12 bg-brand-blue rounded-lg flex items-center justify-center text-brand-white",children:(()=>{let a=(e=>{switch(e){case"all":return c.Layers;case"coordinator":return i.Users;case"mc_active":return o.Heart;case"mc_contemplative":return d.BookOpen;default:return s.MapPin}})(e.type);return(0,t.jsx)(a,{className:"w-5 h-5"})})()}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,t.jsx)("h3",{className:"text-xl font-headline text-brand-dark",children:e.name}),(0,t.jsx)("span",{className:"text-xs bg-brand-light px-3 py-1 rounded-full text-brand-gray font-semibold whitespace-nowrap ml-2",children:e.category})]}),(0,t.jsxs)("div",{className:"space-y-2 text-sm text-brand-gray",children:[e.address&&(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(s.MapPin,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("span",{children:[e.address,e.city&&", ".concat(e.city),e.country&&", ".concat(e.country)]})]}),!e.address&&e.country&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.MapPin,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:e.country})]}),e.email&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.Mail,{className:"w-4 h-4"}),(0,t.jsx)("a",{href:"mailto:".concat(e.email),className:"text-brand-blue hover:underline",onClick:e=>e.stopPropagation(),children:e.email})]}),e.phone&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n,{className:"w-4 h-4"}),(0,t.jsx)("a",{href:"tel:".concat(e.phone),className:"text-brand-blue hover:underline",onClick:e=>e.stopPropagation(),children:e.phone})]})]})]})]})},e.id))})]})})}),(0,t.jsx)("section",{className:"py-16 md:py-24 bg-white",id:"contact-form",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,t.jsx)("h2",{className:"text-3xl md:text-4xl text-brand-dark mb-8 font-headline text-center",children:y("form.title")}),"success"===M.status&&(0,t.jsxs)("div",{className:"mb-6 p-4 bg-green-50 border border-green-200 rounded-lg flex items-start gap-3",children:[(0,t.jsx)(u.CheckCircle2,{className:"w-5 h-5 text-green-600 flex-shrink-0 mt-0.5"}),(0,t.jsx)("p",{className:"text-green-800",children:M.message})]}),"error"===M.status&&M.message&&(0,t.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg flex items-start gap-3",children:[(0,t.jsx)(m.AlertCircle,{className:"w-5 h-5 text-red-600 flex-shrink-0 mt-0.5"}),(0,t.jsx)("p",{className:"text-red-800",children:M.message})]}),(0,t.jsxs)("form",{onSubmit:S,className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"name",className:"block text-sm font-semibold text-brand-dark mb-2",children:y("form.name")}),(0,t.jsx)("input",{type:"text",id:"name",name:"name",className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all",placeholder:y("form.namePlaceholder")}),(null==(e=M.errors)?void 0:e.name)&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:M.errors.name[0]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-semibold text-brand-dark mb-2",children:y("form.email")}),(0,t.jsx)("input",{type:"email",id:"email",name:"email",className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all",placeholder:y("form.emailPlaceholder")}),(null==(r=M.errors)?void 0:r.email)&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:M.errors.email[0]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"subject",className:"block text-sm font-semibold text-brand-dark mb-2",children:y("form.subject")}),(0,t.jsx)("input",{type:"text",id:"subject",name:"subject",className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all",placeholder:y("form.subjectPlaceholder")}),(null==(b=M.errors)?void 0:b.subject)&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:M.errors.subject[0]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"message",className:"block text-sm font-semibold text-brand-dark mb-2",children:y("form.message")}),(0,t.jsx)("textarea",{id:"message",name:"message",rows:6,className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all resize-none",placeholder:y("form.messagePlaceholder")}),(null==(p=M.errors)?void 0:p.message)&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:M.errors.message[0]})]}),(0,t.jsx)(j,{pending:O})]})]})})})]})}},79776,e=>{e.v(t=>Promise.all(["static/chunks/72c12aa23d8d8db5.js","static/chunks/c61f6267802e6bf3.css"].map(t=>e.l(t))).then(()=>t(39085)))}]);