1"use strict";(self.webpackChunkDashboard=self.webpackChunkDashboard||[]).push([[3611],{57433:(t,e,r)=>{r.r(e),r.d(e,{default:()=>a});var s=r(4267);const o={name:"NewOrderTotalAmountPrice",computed:{shippingAddresses:function(){return this.$store.getters["bookOrder/getBookOrderData"]("shippingAddresses")},orderAmount:function(){return null==this.shippingAddresses[0]?1:this.shippingAddresses.map((function(t){return Math.round(parseInt(t.amount))||0})).reduce((function(t,e){return t+e}))},totalAmount:function(){return this.$store.getters["bookOrder/getBookOrderData"]("totalAmount")},totalPrice:function(){return this.$store.getters["bookOrder/getBookOrderData"]("totalPrice")},scaledPrices:function(){return this.$store.getters["bookOrder/getBookOrderData"]("scaledPrices")},scaledPricesLastUpdate:function(){return this.scaledPrices.lastUpdate}},watch:{orderAmount:"orderCalculate",scaledPricesLastUpdate:"orderCalculate"},methods:{orderCalculate:function(){var t=this.calculateScaledPrices();this.setBookOrderData({totalAmount:this.orderAmount,price:t,totalPrice:(0,s.zc)(this.orderAmount*t),currency:this.scaledPrices.currency})},calculateScaledPrices:function(){return this.orderAmount<25?this.scaledPrices.price_1_24:this.orderAmount<50?this.scaledPrices.price_25_49:this.orderAmount<100?this.scaledPrices.price_50_99:this.orderAmount<200?this.scaledPrices.price_100_199:this.scaledPrices.price_200},setBookOrderData:function(t){this.$store.commit("bookOrder/SET_BOOK_ORDER_DATA",t)}}};const a=(0,r(51900).Z)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"new-order-total-amount-price"},[r("div",{staticClass:"card mb-4"},[r("div",{staticClass:"card-body p-4"},[r("div",{staticClass:"row lead"},[r("div",{staticClass:"col-24 col-sm-6"},[r("b",[t._v(t._s(t.$t("newbookorder.address.totalAmountPrice.total")))])]),t._v(" "),r("div",{staticClass:"col-24 col-sm-18 text-sm-end"},[t._v("\n "+t._s(t.$t("newbookorder.address.totalAmountPrice.totalAmount"))+" "),r("b",{staticClass:"me-5"},[t._v(t._s(t.totalAmount))]),t._v("\n "+t._s(t.$t("newbookorder.address.totalAmountPrice.totalPrice"))+" "),r("b",[t._v(t._s(t.totalPrice))])])])])])])}),[],!1,null,null,null).exports}}]);
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.