1import u from"./TmlCurrency.a7ec77b7.js";import{N as d,D as a,E as n,G as m,S as l,f as i,H as o,Q as s,W as P,a0 as _,aa as p,ab as y}from"./vue.00f7c436.js";import{_ as h,g as f,O as g}from"./index.474d7b13.js";import"./useCurrency.95f9b6b2.js";import"./sentry.09480738.js";const v={name:"TmlProductPrice",components:{TmlCurrency:u},props:{price:{required:!0,type:Number},salePrice:{required:!1,type:Number},showPercentage:{required:!1,type:Boolean},stackOnMobile:{type:Boolean,default:!0},toPrice:{type:Number,required:!1}},computed:{bundleSavePercentage(){return this.showPercentage&&this.salePrice&&this.salePrice<this.price?`${100-Math.round(this.salePrice/this.price*100)}%`:!1},isDirectPaymentProcessor(){return f().getter("paymentProcessorType")==="direct"},noRoundingOnPrice(){return this.isDirectPaymentProcessor&&this.price%1!==0},noRoundingOnSalePrice(){return this.isDirectPaymentProcessor&&this.salePrice%1!==0}},methods:{maxDevice:g}},S=c=>(p("data-v-c1970c6f"),c=c(),y(),c),b={class:"tml-product-price"},k={key:0},O=S(()=>l("span",{class:"font-normal"}," - ",-1)),x={key:2,class:"block text-right"};function D(c,N,e,B,R,r){const t=d("tml-currency");return a(),n("div",b,[m(c.$slots,"prefix",{},void 0,!0),l("span",{class:o({strike:e.salePrice&&e.salePrice<e.price})},[i(t,{class:"standard-price",value:e.price,"no-rounding":r.noRoundingOnPrice,primary:""},null,8,["value","no-rounding"])],2),e.toPrice?(a(),n("span",k,[O,i(t,{class:"standard-price",value:e.toPrice,"no-rounding":r.noRoundingOnPrice,primary:""},null,8,["value","no-rounding"])])):s("",!0),e.salePrice&&e.salePrice<e.price?(a(),P(t,{key:1,class:o(["sale-price ml-1",{block:r.maxDevice("md")&&e.stackOnMobile}]),value:e.salePrice,"no-rounding":r.noRoundingOnSalePrice,primary:""},null,8,["class","value","no-rounding"])):s("",!0),r.bundleSavePercentage?(a(),n("small",x," Save "+_(r.bundleSavePercentage),1)):s("",!0)])}const M=h(v,[["render",D],["__scopeId","data-v-c1970c6f"]]);export{M as default}; 2//# sourceMappingURL=TmlProductPrice.78b9333d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.