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