"use strict";var helpers=require("../../helpers.js");require("@gem-sdk/core");var translate=require("../settings/configs/translate.js"),constant=require("../../constant.js");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:s,pageContext:a,translateSetting:i})=>{let{text:n,isForceValue:o}=r??{},c="",l=constant.TAGS_WITH_REPLACE_LINK_DATA?.includes(s?.builderData?.tag??"")&&!a?.isPreviewing,p=helpers.replaceLinkData(n?.toString()),g=t?.typo?.attrs?.transform==="capitalize";return"React"===e?c=g?n?.toString().toLocaleLowerCase():n?.toString():o?c=p:translate.Text?.text?.id?(c=helpers.getDynamicSourceLocales({val:n,uid:s?.uid,settingId:helpers.createSettingId({id:i??translate.Text?.text?.id}),pageContext:a,isCapitalize:g,isReplaceLocationOrigin:l}))==n&&(c=p):c=g?p?.toString().toLocaleLowerCase():p,c};exports.formatThickness=formatThickness,exports.getDisplayText=getDisplayText;
