"use strict";var helpers=require("../../../../helpers.js");const getButtonDynamicSourceLocales=({setting:e,builderProps:a,pageContext:t})=>{let l={pageContext:t,uid:a?.uid},o=(a,t,o)=>{let n=helpers.getDynamicSourceLocales({...l,translate:e?.translate?o:void 0,settingId:a,val:t??""});return n};return{outOfStockButtonLabel:o("outOfStockLabel",e?.outOfStockLabel,"outOfStockLabel"),unavailableButtonLabel:o("unavailableLabel","Unavailable","unavailableLabel"),variantSelectionRequiredMessage:o("variantSelectionRequiredMessage",e?.variantSelectionRequiredMessage,"variantSelectionRequiredMessage")}};exports.getButtonDynamicSourceLocales=getButtonDynamicSourceLocales;
