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AC;IAEc,gDAA0B,GAAzC;QACI,IAAI,2BAA2B,GAAG,CAAC,CAAC,yFAAyF,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1I,IAAI,2BAA2B,EAAE,CAAC;YAC9B,qBAAqB,CAAC,mCAAmC,CAAC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtG,CAAC;IACL,CAAC;IAEL,4BAAC;AAAD,CAAC;AA1NY,sDAAqB;AA4NlC,CAAC,UAAC,MAAW,EAAE,QAAa;IACxB,CAAC,CAAC;QACE,qBAAqB,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC","sources":["webpack://ICF/./src/common/AntiForgeryUtility.ts","webpack://ICF/./src/common/CISAddressTypeAhead.ts","webpack://ICF/./src/common/DropdownListUtility.ts","webpack://ICF/./src/common/ErrorHandler.ts","webpack://ICF/./src/common/IntakeCancelDialog.ts","webpack://ICF/./src/common/NavigationUtility.ts","webpack://ICF/./src/common/RequiredFieldBinder.ts","webpack://ICF/./src/common/ScreenLoadUtility.ts","webpack://ICF/./src/rebate/common/RebateEligibilitySearchFieldBinder.ts","webpack://ICF/./src/rebate/common/ShoppingCart.ts","webpack://ICF/webpack/bootstrap","webpack://ICF/./src/rebate/eligibility/RebateEligibilityPage.ts"],"sourcesContent":["/// \r\n\r\nexport class AntiForgeryUtility {\r\n static GetForgeryToken() {\r\n return {\r\n //\"__RequestVerificationToken\": $('input[name=__OITAntiforgeryField]').val()\r\n \"__OITAntiforgeryField\": $('input[name=__OITAntiforgeryField]').val()\r\n }\r\n }\r\n\r\n static GetForgeryFormToken() {\r\n return \"__OITAntiforgeryField=\" + $('input[name=__OITAntiforgeryField]').val();\r\n }\r\n\r\n static SetForgeryFromTokenInHeader() {\r\n var headers = {};\r\n var oitToken = $('input[name=__OITAntiforgeryField]').val()\r\n headers['X-CSRF-TOKEN-OIT'] = oitToken;\r\n return headers;\r\n }\r\n\r\n}","/// \r\n/// \r\n\r\nexport class CISAddressTypeAhead {\r\n\tprivate _url: string;\r\n\tprivate _displayingUnits: boolean;\r\n\r\n\tconstructor(url) {\r\n\t\tthis._url = url;\r\n\t\tthis._displayingUnits = false;\r\n\t}\r\n\r\n\tSetup(typeaheadField: string, melissaField: string, unitField: string) {\r\n\r\n\t\tvar timeout;\r\n\r\n\t\tvar typeaheadName: string = typeaheadField;\r\n\t\tvar melissaKeyControlName: string = melissaField;\r\n\t\tvar unitNumberControlName: string = unitField;\r\n\r\n\t\t$(\"#loadingSpinner\").hide();\r\n\r\n\t\tvar xhr;\r\n\r\n\t\t$(\"#\" + typeaheadName).on('paste drop', (e) => {\r\n\t\t\t$(e.target).prop(\"title\", \"Please type an address. You are not able to copy and paste.\");\r\n\t\t\tvar tt = $(e.target).tooltip({ placement: \"bottom\", html: true }).tooltip(\"show\");\r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t$(\"#\" + typeaheadName).on('input', function () {\r\n\t\t\tif (!$(\"#\" + typeaheadName).val() || $(\"#\" + typeaheadName).val()[0].length === 0) {\r\n\t\t\t\tclearTimeout(timeout);\r\n\t\t\t\ttimeout = null;\r\n\t\t\t\t$(\"#loadingSpinner\").hide();\r\n\t\t\t\tif (xhr) {\r\n\t\t\t\t\txhr.abort();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tvar map = {};\r\n\t\tvar objects = [];\r\n\t\tvar bestPictures;\r\n\r\n\r\n\t\t$(\"#\" + typeaheadName).typeahead({\r\n\t\t\thighlight: true,\r\n\t\t},\r\n\t\t\t{\r\n\t\t\t\tlimit: 20,\r\n\t\t\t\tsource: (query, syncResults, asyncResults) => {\r\n\t\t\t\t\tif (query.length < 3) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (timeout) {\r\n\t\t\t\t\t\tclearTimeout(timeout);\r\n\t\t\t\t\t\ttimeout = null;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (xhr) {\r\n\t\t\t\t\t\txhr.abort();\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\ttimeout = setTimeout(() => {\r\n\t\t\t\t\t\t$(\"#loadingSpinner\").show();\r\n\r\n\t\t\t\t\t\t//Handle unique typeahead field names\r\n\t\t\t\t\t\tif ($(\".icf-typeahead-field\").length) {\r\n\t\t\t\t\t\t\t$(\".icf-typeahead-field:not([readonly])\").attr(\"id\", typeaheadName);\r\n\t\t\t\t\t\t\t$(\".icf-typeahead-field:not([readonly])\").attr(\"name\", typeaheadName.split('_').join('.'));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Reset typeahead field to be unique\r\n\t\t\t\t\t\tif ($(\".icf-typeahead-field\").length) {\r\n\t\t\t\t\t\t\tvar uniqueFldId = Date.now();\r\n\t\t\t\t\t\t\t$(\".icf-typeahead-field\").attr(\"id\", uniqueFldId);\r\n\t\t\t\t\t\t\t$(\".icf-typeahead-field\").attr(\"name\", uniqueFldId);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//var url = '@Url.Action(\"_TypeaheadAddress\", \"Eligibility\")';\r\n\r\n\t\t\t\t\t\txhr = $.ajax(\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttype: \"GET\",\r\n\t\t\t\t\t\t\t\turl: this._url + \"?address=\" + query,\r\n\t\t\t\t\t\t\t\tsuccess: (jsonData) => {\r\n\t\t\t\t\t\t\t\t\t//console.log(jsonData);\r\n\t\t\t\t\t\t\t\t\tmap = {};\r\n\t\t\t\t\t\t\t\t\tobjects = [];\r\n\t\t\t\t\t\t\t\t\t$.each(jsonData, (i, object) => {\r\n\t\t\t\t\t\t\t\t\t\tmap[object.Address] = object;\r\n\t\t\t\t\t\t\t\t\t\tobjects.push(object.Address);\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tasyncResults(objects);\r\n\t\t\t\t\t\t\t\t\t$(\"#loadingSpinner\").hide();\r\n\r\n\t\t\t\t\t\t\t\t\tclearTimeout(timeout);\r\n\t\t\t\t\t\t\t\t\ttimeout = null;\r\n\t\t\t\t\t\t\t\t\txhr = null;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t}, 400);\r\n\t\t\t\t},\r\n\t\t\t\ttemplates: {\r\n\t\t\t\t\tnotFound: [\r\n\t\t\t\t\t\t'
',\r\n\t\t\t\t\t\t'No results found',\r\n\t\t\t\t\t\t'
'\r\n\t\t\t\t\t].join('\\n')\r\n\t\t\t\t}\r\n\t\t\t}).on(\"keyup\", (e) => {\r\n\t\t\t\t//Ignore tab\r\n\t\t\t\tif (e.keyCode != 9) {\r\n\t\t\t\t\t$(\"#\" + melissaKeyControlName).val(\"\");\r\n\t\t\t\t}\r\n\t\t\t});;\r\n\r\n\t\t$(\"#\" + typeaheadName).on('typeahead:selected', (evt, item) => {\r\n\t\t\t//Check if selected address has units.\r\n\t\t\tif (map[item].Units && map[item].Units.length > 0) {\r\n\t\t\t\tthis._displayingUnits = true;\r\n\t\t\t\t$(\"#\" + unitNumberControlName).empty();\r\n\t\t\t\t$(\"#\" + unitNumberControlName).append($('').attr('value', '').text(''));\r\n\r\n\t\t\t\t$.each(map[item].Units, (index, item) => {\r\n\t\t\t\t\t$(\"#\" + unitNumberControlName).append($('').attr('value', item.MelissaAddressKey).text(item.UnitName));\r\n\t\t\t\t});\r\n\r\n\t\t\t\t$('#unitDiv').removeClass(\"d-none\").show();\r\n\t\t\t\t$(\"#\" + melissaKeyControlName).val('');\r\n\r\n\t\t\t} else {\r\n\t\t\t\tthis._displayingUnits = false;\r\n\t\t\t\t$('#unitDiv').hide();\r\n\t\t\t\t$(\"#\" + melissaKeyControlName).val(map[item].Key);\r\n\r\n\t\t\t\tvar e: Event = new Event('icf-eligibility-selected');\r\n\t\t\t\tdocument.dispatchEvent(e);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t$(\"#\" + typeaheadName).on(\"blur\", () => {\r\n\t\t\tvar rid = $(\"#\" + melissaKeyControlName).val();\r\n\t\t\tif ((rid == \"\" || rid == null) && (this._displayingUnits == false)) {\r\n\t\t\t\tCISAddressTypeAhead.SetCISTypeaheadError(typeaheadName.replace(\"_\", \".\"), \"Please select an address from the list.\");\r\n\t\t\t\t$(\"#\" + typeaheadName).val(\"\");\r\n\r\n\t\t\t\tvar e: Event = new Event('icf-eligibility-deselected');\r\n\t\t\t\tdocument.dispatchEvent(e);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tCISAddressTypeAhead.SetCISTypeaheadError(typeaheadName.replace(\"_\", \".\"), \"\");\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\r\n\t\t$('#' + unitNumberControlName).on(\"change\", () => {\r\n\t\t\t$(\"#\" + melissaKeyControlName).val($(\"#\" + unitNumberControlName).val());\r\n\r\n\t\t\tvar e: Event = new Event('icf-eligibility-selected');\r\n\t\t\tdocument.dispatchEvent(e);\r\n\t\t});\r\n\r\n\t\t$(\"#\" + typeaheadName).prop('autocomplete', 'notallowed');\r\n\t}\r\n\r\n public static InitTypeaheadFieldName() {\r\n //Reset typeahead field to be unique\r\n if ($(\".icf-typeahead-field\").length) {\r\n var uniqueFldId = Date.now();\r\n $(\".icf-typeahead-field\").attr(\"id\", uniqueFldId);\r\n $(\".icf-typeahead-field\").attr(\"name\", uniqueFldId);\r\n }\r\n }\r\n\r\n public static RevertTypeaheadFieldName(typeaheadName: string) {\r\n //Handle unique typeahead field names\r\n if ($(\".icf-typeahead-field\").length) {\r\n $(\".icf-typeahead-field:not([readonly])\").attr(\"id\", typeaheadName);\r\n $(\".icf-typeahead-field:not([readonly])\").attr(\"name\", typeaheadName.split('_').join('.'));\r\n }\r\n }\r\n\r\n\tpublic static SetCISTypeaheadError(id, message) {\r\n\t\tvar span = $(\"span[data-valmsg-for=\\\"\" + id + \"\\\"]\");\r\n\t\tif (span && span.length > 0) {\r\n\t\t\t$(span).html(message);\r\n\t\t\tif (message && message != \"\") {\r\n\t\t\t\t$(span).removeClass(\"field-validation-valid\");\r\n\t\t\t\t$(span).addClass(\"field-validation-no-valid\");\r\n\t\t\t} else {\r\n\t\t\t\t$(span).removeClass(\"field-validation-no-valid\");\r\n\t\t\t\t$(span).addClass(\"field-validation-valid\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n","/// \r\n\r\nimport { ApplicationListItem, IListItemData } from \"../types/CommonTypes\";\r\nimport { EquipmentListItem } from \"../types/EquipmentTypes\";\r\n\r\nexport class DropdownListUtility {\r\n\r\n public static LoadApplicationDropdownList(selector: string, listItems: ApplicationListItem[]) {\r\n\r\n if ($(selector).prop('tagName') != 'SELECT') return;\r\n $(selector + \" option\").remove();\r\n $(selector).append('');\r\n for (var idx in listItems) {\r\n var item = listItems[idx];\r\n $(selector).append('');\r\n }\r\n }\r\n\r\n public static ClearDropdownList(selector: string) {\r\n $(selector + \" option\").remove();\r\n $(selector).append('');\r\n }\r\n\r\n public static UpdateApplicationRequiredFieldDropdownList(selector: string, listItems: ApplicationListItem[]) {\r\n\r\n if ($(selector).prop('tagName') != 'SELECT') return;\r\n\r\n if ($(selector + ' option').length <= 0) {\r\n $(selector).append('');\r\n for (var idx in listItems) {\r\n var item = listItems[idx];\r\n $(selector).append('');\r\n }\r\n } else if ($(selector + ' option').length <= 1) {\r\n for (var idx in listItems) {\r\n var item = listItems[idx];\r\n $(selector).append('');\r\n }\r\n } else {\r\n //update.\r\n $(selector + ' option').each((index, value) => {\r\n if ($(value).val()) {\r\n let item = listItems.find(x => x.VisionToken == $(value).val());\r\n $(value).attr('data-code-type', item.StandardCodeId);\r\n }\r\n })\r\n }\r\n }\r\n\r\n\r\n ///Doesnt use id as the value.\r\n public static LoadEquipmentSelectList(selector: string, listItems: EquipmentListItem[]) {\r\n\r\n $(selector + \" option\").remove();\r\n $(selector).append('');\r\n for (var idx in listItems) {\r\n var item = listItems[idx];\r\n $(selector).append('');\r\n }\r\n }\r\n\r\n public static UpdateEquipmentRequiredFieldDropdownList(selector: string, listItems: EquipmentListItem[]) {\r\n\r\n if ($(selector).prop('tagName') != 'SELECT') return;\r\n\r\n if ($(selector + ' option').length <= 0) {\r\n $(selector).append('');\r\n for (var idx in listItems) {\r\n var item = listItems[idx];\r\n $(selector).append('');\r\n }\r\n } else if ($(selector + ' option').length <= 1) {\r\n for (var idx in listItems) {\r\n var item = listItems[idx];\r\n $(selector).append('');\r\n }\r\n } else {\r\n //update.\r\n $(selector + ' option').each((index, value) => {\r\n if ($(value).val()) {\r\n let item = listItems.find(x => x.VisionToken == $(value).val());\r\n if (item) {\r\n $(value).attr('data-code-type', item.StandardCodeId);\r\n }\r\n }\r\n })\r\n }\r\n }\r\n\r\n static LoadListItemDropdownList(selector: string, listItems: IListItemData[], currentValue: string) {\r\n var currentValueFound = false;\r\n $(selector + \" option\").remove();\r\n $(selector).append('');\r\n $.each(listItems, (index, value) => {\r\n if (!value.IsDisabled) {\r\n $(selector).append('');\r\n } else {\r\n $(selector).append('');\r\n }\r\n \r\n if (currentValue == value.VisionToken) {\r\n currentValueFound = true;\r\n }\r\n });\r\n if (currentValueFound) {\r\n $(selector).val(currentValue);\r\n } else {\r\n $(selector).val(\"\");\r\n }\r\n }\r\n\r\n static UpdateListItemDropdownList(selector: string, listItems: IListItemData[], currentValue: string) {\r\n\r\n var currentValueFound = false;\r\n\r\n if ($(selector + ' option').length <= 0) {\r\n $(selector).append('');\r\n\r\n $.each(listItems, (index, value) => {\r\n $(selector).append('');\r\n if (currentValue == value.VisionToken) {\r\n currentValueFound = true;\r\n }\r\n });\r\n } else if ($(selector + ' option').length <= 1) {\r\n $.each(listItems, (index, value) => {\r\n $(selector).append('');\r\n if (currentValue == value.VisionToken) {\r\n currentValueFound = true;\r\n }\r\n });\r\n } else {\r\n $(selector + ' option').each((index, value) => {\r\n if ($(value).val()) {\r\n let item = listItems.find(x => x.VisionToken == $(value).val());\r\n if (item) {\r\n $(value).attr('data-item-id', item.Id);\r\n }\r\n }\r\n })\r\n }\r\n\r\n // if (currentValueFound) {\r\n // $(selector).val(currentValue);\r\n // } else {\r\n // $(selector).val(\"\");\r\n // }\r\n }\r\n\r\n\r\n\r\n\r\n //data is of type ListItemModel\r\n //FIXME. Remove all other instances of this function\r\n public static SetDropDownValues(data: any, sender: any, addDefault: boolean) {\r\n sender.empty();\r\n\r\n if (addDefault) {\r\n sender.prepend('');\r\n }\r\n\r\n if (data.length > 0) {\r\n\r\n $.each(data, function (index, value) {\r\n if (value.IsSelected) {\r\n sender.append('');\r\n }\r\n else {\r\n sender.append('');\r\n }\r\n\r\n });\r\n }\r\n }\r\n\r\n public static PrePopulateDropDownOption(selector: string, onSelected: any) { \r\n if ($(selector).length) {\r\n if ($(selector).find('option[value!=\"\"]').length == 1) { \r\n $(selector).prop(\"selectedIndex\", 1);\r\n onSelected();\r\n }\r\n }\r\n }\r\n\r\n}","\r\nexport class ErrorHandler {\r\n public static HandleError(xhr: any, isAuthenticated = true) {\r\n\r\n if (xhr.responseJSON && xhr.responseJSON.IsJsonResponse) {\r\n console.log(\"Error loading question fields: \" + xhr.status + \": \" + xhr.responseJSON.Message);\r\n //Possible session timeout\r\n if (xhr.responseJSON.RedirectUrl) {\r\n window.location.href = xhr.responseJSON.RedirectUrl\r\n }\r\n }\r\n\r\n if (xhr.status == 0) {\r\n //Ignore.User navigating away from page.\r\n }\r\n else if (xhr.status == 401 || xhr.status == 440) {\r\n if (isAuthenticated) {\r\n window.location.href = `${window.location.origin}/Home/SessionTimeout`;\r\n } else {\r\n window.location.href = `${window.location.origin}/Home/ApplicationTimeout`;\r\n }\r\n }\r\n else if (xhr.status == 400) {\r\n console.log(\"Error Text: \" + xhr.responseText);\r\n console.log(\"Error: \" + xhr.statusText);\r\n console.log(\"Status: \" + xhr.status);\r\n console.log(\"Status Code: \" + xhr.statusCode);\r\n\r\n //bad call. Log with AI.\r\n var errObj: Error = new Error(\"RebateCalc Error (400)\");\r\n //FIXME: Log with AI\r\n //window.appInsights.trackException({ exception: errObj, properties: { \"FormData\": formJson, \"XHR_Response\": xhr.responseText } });\r\n window.location.href = `${window.location.origin}/Home/Error`;\r\n } else {\r\n console.log(\"Error Text: \" + xhr.responseText);\r\n console.log(\"Error: \" + xhr.statusText);\r\n console.log(\"Status: \" + xhr.status);\r\n console.log(\"Status Code: \" + xhr.statusCode);\r\n if (!isAuthenticated) {\r\n //Send unauthenticated users to the application timeout page.\r\n window.location.href = `${window.location.origin}/Home/ApplicationTimeout`;\r\n } else {\r\n window.location.href = `${window.location.origin}/Home/Error`;\r\n }\r\n \r\n }\r\n\r\n }\r\n}","/// \r\n\r\n\r\nexport class IntakeCancelDialog {\r\n\r\n public static Init() {\r\n\r\n $('#noCancelBtn').on('click', function (e) {\r\n\r\n //clear the unobtrusive validation\r\n $('.field-validation-error').removeClass('field-validation-error').addClass('field-validation-valid').empty();\r\n $('.input-validation-error').removeClass('input-validation-error').addClass('valid').empty();\r\n\r\n $(\"#application-form\").validate().resetForm();\r\n });\r\n\r\n $('#okCancelBtn').on('click', (e) => {\r\n e.preventDefault();\r\n var cancelUrl: string = $(\"#confirmCancelUrl\").data('request-url');\r\n window.location.href = cancelUrl;\r\n });\r\n\r\n }\r\n\r\n ///Used by the SOIT cancel button.\r\n public static BindConfirmCancelButton() {\r\n\r\n if ($(\".confirmCancelButton\").length) {\r\n $(\".confirmCancelButton\").on(\"click\", (event: JQuery.Event) => {\r\n if (confirm(\"Are you sure? Your information will be lost if you cancel\")) {\r\n return true;\r\n }\r\n return false;\r\n });\r\n }\r\n }\r\n\r\n\r\n}\r\n","/// \r\n\r\n\r\nexport class NavigationUtility {\r\n\r\n // This method is used to reload the page when the user navigates back to the page using the browser back button.\r\n public static ReloadPageOnBackButtonNavigation() {\r\n window.addEventListener(\"pageshow\", function (event) {\r\n var historyTraversal = event.persisted ||\r\n (typeof window.performance != \"undefined\" &&\r\n window.performance.navigation.type === 2);\r\n if (historyTraversal) {\r\n // Handle page restore.\r\n window.location.reload();\r\n }\r\n });\r\n }\r\n}\r\n\r\n","/// \r\n/// \r\n/// \r\n\r\ndeclare var OnRequiredFieldsDataBound: any;\r\n\r\nimport { ApplicationListItem } from \"../types/CommonTypes\";\r\nimport { DropdownListUtility } from \"./DropdownListUtility\";\r\n\r\n\r\nenum FieldEditableTypeCode {\r\n ReadOnly = 0,\r\n Editable = 1,\r\n ReadonlyOnEdit = 2,\r\n ReadonlyOnSSO = 3\r\n}\r\n\r\nenum FieldDataTypeCode {\r\n Text = 1,\r\n Date = 2,\r\n Numeric = 3,\r\n EquipmentSelectList = 4,\r\n ApplicationSelectList = 5, //Generic applcation lookup list\r\n ApplicationTypeList = 6, //Application lookups that drive measure mix. (fuel types, project type, etc)\r\n ApplicationTierTypeList = 7,\r\n Dynamic = 10,\r\n Function = 15 //Field does not exist in UI. Used when tiering requires a field to trigger a function to retrieve tier value.\r\n}\r\n\r\n\r\ninterface RequiredFieldModel {\r\n IsEnabled: boolean;\r\n IsRequired: boolean;\r\n FieldName: string;\r\n LabelText: string;\r\n EditCode: number;\r\n UsageCode: number;\r\n FieldDataType: FieldDataTypeCode;\r\n IsEditable: FieldEditableTypeCode;\r\n HyperLinkText: string;\r\n ContextHelpText: string;\r\n ContextHelpTitle: string;\r\n PlaceholderText: string;\r\n\r\n HasMinValue: boolean;\r\n HasMaxValue: boolean;\r\n MinValue: number;\r\n MaxValue: number;\r\n HasDateMinValue: boolean;\r\n HasDateMaxValue: boolean;\r\n DateMinValue: Date;\r\n DateMaxValue: Date;\r\n ItemList: ApplicationListItem[];\r\n}\r\n\r\nexport class RequiredFieldBinder {\r\n\r\n public SetProgramRequiredFields(url, OnRequiredFieldsDataBound: () => void, isEditPage: boolean = false) {\r\n\r\n $.ajax({\r\n url: url,\r\n type: 'GET'\r\n }).done((data) => {\r\n\r\n //Need to call validate to reinitalize validator after ajax call.\r\n //$('#application-form').validate();\r\n //jQuery.validator.unobtrusive.parse('application-form');\r\n if (data.length > 0) {\r\n $.each(data, (index, value) => {\r\n this.SetApplicationRequiredFieldValues(value, 'ApplicationInformation', false, isEditPage, false);\r\n this.SetRequiredFieldHelpText(value, 'ApplicationInformation');\r\n });\r\n }\r\n\r\n this.ShowAppForm();\r\n\r\n //handle stuff that needs to happen after the fields are bound\r\n if (typeof OnRequiredFieldsDataBound == 'function') {\r\n OnRequiredFieldsDataBound();\r\n }\r\n\r\n }).fail((xhr) => {\r\n if (xhr.status == 401 || xhr.status == 440) {\r\n window.location.href = window.origin + \"/Home/SessionTimeout\";\r\n } else {\r\n console.log(\"Error - SetProgramRequiredFields\");\r\n console.log(\"Error Text: \" + xhr.responseText);\r\n console.log(\"Error: \" + xhr.statusText);\r\n console.log(\"Status: \" + xhr.status);\r\n console.log(\"Status Code: \" + xhr.statusCode);\r\n alert('Error: ' + xhr.status + ' ' + xhr.statusText);\r\n }\r\n });\r\n }\r\n\r\n\r\n public SetProgramRequiredFieldsByPage(url, pageName, helpImageUrl, isEditPage: boolean = false) {\r\n\r\n //Note: TS vs JS. To get this context, must user (result)=> instead of function(result)\r\n $.getJSON(url)\r\n .done((data) => {\r\n\r\n //Need to call validate to reinitalize validator after ajax call.\r\n //Note: validate() was throwing an error on one and done??\r\n //$('#application-form').validate();\r\n if (data.length > 0) {\r\n $.each(data, (index, value) => {\r\n this.SetApplicationRequiredFieldValues(value, pageName, false, isEditPage, false);\r\n this.SetRequiredFieldHelpText(value, pageName);\r\n });\r\n }\r\n\r\n this.ShowAppForm();\r\n\r\n //handle stuff that needs to happen after the fields are bound\r\n if (typeof OnRequiredFieldsDataBound == 'function') {\r\n OnRequiredFieldsDataBound();\r\n }\r\n\r\n })\r\n .fail(() => {\r\n console.log(\"error\");\r\n });\r\n }\r\n\r\n\r\n public SetProgramRequiredFieldsByPageApplyRules(url, pageName, OnRequiredFieldsDataBound: ()=> void, isEditPage: boolean = false, isPremiseFromCIS = false) {\r\n\r\n //Note: TS vs JS. To get this context, must user (result)=> instead of function(result)\r\n $.getJSON(url)\r\n .done((data) => {\r\n\r\n //Need to call validate to reinitalize validator after ajax call.\r\n //Note: validate() was throwing an error on one and done??\r\n //$('#application-form').validate();\r\n if (data.length > 0) {\r\n $.each(data, (index, value) => {\r\n this.SetApplicationRequiredFieldValues(value, pageName, true, isEditPage, isPremiseFromCIS);\r\n //FIXME\r\n //this.SetRequiredFieldHelpText(value, pageName, helpImageUrl);\r\n this.SetRequiredFieldHelpText(value, pageName);\r\n });\r\n }\r\n\r\n this.ShowAppForm();\r\n\r\n //handle stuff that needs to happen after the fields are bound\r\n if (typeof OnRequiredFieldsDataBound == 'function') {\r\n OnRequiredFieldsDataBound();\r\n }\r\n\r\n });\r\n\r\n }\r\n\r\n public SetApplicationRequiredFieldValues(field: RequiredFieldModel, pageName, applyValidation: boolean, isEditPage: boolean, isPremiseFromCIS: boolean) {\r\n // default case for backward compatibility\r\n //Legacy = 0 - Do not use\r\n //Field = 1 - Show / Hides, Updates Text, Set Jquery required field\r\n //Title = 2 - Updates text (can update to blank)\r\n //FieldSet = 3, - Block element.Show / Hides field (Does not update label, used for div or fieldset to show or hide)\r\n //Paragraph = 4 - Paragraph - Similar to Label.Allows for formatted text.\r\n //ReadOnlyField = 5 - Read Only Field - Show / Hide, Update Label, No Validation\r\n //Field Range = 6 - Same as field, but adds min/max validation\r\n //Field Date Range = 7 - Same as field, but adds min/max date validation\r\n\r\n if (field.UsageCode == null || field.UsageCode == 0 || field.UsageCode == 1) {\r\n //Treat this as a form field.\r\n this.HandleRequiredFieldValue(field, pageName, applyValidation, isEditPage, isPremiseFromCIS);\r\n } else if (field.UsageCode == 2) {\r\n this.HandleRequiredTitleValue(field);\r\n } else if (field.UsageCode == 3) {\r\n this.HandleRequiredFieldsetValue(field);\r\n } else if (field.UsageCode == 4) {\r\n this.HandleRequiredTitleValue(field);\r\n } else if (field.UsageCode == 5) {\r\n this.HandleRequiredTitleValue(field);\r\n this.HandleRequiredFieldsetValue(field);\r\n } else if (field.UsageCode == 6) {\r\n this.HandleRequiredFieldValue(field, pageName, applyValidation, isEditPage, isPremiseFromCIS);\r\n this.SetNumericFieldRangeValidation(field, pageName);\r\n } else if (field.UsageCode == 7) {\r\n this.HandleRequiredFieldValue(field, pageName, applyValidation, isEditPage, isPremiseFromCIS);\r\n this.SetDateFieldValidation(field, pageName);\r\n }\r\n }\r\n\r\n HideUnusedProgramFuelTypeFieldsets() {\r\n //Hide unused fuel sections.\r\n var ac = $(\"#pageAirConditioningFieldSet\").find(\".app-opt-attr:visible\").filter(function () {\r\n return $(this).css(\"display\") !== 'none';\r\n });\r\n if (!ac.length) {\r\n $(\"#pageAirConditioningFieldSet\").hide();\r\n }\r\n\r\n var wh = $(\"#pageWaterHeatingFieldSet\").find(\".app-opt-attr\").filter(function () {\r\n return $(this).css(\"display\") !== 'none';\r\n });\r\n if (!wh.length) {\r\n $(\"#pageWaterHeatingFieldSet\").hide();\r\n }\r\n\r\n var hh = $(\"#pageHouseHeatingFieldSet\").find(\".app-opt-attr[display!=' none']\").filter(function () {\r\n return $(this).css(\"display\") !== 'none';\r\n });\r\n if (!hh.length) {\r\n $(\"#pageHouseHeatingFieldSet\").hide();\r\n }\r\n }\r\n\r\n private HandleRequiredFieldValue(field: RequiredFieldModel, pageName, applyValidation: boolean, isEditPage: boolean, isPremiseFromCIS: boolean) {\r\n\r\n //Hide or Show div\r\n this.ToggleFieldVisiblity(field, pageName);\r\n\r\n //Enable or disable the html control\r\n this.ToggleFieldEditability(field, pageName, isEditPage, isPremiseFromCIS);\r\n\r\n if (field.IsEnabled) {\r\n //Update label\r\n this.UpdateFieldLabelText(field, pageName);\r\n\r\n //Set JQV\r\n if (applyValidation) {\r\n this.ToggleRequiredFieldValidation(field.IsRequired, pageName, field.FieldName);\r\n }\r\n if (!field.IsRequired) {\r\n var inpt = this.GetPageFieldControl(pageName, field.FieldName);\r\n inpt.attr(\"placeholder\", field.PlaceholderText);\r\n }\r\n\r\n if (field.ItemList != null) {\r\n var inputName = \"#\" + this.GetPageFieldName(pageName, field.FieldName);\r\n DropdownListUtility.UpdateApplicationRequiredFieldDropdownList(inputName, field.ItemList);\r\n }\r\n }\r\n }\r\n\r\n private HandleRequiredTitleValue(field: RequiredFieldModel) {\r\n $('#' + field.FieldName).html(field.LabelText);\r\n\r\n //if its hidden, make sure we show it.\r\n var eqDiv = $('#' + field.FieldName).closest(\"div.app-opt-attr\");\r\n if (eqDiv.length) {\r\n if (field.IsEnabled) {\r\n eqDiv.show();\r\n\r\n } else {\r\n eqDiv.hide();\r\n }\r\n }\r\n }\r\n\r\n private HandleRequiredFieldsetValue(field: RequiredFieldModel) {\r\n if (field.IsEnabled == true) {\r\n $('#' + field.FieldName).show();\r\n }\r\n else {\r\n $('#' + field.FieldName).hide();\r\n }\r\n }\r\n\r\n private UpdateFieldLabelText(field: RequiredFieldModel, pageName) {\r\n\r\n //Even though we are selecting by id, use attr+each since we have multiple groups of radio btns sharing an ID.\r\n var inputName = this.GetPageFieldName(pageName, field.FieldName);\r\n\r\n $(\"[id=\" + inputName + \"]\").each(function () {\r\n if ($(this).length) {\r\n if (field.LabelText) {\r\n var eqDiv = $(this).closest(\"div.app-opt-attr, div.dynamic-label-div\");\r\n var lbl = eqDiv.find(\".control-label, .col-form-label, .form-label, .dynamic-question-label\").text(field.LabelText);\r\n if (field.IsRequired) {\r\n lbl.addClass(\"label-required\");\r\n }\r\n }\r\n }\r\n });\r\n\r\n\r\n //Do the same update using name, there are instances where id has been overridden.\r\n var namedInput: string = \"input[name='\" + inputName + \"']\";\r\n namedInput = namedInput.split(\"_\").join(\".\");\r\n $(namedInput).each(function () {\r\n if ($(this).length) {\r\n if (field.LabelText) {\r\n var eqDiv = $(this).closest(\"div.app-opt-attr, div.dynamic-label-div\");\r\n var lbl = eqDiv.find(\".control-label, .col-form-label, .dynamic-question-label\").text(field.LabelText);\r\n if (field.IsRequired) {\r\n lbl.addClass(\"label-required\");\r\n }\r\n }\r\n }\r\n });\r\n\r\n }\r\n\r\n\r\n SetRequiredFieldHelpText(field: RequiredFieldModel, pageName) {\r\n\r\n if (field.UsageCode == 0 || field.UsageCode == 1) {\r\n if (field.IsEnabled && field.ContextHelpTitle.length > 0 && field.ContextHelpText.length > 0) {\r\n\r\n\r\n var ttId = this.GetPageFieldName(pageName, field.FieldName);\r\n var ttCtrl = $(\"#\" + ttId);\r\n\r\n if (ttCtrl.length != 0) {\r\n ttCtrl.prop(\"title\", field.ContextHelpText);\r\n ttCtrl.tooltip({ placement: \"bottom\", html: true });\r\n }\r\n }\r\n }\r\n }\r\n\r\n SetRequiredFieldHelpTextPopover(field: RequiredFieldModel, pageName, helpImageUrl: string) {\r\n\r\n if (!helpImageUrl) {\r\n if ($(\"#icf-common-help-url\").length) {\r\n helpImageUrl = $(\"#icf-common-help-url\").val()[0];\r\n }\r\n }\r\n\r\n if (typeof helpImageUrl !== \"undefined\") {\r\n if (field.UsageCode == 0 || field.UsageCode == 1) {\r\n if (field.IsEnabled && field.ContextHelpTitle.length > 0 && field.ContextHelpText.length > 0) {\r\n\r\n var popId = this.GetPageFieldName(pageName, field.FieldName) + '_Help';\r\n var popoverCtrl = $(\"#\" + popId);\r\n\r\n if (popoverCtrl.length == 0) {\r\n var eqDiv = $(\"#\" + this.GetPageFieldName(pageName, field.FieldName)).closest(\"div.app-opt-attr, div.dynamic-label-div\");\r\n var lbl = eqDiv.find(\".control-label, .dynamic-question-label\");\r\n var ctrl_div = lbl.siblings(\".controls\").first();\r\n ctrl_div.append('' + field.HyperLinkText + ' ' + helpImageUrl + '');\r\n } else {\r\n popoverCtrl.html(field.HyperLinkText + ' ' + helpImageUrl);\r\n }\r\n\r\n $('#' + popId).popover({\r\n placement: 'bottom',\r\n container: 'body',\r\n html: true,\r\n title: '' + field.ContextHelpTitle + '' +\r\n '',\r\n content: field.ContextHelpText\r\n });\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n ToggleRequiredFieldValidation(isRequired, pageName, fieldName) {\r\n\r\n var inpt = this.GetPageFieldControl(pageName, fieldName);\r\n if (inpt.length) {\r\n\r\n inpt.rules(\"remove\", \"required\");\r\n\r\n if (isRequired) {\r\n inpt.rules(\"add\", {\r\n required: true,\r\n messages: {\r\n required: \"Required\"\r\n },\r\n normalizer: function (value) {\r\n return $.trim(value);\r\n }\r\n });\r\n } else {\r\n //Do nothing?\r\n //inpt.val('');\r\n //inpt.prop('checked', false);\r\n //inpt.rules(\"remove\", \"required range min max\");\r\n }\r\n }\r\n }\r\n\r\n ToggleFieldVisiblity(field: RequiredFieldModel, pageName) {\r\n var inpt = this.GetPageFieldControl(pageName, field.FieldName);\r\n if (inpt.length) {\r\n //Div must be marked as optional\r\n var eqDiv = inpt.closest(\"div.app-opt-attr\");\r\n if (eqDiv.length) {\r\n if (field.IsEnabled) {\r\n eqDiv.show();\r\n\r\n //Show enclosing fieldset if it exists\r\n this.ShowFieldset(inpt);\r\n\r\n } else {\r\n inpt.val('');\r\n eqDiv.hide();\r\n }\r\n }\r\n }\r\n }\r\n\r\n ShowFieldset(inptFld: JQuery) {\r\n var eqFldSet = inptFld.closest(\"fieldset.fldset-opt-attr\");\r\n if (eqFldSet.length) {\r\n eqFldSet.show();\r\n }\r\n }\r\n\r\n private ToggleFieldEditability(field: RequiredFieldModel, pageName: string, isEditPage: boolean, isPremiseFromCIS: boolean) {\r\n var inpt = this.GetPageFieldControl(pageName, field.FieldName);\r\n if (inpt.length) {\r\n if (field.IsEditable == FieldEditableTypeCode.ReadOnly ||\r\n (field.IsEditable == FieldEditableTypeCode.ReadonlyOnEdit && isEditPage == true) ||\r\n (field.IsEditable == FieldEditableTypeCode.ReadonlyOnSSO && isPremiseFromCIS)) {\r\n\r\n var fldName = this.GetPageInputFieldName(pageName, field.FieldName);\r\n\r\n var namedInput: string = \"input[name='\" + fldName + \"']\";\r\n namedInput = namedInput.split(\"_\").join(\".\");\r\n\r\n //If we have a required field that is empty, do not disable it.\r\n if ($(namedInput).is(':radio')) {\r\n // The field is a radio button\r\n var radioNamedInput: string = \"input[name='\" + fldName + \"']:checked\";\r\n if (field.IsRequired && $(radioNamedInput).val() == undefined) {\r\n return;\r\n }\r\n } else {\r\n // The field is not a radio button\r\n if (field.IsRequired && $(namedInput).val() == \"\") {\r\n return;\r\n }\r\n }\r\n\r\n //If we have an empty field in the SSO case, dont make it readonly.\r\n if (field.IsEditable == FieldEditableTypeCode.ReadonlyOnSSO && isPremiseFromCIS) {\r\n\r\n //check for a select list first\r\n var namedSelect: string = \"select[name='\" + fldName + \"']\";\r\n namedSelect = namedSelect.split(\"_\").join(\".\");\r\n if ($(namedSelect).length) {\r\n if (!$(namedSelect).val()) {\r\n return;\r\n }\r\n } else if (!$(namedInput).val()) {\r\n return;\r\n }\r\n }\r\n\r\n //Set the field to readonly. Handle all of the different types of fields.\r\n inpt.prop('readonly', true);\r\n $(namedInput).prop('readonly', true);\r\n\r\n if ($(namedInput).is(':radio')) {\r\n $(namedInput).prop('disabled', true);\r\n }\r\n\r\n if ($(inpt).is(':checkbox')) {\r\n $(inpt).prop('disabled', true);\r\n }\r\n\r\n var namedSelect: string = \"select[name='\" + fldName + \"']\";\r\n namedSelect = namedSelect.split(\"_\").join(\".\");\r\n if ($(namedSelect).length) {\r\n $(namedSelect).prop('disabled', true);\r\n }\r\n }\r\n }\r\n }\r\n\r\n private SetNumericFieldRangeValidation(field: RequiredFieldModel, pageName: string) {\r\n\r\n var fieldName: string = \"Value\";\r\n var inputName = this.GetPageFieldName(pageName, field.FieldName);\r\n var inpt = $(\"input[id=\" + inputName + \"]\");\r\n if (inpt.length) {\r\n\r\n inpt.rules(\"remove\", \"range min max\");\r\n\r\n if (field.HasMinValue && !field.HasMaxValue) {\r\n\r\n inpt.rules(\"add\", {\r\n min: field.MinValue,\r\n messages: {\r\n range: jQuery.validator.format(fieldName + \" must be between greater than {0}\")\r\n }\r\n });\r\n\r\n } else if (!field.HasMinValue && field.HasMaxValue) {\r\n\r\n inpt.rules(\"add\", {\r\n max: field.MaxValue,\r\n messages: {\r\n range: jQuery.validator.format(fieldName + \" must be less than {0}\")\r\n }\r\n });\r\n\r\n } else if (field.HasMinValue && field.HasMaxValue) {\r\n\r\n inpt.rules(\"add\", {\r\n range: [field.MinValue, field.MaxValue],\r\n messages: {\r\n range: jQuery.validator.format(fieldName + \" must be between {0} and {1}\")\r\n }\r\n });\r\n\r\n }\r\n }\r\n }\r\n\r\n /*\r\n Handle setting date validations.\r\n - If the DateMin and DateMax are set, treat these are hard dates.\r\n - If the Min and Max are set, treat these as day offsets\r\n - It is possible to use both, but offsets will override hard dates.\r\n */\r\n private SetDateFieldValidation(field: RequiredFieldModel, pageName: string) {\r\n\r\n var inputName = this.GetPageFieldName(pageName, field.FieldName);\r\n var inpt = $(\"input[id=\" + inputName + \"]\");\r\n if (inpt.length) {\r\n\r\n var startDate = new Date();\r\n var endDate = new Date();\r\n\r\n //If no ranges are set for a date. Set to 6 months before and after current date.\r\n if (!field.HasMinValue && !field.HasMaxValue && !field.HasDateMinValue && !field.HasDateMaxValue) {\r\n inpt.datepicker({\r\n minDate: \"-180D\",\r\n maxDate: \"+180D\"\r\n });\r\n startDate.setDate(startDate.getDate() - 180);\r\n endDate.setDate(endDate.getDate() + 180);\r\n inpt.rules(\"add\",\r\n {\r\n dateRangeCheck: [startDate.toLocaleDateString(), endDate.toLocaleDateString()]\r\n });\r\n return;\r\n }\r\n\r\n\r\n //This sets the range for the popup calendar based on fixed dates, then sets JQuery validation based on hard dates\r\n if (field.HasDateMinValue && !field.HasDateMaxValue) {\r\n var min = new Date(field.DateMinValue.toString());\r\n inpt.datepicker({\r\n minDate: min\r\n });\r\n inpt.rules(\"add\",\r\n {\r\n dateMinCheck: [min.toLocaleDateString()]\r\n });\r\n return;\r\n } else if (!field.HasDateMinValue && field.HasDateMaxValue) {\r\n var max = new Date(field.DateMaxValue.toString());\r\n inpt.datepicker({\r\n maxDate: max\r\n });\r\n inpt.rules(\"add\",\r\n {\r\n dateMaxCheck: [max.toLocaleDateString()]\r\n });\r\n return;\r\n } else if (field.HasDateMinValue && field.HasDateMaxValue) {\r\n var min = new Date(field.DateMinValue.toString());\r\n var max = new Date(field.DateMaxValue.toString());\r\n inpt.datepicker({\r\n minDate: min,\r\n maxDate: max\r\n });\r\n inpt.rules(\"add\",\r\n {\r\n dateRangeCheck: [min.toLocaleDateString(), max.toLocaleDateString()]\r\n });\r\n return;\r\n }\r\n\r\n //This code sets the calendar range then sets JQuery validation based on date offsets\r\n if (field.HasMinValue && !field.HasMaxValue) {\r\n inpt.datepicker({\r\n onSelect: this.ShowDates,\r\n minDate: field.MinValue\r\n });\r\n startDate.setDate(startDate.getDate() + field.MinValue);\r\n inpt.rules(\"add\",\r\n {\r\n dateMinCheck: [startDate.toLocaleDateString()]\r\n });\r\n\r\n } else if (!field.HasMinValue && field.HasMaxValue) {\r\n inpt.datepicker({\r\n onSelect: this.ShowDates,\r\n maxDate: field.MaxValue\r\n });\r\n endDate.setDate(endDate.getDate() + field.MinValue);\r\n inpt.rules(\"add\",\r\n {\r\n dateMaxCheck: [endDate.toLocaleDateString()]\r\n });\r\n\r\n } else if (field.HasMinValue && field.HasMaxValue) {\r\n inpt.datepicker({\r\n onSelect: this.ShowDates,\r\n minDate: field.MinValue,\r\n maxDate: field.MaxValue\r\n });\r\n startDate.setDate(startDate.getDate() + field.MinValue);\r\n endDate.setDate(endDate.getDate() + field.MaxValue);\r\n inpt.rules(\"add\",\r\n {\r\n dateRangeCheck: [startDate.toLocaleDateString(), endDate.toLocaleDateString()]\r\n });\r\n }\r\n }\r\n }\r\n\r\n private ShowDates(dateText, dateInstance) {\r\n $(\"#\" + dateInstance.id).removeClass('input-validation-error').addClass('valid');\r\n $(\"#\" + dateInstance.id).closest(\".equipment-attr\").children(\".field-validation-error\").removeClass('field-validation-error').addClass('field-validation-valid').empty();\r\n }\r\n\r\n\r\n private GetPageFieldControl(pageName: string, field: string): JQuery {\r\n\r\n var inputName = this.GetPageFieldName(pageName, field);\r\n\r\n var ctrl = $(\"#\" + inputName);\r\n if (!ctrl.length) {\r\n //In some cases id needed to be changed, so see if we can find by name.\r\n var namedInput: string = \"input[name='\" + inputName + \"']\";\r\n namedInput = namedInput.split(\"_\").join(\".\");\r\n return $(namedInput);\r\n }\r\n\r\n return $(\"#\" + inputName);\r\n }\r\n\r\n private GetPageFieldName(pageName: string, field: string): string {\r\n if (pageName) {\r\n return pageName + '_' + field;\r\n }\r\n else {\r\n return field;\r\n }\r\n }\r\n\r\n private GetPageInputFieldName(pageName: string, field: string): string {\r\n if (pageName) {\r\n return pageName + '.' + field;\r\n }\r\n else {\r\n return field;\r\n }\r\n }\r\n\r\n private ShowAppForm() {\r\n\r\n $(\"#application-form\").removeClass(\"d-none\").show();\r\n\r\n //Need to figure out how to clear hidden text boxes, but not type=hidden.\r\n //$(\"input[type='text']:hidden\").val('');\r\n }\r\n\r\n}","/// \r\n/// \r\n\r\nexport class ScreenLoadUtility {\r\n public static StartLoadingScreen(element?) {\r\n $(\"#loadingScreen\").modal(\"show\");\r\n }\r\n\r\n public static StopLoadingScreen(element?) {\r\n $(\"#loadingScreen\").modal(\"hide\");\r\n }\r\n\r\n}\r\n\r\n","/// \r\n\r\nimport { CISAddressTypeAhead } from \"../../common/CISAddressTypeAhead\";\r\n\r\nexport class RebateEligibilitySearchFieldBinder {\r\n\r\n public static Init() {\r\n\r\n RebateEligibilitySearchFieldBinder.BindHandlers();\r\n RebateEligibilitySearchFieldBinder.ShowHideCustomerLookupFields($(\"#ApplicationInformation_EligibilityInfo_EligibilityCheckTypeId\").val());\r\n\r\n let url: string = `${window.location.origin}/api/Eligibility/TypeaheadAddress`;\r\n var cisTypeahead: CISAddressTypeAhead = new CISAddressTypeAhead(url);\r\n cisTypeahead.Setup(\"ApplicationInformation_EligibilityInfo_TypeaheadAddress\", \"ApplicationInformation_EligibilityInfo_MelissaAddressKey\", \"ApplicationInformation_EligibilityInfo_UnitNumber\");\r\n\r\n CISAddressTypeAhead.InitTypeaheadFieldName();\r\n }\r\n\r\n private static BindHandlers() {\r\n $(\"#ApplicationInformation_EligibilityInfo_EligibilityCheckTypeId\").on(\"change\", function () {\r\n RebateEligibilitySearchFieldBinder.ShowHideCustomerLookupFields($(\"#ApplicationInformation_EligibilityInfo_EligibilityCheckTypeId\").val());\r\n RebateEligibilitySearchFieldBinder.ResetInputs();\r\n\r\n var e = new Event('icf-eligibility-deselected');\r\n document.dispatchEvent(e);\r\n });\r\n\r\n //Block paste. Typeahead blocked in CISAddressTypeAhead.ts\r\n $(\"#ApplicationInformation_EligibilityInfo_BillingNumber\").on(\"paste drop\", (e) => {\r\n $(e.target).prop(\"title\", \"Please type an account number. You are not able to copy and paste.\");\r\n var tt = $(e.target).tooltip({ placement: \"bottom\", html: true, container:\"body\" }).tooltip(\"show\");\r\n e.preventDefault()\r\n });\r\n\r\n\r\n $(\"#ApplicationInformation_EligibilityInfo_BillingNumber\").on(\"blur\", function () {\r\n var e = new Event('icf-eligibility-selected');\r\n document.dispatchEvent(e);\r\n });\r\n\r\n $(\"#ApplicationInformation_EligibilityInfo_ZipCode\").on(\"blur\", function () {\r\n\r\n //Add support for meter number later.\r\n let acctNbr = $(\"#ApplicationInformation_EligibilityInfo_BillingNumber\").val();\r\n if (acctNbr) {\r\n var e = new Event('icf-eligibility-selected');\r\n document.dispatchEvent(e);\r\n }\r\n });\r\n\r\n }\r\n\r\n private static ShowHideCustomerLookupFields(lookupType) {\r\n $(\"#divBillingNumber\").hide();\r\n $(\"#divMeterNumber\").hide();\r\n $(\"#divZipcode\").hide();\r\n $(\"#divTypeaheadAddress\").hide();\r\n var requireZipcode = $(\"#ApplicationInformation_EligibilityInfo_RequireZipcode\").val()\r\n\r\n switch (lookupType) {\r\n case \"1\":\r\n case \"7\":\r\n $(\"#divBillingNumber\").show();\r\n if (requireZipcode == 'True') {\r\n $(\"#divZipcode\").show();\r\n }\r\n\r\n break;\r\n case \"2\":\r\n $(\"#divMeterNumber\").show();\r\n if (requireZipcode == 'True') {\r\n $(\"#divZipcode\").show();\r\n }\r\n break;\r\n case \"4\":\r\n case \"6\":\r\n $(\"#divTypeaheadAddress\").show();\r\n break;\r\n }\r\n $(\"#divEligibility\").show();\r\n }\r\n\r\n\r\n private static ResetInputs() {\r\n\r\n $(\".icf-typeahead-field\").val('');\r\n $(\"#ApplicationInformation_EligibilityInfo_SearchStatusId\").val('');\r\n $(\"#ApplicationInformation_EligibilityInfo_BillingNumber\").val('');\r\n $(\"#ApplicationInformation_EligibilityInfo_MeterNumber\").val('');\r\n $(\"#ApplicationInformation_EligibilityInfo_ZipCode\").val('');\r\n $(\"#ApplicationInformation_EligibilityInfo_MelissaAddressKey\").val('');\r\n $(\"#ApplicationInformation_EligibilityInfo_ServiceTypeCode\").val('0');\r\n\r\n $(\"#divEligibility\").find('.field-validation-error').removeClass('field-validation-error').addClass('field-validation-valid').empty();\r\n }\r\n\r\n}","/// \r\n\r\nimport { ErrorHandler } from \"../../common/ErrorHandler\"; \r\n\r\nexport class ShoppingCart {\r\n\r\n public static Init() {\r\n $(\".icf-cart-item-delete\").on('click', (e) => {\r\n var url: string = e.currentTarget.getAttribute(\"href\");\r\n ShoppingCart.DeleteCartItem(url);\r\n return false;\r\n });\r\n }\r\n\r\n private static DeleteCartItem(url: string): void {\r\n\r\n if (!window.confirm(\"Are you sure you want to delete this item?\")) {\r\n return;\r\n }\r\n\r\n var jqxhr = $.post(url, (result) => {\r\n //alert(\"success - \" + JSON.stringify(result));\r\n if (result.IsJsonResponse) {\r\n //Possible session timeout\r\n if (result.RedirectUrl) {\r\n window.location.href = result.RedirectUrl\r\n }\r\n } else {\r\n //FIXME\r\n //reloads form with new html\r\n // $(\"#eligibility-form-div\").html(result);\r\n // var errorDiv = $('.field-validation-error:visible').first();\r\n // var scrollPos = errorDiv.offset().top;\r\n // $(window).scrollTop(scrollPos);\r\n }\r\n }).fail(function (xhr) {\r\n ErrorHandler.HandleError(xhr, false);\r\n });\r\n }\r\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/// \r\n/// \r\n/// \r\n/// \r\n\r\nimport { ShoppingCart } from '../common/ShoppingCart';\r\nimport { RequiredFieldBinder } from '../../common/RequiredFieldBinder'; \r\nimport { IntakeCancelDialog } from '../../common/IntakeCancelDialog'; \r\nimport { NavigationUtility } from '../../common/NavigationUtility';\r\nimport { ScreenLoadUtility } from '../../common/ScreenLoadUtility';\r\nimport { CISAddressTypeAhead } from '../../common/CISAddressTypeAhead';\r\nimport { ErrorHandler } from '../../common/ErrorHandler';\r\nimport { RebateEligibilitySearchFieldBinder } from '../common/RebateEligibilitySearchFieldBinder';\r\nimport { AntiForgeryUtility } from '../../common/AntiForgeryUtility'; \r\n\r\nexport class RebateEligibilityPage {\r\n\r\n public static Init() {\r\n\r\n //Setup dynamically required fields\r\n var url: string = `${window.location.origin}/api/requiredfields/rebateeligibility`;\r\n var reqFldBinder: RequiredFieldBinder = new RequiredFieldBinder();\r\n reqFldBinder.SetProgramRequiredFieldsByPageApplyRules(url, \"ApplicationInformation\", null, false, false);\r\n \r\n RebateEligibilityPage.UnbindFields();\r\n RebateEligibilityPage.BindFields();\r\n ShoppingCart.Init();\r\n RebateEligibilitySearchFieldBinder.Init();\r\n\r\n //If no app is in session, this will load all the cards in a disabled state.\r\n RebateEligibilityPage.LoadRebateCardList(true);\r\n }\r\n\r\n private static BindFields() {\r\n\r\n IntakeCancelDialog.BindConfirmCancelButton();\r\n NavigationUtility.ReloadPageOnBackButtonNavigation();\r\n \r\n $(\"input[name='ApplicationInformation.FuelTypeInformation.CurrentHouseFuelTypeId']\").on(\"change\", (e) => {\r\n this.ToggleHeatingSystemButtons(e.currentTarget.id);\r\n });\r\n\r\n //Set the initial statue of the heating system types\r\n RebateEligibilityPage.SetHeatingSystemVisibility();\r\n\r\n //Try to stop autofill for typeahead\r\n $(\"#ApplicationInformation_EligibilityInfo_TypeaheadAddress\").prop('autocomplete', 'chrome-off');\r\n\r\n $(\".icf-filter-rebate\").on('click', (e) => {\r\n //$.event.trigger('icf-eligibility-selected');\r\n RebateEligibilityPage.LoadRebateCardList(false);\r\n });\r\n\r\n //single path checkout\r\n $(\"#btn-sp-checkout\").on('click', (e) => {\r\n var url: string = e.currentTarget.getAttribute(\"href\");\r\n RebateEligibilityPage.SubmitForm(url);\r\n return false;\r\n });\r\n\r\n $(document).on('icf-eligibility-selected', (e, d) => {\r\n\r\n var typeaheadName: string = \"ApplicationInformation_EligibilityInfo_TypeaheadAddress\";\r\n CISAddressTypeAhead.RevertTypeaheadFieldName(typeaheadName);\r\n\r\n //Serialize data (with correct typeahead field name)\r\n var datax = $(\"#divEligibility :input\").serialize();\r\n\r\n //Reset typeahead field to be unique\r\n CISAddressTypeAhead.InitTypeaheadFieldName();\r\n\r\n\r\n ScreenLoadUtility.StartLoadingScreen();\r\n var url: string = `${window.location.origin}/Rebate/Eligibility/VerifyEligibility`;\r\n $.ajax({\r\n url: url,\r\n headers: AntiForgeryUtility.SetForgeryFromTokenInHeader(),\r\n data: datax,\r\n type: 'POST'\r\n }).done((result) => {\r\n if (result.IsJsonResponse) {\r\n if (result.RedirectUrl) {\r\n window.location.href = result.RedirectUrl\r\n } else {\r\n ErrorHandler.HandleError(result, false);\r\n }\r\n } else {\r\n $(\"#eligibilityDiv\").html(result);\r\n RebateEligibilitySearchFieldBinder.Init();\r\n ScreenLoadUtility.StopLoadingScreen();\r\n RebateEligibilityPage.LoadRebateCardList(false);\r\n }\r\n }).fail((xhr) => {\r\n ErrorHandler.HandleError(xhr);\r\n }).always((xhr) => {\r\n //ScreenLoadUtility.StopLoadingScreen();\r\n });\r\n\r\n });\r\n\r\n $(document).on('icf-eligibility-deselected', (e, d) => {\r\n RebateEligibilityPage.LoadRebateCardList(false);\r\n });\r\n\r\n }\r\n\r\n private static UnbindFields() {\r\n $('.icf-filter-rebate').off('click');\r\n $('#btn-sp-checkout').off('click');\r\n $(document).off('icf-eligibility-selected');\r\n $(document).off('icf-eligibility-deselected');\r\n }\r\n\r\n private static LoadRebateCardList(init) {\r\n\r\n if (!$(\"#rebateCardDiv\").length) {\r\n //Screen does not have the rebate card section, so ignore.\r\n return;\r\n }\r\n\r\n let applicationId: string = $(\"#applicationId\").val() as string;\r\n let accountUrl : string = `${window.location.origin}/Rebate/Eligibility/BindRebateCardList/${applicationId}`;\r\n if (init) {\r\n accountUrl += '?init=true';\r\n } else {\r\n accountUrl += '?init=false';\r\n }\r\n\r\n //@* Had trouble pass the cards, didnt need them to load the cards. *@\r\n var datax = $(\"#validate-form :input:not([name *= CardList])\").serialize();\r\n\r\n ScreenLoadUtility.StartLoadingScreen();\r\n $.ajax({\r\n url: accountUrl,\r\n headers: AntiForgeryUtility.SetForgeryFromTokenInHeader(),\r\n data: datax,\r\n type: 'POST'\r\n }).done((result) => {\r\n $(\"#rebateCardDiv\").html(result);\r\n $(\".icf-equipment-card-link\").off('click');\r\n $(\".icf-equipment-card-link\").on('click', (e) => {\r\n e.preventDefault();\r\n var url: string = e.currentTarget.getAttribute(\"href\");\r\n RebateEligibilityPage.SubmitForm(url);\r\n return false;\r\n });\r\n }).fail((xhr) => {\r\n ErrorHandler.HandleError(xhr);\r\n }).always((xhr) => {\r\n ScreenLoadUtility.StopLoadingScreen();\r\n });\r\n\r\n }\r\n\r\n private static SubmitForm(url: string): void {\r\n if (!$(\"#validate-form\").valid()) {\r\n var errorDiv = $('.field-validation-error:visible').first();\r\n var scrollPos = errorDiv.offset().top;\r\n $(window).scrollTop(scrollPos);\r\n return;\r\n }\r\n\r\n CISAddressTypeAhead.RevertTypeaheadFieldName(\"ApplicationInformation_EligibilityInfo_TypeaheadAddress\");\r\n var datax = $(\"#validate-form\").serialize();\r\n CISAddressTypeAhead.InitTypeaheadFieldName();\r\n\r\n //Note: TS vs JS. To get this context, must user (result)=> instead of function(result)\r\n var jqxhr = $.post(url, datax, (result) => {\r\n //alert(\"success - \" + JSON.stringify(result));\r\n if (result.IsJsonResponse) {\r\n //Possible session timeout\r\n if (result.RedirectUrl) {\r\n window.location.href = result.RedirectUrl\r\n }\r\n } else {\r\n //reloads form with new html (_EligiblityCheckForm.cshtml)\r\n $(\"#eligibility-form-div\").html(result);\r\n RebateEligibilityPage.Init();\r\n\r\n var errorDiv = $('.field-validation-error:visible').first();\r\n var scrollPos = errorDiv.offset().top;\r\n $(window).scrollTop(scrollPos);\r\n }\r\n }).done(function (result) {\r\n }).fail(function (xhr) {\r\n ErrorHandler.HandleError(xhr, false);\r\n }).always(function () {\r\n\r\n });\r\n }\r\n\r\n private static ToggleHeatingSystemButtons(currentHouseHeatingFuelType: string) {\r\n\r\n $(\"input[name='ApplicationInformation.FuelTypeInformation.AllHeatingSystemTypeId']:radio\").prop('checked', false);\r\n RebateEligibilityPage.ShowHideHeatingSystemTypeByFuelType(currentHouseHeatingFuelType);\r\n return;\r\n }\r\n\r\n private static ShowHideHeatingSystemTypeByFuelType(currentHouseHeatingFuelType: string) {\r\n\r\n if (currentHouseHeatingFuelType == 'ft_FuelTypeGas') {\r\n RebateEligibilityPage.DisableGasHeatingSystemTypes(false);\r\n RebateEligibilityPage.DisableElectricHeatingSystemTypes(true);\r\n } else if (currentHouseHeatingFuelType == 'ft_FuelTypeElectric') {\r\n RebateEligibilityPage.DisableGasHeatingSystemTypes(true);\r\n RebateEligibilityPage.DisableElectricHeatingSystemTypes(false);\r\n } else {\r\n RebateEligibilityPage.DisableGasHeatingSystemTypes(false);\r\n RebateEligibilityPage.DisableElectricHeatingSystemTypes(false);\r\n }\r\n }\r\n\r\n private static DisableGasHeatingSystemTypes(disableFlag: boolean) {\r\n $(\"input[id=hst_HeatingSystemBoiler]\").prop('disabled', disableFlag);\r\n $(\"input[id=hst_HeatingSystemFurnace]\").prop('disabled', disableFlag);\r\n }\r\n\r\n private static DisableElectricHeatingSystemTypes(disableFlag: boolean) {\r\n $(\"input[id=hst_HeatingSystemElectricResistance]\").prop('disabled', disableFlag);\r\n $(\"input[id=hst_HeatingSystemForcedAir]\").prop('disabled', disableFlag);\r\n $(\"input[id=hst_HeatingSystemHeatPump]\").prop('disabled', disableFlag);\r\n $(\"input[id=hst_HeatingSystemElectricFurnace]\").prop('disabled', disableFlag);\r\n $(\"input[id=hst_HeatingSystemRadiant]\").prop('disabled', disableFlag);\r\n $(\"input[id=hst_Other]\").prop('disabled', disableFlag);\r\n }\r\n\r\n private static SetHeatingSystemVisibility() {\r\n var currentHouseHeatingFuelType = $(\"input[name='ApplicationInformation.FuelTypeInformation.CurrentHouseFuelTypeId']:checked\").attr(\"id\");\r\n if (currentHouseHeatingFuelType) {\r\n RebateEligibilityPage.ShowHideHeatingSystemTypeByFuelType(currentHouseHeatingFuelType.toString());\r\n }\r\n }\r\n\r\n}\r\n\r\n((window: any, document: any) => {\r\n $(() => {\r\n RebateEligibilityPage.Init();\r\n });\r\n})(window, document);"],"names":[],"sourceRoot":""}