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