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