"use strict";var e=require("../../../../helpers.js"),t=require("../../../settings/product-button/configs/translate.js");exports.getButtonDynamicSourceLocales=({setting:s,builderProps:a,pageContext:r})=>{let u={pageContext:r,uid:a?.uid},o=(s,a)=>{let o=e.getDynamicSourceLocales({...u,pageContext:r??{},settingId:e.createSettingId({id:t.ProductButton[s]?.id}),val:a??""});return o};return{outOfStockButtonLabel:o("outOfStockLabel",s?.outOfStockLabel),unavailableButtonLabel:o("unavailableLabel","Unavailable"),variantSelectionRequiredMessage:o("variantSelectionRequiredMessage",s?.variantSelectionRequiredMessage),successMessage:o("successMessage",s?.successMessage),errorMessage:o("errorMessage",s?.errorMessage)}};
