"use strict";var helpers=require("../../../../helpers.js"),translate=require("../settings/configs/translate.js");const getTextDropContent=e=>e?.includes("$max_size")?e?.replace("$max_size","20MB"):e,getDisplayText=(e,t)=>{let{setting:r,styles:s,uid:o,pageContext:n}=t;return"Liquid"===e?helpers.getDynamicSourceLocales({val:r?.textContent,uid:o,settingId:helpers.createSettingId({id:translate.FileUpload?.textContent?.id}),pageContext:n??{},isCapitalize:s?.typo?.attrs?.transform==="capitalize"}):getTextDropContent(r?.textContent)},removeHoverStyles=(e,t)=>{if(!1===t){let t={};return Object.keys(e).forEach(r=>{r.includes("--hvr")||r.includes("--text-hover-color")||(t[r]=e[r])}),t}return e};exports.getDisplayText=getDisplayText,exports.getTextDropContent=getTextDropContent,exports.removeHoverStyles=removeHoverStyles;
