PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
plugins
/
ecommerce
/
public
/
js
(()=>{function a(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}$((function(){var e;moment.locale($("html").attr("lang"));var t=$(".daterange-picker"),r=moment(),o=moment().endOf("month");o>r&&(o=r);var n=BotbleVariables.languages.reports,m=(a(e={},n.today,[moment(),moment()]),a(e,n.this_week,[moment().startOf("week"),moment()]),a(e,n.last_7_days,[moment().subtract(6,"days"),moment()]),a(e,n.this_month,[moment().startOf("month"),o]),a(e,n.this_year,[moment().startOf("year"),moment().endOf("year")]),e);t.daterangepicker({ranges:m,alwaysShowCalendars:!0,startDate:moment().startOf("month"),endDate:o,maxDate:o,opens:"left",drops:"auto",locale:{format:t.data("format")||"YYYY-MM-DD"}},(function(a,e,r){$.ajax({url:t.data("href"),data:{date_from:a.format("YYYY-MM-DD"),date_to:e.format("YYYY-MM-DD"),predefined_range:r},type:"GET",success:function(t){t.error?Botble.showError(t.message):($(".report-chart-content").html(t.data.html),new Vue({el:"#report-chart"}),window.LaravelDataTables&&Object.keys(window.LaravelDataTables).map((function(t){var r=window.LaravelDataTables[t],o=new URL(r.ajax.url());o.searchParams.set("date_from",a.format("YYYY-MM-DD")),o.searchParams.set("date_to",e.format("YYYY-MM-DD")),r.ajax.url(o.href).load()})))},error:function(a){Botble.handleError(a)}})}))}))})();
[-] customer.js
[edit]
[-] checkout.js
[edit]
[-] bulk-import.js
[edit]
[-] order-create.js
[edit]
[-] ecommerce-product-attributes.js
[edit]
[+]
..
[-] discount.js
[edit]
[-] order-incomplete.js
[edit]
[-] utilities.js
[edit]
[-] shipment.js
[edit]
[-] product-category.js
[edit]
[-] avatar.js
[edit]
[-] review.js
[edit]
[-] setting.js
[edit]
[-] change-product-swatches.js
[edit]
[-] dashboard-widgets.js
[edit]
[-] order.js
[edit]
[-] edit-product.js
[edit]
[-] flash-sale.js
[edit]
[-] currencies.js
[edit]
[-] payment-method.js
[edit]
[-] store-locator.js
[edit]
[-] shipping.js
[edit]
[-] report-filter.js
[edit]
[-] report.js
[edit]