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