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