PageSourceSearch

https://dashboard.rx4route.com/dist/js/finances-92373ae1.da7bbddd.js

js rx4route.com collected 2026-10-09 03:42:16 UTC 29,107 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkrx2go_dashboard"]=self["webpackChunkrx2go_dashboard"]||[]).push([[5378],{40095:(t,e,a)=>{a.r(e),a.d(e,{default:()=>l});var n=a(80981),r=a(90209);const i=r.A;var s=a(81656),o=(0,s.A)(i,n.X,n.Y,!1,null,"2a60c750",null);const l=o.exports},7661:(t,e,a)=>{a.r(e),a.d(e,{default:()=>h});a(28706),a(2008),a(62010),a(79432),a(26099),a(27495),a(5746),a(98992),a(54520);var n=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel-heading"},[e("auto-refresh",{attrs:{"auto-refresh":t.autorefresh},on:{"update:autoRefresh":function(e){t.autorefresh=e},"update:auto-refresh":function(e){t.autorefresh=e}}})],1),e("div",{staticClass:"panel-body"},[e("h4",{staticStyle:{margin:"20px 0"}},[t._v(" Filters ")]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-2"},[e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.filter.created_from,expression:"filter.created_from"}],staticClass:"form-control datepicker",attrs:{id:"filter_created_from",type:"text"},domProps:{value:t.filter.created_from},on:{input:function(e){e.target.composing||t.$set(t.filter,"created_from",e.target.value)}}}),e("small",[t._v("Note Was Created After")])])])]),e("div",{staticClass:"col-md-2"},[e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.filter.created_to,expression:"filter.created_to"}],staticClass:"form-control datepicker",attrs:{id:"filter_created_to",type:"text"},domProps:{value:t.filter.created_to},on:{input:function(e){e.target.composing||t.$set(t.filter,"created_to",e.target.value)}}}),e("small",[t._v("Note Was Created Before")])])]),e("div",{staticClass:"col-md-4"},[e("button",{staticClass:"btn btn-primary-outline",on:{click:function(e){return t.filterChanged()}}},[t._v(" Apply ")])]),e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"pull-right margin-right-20"},[e("div",{staticClass:"form-group"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchMainTable,expression:"searchMainTable"}],staticClass:"form-control pull-left",staticStyle:{width:"150px"},attrs:{type:"text"},domProps:{value:t.searchMainTable},on:{input:[function(e){e.target.composing||(t.searchMainTable=e.target.value)},function(e){return t.filterChanged()}]}}),t._m(0)]),e("small",[t._v("Search In Table")])])])])]),Object.keys(t.finances.timelines).length>0?e("div",{staticClass:"table100 ver1",staticStyle:{width:"360px",display:"inline-block","vertical-align":"top"}},[e("table",{staticClass:"finance-table table nowrap table-bordered table-titles",attrs:{"data-vertable":"ver1"}},[t._m(1),t._m(2),e("tbody",t._l(t.finances.accounts,(function(a,n){return e("tr",{key:n,staticClass:"row100"},[e("td",{class:"column-highlighed column100 row"+n,attrs:{"data-row":"row"+n}},[e("div",{staticClass:"column-highligh l-regular"},[e("div",{staticClass:"table-iteration"},[e("code",[t._v(t._s(n+1))])]),e("span",[t._v(t._s(a.title))])])])])})),0),t._m(3)])]):t._e(),Object.keys(t.finances.timelines).length>0?e("div",{staticClass:"table100 ver1 disable-select",staticStyle:{display:"inline-block",width:"calc(100% - 490px)","vertical-align":"top"}},[e("table",{staticClass:"finance-table table nowrap table-bordered table-titles slider table-responsive",attrs:{"data-vertable":"ver1"}},[e("tbody",[e("tr",{staticClass:"total"},t._l(t.finances.totals,(function(a,n){return e("td",{key:n},[e("a",{class:{"text-danger":a<0,"text-success":a>0},on:{click:function(e){return t.displayModalTransaction(null,n)}}},[t._v(t._s(t.formatPrice(a)))])])})),0)]),e("thead",{staticClass:"thead-default"},[e("tr",t._l(t.finances.totals,(function(a,n){return e("th",{key:n,staticStyle:{"min-width":"100px"}},[t._v(" "+t._s(t.formatDate(n))+" ")])})),0)]),e("tbody",t._l(t.finances.accounts,(function(a,n){return e("tr",{key:n,staticClass:"row100"},[t._l(t.finances.timelines,(function(r,i,s){return[t.finances.timelines[i][a.id]?e("td",{key:"".concat(n,"-").concat(s),staticClass:"column-highlighed column100",class:"row"+n+" column"+s,attrs:{"data-row":"row"+n,"data-column":"column"+s}},[e("div",{staticClass:"column-highligh l-regular",class:{"l-danger":r[a.id].amount<0,"l-success":r[a.id].amount>0}},[e("a",{on:{click:function(e){return t.displayModalTransaction(a.id,i)}}},[t._v(t._s(t.formatPrice(r[a.id].amount)))])])]):t._e()]}))],2)})),0),e("tfoot",{staticClass:"thead-default"},[e("tr",t._l(t.finances.totals,(function(a,n){return e("th",{key:n,staticStyle:{"min-width":"100px"}},[e("a",{class:{"text-danger":a<0,"text-success":a>0},on:{click:function(e){return t.displayModalTransaction(null,n)}}},[t._v(t._s(t.formatPrice(a)))])])})),0)])])]):t._e(),Object.keys(t.finances.timelines).length>0?e("div",{staticClass:"table100 ver1",staticStyle:{width:"120px",display:"inline-block","vertical-align":"top"}},[e("table",{staticClass:"finance-table table nowrap table-bordered table-titles",attrs:{"data-vertable":"ver1"}},[e("tbody",[e("tr",{staticClass:"total"},[e("td",[e("a",{class:{"text-danger":t.finances.total<0,"text-success":t.finances.total>0},on:{click:function(e){return t.displayModalTransaction(null,null)}}},[t._v(t._s(t.formatPrice(t.finances.total)))])])])]),t._m(4),e("tbody",t._l(t.finances.accounts,(function(a,n){return e("tr",{key:n,staticClass:"row100"},[e("td",{class:"column-highlighed column100 column101 row"+n,attrs:{"data-column":"column101","data-row":"row"+n}},[e("div",{staticClass:"column-highligh",class:{"l-regular":0==a.total,"l-danger":a.total<0,"l-success":a.total>0}},[e("a",{on:{click:function(e){return t.displayModalTransaction(a.id,null)}}},[t._v(t._s(t.formatPrice(a.total)))])])])])})),0),e("tfoot",{staticClass:"thead-default"},[e("tr",[e("th",[e("a",{class:{"text-danger":t.finances.total<0,"text-success":t.finances.total>0},on:{click:function(e){return t.displayModalTransaction(null,null)}}},[t._v(t._s(t.formatPrice(t.finances.total)))])])])])])]):t._e()]),t.showModalTransactions?e("modal-info",{on:{close:function(e){t.showModalTransactions=!1}}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"pull-right"},[e("div",{staticClass:"form-group"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"form-control pull-left",staticStyle:{width:"150px"},attrs:{type:"text"},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),e("div",{staticClass:"btn input-group-text pull-left",staticStyle:{"box-shadow":"none",left:"-2px"}},[e("i",{staticClass:"icmn-search"})])])])]),e("div",{staticClass:"pull-left"},[e("h3",{staticStyle:{"margin-bottom":"0"}},[t._v(" "+t._s(t.transactions.account_name)+" ")]),e("br"),e("code",{directives:[{name:"show",rawName:"v-show",value:t.transactions.date,expression:"transactions.date"}],staticClass:"margin-right-5"},[t._v(t._s(t.formatDate(t.transactions.date,"MM/DD/YYYY")))]),e("code",{directives:[{name:"show",rawName:"v-show",value:t.transactions.date_diapason,expression:"transactions.date_diapason"}],staticClass:"margin-right-5"},[t._v(t._s(t.transactions.date_diapason))]),e("code",{directives:[{name:"show",rawName:"v-show",value:t.transactions.account_institution,expression:"transactions.account_institution"}],staticClass:"margin-right-5"},[t._v(t._s(t.transactions.account_institution))]),e("code",{directives:[{name:"show",rawName:"v-show",value:t.transactions.account_official_name,expression:"transactions.account_official_name"}],staticClass:"margin-right-5"},[t._v(t._s(t.transactions.account_official_name))])]),e("div",{staticClass:"pull-left margin-left-20"},[e("span",[e("b",[t._v("Transactions:")]),t._v(" "),e("code",[t._v(t._s(t.transactions.items))])]),e("span",{staticClass:"margin-left-10"},[e("b",[t._v("Synchronized:")]),t._v(" "),e("code",[t._v(t._s(t.formatDate(t.transactions.account_synced_at_dt,"MM/DD/YYYY HH:mm")))])]),e("span",{staticClass:"margin-left-10"},[e("b",[t._v("Amount:")]),t._v(" "),e("code",[t._v(t._s(t.formatPrice(t.transactions.amount)))])])])]),e("div",{attrs:{slot:"body"},slot:"body"},[e("table",{staticClass:"finance-table table table-hover nowrap table-bordered"},[e("tbody",[e("tr",{staticClass:"g-total"},[e("td"),e("td"),e("td"),e("td"),e("td"),e("td",[t._v(t._s(t.formatPrice(t.transactions.amount)))]),e("td")])]),e("thead",{staticClass:"thead-default stiky"},[e("tr",[e("th",{staticStyle:{"min-width":"220px"}},[t._v(" Description "),e("clickable-sorter",{attrs:{field:"name","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1),e("th",[t._v(" Date "),e("clickable-sorter",{attrs:{field:"date","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1),e("th",[t._v(" Category "),e("clickable-sorter",{attrs:{field:"category","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1),e("th",[t._v(" Pending? "),e("clickable-sorter",{attrs:{field:"pending","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1),e("th",[t._v(" Moderation Time "),e("clickable-sorter",{attrs:{field:"pending_time","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1),e("th",[t._v(" Amount "),e("clickable-sorter",{attrs:{field:"amount","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1),e("th",[t._v(" Balance "),e("clickable-sorter",{attrs:{field:"balance","cur-field":t.trnsSortField,"cur-dir":t.trnsSortDir},on:{click:function(e){return t.sortTrns(e)}}})],1)])]),e("tbody",[t.sortedTrns.length<1?e("tr",[e("td",{staticStyle:{"text-align":"center"},attrs:{colspan:"99"}},[t._v(" Nothing found. ")])]):t._e(),t._l(t.sortedTrns,(function(a,n){return e("tr",{key:n},[e("td",{staticStyle:{height:"65px"}},[e("div",{staticClass:"table-iteration"},[e("code",[t._v(t._s(n+1))])]),t._v(" "+t._s(a.name)+" "),e("div",{staticStyle:{"margin-top":"5px","font-size":"10px"}},[t._l(JSON.parse(a.category),(function(a,n){return e("span",{key:n,staticClass:"margin-right-5"},[e("code",[t._v(t._s(a))])])})),t._l(JSON.parse(a.payment_meta),(function(a,n){return e("span",{key:n},[e("code",{directives:[{name:"show",rawName:"v-show",value:a,expression:"meta_value"}],staticClass:"margin-right-5"},[e("b",[t._v(t._s(n))]),t._v(": "+t._s(a))])])}))],2)]),e("td",[t._v(t._s(t.formatDate(a.date,"MM/DD/YYYY")))]),e("td",[t._v(t._s(a.payment_channel))]),e("td",[e("span",{directives:[{name:"show",rawName:"v-show",value:a.pending>0,expression:"item.pending > 0"}]},[t._v("Pending")]),e("span",{directives:[{name:"show",rawName:"v-show",value:a.pending<1,expression:"item.pending < 1"}]},[t._v("Complete")])]),e("td",[t._v(t._s(t.formatDate(a.moderation_status_at_dt,"MM/DD/YYYY HH:mm")))]),e("td",{class:{"l-danger":a.amount<0,"l-success":a.amount>0}},[t._v(" "+t._s(t.formatPrice(a.amount))+" ")]),e("td",{class:{"l-danger":a.balance<0}},[t._v(" "+t._s(t.formatPrice(a.balance))+" ")])])}))],2),e("tfoot",{staticClass:"thead-default"},[e("tr",[e("th",[t._v("Description")]),e("th",[t._v("Date")]),e("th",[t._v("Channel")]),e("th",[t._v("Pending?")]),e("th",[t._v("Moderation Time")]),e("th",[t._v(t._s(t.formatPrice(t.transactions.amount)))]),e("th",[t._v("Balance")])])])])])]):t._e()],1)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn input-group-text pull-left",staticStyle:{"box-shadow":"none",left:"-2px"}},[e("i",{staticClass:"icmn-search"})])},function(){var t=this,e=t._self._c;return e("tbody",[e("tr",{staticClass:"total"},[e("td",[t._v("Total")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-default"},[e("tr",[e("th",[t._v("Title")])])])},function(){var t=this,e=t._self._c;return e("tfoot",{staticClass:"thead-default"},[e("tr",[e("th",[t._v("Total")])])])},function(){var t=this,e=t._self._c;return e("thead",{staticClass:"thead-default"},[e("tr",[e("th",[t._v("Total")])])])}],i=a(7180),s=(a(76918),a(50113),a(25276),a(44114),a(26910),a(23288),a(9868),a(78459),a(38781),a(47764),a(25440),a(72577),a(62953),a(76031),a(62893)),o=a(94335),l=a(95353);
1const c={components:{"modal-info":(0,s.defineAsyncComponent)((function(){return Promise.all([a.e(8307),a.e(7998),a.e(4631),a.e(3652),a.e(7336),a.e(9194),a.e(8249),a.e(164),a.e(5494),a.e(2811),a.e(2826),a.e(5282),a.e(6225),a.e(1175),a.e(6593),a.e(9466),a.e(2010),a.e(6882),a.e(4376),a.e(8310),a.e(9060),a.e(4089),a.e(7410)]).then(a.bind(a,32426))})),"auto-refresh":(0,s.defineAsyncComponent)((function(){return Promise.all([a.e(8307),a.e(7998),a.e(4631),a.e(3652),a.e(7336),a.e(9194),a.e(8249),a.e(164),a.e(5494),a.e(2811),a.e(2826),a.e(5282),a.e(6225),a.e(1175),a.e(6593),a.e(9466),a.e(2010),a.e(6882),a.e(4376),a.e(8310),a.e(9060),a.e(4089),a.e(7410)]).then(a.bind(a,51589))}))},emits:["close"],data:function(){return{showModalTransactions:!1,filter:{created_from:null===localStorage.getItem("finance_created_from")?moment().subtract(7,"d").format("MM/DD/YYYY"):localStorage.getItem("finance_created_from"),created_to:null===localStorage.getItem("finance_created_to")?moment().format("MM/DD/YYYY"):localStorage.getItem("finance_created_to"),filter_total_till:null===localStorage.getItem("filter_total_till")?moment().format("MM/DD/YYYY"):localStorage.getItem("filter_total_till")},autorefresh:!1,finances:{timelines:{},drivers:{},locks:{}},totals:{},transactions:[],users:[],isLoading:!1,loadInterval:null,trnsSortDir:"asc",trnsSortField:"order_id",search:"",searchMainTable:"",isTableHighLightInited:!1}},computed:(0,i.A)((0,i.A)({},(0,l.L8)(["currentUser"])),{},{sortedTrns:function(){var t=this,e=this.transactions.trns.sort((function(e,a){var n=1;return"desc"===t.trnsSortDir&&(n=-1),e[t.trnsSortField]<a[t.trnsSortField]?-1*n:e[t.trnsSortField]>a[t.trnsSortField]?1*n:0})),a=[],n=0;if(""!==this.search){var r=Object.keys(e[0]);for(var i in e){var s=!1;for(var o in r)null!==e[i][r[o]]&&-1!==e[i][r[o]].toString().toLowerCase().indexOf(this.search.toLowerCase())&&(s=!0);s&&(a.push(e[i]),n+=parseFloat(e[i].amount))}this.transactions.items=a.length,this.transactions.amount=n}else a=e;return a}}),watch:{isLoading:function(){var t=this;if(this.isLoading)this.loadInterval=setInterval((function(){null===window.NProgress.status&&spinner("show")}),200);else{var e=function(){if($(".column100").length<1)return!1;$(".column100").on("mouseover",(function(){var t=$(this).parent().parent().parent(),e=$(this).parent().parent(),a="".concat($(t).data("vertable")),n="".concat($(this).data("column")),r="".concat($(this).data("row"));"undefined"!==typeof n&&$(e).find(".".concat(n)).addClass("hov-column-".concat(a)),$(".table-titles").find(".".concat(r)).addClass("hov-column-".concat(a))})),$(".column100").on("mouseout",(function(){var t=$(this).parent().parent().parent(),e=$(this).parent().parent(),a="".concat($(t).data("vertable")),n="".concat($(this).data("column")),r="".concat($(this).data("row"));"undefined"!==typeof n&&$(e).find(".".concat(n)).removeClass("hov-column-".concat(a)),$(".table-titles").find(".".concat(r)).removeClass("hov-column-".concat(a))}));var t=document.querySelector(".slider");if(null===t)return!1;var e,a,n=!1;return t.addEventListener("mousedown",(function(r){n=!0,t.classList.add("active"),e=r.pageX-t.offsetLeft,a=t.scrollLeft})),t.addEventListener("mouseleave",(function(){n=!1,t.classList.remove("active")})),t.addEventListener("mouseup",(function(){n=!1,t.classList.remove("active")})),t.addEventListener("mousemove",(function(r){if(n){r.preventDefault();var i=r.pageX-t.offsetLeft,s=3*(i-e);t.scrollLeft=a-s}})),!0},a=function(){var t=document.querySelector(".slider");if(null===t)return!1;var e=$(".slider").width(),a=$(".slider .g-title").length,n=$(".slider .g-title").parent().width();if(e>=n)for(var r=Math.ceil(e/a),i=0;i<a;i++)$(".slider .g-title").eq(i).css("width",r);return!0};if(clearInterval(this.loadInterval),spinner("hide"),!this.isTableHighLightInited)var n=setInterval((function(){var a=e();a&&(clearInterval(n),t.isTableHighLightInited=!0)}),100);var r=setInterval((function(){var t=a();t&&clearInterval(r)}),100);setTimeout((function(){$("[data-toggle=tooltip]").tooltip()}),500)}}},mounted:function(){var t=this;localStorage.setItem("bhstry_init",!0),this.fetchTotals(),this.fetchFinances(),setInterval((function(){t.autorefresh&&t.fetchFinances(!0)}),1e4),$(".datepicker").datetimepicker({icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-arrow-up",down:"fa fa-arrow-down"},format:"MM/DD/YYYY"})},methods:{sortTrns:function(t){t===this.trnsSortField&&(this.trnsSortDir="asc"===this.trnsSortDir?"desc":"asc"),this.trnsSortField=t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MM/DD";return moment(t).format(e)},formatPrice:function(t){if(isNaN(t))return t;var e=(t/1).toFixed(2).replace(",",".");return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPhone:function(t){return t.replace(/[^0-9]/g,"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")},displayModalTransaction:function(t,e){if(null!==e)this.fetchAccountTransactions(t,e,e);else{var a=null,n=null;for(var r in this.finances.timelines)null===a&&(a=r),n=r;this.fetchAccountTransactions(t,a,n)}},setTotalsDate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.filter.filter_total_till="tilldate"===t?$("#filter_total_till").val():moment().format("MM/DD/YYYY"),localStorage.setItem("filter_total_till",this.filter.filter_total_till),this.fetchTotals(t)},fetchTotals:function(){var t=this;this.isLoading=!0,o.A.get("/reports/finance/get-totals?till=".concat(this.filter.filter_total_till)).then((function(e){t.totals=e.data.data,t.isLoading=!1,setTimeout((function(){(function(t){t((function(){t("[data-toggle=popover]").popover(),t("[data-toggle=popover-hover]").popover({trigger:"hover"}),t("[data-toggle=tooltip]").tooltip()}))})(jQuery)}),1e3)}))["catch"]((function(t){return console.error("/reports/finance/get-totals",new Date,t)}))},fetchFinances:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.filter.created_from=$("#filter_created_from").val(),this.filter.created_to=$("#filter_created_to").val(),this.isLoading=!0,o.A.get("/reports/finance/bhstry?from=".concat(this.filter.created_from,"&to=").concat(this.filter.created_to,"&query=").concat(this.searchMainTable)).then((function(e){t.finances=e.data,t.isLoading=!1}))["catch"]((function(){t.isLoading=!1,e||swal({type:"error",title:"Nothing found",text:"Nothing found. Please change conditions and try again.",showConfirmButton:!1,timer:2e3})}))},fetchAccountTransactions:function(t,e){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null!==t?t:"";this.isLoading=!0,o.A.get("/reports/finance/getAccountTransactions?uid=".concat(r,"&date_from=").concat(e,"&date_to=").concat(n,"&query=").concat(this.searchMainTable)).then((function(t){a.transactions=t.data,a.isLoading=!1,a.showModalTransactions||(a.showModalTransactions=!0)}))["catch"]((function(t){return console.error("/reports/finance/getAccountTransactions",new Date,t)}))},filterChanged:function(t){this.filter.created_from=$("#filter_created_from").val(),this.filter.created_to=$("#filter_created_to").val(),localStorage.setItem("finance_created_from",this.filter.created_from),localStorage.setItem("finance_created_to",this.filter.created_to),this.fetchFinances()},switchAutoRefresh:function(t){this.autorefresh=t},closeModal:function(){this.showModalTransactions=!1,this.$emit("close")}}},d=c;var u=a(81656),f=(0,u.A)(d,n,r,!1,null,null,null);const h=f.exports},15178:(t,e,a)=>{a.r(e),a.d(e,{default:()=>h});var n=function(){var t,e,a,n=this,r=n._self._c;n._self._setupProxy;return r("div",[r("div",{staticClass:"panel-body"},[r("h4",{staticStyle:{margin:"20px 0"}},[n._v(" Filters ")]),n.reportError?r("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[n._v(" "+n._s(n.reportError)+" "),r("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button",disabled:n.load},on:{click:function(t){return n.reloadReport()}}},[n._v(" Retry ")])]):n._e(),r("div",{staticClass:"filter"},[r("v-row",[r("v-col",[r("c-date-picker",{attrs:{date:n.localFrom,label:n.$t("invoice.report-page.filter.from"),outlined:""},on:{"update:date":function(t){n.localFrom=t}}})],1),r("v-col",[r("c-date-picker",{attrs:{label:n.$t("invoice.report-page.filter.to"),date:n.localTo,outlined:""},on:{"update:date":function(t){n.localTo=t}}})],1),r("v-col",[r("rx-select-input",{attrs:{label:n.$t("invoice.report-page.filter.per-page"),variants:{25:25,50:50,75:75}},model:{value:n.localPerPage,callback:function(t){n.localPerPage=t},expression:"localPerPage"}})],1)],1),r("v-col",[r("user-selector",{attrs:{user:n.localClient,label:n.$t("invoice.report-page.filter.client"),"prepend-inner-icon":"mdi-database-search","hide-details":"",outlined:""},on:{"update:user":function(t){n.localClient=t}}})],1)],1),n.load?r("v-progress-linear",{attrs:{indeterminate:"",color:"cyan"}}):n._e(),r("div",{staticStyle:{display:"flex","flex-direction":"row"}},[(null===(t=n.items)||void 0===t?void 0:t.length)>0?r("div",{staticClass:"table100 var1 left-table-frame",staticStyle:{width:"260px",display:"inline-block","vertical-align":"top"}},[r("table",{staticClass:"finance-table table nowrap table-bordered table-titles",attrs:{"data-vertable":"ver1"}},[n._m(0),r("tbody",n._l(n.items,(function(t,e){return r("tr",{key:e,staticClass:"row100"},[r("td",{class:"column-highlighed column100 row"+e,attrs:{"data-row":"row"+e}},[r("div",{staticClass:"column-highligh l-regular g-revenue"},[r("div",{staticClass:"table-iteration"},[r("code",[n._v(n._s(e+1))]),n._v(" "+n._s(t.business_name)+" ")])])])])})),0),n._m(1)])]):n._e(),(null===(e=n.items)||void 0===e?void 0:e.length)>0?r("div",{staticClass:"table100 ver1 disable-select middle-table-frame",staticStyle:{display:"inline-block",width:"calc(100% - 360px)","vertical-align":"top"}},[r("table",{staticClass:"finance-table table nowrap table-bordered table-titles slider table-responsive",attrs:{"data-vertable":"ver1"}},[r("tbody",n._l(n.items,(function(t,e){return r("tr",{key:e,staticClass:"row100"},n._l(t.orders,(function(t){var e=t.orders,a=t.date;return r("td",{key:a,staticClass:"column-highlighed column100 l-regular"},[r("div",{staticClass:"column-highligh l-regular g-paid"},[n._v(" "+n._s(n.formatPrice(n.getOrdersPrce(e)))+" ")])])})),0)})),0),r("thead",{staticClass:"thead-default"},[r("tr",n._l(n.items[0].orders,(function(t){var e=t.date;return r("th",{key:"date-".concat(e),staticClass:"g-title",staticStyle:{"min-width":"80px"}},[n._v(" "+n._s(n.formatDate(e))+" ")])})),0)]),r("tfoot",{staticClass:"thead-default"},[r("tr",n._l(n.items[0].orders,(function(t){var e=t.date;return r("th",{key:e,staticClass:"g-total"},[n._v(" "+n._s(n.formatPrice(n.getOrdersPriceByDate(e)))+" ")])})),0)])])]):n._e(),(null===(a=n.items)||void 0===a?void 0:a.length)>0?r("div",{staticClass:"tabble100 ver1 float-right right-table-frame",staticStyle:{width:"100px",display:"inline-block","vertical-align":"top"}},[r("table",{staticClass:"finance-table table nowrap table-bordered table-titles table-responsive",attrs:{"data-vertable":"ver1"}},[n._m(2),r("tbody",n._l(n.items,(function(t,e){return r("tr",{key:e,staticClass:"row100"},[r("td",{class:"column-highlighed column100 column109 row"+e,attrs:{"data-row":"row"+e}},[r("div",{staticClass:"column-highligh g-paid"},[n._v(" "+n._s(n.formatPrice(n.getOrdersPriceByClient(t)))+" ")])])])})),0),r("tfoot",{staticClass:"thead-default"},[r("tr",[r("th",{staticClass:"g-total"},[n._v(" "+n._s(n.formatPrice(n.getTotalPrice()))+" ")])])])])]):n._e()])],1),n.total?r("div",{staticClass:"pagination"},[r("div",{staticClass:"text-center"},[r("v-pagination",{attrs:{length:Math.ceil(n.total/n.perPage)},model:{value:n.localPage,callback:function(t){n.localPage=t},expression:"localPage"}})],1)]):n._e()])},r=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("thead",{staticClass:"thead-default"},[e("tr",[e("th",{staticClass:"g-title"},[t._v(" Title ")])])])},function(){var t=this,e=t._self._c;t._self._setupProxy;return e("tfoot",{staticClass:"thead-default"},[e("tr",[e("th",{staticClass:"g-total"},[t._v(" Total ")])])])},function(){var t=this,e=t._self._c;t._self._setupProxy;return e("thead",{staticClass:"thead-default"},[e("tr",[e("th",{staticClass:"g-title"},[t._v(" Total ")])])])}],i=a(7180),s=(a(76918),a(2008),a(50113),a(72712),a(23288),a(9868),a(26099),a(27495),a(38781),a(47764),a(25440),a(98992),a(54520),a(72577),a(8872),a(62953),a(76031),a(62893)),o=a(95353),l={components:{"user-selector":(0,s.defineAsyncComponent)((function(){return Promise.all([a.e(8307),a.e(7998),a.e(4631),a.e(3652),a.e(7336),a.e(9194),a.e(8249),a.e(164),a.e(5494),a.e(2811),a.e(2826),a.e(5282),a.e(6225),a.e(1175),a.e(6593),a.e(9466),a.e(2010),a.e(6882),a.e(4376),a.e(8310),a.e(9060),a.e(4089),a.e(7410)]).then(a.bind(a,97435))})),"c-date-picker":(0,s.defineAsyncComponent)((function(){return Promise.all([a.e(8307),a.e(7998),a.e(4631),a.e(3652),a.e(7336),a.e(9194),a.e(8249),a.e(164),a.e(5494),a.e(2811),a.e(2826),a.e(5282),a.e(6225),a.e(1175),a.e(6593),a.e(9466),a.e(2010),a.e(6882),a.e(4376),a.e(8310),a.e(9060),a.e(4089),a.e(7410)]).then(a.bind(a,22263))}))},data:function(){return{localFrom:null,localTo:null,localClient:null,localPerPage:null,localPage:null}},computed:(0,i.A)({},(0,o.L8)({load:"Finances/CarrierRevenue/load",reportError:"Finances/CarrierRevenue/error",page:"Finances/CarrierRevenue/page",perPage:"Finances/CarrierRevenue/perPage",total:"Finances/CarrierRevenue/total",items:"Finances/CarrierRevenue/paginatedItems",from:"Finances/CarrierRevenue/from",to:"Finances/CarrierRevenue/to",client:"Finances/CarrierRevenue/client"}
1)),mounted:function(){this.localFrom=this.from,this.localTo=this.to,this.localClient=this.client,this.localPerPage=this.perPage,this.localPage=this.page,this.reloadReport()},methods:(0,i.A)((0,i.A)({},(0,o.i0)({change:"Finances/CarrierRevenue/change"})),{},{reloadReport:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.change(t)["catch"]((function(){}))},formatDate:function(t){return moment(t).format("MM/DD/YYYY")},getOrdersPrce:function(t){return t.reduce((function(t,e){return t+(e.amount-e.original)}),0)},getOrdersPriceByDate:function(t){return this.items.reduce((function(e,a){return e+a.orders.filter((function(e){var a=e.date;return a===t})).reduce((function(t,e){var a=e.orders;return t+a.reduce((function(t,e){return t+(e.amount-e.original)}),0)}),0)}),0)},getOrdersPriceByClient:function(t){return t.orders.reduce((function(t,e){var a=e.orders;return t+a.reduce((function(t,e){return t+(e.amount-e.original)}),0)}),0)},getTotalPrice:function(){return this.items.reduce((function(t,e){return t+e.orders.reduce((function(t,e){var a=e.orders;return t+a.reduce((function(t,e){return t+(e.amount-e.original)}),0)}),0)}),0)},formatPrice:function(t){if(isNaN(t))return t;var e=(t/1).toFixed(2).replace(",",".");return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},initTable:function(){if($(".column100").length<1)return!1;$(".column100").on("mouseover",(function(){var t=$(this).parent().parent().parent(),e=$(this).parent().parent(),a="".concat($(t).data("vertable")),n="".concat($(this).data("column")),r="".concat($(this).data("row"));"undefined"!==typeof n&&$(e).find(".".concat(n)).addClass("hov-column-".concat(a)),$(".table-titles").find(".".concat(r)).addClass("hov-column-".concat(a))})),$(".column100").on("mouseout",(function(){var t=$(this).parent().parent().parent(),e=$(this).parent().parent(),a="".concat($(t).data("vertable")),n="".concat($(this).data("column")),r="".concat($(this).data("row"));"undefined"!==typeof n&&$(e).find(".".concat(n)).removeClass("hov-column-".concat(a)),$(".table-titles").find(".".concat(r)).removeClass("hov-column-".concat(a))}));var t=document.querySelector(".slider");if(null===t)return!1;var e,a,n=!1;return t.addEventListener("mousedown",(function(r){n=!0,t.classList.add("active"),e=r.pageX-t.offsetLeft,a=t.scrollLeft})),t.addEventListener("mouseleave",(function(){n=!1,t.classList.remove("active")})),t.addEventListener("mouseup",(function(){n=!1,t.classList.remove("active")})),t.addEventListener("mousemove",(function(r){if(n){r.preventDefault();var i=r.pageX-t.offsetLeft,s=3*(i-e);t.scrollLeft=a-s}})),!0}}),watch:{page:function(t){this.localPage=t},load:function(t){var e=this;t&&setTimeout((function(){return e.initTable()}),1e3)},localFrom:function(t){t!==this.from&&this.reloadReport({from:t})},localTo:function(t){t!==this.to&&this.reloadReport({to:t})},localClient:function(t){t!==this.client&&this.reloadReport({client:t})},localPerPage:function(t){t!==this.perPage&&this.reloadReport({per_page:t})},localPage:function(t){t!==this.page&&this.reloadReport({page:t})}}};const c=l,d=c;var u=a(81656),f=(0,u.A)(d,n,r,!1,null,null,null);const h=f.exports}}]);
2//# sourceMappingURL=finances-92373ae1.da7bbddd.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.