import{getDynamicSourceLocales as e,createSettingId as i}from"../../../../helpers.js";import{ProductProperties as t}from"../../../settings/product-properties/configs/translate.js";let d=({uniqId:d,pageContext:s,setting:n})=>{let{label:a,invalidNumberMessage:l,invalidEmailMessage:r,requiredMessage:g,invalidLengthMessage:o}=n??{},u=e({val:a,uid:d,settingId:i({id:t?.label?.id}),pageContext:s}),v=e({val:l,uid:d,settingId:i({id:t?.invalidNumberMessage?.id}),pageContext:s}),p=e({val:r,uid:d,settingId:i({id:t?.invalidEmailMessage?.id}),pageContext:s}),m=e({val:g,uid:d,settingId:i({id:t?.requiredMessage?.id}),pageContext:s}),I=e({val:o,uid:d,settingId:i({id:t?.invalidLengthMessage?.id}),pageContext:s});return{displayLabel:u,invalidNumberMessageDisplay:v,invalidEmailMessageDisplay:p,requiredMessageDisplay:m,invalidLengthMessageDisplay:I}},s=e=>{let{label:i,required:t}=e??{};return t&&i?" *":""};export{d as getContents,s as getLabelContent};
