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