'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var types=require("./types.js"),helpers=require("./common/helpers.js"),PriceLayout_liquid=require("./PriceLayout.liquid.js"),PriceComponent_liquid=require("./PriceComponent.liquid.js"),constants=require("./common/constants.js");const ProductButtonPrice=({setting:e,styles:r})=>{let t=()=>PriceComponent_liquid.default({priceType:types.PriceType.Regular,settings:helpers.getRenderRegularPriceSettings(e)}),i=()=>PriceComponent_liquid.default({priceType:types.PriceType.Compare,settings:helpers.getRenderComparePriceSettings(e)}),s=()=>{if(!e?.priceLayout)return[t];switch(e?.priceLayout){case constants.PRICE_LAYOUT.PRICE_ONLY:return[t];case constants.PRICE_LAYOUT.PRICE_BEFORE:return[t,i];case constants.PRICE_LAYOUT.PRICE_AFTER:return[i,t];default:return[t,i]}},o=s();return PriceLayout_liquid.default({components:o,separator:e?.separator,showPrice:!!r?.enablePrice,showSeparator:!!r?.enableSeparator})};exports.default=ProductButtonPrice;
