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AAGc,UAQxB","sources":["webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/cw.pages.dashboard.js","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/cw.dtTools.js","webpack://shipley-du-lib/./node_modules/js-cookie/src/js.cookie.js","webpack://shipley-du-lib/./common/js/du/utility/storageHelpers.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/Dashboard.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/InvoiceHistory.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/PaymentHistory.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/AccountSettings.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/DocumentHistory.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/PendingDeliveries.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/Rewards.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/BudgetManager.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/pageInstances/DeliveryHistory.ts","webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/pageManagement/composables/pageManager.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/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 Mustache from \"mustache\";\r\nimport \"../lib/bootstrap-datetimepicker/bootstrap-datetime-4.7.14\";\r\nimport \"flot\";\r\nimport \"flot/jquery.flot.time\";\r\nimport \"flot/jquery.flot.stack\";\r\nimport \"flot/jquery.flot.categories\";\r\nimport \"flot/jquery.flot.pie\";\r\nimport \"jquery.flot.tooltip\";\r\nimport \"chosen-js\";\r\nimport \"bootstrap/dist/js/bootstrap\";\r\nimport * as Cookies from \"js-cookie\";\r\nimport * as BootstrapDialog from \"bootstrap3-dialog\";\r\nimport \"../cw/lib/cw.dtTools\";\r\nimport { createNonRoutedApp } from \"@du/AppStartup\";\r\nimport pdfViewer from \"@components/utility/pdfViewer.vue\";\r\nimport notificationWidget from \"@du/masterTemplates/components/templates/notificationWidget.vue\";\r\nimport { switchPage } from \"../cw/lib/pageManagement/composables/pageManager\";\r\n\r\n(function (cw, $) {\r\n \"use strict\";\r\n $.extend(true, cw, {\r\n pages: {\r\n dashboard: {\r\n args: null,\r\n selectedS1AccountId: null,\r\n phoneEditDataTable: null,\r\n phoneTypeList: null,\r\n locationData: null,\r\n $viewport: null,\r\n url: \"/account\",\r\n title: \"Account Overview\",\r\n $wrapperEl: null,\r\n sigRconn: null,\r\n notificationWidget: null,\r\n autopayConfigComponenent: null,\r\n init: function (args) {\r\n const self = this;\r\n self.args = args;\r\n self.$wrapperEl = $(\".customer-dashboard-page-wrapper\");\r\n self.bindApplicationEvents(args);\r\n self.setAutoPaymentStatus(args.AccountBalances);\r\n\r\n /* Menu */\r\n\r\n //Rewards\r\n const $menuItemReward = $('a[href=\"/account/rewards\"]').closest(\"li\");\r\n if ($menuItemReward.length > 0) {\r\n if (args.CanViewRewards) {\r\n $menuItemReward.removeClass(\"hidden\");\r\n } else {\r\n $menuItemReward.addClass(\"hidden\");\r\n }\r\n }\r\n\r\n //Add Product\r\n const $menuItemAddProd = $('a[href=\"#add-product\"]').closest(\"li\");\r\n if ($menuItemAddProd.length > 0 && args.WholesaleCustomerPortal) {\r\n $menuItemAddProd.addClass(\"hidden\");\r\n }\r\n\r\n //Request Delivery\r\n const $reqDeliveryBtn = $(\".request-delivery\").closest(\"a\");\r\n if ($reqDeliveryBtn.length > 0 && args.WholesaleCustomerPortal) {\r\n $reqDeliveryBtn.addClass(\"hidden\");\r\n }\r\n\r\n /* Handle our Bindings last*/\r\n self.bindInteractions(args);\r\n self.bindRewardsAndCarouselItems(args.RewardsPoints);\r\n setTimeout(function () {\r\n import(\"@components/customer/payment/autopayConfig.vue\").then(function (x) {\r\n self.autopayConfigComponenent = x.default;\r\n });\r\n }, 100);\r\n },\r\n switchPage: function (url) {\r\n const self = this;\r\n\r\n if (\r\n $(\".edit-s1-account\").length > 0 &&\r\n $(\".edit-s1-account\").data(\"s1AccountId\") !== self.selectedS1AccountId\r\n ) {\r\n Cookies.set(self.args.selectedS1AccountCookieKey, self.selectedS1AccountId);\r\n self.refreshS1AccountSelector(self.selectedS1AccountId);\r\n }\r\n\r\n cw.analytics(function () {\r\n _hsq.push([\"setPath\", url]);\r\n _hsq.push([\"trackPageView\"]);\r\n });\r\n\r\n const { Title } = switchPage(url, self);\r\n\r\n if (window.history && location.pathname.toLowerCase() !== url) {\r\n window.history.pushState({ url: url, title: Title }, Title, url);\r\n }\r\n\r\n $(\".menu-left li, .mobile-menu li\").removeClass(\"active\");\r\n $(\".mobile-menu\").removeClass(\"open\");\r\n $('.menu-left a[href=\"' + url + '\"], .mobile-menu a[href=\"' + url + '\"]')\r\n .closest(\"li\")\r\n .addClass(\"active\");\r\n },\r\n bindApplicationEvents: function (args) {\r\n const self = this;\r\n this.selectedS1AccountId = args.selectedS1AccountId;\r\n let vueAddProductApp;\r\n let $vueAddProductDiv;\r\n let vueAddProductAppMounted = false;\r\n const mobileMenuAnchorSelector = \".mobile-menu a\";\r\n const vueAppMenuClickFunc = function (e) {\r\n const $this = $(this);\r\n if ($this.closest(\".mobile-menu\").length > 0 && vueAddProductApp && vueAddProductAppMounted) {\r\n vueAddProductAppMounted = false;\r\n vueAddProductApp?.unmount();\r\n $vueAddProductDiv?.remove();\r\n $(\"body\").off(\"click\", mobileMenuAnchorSelector, vueAppMenuClickFunc);\r\n }\r\n };\r\n\r\n self.$viewport = $(\".dashboard-viewport\");\r\n\r\n $(\"body\").off(\"click\", mobileMenuAnchorSelector, vueAppMenuClickFunc);\r\n $(\"body\").on(\"click\", mobileMenuAnchorSelector, vueAppMenuClickFunc);\r\n\r\n $(\"body\").on(\"click\", \".breadcrumb a\", function (e) {\r\n e.preventDefault();\r\n const url = $(this).attr(\"href\");\r\n self.switchPage(url);\r\n });\r\n\r\n window.addEventListener(\"popstate\", function (oEvent) {\r\n let url = location.pathname.toLowerCase();\r\n if (oEvent.state?.url) {\r\n url = oEvent.state.url;\r\n }\r\n\r\n self.switchPage(url);\r\n });\r\n\r\n if (args.S1AccountNotificationToken) {\r\n self.rebindNotificationListener(args.S1AccountNotificationToken);\r\n }\r\n\r\n $(\".billing-account-selector\").off(\"click\");\r\n $(\".billing-account-selector\").on(\"click\", self.s1AccountSelectorClickHandler);\r\n\r\n // close custom dropdowns\r\n $(document).on(\"click\", function () {\r\n $(\".billing-account-selector, .billing-account-selector-wrapper\").removeClass(\"active\");\r\n });\r\n\r\n $('a[href^=\"/account\"]').off(\"click\");\r\n $('a[href^=\"/account\"]').on(\"click\", function (e) {\r\n const $this = $(this);\r\n if ($this.attr(\"target\") !== \"_blank\") {\r\n e.preventDefault();\r\n self.switchPage($this.attr(\"href\"));\r\n }\r\n });\r\n\r\n $('a[href=\"#add-product\"], a.add-product').off(\"click\");\r\n $('a[href=\"#add-product\"], a.add-product').on(\"click\", function (e) {\r\n e.preventDefault();\r\n const $this = $(this);\r\n const dpMap = $this.data(\"deliveryPointMap\");\r\n const custTypes = $(\".s1-customer-type\").data(\"customerTypeIds\");\r\n const selZipCode = $this.attr(\"data-dp-zip\"); //.data('dpZip') was turning this into a number\r\n const selProductCode = $this.data(\"productCode\");\r\n const productAddId = \"s1-product-add-wizard-wrapper\";\r\n\r\n $vueAddProductDiv = document.getElementById(productAddId);\r\n if ($vueAddProductDiv) {\r\n $vueAddProductDiv.replaceChildren();\r\n } else {\r\n $vueAddProductDiv = document.createElement(\"div\");\r\n $vueAddProductDiv.id = productAddId;\r\n document.body.appendChild($vueAddProductDiv);\r\n }\r\n $(\".hamburger-menu.open\").trigger(\"click\"); //really bro? Why I gotta close you?\r\n\r\n import(\"@components/products/productAddWizard.vue\").then((productAddWizard) => {\r\n vueAddProductApp = createNonRoutedApp(productAddWizard.default, {\r\n brandTypeId: self.args.brandObj.BrandTypeId,\r\n s1AcctId: self.selectedS1AccountId,\r\n customerTypeIds: custTypes,\r\n selectedDeliveryPointMap: dpMap,\r\n selectedZipCode: selZipCode,\r\n selectedProductCode: selProductCode,\r\n minimumGallonDelivery: self.args.minimumGallonDelivery,\r\n onMounted() {\r\n vueAddProductAppMounted = true;\r\n },\r\n onWizardClosed() {\r\n vueAddProductApp.unmount();\r\n $vueAddProductDiv?.remove();\r\n $(\"body\").off(\"click\", mobileMenuAnchorSelector, vueAppMenuClickFunc);\r\n vueAddProductAppMounted = false;\r\n },\r\n onProductAddedSuccessfully(productAddRequest, productAddResponse) {\r\n self.loadDashboard(self.selectedS1AccountId);\r\n },\r\n onHvacAppointmentSuccessfullyScheduled() {\r\n self.loadDashboard(self.selectedS1AccountId);\r\n },\r\n });\r\n vueAddProductApp.mount(`#${productAddId}`);\r\n });\r\n });\r\n\r\n $(\"body\").off(\"click\", \".notification-detail\");\r\n $(\"body\").on(\"click\", \".notification-detail\", function (e) {\r\n e.preventDefault();\r\n const $this = $(this);\r\n const href = $this.data(\"href\");\r\n const hasHref = href && href !== window.location.href;\r\n cw.modal.Open({\r\n title: $this.html(),\r\n modalBody: $(\r\n '
\"\r\n ),\r\n onShownCallback: function (mr) {\r\n mr.$modalBody.find(\".clickable-notification\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n window.location.href = $(this).data(\"notificationUrl\");\r\n });\r\n\r\n mr.$modalBody.find(\".dismiss-notification\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n const $this = $(this);\r\n cw.webservices.getJson(\r\n \"S1AccountManager/dismiss-notification/\" + self.selectedS1AccountId,\r\n [$this.data(\"userNotificationId\")],\r\n function (wasDismissed) {},\r\n function () {}\r\n );\r\n mr.close();\r\n });\r\n },\r\n });\r\n });\r\n self.rebindS1AccountSelector();\r\n },\r\n rebindNotificationListener: function (s1AccountNotificationToken) {\r\n this.getNotificationWidget(this.args.selectedS1AccountId);\r\n },\r\n bindInteractions: function (args) {\r\n const self = this;\r\n\r\n //budget menu\r\n const $menuItem = $('a[href=\"/account/manage-budget\"]').closest(\"li\");\r\n if (\r\n args.AccountBalances?.some(function (x) {\r\n return x.OnBudget;\r\n }) ||\r\n args.CustomerBudgetResponse?.HasPendingBudget\r\n ) {\r\n $menuItem.removeClass(\"hidden\");\r\n } else if (args.CustomerBudgetResponse?.IsEligible) {\r\n $menuItem\r\n .empty()\r\n .append(\r\n ' Enroll in a Budget '\r\n );\r\n } else {\r\n $menuItem.addClass(\"hidden\");\r\n }\r\n\r\n if (args.analyticsFireLoginEvent) {\r\n const analyticsObj = {\r\n event: \"customerWebLogin\",\r\n };\r\n\r\n if (args.analyticsCustomerType) {\r\n analyticsObj.customerType = args.analyticsCustomerType;\r\n }\r\n\r\n if (args.analyticsUserId) {\r\n analyticsObj.userId = args.analyticsUserId;\r\n }\r\n\r\n analyticsObj.hasRewardsAccess = args.anaylyticsIsRewardsUser;\r\n analyticsObj.isRewardsRedeemer = args.anaylyticsIsRewardsRedeemer;\r\n\r\n cw.analytics(function () {\r\n dataLayer.push(analyticsObj);\r\n });\r\n\r\n if (args.email) {\r\n cw.analytics(function () {\r\n _hsq.push([\r\n \"identify\",\r\n {\r\n email: args.email,\r\n last_customer_web_login_date: args.loginTime,\r\n },\r\n ]);\r\n });\r\n }\r\n\r\n args.analyticsFireLoginEvent = false;\r\n }\r\n\r\n self.$viewport = $(\".dashboard-viewport\");\r\n\r\n $(\".service-location-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 $(\".service-location-filter\").on(\"change\", function () {\r\n self.updateLocationFilter($(this).val());\r\n });\r\n\r\n $('[data-toggle=\"tooltip\"]').tooltip(\"destroy\");\r\n $('[data-toggle=\"tooltip\"]').tooltip({ html: true });\r\n $('[data-toggle=\"dropdown\"]').dropdown();\r\n\r\n $(\"a.view-latest-invoice\").off(\"click\");\r\n $(\"a.view-latest-invoice\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n const $this = $(this);\r\n const docId = $this.data(\"documentId\");\r\n const invoiceId = $this.data(\"invoiceId\");\r\n\r\n if (docId && invoiceId) {\r\n if (window.innerWidth <= 991) {\r\n window.open(\"/gen-asset/document-viewer/\" + docId);\r\n } else {\r\n cw.modal.Open({\r\n data: { docId: docId },\r\n title: \"Invoice #\" + invoiceId,\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 const 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 }).mount(\"#pdf-target\");\r\n },\r\n });\r\n }\r\n }\r\n });\r\n $(\"a.budget-signup, button.budget-signup\").off(\"click\");\r\n $(\"a.budget-signup, button.budget-signup\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n cw.loadingIndicator.start();\r\n cw.pages.budgetManager.budgetEnroll({\r\n CustomerBudgetResponse: self.args.CustomerBudgetResponse,\r\n ServiceLocations: self.args.ServiceLocations,\r\n AccountBalances: self.args.AccountBalances,\r\n S1AccountId: self.selectedS1AccountId,\r\n successCallback: function () {\r\n self.loadDashboard(self.selectedS1AccountId);\r\n },\r\n cancelCallback: function (rtnData) {\r\n self.args.CustomerBudgetResponse = rtnData;\r\n },\r\n });\r\n });\r\n\r\n $(\"a.request-delivery\").off(\"click\");\r\n $(\"a.request-delivery\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n const $this = $(this);\r\n if ($(this).data(\"isLitigationStatus\")) {\r\n cw.modal.Alert({\r\n title: \"Unable to Request Delivery\",\r\n text: `Are you sure you would like to unlink this account from your login?
You will no longer be able to manage this account once you confirm this action.
\"\r\n ),\r\n data: {\r\n s1AccountId: modal.getData(\"mdata\").s1AccountId,\r\n parentModal: modal,\r\n },\r\n buttons: [\r\n {\r\n label: ' Cancel',\r\n cssClass: \"btn-white btn-xs-block\",\r\n action: function (dialogRef) {\r\n dialogRef.close();\r\n },\r\n },\r\n {\r\n label: ' Yes Unlink Account',\r\n cssClass: \"btn-red btn-xs-block\",\r\n action: function (m) {\r\n cw.loadingIndicator.start();\r\n cw.webservices.getJson(\r\n \"S1AccountManager/unlink-s1-account\",\r\n m.getData(\"s1AccountId\"),\r\n function (wasSuccess) {\r\n if (wasSuccess) {\r\n cw.modal.Alert({\r\n title: \"Success\",\r\n text: \"This account has successfully been unlinked from your login.\",\r\n buttons: [\r\n {\r\n label: ' Ok',\r\n cssClass: \"btn-primary btn-xs-block\",\r\n action: function (d) {\r\n cw.loadingIndicator.start();\r\n BootstrapDialog.closeAll();\r\n location.reload();\r\n },\r\n },\r\n ],\r\n });\r\n } else {\r\n cw.modal.Alert({\r\n title: \"Unknown Error\",\r\n text: \"An unknown error occurred while unlinking this account.\",\r\n });\r\n }\r\n\r\n cw.loadingIndicator.stop();\r\n }\r\n );\r\n },\r\n },\r\n ],\r\n });\r\n },\r\n },\r\n {\r\n label: ' Cancel',\r\n cssClass: \"btn-white btn-xs-block\",\r\n action: function (dialogRef) {\r\n dialogRef.close();\r\n },\r\n },\r\n {\r\n label: ' Ok',\r\n cssClass: \"btn-primary btn-xs-block\",\r\n action: function (mr) {\r\n const nickname = mr.$modalBody.find(\".account-nickname\").val().trim();\r\n const isFavorite = mr.$modalBody.find(\"#is-account-favorite:checked\").length > 0;\r\n cw.loadingIndicator.start();\r\n cw.webservices.getJson(\r\n \"S1AccountManager/set-account-nickname\",\r\n {\r\n S1AccountId: mr.getData(\"mdata\").s1AccountId,\r\n Nickname: nickname,\r\n isFavorite: isFavorite,\r\n },\r\n function (wasSuccess) {\r\n if (wasSuccess) {\r\n self.loadDashboard(mr.getData(\"mdata\").s1AccountId);\r\n } else {\r\n cw.modal.Alert({\r\n title: \"Unknown Error\",\r\n text: \"An unknown error occurred while updating your information.\",\r\n });\r\n cw.loadingIndicator.stop();\r\n }\r\n }\r\n );\r\n\r\n mr.close();\r\n },\r\n },\r\n ],\r\n onShownCallback: function (mr) {\r\n cw.loadingIndicator.stop();\r\n },\r\n });\r\n }\r\n );\r\n },\r\n editServiceLocation: function (deliveryPointMap, s1AccountId, servLocHash) {\r\n const self = this;\r\n\r\n const dpMap = deliveryPointMap.map(function (x) {\r\n return {\r\n RemoteSystemDeliveryPointId: x.RemoteSystemDeliveryPointId,\r\n RemoteSystemId: x.RemoteSystemId,\r\n RemoteSystemAccountId: x.RemoteSystemAccountId,\r\n RemoteSystemAccountNumber: x.RemoteSystemAccountNumber,\r\n };\r\n });\r\n\r\n cw.webservices.getJson(\r\n \"S1AccountManager/get-delivery-point-info/\" + s1AccountId,\r\n dpMap,\r\n function (selectedLocationRtn) {\r\n cw.loadingIndicator.stop();\r\n if (selectedLocationRtn) {\r\n let selectedLocation = [];\r\n\r\n for (const element of selectedLocationRtn) {\r\n if (element.ServiceLocationHash === servLocHash) {\r\n selectedLocation = element;\r\n }\r\n }\r\n\r\n selectedLocation.EveningPhone = cw.utility.FormatAsPhone({\r\n number: selectedLocation.EveningPhone,\r\n });\r\n selectedLocation.DaytimePhone = cw.utility.FormatAsPhone({\r\n number: selectedLocation.DaytimePhone,\r\n });\r\n selectedLocation.RemoteSystemMap = deliveryPointMap;\r\n\r\n self.phoneTypeList = selectedLocation.GetPhoneTypeList;\r\n self.locationData = selectedLocationRtn;\r\n self.locationData.selectedLocation = selectedLocation;\r\n self.args.ServiceLocations = selectedLocationRtn;\r\n\r\n const myDp = selectedLocation.RemoteSystemMap.map(function (x) {\r\n return x.RemoteSystemId;\r\n });\r\n selectedLocation.RemoteSystemId = myDp[0];\r\n let modalSize;\r\n\r\n switch (myDp[0]) {\r\n case cw.appEnum.S1RemoteSystem.As400:\r\n case cw.appEnum.S1RemoteSystem.Nexant:\r\n modalSize = BootstrapDialog.SIZE_NORMAL;\r\n break;\r\n case cw.appEnum.S1RemoteSystem.Cargas:\r\n modalSize = BootstrapDialog.SIZE_WIDE;\r\n break;\r\n }\r\n\r\n cw.templating.GetRenderedTemplateHTML(\r\n \"CwEditLocation.html\",\r\n cw.appEnum.TemplateType.CwWidget,\r\n selectedLocation,\r\n function (renderedTemplate) {\r\n cw.modal.Open({\r\n data: {},\r\n title: \"Edit Location\",\r\n size: modalSize,\r\n modalBody: $(renderedTemplate),\r\n buttons: [\r\n {\r\n label: ' Cancel',\r\n cssClass: \"btn-white btn-xs-block\",\r\n action: function (dialogRef) {\r\n dialogRef.close();\r\n },\r\n },\r\n {\r\n label: ' Save',\r\n cssClass: \"btn-primary btn-xs-block\",\r\n action: function (dialogRef) {\r\n const self = cw.pages.dashboard;\r\n\r\n switch (selectedLocation.RemoteSystemId) {\r\n case cw.appEnum.S1RemoteSystem.As400:\r\n case cw.appEnum.S1RemoteSystem.Nexant:\r\n self.saveServiceLocation(selectedLocation, dialogRef);\r\n break;\r\n case cw.appEnum.S1RemoteSystem.Cargas:\r\n const rowData = cw.utility.getDataTableAllRowData(\r\n dialogRef.$modalBody.find(\".location-phone-table-target\").DataTable()\r\n );\r\n\r\n const saveObj = {\r\n DeliveryLocationDescription: dialogRef.$modalBody\r\n .find(\".location-name\")\r\n .val(),\r\n ContactName: dialogRef.$modalBody.find(\".contact-name\").val(),\r\n IsBillToAddress: dialogRef.$modalBody\r\n .find(\".billing-address-checkbox\")\r\n .is(\":checked\"),\r\n Directions: dialogRef.$modalBody.find(\".directions-cargas\").val(),\r\n GetCustomerPhoneNumberList: rowData,\r\n LocationId: dialogRef.$modalBody\r\n .find(\".location-address-info\")\r\n .data(\"locationId\"),\r\n CustomerLocationId: dialogRef.$modalBody\r\n .find(\".location-address-info\")\r\n .data(\"entityLocationId\"), //entityLocationId -- You've been CarGassed!\r\n RemoteSystemId: selectedLocation.RemoteSystemId,\r\n RemoteSystemMap: selectedLocation.RemoteSystemMap,\r\n };\r\n\r\n self.saveServiceLocation(saveObj, dialogRef);\r\n break;\r\n }\r\n },\r\n },\r\n ],\r\n onShownCallback: function (mr) {\r\n const self = cw.pages.dashboard;\r\n const $locationEl = mr.$modalBody.find(\".edit-location-wrapper\");\r\n\r\n for (const element of selectedLocation.RemoteSystemMap) {\r\n switch (element.RemoteSystemId) {\r\n case cw.appEnum.S1RemoteSystem.As400:\r\n $locationEl.find(\".as400-account-form\").removeClass(\"hidden\");\r\n break;\r\n case cw.appEnum.S1RemoteSystem.Nexant:\r\n $locationEl.find(\".nexant-account-form\").removeClass(\"hidden\");\r\n break;\r\n case cw.appEnum.S1RemoteSystem.Cargas:\r\n $locationEl.find(\".cargas-account-form\").removeClass(\"hidden\");\r\n break;\r\n }\r\n }\r\n\r\n cw.loadingIndicator.stop();\r\n cw.pages.dashboard.buildPhoneNumberDataTable(selectedLocation);\r\n\r\n self.bindEditLocationButtons(mr, selectedLocation, selectedLocationRtn);\r\n },\r\n });\r\n }\r\n );\r\n }\r\n }\r\n );\r\n },\r\n bindEditLocationButtons: function (mr, selectedLocation, selectedLocationRtn) {\r\n const self = cw.pages.dashboard;\r\n\r\n mr.$modalBody.find(\".add-phone\").off(\"click\");\r\n mr.$modalBody.find(\".add-phone\").on(\"click\", function (e) {\r\n const $this = $(this);\r\n const PhoneData = selectedLocation;\r\n\r\n PhoneData.LocationId = $this.data(\"locationId\");\r\n PhoneData.Location = PhoneData.StreetAddress;\r\n\r\n PhoneData.PhoneTypeList = self.phoneTypeList.map(function (x) {\r\n return {\r\n PhoneTypeId: x.PhoneTypeID,\r\n PhoneType: x.PhoneTypeID === 0 ? \"--Select--\" : x.PhoneType,\r\n PhoneTypeSelected: false,\r\n };\r\n });\r\n\r\n self.getPhoneDetailModal(PhoneData, mr);\r\n });\r\n\r\n mr.$modalBody.find(\".delete-phone\").off(\"click\");\r\n mr.$modalBody.find(\".delete-phone\").on(\"click\", function (e) {\r\n const $this = $(this);\r\n const phoneId = $this.data(\"phoneId\");\r\n const phoneNumber = $this.data(\"phoneNumber\");\r\n\r\n cw.modal.Open({\r\n data: {},\r\n title: \"Delete Phone Confirmation\",\r\n modalBody: \"Are you sure you would like to remove \" + phoneNumber + \"?\",\r\n buttons: [\r\n {\r\n label: ' Cancel',\r\n cssClass: \"btn-white btn-xs-block\",\r\n action: function (dialogRef) {\r\n dialogRef.close();\r\n },\r\n },\r\n {\r\n label: ' Delete',\r\n cssClass: \"btn-red btn-xs-block\",\r\n action: function (dialogRef) {\r\n const dt = mr.$modalBody.find(\".location-phone-table-target\").DataTable();\r\n cw.utility.deleteDataTableListing(dt, phoneId, \"PhoneID\", true);\r\n dialogRef.close();\r\n },\r\n },\r\n ],\r\n onShownCallback: function (mr) {},\r\n });\r\n });\r\n\r\n mr.$modalBody.find(\".edit-phone\").off(\"click\");\r\n mr.$modalBody.find(\".edit-phone\").on(\"click\", function (e) {\r\n const $this = $(this);\r\n const $dt = self.phoneEditDataTable;\r\n const phoneId = $this.data(\"phoneId\");\r\n const rowData = cw.utility.getDataTableRowData($dt, phoneId, \"PhoneID\");\r\n const customerLocationData = selectedLocationRtn;\r\n\r\n cw.loadingIndicator.start();\r\n self.getPhoneEditData(rowData, customerLocationData, mr);\r\n });\r\n\r\n mr.$modalBody.find(\".billing-address-checkbox\").off(\"change\");\r\n mr.$modalBody.find(\".billing-address-checkbox\").on(\"change\", function (e) {\r\n const $this = $(this);\r\n const warning =\r\n 'Only 1 Location may be used as the Billing Address.
' +\r\n \"If you check this field, it will uncheck any other Locations currently set to be used as the Billing Address.
\" +\r\n \"There must be at least 1 Service Location configured as the Billing Address.
' +\r\n \"