{"version":3,"file":"MarriageRelatedPages.DxtJCP47.mjs","names":["useLocaleInfo","FramerAPI.useLocaleInfo","React.useState","c"],"sources":["https:/framerusercontent.com/modules/QHklG23XQI9LpGkNno6p/pczH2SQyUPk3GBD2h5Ko/MarriageRelatedPages.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import*as FramerAPI from\"framer\";const LANGS=[\"en\",\"tr\",\"ru\",\"de\"];const COPY={en:{heading:\"Related pages\",antalya:{category:\"Marriage in T\\xfcrkiye\",title:\"Marriage in Antalya for foreign nationals\"},istanbul:{category:\"Marriage in T\\xfcrkiye\",title:\"Marriage in Istanbul for foreign nationals\"},residency:{category:\"Turkish Residency\",title:\"Family Residency Permit\"},insight:{category:\"Insights\",title:\"I Married a Turkish Citizen: Your Rights and What You Need to Do\"}},tr:{heading:\"İlgili sayfalar\",antalya:{category:\"T\\xfcrkiye'de Evlilik\",title:\"Antalya'da yabancı uyruklu kişilerin evlenmesi\"},istanbul:{category:\"T\\xfcrkiye'de Evlilik\",title:\"İstanbul'da yabancı uyruklu kişilerin evlenmesi\"},residency:{category:\"T\\xfcrkiye'de Oturum\",title:\"Aile ikamet izni\"},insight:{category:\"Blog\",title:\"T\\xfcrk biriyle evlendim: haklarım ve yapılması gerekenler\"}},ru:{heading:\"Связанные страницы\",antalya:{category:\"Брак в Турции\",title:\"Брак иностранных граждан в Анталье\"},istanbul:{category:\"Брак в Турции\",title:\"Брак иностранных граждан в Стамбуле\"},residency:{category:\"Проживание в Турции\",title:\"Семейный вид на жительство\"},insight:{category:\"Статьи\",title:\"Брак с гражданином Турции: права и необходимые действия\"}},de:{heading:\"Weiterf\\xfchrende Seiten\",antalya:{category:\"Eheschlie\\xdfung in der T\\xfcrkei\",title:\"Eheschlie\\xdfung ausl\\xe4ndischer Staatsangeh\\xf6riger in Antalya\"},istanbul:{category:\"Eheschlie\\xdfung in der T\\xfcrkei\",title:\"Eheschlie\\xdfung ausl\\xe4ndischer Staatsangeh\\xf6riger in Istanbul\"},residency:{category:\"Aufenthalt in der T\\xfcrkei\",title:\"Aufenthaltserlaubnis zur Familienzusammenf\\xfchrung\"},insight:{category:\"Ratgeber\",title:\"Ehe mit t\\xfcrkischen Staatsangeh\\xf6rigen: Ihre Rechte und n\\xe4chste Schritte\"}}};// Fallback links (English pages). In Framer, set the \"Card link\" controls to the\n// real pages so every language version links to its own localized page.\nconst FALLBACK={antalya:\"/marriage-in-turkey\",istanbul:\"/marriage-in-turkey/istanbul\",residency:\"/turkish-residency/family-residency-permit\",insight:\"/insights/i-married-a-turkish-citizen-turkey\"};// Language: forced by the \"language\" control, otherwise from the active Framer locale,\n// otherwise from the URL prefix (/tr/, /ru/, /de/). Anything else falls back to English.\nfunction useLang(forced){const useLocaleInfo=FramerAPI.useLocaleInfo;const info=typeof useLocaleInfo===\"function\"?useLocaleInfo():null;const code=String(info?.activeLocale?.code||info?.activeLocale?.slug||\"\").toLowerCase();const[pathLang,setPathLang]=React.useState(\"en\");React.useEffect(()=>{const m=window.location.pathname.match(/^\\/(tr|ru|de)(\\/|$)/i);setPathLang(m?m[1].toLowerCase():\"en\");},[]);if(forced!==\"auto\")return forced;const fromLocale=LANGS.find(l=>code.startsWith(l));return fromLocale||pathLang;}// Strip a language prefix (/tr, /ru, /de) and a trailing slash.\nfunction normalizePath(path){const p=path.replace(/^\\/(tr|ru|de)(?=\\/|$)/i,\"\").replace(/\\/+$/,\"\");return(p||\"/\").toLowerCase();}// The Istanbul page is the one whose URL ends in /istanbul (or a transliteration).\nfunction detectPage(path){return/\\/(istanbul|stambul)$/i.test(normalizePath(path))?\"istanbul\":\"antalya\";}function useCurrentPath(){const[path,setPath]=React.useState(\"\");React.useEffect(()=>{setPath(window.location.pathname);},[]);return path;}export default function MarriageRelatedPages(props){const{language,page,link1,link2,link3,primary,cardBackground,headingColor,textColor,hoverBackground,headingSize,bodySize,paddingX,paddingY,maxWidth,radius,style}=props;const lang=useLang(language);const c=COPY[lang];const font='Manrope, \"Manrope Placeholder\", sans-serif';const currentPath=useCurrentPath();// Which page are we on? \"auto\" reads the URL (defaults to Antalya until it is known).\nconst thisPage=page===\"auto\"?currentPath?detectPage(currentPath):\"antalya\":page;// First card points to the other city's page.\nconst first=thisPage===\"antalya\"?c.istanbul:c.antalya;const firstFallback=thisPage===\"antalya\"?FALLBACK.istanbul:FALLBACK.antalya;// Safety: if the first card's link points to the page we are already on, use the default.\nlet firstHref=link1||firstFallback;if(currentPath&&normalizePath(firstHref)===normalizePath(currentPath)){firstHref=firstFallback;}const cards=[{...first,href:firstHref},{...c.residency,href:link2||FALLBACK.residency},{...c.insight,href:link3||FALLBACK.insight}];const vars={\"--rp-primary\":primary,\"--rp-card\":cardBackground,\"--rp-heading\":headingColor,\"--rp-text\":textColor,\"--rp-hover\":hoverBackground,\"--rp-radius\":`${radius}px`};const headingId=`rp-heading-${thisPage}`;return /*#__PURE__*/_jsxs(\"section\",{className:\"rp\",style:{width:\"100%\",boxSizing:\"border-box\",fontFamily:font,...vars,background:\"var(--rp-primary)\",padding:`${paddingY}px ${paddingX}px`,...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .rp *{box-sizing:border-box}\n                .rp-inner{width:100%;margin:0 auto}\n                .rp-heading{margin:0 0 28px;font-weight:400;line-height:1.3;color:#fff}\n                .rp-grid{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}\n                .rp-card{display:flex;align-items:stretch;justify-content:space-between;gap:16px;height:100%;min-height:132px;padding:22px 22px 22px 24px;background:var(--rp-card);border:1px solid var(--rp-card);border-radius:var(--rp-radius);text-decoration:none;color:inherit;transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease}\n                .rp-card:hover{background:var(--rp-hover);transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.22)}\n                .rp-card:focus-visible{outline:2px solid #fff;outline-offset:3px}\n                .rp-text{display:flex;flex-direction:column;gap:10px;min-width:0}\n                .rp-cat{margin:0;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--rp-text)}\n                .rp-title{margin:0;font-weight:600;line-height:1.4;color:var(--rp-heading)}\n                .rp-arrow{flex:none;align-self:flex-end;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #E4E6EA;border-radius:50%;color:var(--rp-primary);transition:transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease}\n                .rp-card:hover .rp-arrow{transform:translateX(2px);background:var(--rp-primary);border-color:var(--rp-primary);color:#fff}\n                @media (prefers-reduced-motion:reduce){.rp-card,.rp-arrow{transition:none}.rp-card:hover{transform:none}}\n            `}),/*#__PURE__*/_jsxs(\"nav\",{className:\"rp-inner\",\"aria-labelledby\":headingId,style:{maxWidth:maxWidth>0?maxWidth:undefined},children:[/*#__PURE__*/_jsx(\"h2\",{id:headingId,className:\"rp-heading\",style:{fontFamily:font,fontSize:headingSize},children:c.heading}),/*#__PURE__*/_jsx(\"ul\",{className:\"rp-grid\",children:cards.map(card=>/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsxs(\"a\",{className:\"rp-card\",href:card.href,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"rp-text\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"rp-cat\",children:card.category}),/*#__PURE__*/_jsx(\"p\",{className:\"rp-title\",style:{fontSize:bodySize+1},children:card.title})]}),/*#__PURE__*/_jsx(\"span\",{className:\"rp-arrow\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3.5 10.5 10.5 3.5M4.5 3.5h6v6\"})})})]})},card.href+card.title))})]})]});}MarriageRelatedPages.defaultProps={language:\"auto\",page:\"auto\",primary:\"#0A1E46\",cardBackground:\"#FFFFFF\",headingColor:\"#000000\",textColor:\"#696969\",hoverBackground:\"#F6F7F9\",headingSize:32,bodySize:16,paddingX:25,paddingY:64,maxWidth:0,radius:0};addPropertyControls(MarriageRelatedPages,{language:{type:ControlType.Enum,title:\"Language\",options:[\"auto\",\"en\",\"tr\",\"ru\",\"de\"],optionTitles:[\"Auto (locale)\",\"English\",\"T\\xfcrk\\xe7e\",\"Русский\",\"Deutsch\"],defaultValue:\"auto\"},page:{type:ControlType.Enum,title:\"This page\",options:[\"auto\",\"antalya\",\"istanbul\"],optionTitles:[\"Auto (from URL)\",\"Antalya\",\"Istanbul\"],defaultValue:\"auto\"},link1:{type:ControlType.Link,title:\"Card 1 link\"},link2:{type:ControlType.Link,title:\"Card 2 link\"},link3:{type:ControlType.Link,title:\"Card 3 link\"},primary:{type:ControlType.Color,title:\"Primary (band)\",defaultValue:\"#0A1E46\"},cardBackground:{type:ControlType.Color,title:\"Card\",defaultValue:\"#FFFFFF\"},headingColor:{type:ControlType.Color,title:\"Card title\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Card label\",defaultValue:\"#696969\"},hoverBackground:{type:ControlType.Color,title:\"Card hover\",defaultValue:\"#F6F7F9\"},headingSize:{type:ControlType.Number,title:\"Heading size\",min:20,max:48,step:1,defaultValue:32},bodySize:{type:ControlType.Number,title:\"Body size\",min:13,max:20,step:1,defaultValue:16},paddingX:{type:ControlType.Number,title:\"Side padding\",min:0,max:120,step:1,defaultValue:25},paddingY:{type:ControlType.Number,title:\"Vertical padding\",min:24,max:160,step:4,defaultValue:64},maxWidth:{type:ControlType.Number,title:\"Max width (0 = none)\",min:0,max:1600,step:20,defaultValue:0},radius:{type:ControlType.Number,title:\"Corner radius\",min:0,max:16,step:1,defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MarriageRelatedPages\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\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