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6E,QAASvC,EAAO,KAAOA,EAAO,IAAK,oBAAgBwC,GAAiBiD,GAAU,IAAK,CAAC,aACpFvH,SAAgC,IAAtB6F,EAAYjE,OAAqB,MAC1C,EACD,QAAaS,EAAA,EAAM,CAAEA,KAAM,iBAC1B,EAAGsC,IACN,QAAoB,OAAQC,GAAa,qBEjB1B,MAApBgB,EAAWhE,MAAgB,GAAGiE,EAAYjE,YAAYgE,EAAWhE,QAAU,IFiBI,IAC1E,QAAoB,IAAK,CACvB6C,KAAM,IACNjF,MAAO,mBACP6E,QAASvC,EAAO,KAAOA,EAAO,IAAK,oBAAgBwC,GAAiBiD,EAAS,IAAK,CAAC,aACnFvH,SAAU6F,EAAYjE,QAAUgE,EAAWhE,OAAe,MACzD,EACD,QAAaS,EAAA,EAAM,CAAEA,KAAM,gBAC1B,EAAGwC,WAIZ,QAAoB,IAAI,IAC5B,QAAoB,MAAOC,EAAa,CACpCmB,EAAWrE,QAUR,WAAc,QAAoB,MAAOqD,EAAa,EACrD,QAAa,IAAO,CAAErC,QAAS,iCAVhC,WAAc,QAAoB,MAAOmC,EAAa,EACrD,QAAoB,SAAU,CAC5BvF,MAAO,qBACPwC,GAAId,EACJxG,MAAOqL,EAAYnE,MACnB0E,OAAQR,EAAalE,MACrBzH,MAAO,CAAC,WAAa,SACpB,KAAM,EAAG6K,UAQxB,G","sources":["webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/cw.pages.deliveryHistory.js","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/cw.dtTools.js","webpack://shipley-du-lib/./common/js/du/appEnum/AlertSeverity.ts","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue?be2d","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue","webpack://shipley-du-lib/./common/js/du/components/form/checkbox.vue?f028","webpack://shipley-du-lib/./common/js/du/interfaces/utility/IClickableAlertMessage.ts","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue?8475","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue?5e44","webpack://shipley-du-lib/./common/js/du/components/utility/alert.vue","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue?5d6e","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue?9576","webpack://shipley-du-lib/./common/js/du/components/utility/pdfViewer.vue"],"sourcesContent":["import \"../lib/bootstrap-datetimepicker/bootstrap-datetime-4.7.14\";\r\nimport \"chosen-js\";\r\nimport * as BootstrapDialog from \"bootstrap3-dialog\";\r\nimport \"../cw/lib/cw.dtTools\";\r\n\r\nimport { createNonRoutedApp } from \"@du/AppStartup\";\r\nimport pdfViewer from \"@components/utility/pdfViewer\";\r\n\r\n(function (cw, $) {\r\n \"use strict\";\r\n $.extend(true, cw, {\r\n pages: {\r\n deliveryHistory: {\r\n args: null,\r\n $dtTarget: null,\r\n dataTable: null,\r\n url: \"/account/delivery-history\",\r\n title: \"Delivery History\",\r\n init: function (args) {\r\n this.args = args;\r\n this.bindInteractions(args);\r\n },\r\n bindInteractions: function (args) {\r\n var self = this;\r\n var tblColumns = [\r\n {\r\n // 0\r\n title: \"Date\",\r\n data: function (row, type, val, meta) {\r\n return cw.utility.tableSortByDate(row.DeliveryDate, type, \"MM/DD/YYYY h:mm a\");\r\n },\r\n },\r\n {\r\n // 1\r\n title: \"Status\",\r\n data: function (row, type, val, meta) {\r\n switch (row.DeliveryScheduleDescription) {\r\n case \"Created\":\r\n return \"In Progress\";\r\n case \"Completed\":\r\n return \"Delivered\";\r\n default:\r\n return row.DeliveryScheduleDescription;\r\n }\r\n },\r\n },\r\n {\r\n // 2\r\n title: \"Truck #\",\r\n data: function (row, type, val, meta) {\r\n if (parseInt(row.TruckNumber) > 0) {\r\n return row.TruckNumber;\r\n } else {\r\n return \"--\";\r\n }\r\n },\r\n },\r\n {\r\n // 3\r\n title: \"Driver\",\r\n data: function (row, type, val, meta) {\r\n if (typeof row.DriverName !== \"undefined\" || row.DriverName !== \"\") {\r\n return row.DriverNameFormatted;\r\n } else {\r\n return \"--\";\r\n }\r\n },\r\n },\r\n {\r\n // 4\r\n title: \"Delivery Location\",\r\n data: function (row, type, val, meta) {\r\n return (\r\n row.DeliveryPointStreetAddress1 +\r\n \", \" +\r\n row.DeliveryPointCity +\r\n \" \" +\r\n row.DeliveryPointState +\r\n \" \" +\r\n row.DeliveryPointZip\r\n );\r\n },\r\n },\r\n {\r\n // 5\r\n title: \"Product\",\r\n data: function (row, type, val, meta) {\r\n if (\r\n typeof row.ProductDescription !== \"undefined\" &&\r\n row.ProductDescription !== \"\" &&\r\n row.ProductDescription !== \"Unknown\"\r\n ) {\r\n return row.ProductDescription;\r\n } else {\r\n return \"--\";\r\n }\r\n },\r\n },\r\n {\r\n // 6\r\n title: \"Gallons\",\r\n data: \"BilledGallons\",\r\n },\r\n {\r\n // 7\r\n title: \"Price\",\r\n data: function (row, type, val, meta) {\r\n if (row.PricePerGallonFormatted) {\r\n return \"$\" + row.PricePerGallonFormatted;\r\n } else {\r\n return \"

See details

\";\r\n }\r\n },\r\n },\r\n {\r\n // 8\r\n title: \"\",\r\n sortable: false,\r\n className: \"td-center\",\r\n data: function (row, type, val, meta) {\r\n var isCargas = function (row) {\r\n var dpMap = row.DeliveryPointMap;\r\n var count = 0;\r\n var dp = dpMap.forEach(function (dp) {\r\n if (\r\n dp.RemoteSystemId === cw.appEnum.S1RemoteSystem.Cargas &&\r\n dp.RemoteSystemDeliveryPointId === row.DeliveryPoint\r\n ) {\r\n count++;\r\n }\r\n });\r\n return count > 0;\r\n };\r\n\r\n jQuery.inArray(row.DeliveryPoint, row.DeliveryPointMap) > -1 &&\r\n jQuery.inArray(cw.appEnum.S1RemoteSystem.Cargas, row.DeliveryPointMap) > -1;\r\n if (row.DeliveryTicketDocumentId) {\r\n return (\r\n ' View'\r\n );\r\n } else if (row.TicketNumber < 1 && isCargas(row)) {\r\n return \"\";\r\n } else {\r\n var deliveryPointMap = row.DeliveryPointMap;\r\n return (\r\n ' View'\r\n );\r\n }\r\n },\r\n },\r\n ];\r\n\r\n if (window.history) {\r\n window.history.pushState({ title: self.title, url: self.url }, self.title, self.url);\r\n }\r\n\r\n cw.loadingIndicator.start();\r\n\r\n var req = {};\r\n\r\n if (!args.deliveryPointMap) {\r\n $.extend(req, { S1AccountId: args.selectedS1AccountId });\r\n } else {\r\n $.extend(req, args.deliveryPointMap, { S1AccountId: args.selectedS1AccountId });\r\n }\r\n\r\n self.selectedS1AccountId = args.selectedS1AccountId;\r\n self.args.selectedS1AccountId = args.selectedS1AccountId;\r\n if (args.$viewport) {\r\n cw.webservices.getJson(\r\n \"S1AccountManager/get-dashboard-s1-account/\" + args.selectedS1AccountId,\r\n self.url,\r\n function (newBillAccount) {\r\n if (newBillAccount) {\r\n var productFilterList = [];\r\n var pIds = []; //hold the Ids to make it easier to exclude dups\r\n newBillAccount.ServiceLocations.forEach(function (sl) {\r\n if (sl.ProductRows) {\r\n sl.ProductRows.forEach(function (pr) {\r\n pr.forEach(function (p) {\r\n if (!pIds.includes(p.ProductCodeId)) {\r\n pIds.push(p.ProductCodeId);\r\n productFilterList.push({\r\n ProductCode: p.ProductCodeId,\r\n ProductDescription: p.ProductName,\r\n });\r\n }\r\n });\r\n });\r\n }\r\n });\r\n\r\n newBillAccount.ServiceLocations.forEach(function (sl) {\r\n sl.RemoteSystemMap = JSON.stringify(sl.RemoteSystemMap);\r\n });\r\n\r\n cw.templating.GetRenderedTemplateHTML(\r\n \"DeliveryHistory.html\",\r\n cw.appEnum.TemplateType.CwWidget,\r\n {\r\n breadCrumbs: cw.pages.dashboard.getBreadcrumbMarkup([\r\n { Title: cw.pages.dashboard.title, url: cw.pages.dashboard.url },\r\n { Title: self.title, url: self.url, isActive: true },\r\n ]),\r\n serviceLocations: newBillAccount.ServiceLocations,\r\n products: productFilterList,\r\n },\r\n function (renderedTmpl) {\r\n args.$viewport.empty();\r\n args.$viewport.append(renderedTmpl);\r\n $(\"html, body\").scrollTop(0);\r\n self.postHTMLInit(args, tblColumns);\r\n }\r\n );\r\n }\r\n }\r\n );\r\n } else {\r\n cw.pages.dashboard.bindApplicationEvents(args);\r\n self.postHTMLInit(args, tblColumns);\r\n }\r\n },\r\n postHTMLInit: function (args, tblColumns) {\r\n var self = this;\r\n var $tblMrkup = $(\r\n cw.utility.getTableMarkup(\r\n tblColumns.map(function (x) {\r\n return x.title;\r\n }),\r\n [\"delivery-history-table\"]\r\n )\r\n );\r\n self.$dtTarget = $(\".delivery-history-table-target\");\r\n self.$dtTarget.append($tblMrkup);\r\n\r\n $(\"#delivery-date-to-datepicker\").datetimepicker({ format: \"L\" });\r\n $(\"#delivery-date-from-datepicker\").datetimepicker({ format: \"L\" });\r\n\r\n $(\"#delivery-date-to-datepicker input, #delivery-date-from-datepicker input\").on(\r\n \"focus\",\r\n function (e) {\r\n $(this).closest(\"div\").data(\"DateTimePicker\").show();\r\n }\r\n );\r\n\r\n $(\".service-location-filter\").removeClass(\"hidden\").chosen();\r\n\r\n $(\".product-filter\").removeClass(\"hidden\").chosen();\r\n\r\n var i;\r\n if (args.deliveryPointMap) {\r\n var remoteSystemDeliveryPointId = args.deliveryPointMap.RemoteSystemDeliveryPointId;\r\n var remoteSystemId = args.deliveryPointMap.RemoteSystemId;\r\n var remoteSystemAccountId = args.deliveryPointMap.RemoteSystemAccountId;\r\n var remoteSystemAccountNumber = args.deliveryPointMap.RemoteSystemAccountNumber;\r\n\r\n var locationList = $(\".service-location-filter option\");\r\n for (i = 0; i < locationList.length; i++) {\r\n var remoteValueMap = $(locationList[i]).data(\"remoteValueMap\");\r\n\r\n if (\r\n remoteValueMap[0].RemoteSystemDeliveryPointId === remoteSystemDeliveryPointId &&\r\n remoteValueMap[0].RemoteSystemId === remoteSystemId &&\r\n remoteValueMap[0].RemoteSystemAccountId === remoteSystemAccountId &&\r\n remoteValueMap[0].RemoteSystemAccountNumber === remoteSystemAccountNumber\r\n ) {\r\n $(locationList[i]).attr(\"selected\", true);\r\n $(\".service-location-filter\").trigger(\"chosen:updated\");\r\n //self.updateTableFilter([$(locationList[i]).val()],false);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (args.productCode) {\r\n var $prodOpt = $('.product-filter option[value=\"' + args.productCode + '\"]');\r\n $prodOpt.attr(\"selected\", true);\r\n $(\".product-filter\").trigger(\"chosen:updated\");\r\n }\r\n\r\n var tableOptions = {\r\n lengthMenu: [\r\n [10, 25, 50, 1000, -1],\r\n [10, 25, 50, 1000, \"All\"],\r\n ],\r\n iDisplayLength: 25,\r\n responsive: true,\r\n deferRender: true,\r\n processing: true,\r\n serverSide: true,\r\n ajax: function (data, callback, settings) {\r\n var d = $.extend({}, data, self.getTableFilter());\r\n cw.webservices.getJson(\r\n \"S1AccountManager/delivery-history-search/\" + args.selectedS1AccountId,\r\n d,\r\n function (rtnData) {\r\n cw.pages.deliveryHistory.args.deliveryHistory = rtnData.data;\r\n callback(rtnData);\r\n }\r\n );\r\n },\r\n buttons: [\r\n {\r\n extend: \"copy\",\r\n },\r\n //{\r\n //\textend: 'csv',\r\n //\tfilename: 'DeliveryHistory',\r\n //\texportOptions: {\r\n //\t\tcolumns: [9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28]\r\n //\t}\r\n //},\r\n {\r\n text: ' ',\r\n action: function (e, dt, node, config) {\r\n var exportFilter = self.getTableFilter();\r\n\r\n cw.webservices.getJson(\r\n \"S1AccountManager/get-delivery-history-export-token/\" + args.selectedS1AccountId,\r\n exportFilter,\r\n function (exportToken) {\r\n if (exportToken !== \"\") {\r\n $(\"