import{replaceLinkData as t,getDynamicSourceLocales as e,createSettingId as i}from"../../helpers.js";import"@gem-sdk/core";import{Text as o}from"../settings/configs/translate.js";import{TAGS_WITH_REPLACE_LINK_DATA as r}from"../../constant.js";let s=t=>t?"number"==typeof t?t+"px":"string"!=typeof t||t.includes("px")?t:t+"px":"auto",a=({type:s,styles:a,setting:n,builderProps:p,pageContext:g,translateSetting:l})=>{let{text:c,isForceValue:m}=n??{},d="",f=r?.includes(p?.builderData?.tag??"")&&!g?.isPreviewing,u=t(c?.toString()),x=a?.typo?.attrs?.transform==="capitalize";return"React"===s?d=x?c?.toString().toLocaleLowerCase():c?.toString():m?d=u:o?.text?.id?(d=e({val:c,uid:p?.uid,settingId:i({id:l??o?.text?.id}),pageContext:g,isCapitalize:x,isReplaceLocationOrigin:f}))==c&&(d=u):d=x?u?.toString().toLocaleLowerCase():u,d};export{s as formatThickness,a as getDisplayText};
