"use strict";var e=require("@gem-sdk/core"),t=require("./useDynamicProduct.js"),i=require("./useRecurringSubtotal.js"),u=require("./useProductPriceBreakdown.js"),l=require("./useSubscriptionSellingType.js");exports.useGetMoneyLines=(o,s)=>{let{isDynamicProduct:a,dynamicPrice:n,dynamicDiscount:r,isEnableDynamicDiscount:b}=t.useDynamicProduct(),{t:c}=e.useI18nStore(),p=i.useRecurringSubtotal(),{isSubscription:d}=l.useSubscriptionSellingType(),{subTotalMoneyFormatted:h,offerDiscountTotal:L,discountMoneyFormatted:g,totalMoneyFormatted:S}=u.useProductPriceBreakdown();return{getMoneyLines:()=>{let e=[];return!1!==o.isShowSubTotalLabel&&e.push({title:s.subTotalLabel,money:a?n:h,uniqueId:"subTotalLabel"}),!1!==o.isShowDiscountLabel&&e.push({title:s.discountLabel,money:a&&r&&b?`${r.value}%`:L>0?g:"No discount",uniqueId:"discountLabel"}),!1!==o.isShowShippingLabel&&e.push({title:s.shippingLabel,uniqueId:"shippingLabel",tooltip:{content:"Shipping fee will be calculated on real offer page",width:"23em"}}),!1!==o.isShowTaxesLabel&&e.push({title:s.taxesLabel,uniqueId:"taxesLabel",tooltip:{content:"Taxes will be calculated on real offer page",width:"20em"}}),!1!==o.isShowTotalLabel&&e.push({title:s.totalLabel,money:a?n:S,uniqueId:"totalLabel"}),s?.isShowRecurringTotalLabel!==!1&&p&&d&&e.push({title:c("Recurring subtotal"),money:p,uniqueId:"recurringTotalLabel",subTitle:c("Doesn't include shipping, tax or duties")}),e}}};
