"use strict";var helpers=require("../../../../helpers.js");const getContents=(e,t,s)=>{let{label:n,translate:a,invalidNumberMessage:l,invalidEmailMessage:i,requiredMessage:r,invalidLengthMessage:g}=s??{},o=helpers.getDynamicSourceLocales({val:n,uid:e,settingId:"label",pageContext:t,translate:a}),c=helpers.getDynamicSourceLocales({val:l,uid:e,settingId:"invalidNumberMessage",pageContext:t,translate:a}),u=helpers.getDynamicSourceLocales({val:i,uid:e,settingId:"invalidEmailMessage",pageContext:t,translate:a}),d=helpers.getDynamicSourceLocales({val:r,uid:e,settingId:"requiredMessage",pageContext:t,translate:a}),p=helpers.getDynamicSourceLocales({val:g,uid:e,settingId:"invalidLengthMessage",pageContext:t,translate:a});return{displayLabel:o,invalidNumberMessageDisplay:c,invalidEmailMessageDisplay:u,requiredMessageDisplay:d,invalidLengthMessageDisplay:p}},getLabelContent=e=>{let{label:t,required:s}=e??{};return s&&t?" *":""};exports.getContents=getContents,exports.getLabelContent=getLabelContent;
