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