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EAAYjE,YAAYgE,EAAWhE,QAAU,IFiBI,IAC1E,QAAoB,IAAK,CACvB4C,KAAM,IACNjF,MAAO,mBACP6E,QAAStC,EAAO,KAAOA,EAAO,IAAK,oBAAgBuC,GAAiBkD,EAAS,IAAK,CAAC,aACnFxH,SAAU8F,EAAYjE,QAAUgE,EAAWhE,OAAe,MACzD,EACD,QAAaU,EAAA,EAAM,CAAEA,KAAM,gBAC1B,EAAGuC,WAIZ,QAAoB,IAAI,IAC5B,QAAoB,MAAOC,EAAa,CACpCmB,EAAWrE,QAUR,WAAc,QAAoB,MAAOqD,EAAa,EACrD,QAAa,IAAO,CAAEpC,QAAS,iCAVhC,WAAc,QAAoB,MAAOkC,EAAa,EACrD,QAAoB,SAAU,CAC5BxF,MAAO,qBACP0C,GAAIf,EACJnI,MAAOgN,EAAYnE,MACnB0E,OAAQR,EAAalE,MACrBI,MAAO,CAAC,WAAa,SACpB,KAAM,EAAGgD,UAQxB,G","sources":["webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/cw.pages.documentHistory.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 moment from \"moment\";\r\nimport \"../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 documentHistory: {\r\n args: null,\r\n $dtTarget: null,\r\n dataTable: null,\r\n url: \"/account/document\",\r\n title: \"Document 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 { title: \"Document Type\", data: \"DocumentType\" },\r\n { title: \"Document Number\", data: \"DocumentNumber\", className: \"td-center\" },\r\n {\r\n title: \"Document Date\",\r\n filter_type: \"range_date\",\r\n className: \"td-center\",\r\n data: function (row, type, val, meta) {\r\n return cw.utility.tableSortByDate(row.DocumentDate, type, \"L\");\r\n },\r\n },\r\n { title: \"Account Number\", data: \"RemoteAccountNumber\", className: \"td-center\" },\r\n {\r\n title: \"\",\r\n sortable: false,\r\n className: \"td-center\",\r\n data: function (row, type, val, meta) {\r\n return (\r\n ' View'\r\n );\r\n },\r\n },\r\n ];\r\n cw.loadingIndicator.start();\r\n if (args.$viewport) {\r\n cw.webservices.getJson(\r\n \"S1AccountManager/get-all-related-documents-by-s1-account\",\r\n args.selectedS1AccountId,\r\n function (billingAccountList) {\r\n args.billingAccountList = billingAccountList;\r\n var documentType = cw.pages.documentHistory.getDistinctBillingAccountListValue(\r\n billingAccountList,\r\n \"document\"\r\n );\r\n var billingAccount = cw.pages.documentHistory.getDistinctBillingAccountListValue(\r\n billingAccountList,\r\n \"account\"\r\n );\r\n\r\n cw.templating.GetRenderedTemplateHTML(\r\n \"CwDocumentHistory.html\",\r\n cw.appEnum.TemplateType.CwWidget,\r\n {\r\n breadCrumbs: cw.pages.dashboard.getBreadcrumbMarkup([\r\n { Title: \"Account Summary\", url: \"/account\" },\r\n { Title: \"Document History\", url: \"/account/document\", isActive: true },\r\n ]),\r\n DocumentListing: documentType,\r\n BillingAccountListing: billingAccount,\r\n },\r\n function (renderedTmpl) {\r\n cw.loadingIndicator.stop();\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 } else {\r\n cw.loadingIndicator.stop();\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 [\"document-history-table\"]\r\n )\r\n );\r\n self.$dtTarget = $(\".document-history-table\");\r\n self.$dtTarget.append($tblMrkup);\r\n\r\n var searchObj = { DocumentType: [], BillingAccount: [] };\r\n\r\n var tableOptions = {\r\n data: args.billingAccountList,\r\n lengthMenu: [\r\n [15, 25, 50, -1],\r\n [15, 25, 50, \"All\"],\r\n ],\r\n buttons: [\"copy\", \"csv\", \"print\"],\r\n iDisplayLength: 25,\r\n tableTools: [],\r\n autoWidth: true,\r\n responsive: true,\r\n ordering: true,\r\n draw: true,\r\n adjust: true,\r\n dom: 'lT<\"dt-head-right\"<\"export-btn-wrap\"B>>rtip',\r\n deferRender: true,\r\n order: [\r\n [2, \"desc\"],\r\n [0, \"asc\"],\r\n ],\r\n columns: tblColumns,\r\n };\r\n self.dataTable = $(\"table.document-history-table\").DataTable(tableOptions);\r\n\r\n $(\".document-type-filter\").each(function () {\r\n $(this)\r\n .removeClass(\"hidden\")\r\n .chosen({\r\n width: \"100%\",\r\n \".chosen-select\": {},\r\n \".chosen-select-deselect\": { allow_single_deselect: false },\r\n \".chosen-select-no-single\": { disable_search_threshold: 10 },\r\n \".chosen-select-no-results\": { no_results_text: \"Nothing found.\" },\r\n });\r\n });\r\n $(\".billing-account-filter\").each(function () {\r\n $(this)\r\n .removeClass(\"hidden\")\r\n .chosen({\r\n width: \"100%\",\r\n \".chosen-select\": {},\r\n \".chosen-select-deselect\": { allow_single_deselect: false },\r\n \".chosen-select-no-single\": { disable_search_threshold: 10 },\r\n \".chosen-select-no-results\": { no_results_text: \"Nothing found.\" },\r\n });\r\n });\r\n\r\n $(\".document-filter-button\").off(\"click\");\r\n $(\".document-filter-button\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n var docuDate = args.billingAccountList.DocumentDate;\r\n var docuType = $(\".document-type-filter\").val();\r\n var billAcct = $(\".billing-account-filter\").val();\r\n searchObj.DocumentType = [];\r\n searchObj.BillingAccount = [];\r\n\r\n if (docuType) {\r\n docuType.map(function (x) {\r\n searchObj.DocumentType.push({ document: x });\r\n });\r\n }\r\n\r\n if (billAcct) {\r\n billAcct.map(function (x) {\r\n searchObj.BillingAccount.push({ account: x });\r\n });\r\n }\r\n searchObj.DocumentFromDate = $(\".from-date-input\").val();\r\n searchObj.DocumentToDate = $(\".to-date-input\").val();\r\n searchObj.DocumentNumber = $(\"#document-number-filter\").val();\r\n\r\n cw.pages.documentHistory.filterDataTable(searchObj);\r\n });\r\n\r\n $(\".filter\").keypress(function (e) {\r\n if (e.which === 13) {\r\n //Enter key\r\n $(\".document-filter-button\").click();\r\n }\r\n });\r\n\r\n $(\".document-filter-reset-button\").off(\"click\");\r\n $(\".document-filter-reset-button\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n cw.pages.documentHistory.resetFilterDataTable();\r\n });\r\n\r\n $(\"#document-date-from-datepicker\").datetimepicker({ format: \"L\" });\r\n $(\"#document-date-to-datepicker\").datetimepicker({ format: \"L\" });\r\n\r\n $(\"#document-date-to-datepicker input, #document-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 $(\"table.document-history-table\").on(\"click\", \".view-document\", function (e) {\r\n e.preventDefault();\r\n var $this = $(this);\r\n var docId = $this.data(\"doc-id\");\r\n var docNum = $this.data(\"doc-num\");\r\n if (docId) {\r\n if (window.innerWidth <= 991) {\r\n window.open(\"/gen-asset/document-viewer/\" + docId);\r\n } else {\r\n cw.loadingIndicator.start();\r\n var row = cw.utility.getDataTableRowData(self.dataTable, docId, \"DocumentId\");\r\n if (row) {\r\n cw.modal.Open({\r\n data: { docId: docId, docNum: docNum },\r\n title: \"Document # \" + docNum,\r\n modalBody: $('
'),\r\n size: BootstrapDialog.SIZE_WIDE,\r\n successCallback: function (modalRef) {\r\n modalRef.close();\r\n },\r\n onShownCallback: function (modalRef) {\r\n var doc = modalRef.getData(\"docId\");\r\n\r\n createNonRoutedApp(pdfViewer, {\r\n pdfUrl: \"/gen-asset/document-viewer/\" + doc,\r\n allowDownload: true,\r\n onPdfLoaded() {\r\n cw.loadingIndicator.stop();\r\n },\r\n onPdfLoadFailed() {\r\n cw.loadingIndicator.stop();\r\n }\r\n }).mount(\"#pdf-target\");\r\n },\r\n });\r\n }\r\n }\r\n }\r\n });\r\n },\r\n getDistinctBillingAccountListValue: function (billingAccountList, funcValue) {\r\n var documentType = [],\r\n billingAccount = [],\r\n flags = [],\r\n arrayLen = billingAccountList.length,\r\n i = 0;\r\n if (funcValue === \"document\") {\r\n for (i; i < arrayLen; i++) {\r\n if (flags[billingAccountList[i].DocumentType]) continue;\r\n flags[billingAccountList[i].DocumentType] = true;\r\n documentType.push(billingAccountList[i].DocumentType);\r\n }\r\n return documentType;\r\n } else if (funcValue === \"account\") {\r\n for (i; i < arrayLen; i++) {\r\n if (flags[billingAccountList[i].RemoteAccountNumber]) continue;\r\n flags[billingAccountList[i].RemoteAccountNumber] = true;\r\n billingAccount.push(billingAccountList[i].RemoteAccountNumber);\r\n }\r\n return billingAccount;\r\n }\r\n },\r\n\r\n resetFilterDataTable: function () {\r\n var self = this;\r\n $(\".date-error\").addClass(\"hidden\");\r\n $(\"#document-date-from-datepicker\").data(\"\");\r\n $(\".from-date-input\").val(\"\");\r\n $(\"#document-date-to-datepicker\").data(\"\");\r\n $(\".to-date-input\").val(\"\");\r\n $(\"#document-type-filter\").val(0);\r\n $(\"#document-number-filter\").val(\"\");\r\n $(\"#document-date-to-datepicker\").val(\"\");\r\n $(\"#document-date-from-datepicker\").val(\"\");\r\n $(\"#document-filter-account\").val(0);\r\n\r\n self.dataTable.search(\"\").columns().search(\"\").draw();\r\n\r\n var documentList = $(\".document-type-filter option\");\r\n for (var d = 0; d < documentList.length; d++) {\r\n $(documentList[d]).attr(\"selected\", false);\r\n $(\".document-type-filter\").trigger(\"chosen:updated\");\r\n }\r\n var accountList = $(\".billing-account-filter option\");\r\n for (var l = 0; l < accountList.length; l++) {\r\n $(accountList[l]).attr(\"selected\", false);\r\n $(\".billing-account-filter\").trigger(\"chosen:updated\");\r\n }\r\n\r\n $.fn.dataTable.ext.search.pop(); //need this to re-populate the search\r\n },\r\n\r\n filterDataTable: function (searchObj, resetFilter) {\r\n var self = this;\r\n var max = moment(searchObj.DocumentToDate);\r\n var min = moment(searchObj.DocumentFromDate);\r\n var docuType = searchObj.DocumentType.map(function (x) {\r\n return x;\r\n });\r\n var accountNum = searchObj.BillingAccount.map(function (x) {\r\n return x;\r\n });\r\n var docuNum = searchObj.DocumentNumber;\r\n var regex = \"\";\r\n\r\n if (!max.isValid()) {\r\n max = null;\r\n }\r\n if (!min.isValid()) {\r\n min = null;\r\n }\r\n\r\n if (max < min || (min !== null && max === null) || (min === null && max !== null)) {\r\n $(\".date-error\").removeClass(\"hidden\");\r\n $(\".date-error\").css(\"color\", \"red\");\r\n $(\".date-error\").css(\"position\", \"absolute\");\r\n } else {\r\n $.fn.dataTable.ext.search.push(function (settings, searchData, data, dataIndex) {\r\n var dd = moment(searchData[2]);\r\n if ((dd <= max && dd >= min) || (min === null && max === null)) {\r\n return true;\r\n }\r\n return false;\r\n });\r\n\r\n if (docuType.length > 0) {\r\n for (var i = 0; i < docuType.length; i++) {\r\n regex += docuType[i].document + \"|\";\r\n }\r\n regex = regex.slice(0, -1);\r\n $(\"table.document-history-table\").DataTable().columns(0).search(regex, true, false).draw();\r\n }\r\n\r\n if (accountNum.length > 0) {\r\n for (var j = 0; j < accountNum.length; j++) {\r\n regex += accountNum[j].account + \"|\";\r\n }\r\n regex = regex.slice(0, -1);\r\n $(\"table.document-history-table\").DataTable().columns(3).search(regex, true, false).draw();\r\n }\r\n\r\n self.dataTable.column(1).search(docuNum).draw();\r\n\r\n $.fn.dataTable.ext.search.pop();\r\n $(\".date-error\").addClass(\"hidden\");\r\n }\r\n },\r\n },\r\n },\r\n });\r\n})((window.cw = window.cw || {}), jQuery);\r\n","import * as dt from \"datatables.net-bs\";\r\nimport * as dtResponsive from \"datatables.net-responsive-bs\";\r\nimport * as dtBtnBs from \"datatables.net-buttons-bs\";\r\nimport * as dtBtnHtml5 from \"datatables.net-buttons/js/buttons.html5\";\r\nimport * as dtBtnHtmlPrnt from \"datatables.net-buttons/js/buttons.print\";\r\n\r\n//some overrides to customize datatables\r\n$.fn.dataTable.Buttons.defaults.dom.button.className = \"btn btn-sm btn-white\";\r\n$.fn.dataTable.ext.buttons.copyHtml5.text = function () {\r\n return '';\r\n};\r\n$.fn.dataTable.ext.buttons.csvHtml5.text = function () {\r\n return '';\r\n};\r\n$.fn.dataTable.ext.buttons.print.text = function () {\r\n return '';\r\n};\r\n\r\n(function (cw, $, undefined) {\r\n cw.dtTools = {\r\n /**\r\n * Creates html table markup\r\n *\r\n * @param {[string] | [any]} columns Table columns, can be a datatables.net.columns array\r\n *\r\n * @return {string}\r\n */\r\n getTableMarkup: function (columns, tableClasses) {\r\n return cw.utility.getTableMarkup(columns, tableClasses);\r\n },\r\n /**\r\n * Handles sorting a date column and display\r\n *\r\n * @return {any} expected by datatables.net column.data\r\n */\r\n tableSortByDate: function (date, sortType, displayFormat) {\r\n return cw.utility.tableSortByDate(date, sortType, displayFormat);\r\n },\r\n /**\r\n * Update's referenced datatable's row based on matchingColumnName(assuming a flat object as rowData)\r\n *\r\n * @return {void}\r\n */\r\n addUpdateDataTableListing: function (dataTable, newObject, matchingColumnName, redrawTable) {\r\n return cw.utility.addUpdateDataTableListing(dataTable, newObject, matchingColumnName, redrawTable);\r\n },\r\n /**\r\n * Delete referenced datatable's row based on matchingColumnName(assuming a flat object as rowData)\r\n *\r\n * @return {void}\r\n */\r\n deleteDataTableListing: function (dataTable, matchingKeyValue, matchingColumnName, redrawTable) {\r\n return cw.utility.deleteDataTableListing(dataTable, matchingKeyValue, matchingColumnName, redrawTable);\r\n },\r\n /**\r\n * Get's referenced datatable's row based on matchingColumnName(assuming a flat object as rowData)\r\n *\r\n * @return {void}\r\n */\r\n getDataTableRowData: function (dataTable, matchingKeyValue, matchingColumnName) {\r\n return cw.utility.getDataTableRowData(dataTable, matchingKeyValue, matchingColumnName);\r\n },\r\n /**\r\n * Get all rows from referenced datatable\r\n *\r\n * @return {void}\r\n */\r\n getDataTableAllRowData: function (dataTable) {\r\n return cw.utility.getDataTableAllRowData(dataTable);\r\n },\r\n /**\r\n * Returns the next row after the one passed in (based on the current sort of the table)\r\n *\r\n * @return {any}\r\n */\r\n getDataTableNextRowData: function (dataTable, matchingKeyValue, matchingColumnName) {\r\n return cw.utility.getDataTableNextRowData(dataTable, matchingKeyValue, matchingColumnName);\r\n },\r\n /**\r\n * Returns the previous row after the one passed in (based on the current sort of the table)\r\n *\r\n * @return {any}\r\n */\r\n getDataTablePreviousRowData: function (dataTable, matchingKeyValue, matchingColumnName) {\r\n return cw.utility.getDataTablePreviousRowData(dataTable, matchingKeyValue, matchingColumnName);\r\n },\r\n };\r\n})((window.cw = window.cw || {}), jQuery);\r\n","export enum AlertSeverity {\r\n Info = \"alert-info\",\r\n Warning = \"alert-warning\",\r\n Error = \"alert-error\",\r\n Success = \"alert-success\",\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, createVNode as _createVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = [\"for\"]\nconst _hoisted_2 = [\"id\", \"checked\", \"readonly\", \"disabled\"]\nconst _hoisted_3 = [\"innerHTML\"]\nconst _hoisted_4 = {\n key: 0,\n class: \"pl5\"\n}\nconst _hoisted_5 = [\"innerHTML\"]\n\nimport { computed, ref, watch, StyleValue } from \"vue\";\r\nimport Icon from \"@compUtility/icon.vue\";\r\nimport { trueFalseString, boxBool } from \"@utility/boolUtils\";\r\nimport { genComponentId } from \"@components/componentHelpers\";\r\n\r\ninterface Props {\r\n checked?: trueFalseString;\r\n disabled?: trueFalseString;\r\n readonly?: trueFalseString;\r\n label?: string;\r\n hover?: trueFalseString;\r\n variant?: \"small\" | \"normal\";\r\n inputClass?: string | string[];\r\n alignLabel?: \"start\" | \"center\" | \"end\";\r\n loading?: trueFalseString;\r\n loadingText?: string;\r\n labelClass?: string;\r\n labelStyle?: StyleValue;\r\n}\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'checkbox',\n props: {\n checked: { type: [Boolean, String], default: false },\n disabled: { type: [Boolean, String], default: false },\n readonly: { type: [Boolean, String], default: false },\n label: { default: \" \" },\n hover: { type: [Boolean, String] },\n variant: { default: \"normal\" },\n inputClass: { default: \"\" },\n alignLabel: { default: \"start\" },\n loading: { type: [Boolean, String], default: false },\n loadingText: {},\n labelClass: { default: undefined },\n labelStyle: { type: [Boolean, null, String, Object, Array], default: undefined }\n },\n emits: [\"checked\", \"unchecked\", \"updated\", \"input\"],\n setup(__props: any, { emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst emit = __emit;\r\n\r\nconst componentId = genComponentId(\"cbx\");\r\nconst isChecked = ref