{"version":3,"file":"Locale.BMTiolyT.mjs","names":["__legacyOverrideHOC_DataObserverContext"],"sources":["https:/framerusercontent.com/modules/SL6hfp4kwLThbn4s1hys/tK7pDHDxpmtr8VzJ0Bvp/Locale.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{useLocaleCode}from\"framer\";export function withRTL(Component){const localCode=useLocaleCode();const isRTL=localCode===\"ar\";return{style:{direction:isRTL?\"rtl\":\"ltr\",textAlign:isRTL?\"right\":\"left\"}};}export function withoutRTL(Component){const localCode=useLocaleCode();const isRTL=localCode===\"ar\";return{style:{direction:\"ltr\",textAlign:\"left\"}};}export function conditionalRTL(props){const{translated}=props// Access the 'translated' CMS field\n;const isRTL=translated?true:false// Check if translated is true\n;return{style:{direction:isRTL?\"rtl\":\"ltr\",textAlign:isRTL?\"right\":\"left\"}};}export function withRTL2(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const localCode=useLocaleCode();const isRTL=localCode===\"ar\";return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},direction:isRTL?\"rtl\":\"ltr\",textAlign:isRTL?\"right\":\"left\"}});});}export function withoutRTL2(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const localCode=useLocaleCode();const isRTL=localCode===\"ar\";return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},direction:\"ltr\",textAlign:\"left\"}});});}//this one im unsure of\nexport function conditionalRTL2(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{translated}=props// Access the 'translated' CMS field\n;const isRTL=translated?true:false// Check if translated is true\n;return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},direction:\"ltr\",textAlign:\"left\"}});});}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withwithRTL(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withRTL(props)});};}withwithRTL.displayName=\"withRTL\";export function withwithoutRTL(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withoutRTL(props)});};}withwithoutRTL.displayName=\"withoutRTL\";export function withconditionalRTL(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...conditionalRTL(props)});};}withconditionalRTL.displayName=\"conditionalRTL\";\nexport const __FramerMetadata__ = {\"exports\":{\"withRTL2\":{\"type\":\"reactHoc\",\"name\":\"withRTL2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRTL\":{\"type\":\"override\",\"name\":\"withRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithoutRTL\":{\"type\":\"reactHoc\",\"name\":\"withwithoutRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withconditionalRTL\":{\"type\":\"reactHoc\",\"name\":\"withconditionalRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithRTL\":{\"type\":\"reactHoc\",\"name\":\"withwithRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"conditionalRTL2\":{\"type\":\"reactHoc\",\"name\":\"conditionalRTL2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"conditionalRTL\":{\"type\":\"override\",\"name\":\"conditionalRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withoutRTL2\":{\"type\":\"reactHoc\",\"name\":\"withoutRTL2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withoutRTL\":{\"type\":\"override\",\"name\":\"withoutRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Locale.map"],"mappings":"2QAA2G,SAAgB,EAAQ,EAAU,CAAC,IAAM,EAAU,GAAe,CAAO,EAAM,IAAY,KAAK,MAAM,CAAC,MAAM,CAAC,UAAU,EAAM,MAAM,MAAM,UAAU,EAAM,QAAQ,MAA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