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