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