{"version":3,"file":"LocaleButtons.CpiPF0gP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mblXUfQEDvAGxipeZdGT/oE45n0fy3dGj9oSWwrKo/LocaleButtons.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const pageNodeByPath={\"/\":\"augiA20Il\",\"/about\":\"QpEmbOgYl\",\"/services\":\"ptbAO3Sf0\",\"/projects\":\"Ur2AWWvEr\",\"/insights2\":\"OnE04g17G\",\"/contact\":\"rOFlUPujZ\",\"/consultation\":\"Rv8_xooDU\",\"/process\":\"GvtteFEj7\",\"/egypt\":\"SOaTOAgMG\",\"/dubai\":\"LYaW9mo1t\",\"/ar\":\"EUjpl1q7B\",\"/ar/about\":\"LiGF0Nbp1\",\"/ar/services\":\"g4IasYxhT\",\"/ar/projects\":\"BXxkF3q5t\",\"/ar/insights\":\"rgSL0u5Po\",\"/ar/contact\":\"oUoYcS4Fq\",\"/ar/consultation\":\"egMrAsJca\",\"/ar/process\":\"IF_qw23xt\",\"/ar/egypt\":\"TkDcaGjxI\",\"/ar/dubai\":\"WkqN_fZ1p\"};const routePairByPath={\"/\":{english:\"/\",arabic:\"/ar\"},\"/ar\":{english:\"/\",arabic:\"/ar\"},\"/about\":{english:\"/about\",arabic:\"/ar/about\"},\"/ar/about\":{english:\"/about\",arabic:\"/ar/about\"},\"/services\":{english:\"/services\",arabic:\"/ar/services\"},\"/ar/services\":{english:\"/services\",arabic:\"/ar/services\"},\"/projects\":{english:\"/projects\",arabic:\"/ar/projects\"},\"/ar/projects\":{english:\"/projects\",arabic:\"/ar/projects\"},\"/insights2\":{english:\"/insights2\",arabic:\"/ar/insights\"},\"/ar/insights\":{english:\"/insights2\",arabic:\"/ar/insights\"},\"/contact\":{english:\"/contact\",arabic:\"/ar/contact\"},\"/ar/contact\":{english:\"/contact\",arabic:\"/ar/contact\"},\"/consultation\":{english:\"/consultation\",arabic:\"/ar/consultation\"},\"/ar/consultation\":{english:\"/consultation\",arabic:\"/ar/consultation\"},\"/process\":{english:\"/process\",arabic:\"/ar/process\"},\"/ar/process\":{english:\"/process\",arabic:\"/ar/process\"},\"/egypt\":{english:\"/egypt\",arabic:\"/ar/egypt\"},\"/ar/egypt\":{english:\"/egypt\",arabic:\"/ar/egypt\"},\"/dubai\":{english:\"/dubai\",arabic:\"/ar/dubai\"},\"/ar/dubai\":{english:\"/dubai\",arabic:\"/ar/dubai\"}};function cleanPath(pathname){return pathname.replace(/\\/+$/,\"\")||\"/\";}function previewHref(path){if(typeof window===\"undefined\"||!window.location.hostname.endsWith(\".framercanvas.com\"))return path;const nodeId=pageNodeByPath[path];if(!nodeId)return path;return\"https://framer.com/projects/arcinspace--D3CdmaCH0gqoySKP7wqx-bzC13?node=\"+nodeId+\"&branch=h2c66lia1&view=preview\";}/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function LocaleButtons(props){const pagePath=cleanPath(props.pagePath||\"/\");const pair=routePairByPath[pagePath]||{english:pagePath.replace(/^\\/ar(?=\\/|$)/,\"\")||\"/\",arabic:pagePath===\"/\"?\"/ar\":\"/ar\"+pagePath};const isArabic=pagePath===\"/ar\"||pagePath.startsWith(\"/ar/\");const isCanvasPreview=typeof window!==\"undefined\"&&window.location.hostname.endsWith(\".framercanvas.com\");const buttonStyle={display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",minHeight:32,padding:\"7px 12px\",border:\"1px solid rgba(255,255,255,0.22)\",borderRadius:999,color:\"#fff\",textDecoration:\"none\",fontFamily:\"Inter, sans-serif\",fontSize:13,fontWeight:500,lineHeight:1.2,background:\"rgba(255,255,255,0.08)\",whiteSpace:\"nowrap\"};const activeStyle={...buttonStyle,background:\"rgba(255,255,255,0.18)\",borderColor:\"rgba(255,255,255,0.48)\"};return /*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Choose language\",style:{...props.style,display:\"flex\",width:\"max-content\",height:\"auto\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(\"a\",{href:previewHref(pair.english),target:isCanvasPreview?\"_top\":undefined,style:isArabic?buttonStyle:activeStyle,\"aria-current\":isArabic?undefined:\"page\",children:\"English\"}),/*#__PURE__*/_jsx(\"a\",{href:previewHref(pair.arabic),target:isCanvasPreview?\"_top\":undefined,style:isArabic?activeStyle:buttonStyle,\"aria-current\":isArabic?\"page\":undefined,lang:\"ar\",dir:\"rtl\",children:\"العربية\"})]});}addPropertyControls(LocaleButtons,{pagePath:{type:ControlType.String,title:\"Page Path\",defaultValue:\"/\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocaleButtons\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocaleButtons.map"],"mappings":"iLAAgqD,SAAS,EAAU,EAAS,CAAC,OAAO,EAAS,QAAQ,OAAO,EAAE,GAAG,GAAI,CAAC,SAAS,EAAY,EAAK,CAAC,GAAU,IAAS,QAAa,CAAC,EAAO,SAAS,SAAS,SAAS,mBAAmB,EAAE,OAAO,EAAK,IAAM,EAAO,EAAe,GAA6B,OAAnB,EAAyB,2EAA2E,EAAO,iCAA7F,CAA8H,CAGphE,SAAwB,EAAc,EAAM,CAAC,IAAM,EAAS,EAAU,EAAM,UAAU,GAAG,EAAQ,EAAK,EAAgB,IAAW,CAAC,QAAQ,EAAS,QAAQ,gBAAgB,EAAE,GAAG,IAAI,OAAO,IAAW,IAAI,MAAM,MAAM,CAAQ,EAAQ,EAAS,IAAW,OAAO,EAAS,WAAW,MAAM,EAAQ,EAAuB,IAAS,QAAa,EAAO,SAAS,SAAS,SAAS,mBAAmB,EAAQ,EAAY,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,UAAU,GAAG,QAAQ,WAAW,OAAO,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