'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),t=require("../../text/components/Text.js"),i=require("react");exports.default=({setting:c,styles:p,builderProps:s})=>{let a=r.useCartLine(),u=a.variant?.price??0,o=a.variant?.price??0,l=i.useMemo(()=>c?.priceType==="compare"?o:u>0?u:o,[u,c?.priceType,o]),n=r.useFormatMoney(l,!1);return(c?.priceType!=="compare"||u)&&l?e.jsx(e.Fragment,{children:e.jsx(t.default,{styles:p,setting:{text:n,excludeFlex:!0},builderProps:s,className:r.cls({"gp-line-through":c?.priceType==="compare"})})}):null};
