{:uriI"file:///Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/backend/app/assets/javascripts/spree/backend/views/tables/selectable_table/sum_return_item_amount.js?type=application/javascript&pipeline=self&id=f0b2c897710febf7a76db64c5d8c4de82df49b28f488c3a7b179a6badbd541b5:ET:load_pathI"`/Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/backend/app/assets/javascripts;T: filenameI"¡/Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/backend/app/assets/javascripts/spree/backend/views/tables/selectable_table/sum_return_item_amount.js;T: nameI"Gspree/backend/views/tables/selectable_table/sum_return_item_amount;T:logical_pathI"Ospree/backend/views/tables/selectable_table/sum_return_item_amount.self.js;T:content_typeI"application/javascript;T: sourceI"·Spree.Views.Tables.SelectableTable.SumReturnItemAmount = Backbone.View.extend({ initialize: function(options) { this.listenTo(this.model, 'change', this.render); this.render(); }, render: function() { var html = HandlebarsTemplates['tables/return_item_sum_amount']({ total_pre_tax_refund: Spree.t("total_pre_tax_refund"), total_selected_item_amount: this.totalSelectedReturnItemAmount() }); this.$el.html(html); }, totalSelectedReturnItemAmount: function () { var totalAmount = 0; var selectedItems = []; var decimals = 0; var separator = Spree.t('currency_separator'); var amount, decimalAmount; if(this.model.get('allSelected')) { selectedItems = $('.selectable'); } else { selectedItems = $(this.model.attributes.selectedItems); } selectedItems.each(function(_, selectedItem){ amount = $(selectedItem).data('price'); decimalAmount = amount.toString().split(separator)[1] || ''; decimals = Math.max(decimals, decimalAmount.length); totalAmount += parseFloat(amount); }) return accounting.formatNumber(totalAmount, decimals, Spree.t('currency_delimiter'), separator); }, }); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"¯file-digest:///Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/backend/app/assets/javascripts/spree/backend/views/tables/selectable_table/sum_return_item_amount.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI"Jspree/backend/views/tables/selectable_table/sum_return_item_amount.js;TI" mappings;TI"ÂAAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;TI" sources;T[I"%sum_return_item_amount.source.js;TI" names;T[I"x_sprockets_linecount;Ti,: charsetI" utf-8;F: digest"% ŽBcDµª„4 ŒÚ—ø`#ÆInÜõ-RÔìøþ: lengthi·:environment_versionI"1.0;T:dependencies_digest"%_5®cUþ¾˜ê HC¼‘"¨WšÀW×c%¬ï˜vâ}8:idI"Ef0b2c897710febf7a76db64c5d8c4de82df49b28f488c3a7b179a6badbd541b5;F