{"version":3,"file":"Locale.CAtlEdSA.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/SL6hfp4kwLThbn4s1hys/qF0CXXv69kNTGjD4tn8r/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:isRTL?\"RTL\":\"LTR\",textAlign:isRTL?\"right\":\"left\"}});});}export function BlogRTL2(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const localCode=useLocaleCode();const isRTL=localCode===\"ar\";return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},//listStylePosition: isRTL ? \"inside\" : \"outside\",\nlistStylePosition:\"inside\",direction:\"rtl\"}});});}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\"}},\"withconditionalRTL\":{\"type\":\"reactHoc\",\"name\":\"withconditionalRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRTL\":{\"type\":\"override\",\"name\":\"withRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withoutRTL2\":{\"type\":\"reactHoc\",\"name\":\"withoutRTL2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithoutRTL\":{\"type\":\"reactHoc\",\"name\":\"withwithoutRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithRTL\":{\"type\":\"reactHoc\",\"name\":\"withwithRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"conditionalRTL\":{\"type\":\"override\",\"name\":\"conditionalRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withoutRTL\":{\"type\":\"override\",\"name\":\"withoutRTL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BlogRTL2\":{\"type\":\"reactHoc\",\"name\":\"BlogRTL2\",\"annotations\":{\"framerContractVersion\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