{"version":3,"file":"RightAlignedLayout.DN4fN6Pf.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/O1kRa1gX6TvwgFw3elRR/F4osPDfEd6Y2Jc5HuIEe/RightAlignedLayout.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withRightAlignedLayout(Component){return props=>{const[isRightAligned,setIsRightAligned]=useState(false)// Default to left-aligned\n;useEffect(()=>{// Check if we're in the browser and if the URL contains /ar/\nif(typeof window!==\"undefined\"){const path=window.location.pathname;const isArabicLocale=path.includes(\"/ar/\")||path.startsWith(\"/ar\");setIsRightAligned(isArabicLocale);if(isArabicLocale){document.documentElement.setAttribute(\"dir\",\"rtl\");document.body.style.textAlign=\"right\";}else{document.documentElement.setAttribute(\"dir\",\"ltr\");document.body.style.textAlign=\"left\";}}},[])// Empty dependency array - only run once on mount\n;return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRightAlignedLayout\":{\"type\":\"reactHoc\",\"name\":\"withRightAlignedLayout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RightAlignedLayout.map"],"mappings":"oIAAuG,SAAgB,EAAuB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAe,GAAmBA,EAAS,GAAM,CAG9N,OAFA,MAAc,CACf,GAAU,IAAS,OAAY,CAAC,IAAM,EAAK,EAAO,SAAS,SAAe,EAAe,EAAK,SAAS,OAAO,EAAE,EAAK,WAAW,MAAM,CAAC,EAAkB,EAAe,CAAI,GAAgB,SAAS,gBAAgB,aAAa,MAAM,MAAM,CAAC,SAAS,KAAK,MAAM,UAAU,UAAc,SAAS,gBAAgB,aAAa,MAAM,MAAM,CAAC,SAAS,KAAK,MAAM,UAAU,UAAW,EAAE,CAAC,CACrW,EAAKC,EAAU,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,uBAHtB,IAAsC"}