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