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pack://Nau.Web.MainPortal/webpack/bootstrap","webpack://Nau.Web.MainPortal/webpack/runtime/define property getters","webpack://Nau.Web.MainPortal/webpack/runtime/hasOwnProperty shorthand","webpack://Nau.Web.MainPortal/webpack/runtime/make namespace object","webpack://Nau.Web.MainPortal/./src/Support/Contracts/ContactUsContract.ts","webpack://Nau.Web.MainPortal/./src/Support/ContactUs.ts","webpack://Nau.Web.MainPortal/./src/Support/SupportMap.ts","webpack://Nau.Web.MainPortal/./src/Support/index.ts"],"sourcesContent":["module.exports = jQuery;","// 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","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/* Contract for contact us submission */\r\nexport class ContactUsContract\r\n{\r\n\tname: string | undefined;\r\n\tzipCode: string | undefined;\r\n\temail: string | undefined;\r\n\tphone: string | undefined;\r\n\tagencyCode: string | undefined;\r\n\tlineOfBusiness: string | undefined;\r\n\tpolicyNumber: string | undefined;\r\n\tuserName: string | undefined;\r\n\tconcerning: string | undefined;\r\n\tcomment: string | undefined;\r\n}","import { ContactUsContract } from \"./Contracts/ContactUsContract\";\r\n\r\ndeclare global\r\n{\r\n\tinterface Window\r\n\t{\r\n\t\tNauUtility: any;\r\n\t\texitOkay: any;\r\n\t}\r\n}\r\n\r\nexport const ContactUs =\r\n{\r\n\t_ids: {\r\n\t\tsidebarContentHeaderDiv: 'sidebarContentHeaderDiv',\r\n\t\tvalidationSummaryDiv: 'validationSummary',\r\n\t\tsubmitButtonDiv: 'submitButton',\r\n\t\tsuccessMessageDiv: 'successMessage',\r\n\t\tfailMessageDiv: 'failMessage',\r\n\t\tcontactUsForm: 'nau-contact-form'\r\n\t},\r\n\r\n\t_routes: {\r\n\t\temailServiceUrl: '/WebApi/Common/EmailService',\r\n\t\tgetAllLinesOfBusiness: '/WebApi/Common/GetAllLinesOfBusiness'\r\n\t},\r\n\r\n\t/// Keep in sync with Nau/Constants/SubjectObjectConstants.cs\r\n\t_contactSubjects: function ()\r\n\t{\r\n\t\treturn ['General Inquiries', 'Technical Support', 'Training/Licensing', 'Underwriting', 'Accounting'];\r\n\t},\r\n\r\n\t_contactUsHtml: function ()\r\n\t{\r\n\t\tvar ids = ContactUs._ids;\r\n\r\n\t\treturn \"\\\r\n\t\t
\\\r\n\t\t\t
\\\r\n\t\t\t\\

Contact Us

\\\r\n\t\t\t\\

Name:

\\\r\n\t\t\\
\\\r\n\t\t
Thank you. Your Message has been sent.
\\\r\n\t\t
Unfortunately we've encountered an error.
\";\r\n\t},\r\n\r\n\t//Contact Us Form\r\n\tinitialize: function (isSideBarContent, isActiveUser)\r\n\t{\r\n\t\tvar formGroup = 'ContactForm';\r\n\t\tvar me = ContactUs;\r\n\t\tvar defaultName;\r\n\t\tvar defaultEmail;\r\n\t\tvar defaultPhone;\r\n\t\tvar defaultUserName;\r\n\r\n\t\tlet formData = new ContactUsContract();\r\n\r\n\t\tlet linesOfBusinessPromise = me.getAllLinesOfBusiness();\r\n\t\tlet userProfilePromise = me.getUserProfile(isActiveUser);\r\n\r\n\t\tPromise.all([linesOfBusinessPromise, userProfilePromise]).then((values:any) => \r\n\t\t{\r\n\t\t\tif (isActiveUser)\r\n\t\t\t{\r\n\t\t\t\tdefaultName = values[1].fullName;\r\n\t\t\t\tdefaultPhone = values[1].phone.displayPhoneNumber;\r\n\t\t\t\tdefaultEmail = values[1].email.emailAddress;\r\n\t\t\t\tdefaultUserName = values[1].userName;\r\n\t\t\t}\r\n\t\t\tthis.createContactForm(formData, formGroup, isSideBarContent, defaultName, defaultEmail, defaultPhone, defaultUserName, values[0]);\r\n\t\t});\r\n\t},\r\n\r\n\tcreateContactForm: function (formData, formGroup, isSideBarContent, defaultName, defaultEmail, defaultPhone, defaultUserName, linesOfBusiness)\r\n\t{\r\n\t\tvar me = ContactUs;\r\n\t\tvar validator = window.NauUtility.Dx.validationUtility;\r\n\r\n\t\tlet formContainer = $(\"#\" + me._ids.contactUsForm).dxForm({\r\n\t\t\tcolCount: 1,\r\n\t\t\tshowRequiredMark: false,\r\n\t\t\tformData: formData,\r\n\t\t\tvalidationGroup: formGroup,\r\n\t\t\titems: [{\r\n\t\t\t\tname: 'contactUs',\r\n\t\t\t\titemType: 'group',\r\n\t\t\t\titems: [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Name\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Name'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'name',\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\tvalue: defaultName\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\teditorType: 'dxTextBox',\r\n\t\t\t\t\t\tvalidationRules: validator.getPresetValidationRules().nameValidationRules || [{\r\n\t\t\t\t\t\t\ttype: \"required\"\r\n\t\t\t\t\t\t}]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Zip code \r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Zip Code'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'zipCode',\r\n\t\t\t\t\t\tvalidationRules: validator.getPresetValidationRules().zipCodeValidationRules\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Email \r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Email'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'email',\r\n\t\t\t\t\t\teditorType: 'dxTextBox',\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\tvalue: defaultEmail\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tvalidationRules: [{\r\n\t\t\t\t\t\t\ttype: \"email\",\r\n\t\t\t\t\t\t\tmessage: \"Please enter a valid email address\"\r\n\t\t\t\t\t\t}, {\r\n\t\t\t\t\t\t\ttype: \"required\",\r\n\t\t\t\t\t\t\tmessage: \"Email is required\"\r\n\t\t\t\t\t\t}]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Phone number\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Phone'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'phone',\r\n\t\t\t\t\t\teditorType: 'dxTextBox',\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\tmask: '(X00)000-0000',\r\n\t\t\t\t\t\t\tmaskRules: {\r\n\t\t\t\t\t\t\t\t'X': /[02-9]/\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tmaskInvalidMessage: 'The phone must have a correct USA phone format.',\r\n\t\t\t\t\t\t\tvalue: defaultPhone\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tvalidationRules: [{\r\n\t\t\t\t\t\t\ttype: \"pattern\",\r\n\t\t\t\t\t\t\tpattern: window.NauUtility.regexOps.phoneNumber,\r\n\t\t\t\t\t\t\tmessage: \"The phone must have a correct USA phone format\"\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: \"required\",\r\n\t\t\t\t\t\t\tmessage: \"Phone is required\"\r\n\t\t\t\t\t\t}]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Agency Code\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Agency Code'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'agencyCode',\r\n\t\t\t\t\t\tvalidationRules: [{\r\n\t\t\t\t\t\t\ttype: 'pattern',\r\n\t\t\t\t\t\t\tpattern: /^[0-9]{2}\\-[0-9]{3,4}|[0-9]{5,6}$/,\r\n\t\t\t\t\t\t\tmessage: 'Please provide a valid agency code.'\r\n\t\t\t\t\t\t}]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Policy Type\r\n\t\t\t\t\t\tdataField: \"lineOfBusiness\",\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Policy Type'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\teditorType: 'dxSelectBox',\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\tvalue: '',\r\n\t\t\t\t\t\t\titems: linesOfBusiness,\r\n\t\t\t\t\t\t\tplaceholder: 'Select policy type...',\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Policy Number\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Policy Number'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'policyNumber',\r\n\t\t\t\t\t\teditorType: 'dxTextBox'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//UserName\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'User Name'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\tvalue: defaultUserName\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'userName',\r\n\t\t\t\t\t\teditorType: 'dxTextBox'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Subject\r\n\t\t\t\t\t\tdataField: \"concerning\",\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Subject'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\teditorType: 'dxSelectBox',\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\tvalue: '',\r\n\t\t\t\t\t\t\titems: me._contactSubjects(),\r\n\t\t\t\t\t\t\tplaceholder: 'Select a Subject...',\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tvalidationRules: [{\r\n\t\t\t\t\t\t\ttype: \"required\",\r\n\t\t\t\t\t\t\tmessage: \"Subject is required\"\r\n\t\t\t\t\t\t}]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Comments/Question\r\n\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\tlocation: \"top\",\r\n\t\t\t\t\t\t\ttext: 'Comments'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdataField: 'comment',\r\n\t\t\t\t\t\teditorType: 'dxTextArea',\r\n\t\t\t\t\t\teditorOptions: {\r\n\t\t\t\t\t\t\theight: 140\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//Buttons\r\n\t\t\t\t\t\tcolCount: 1,\r\n\t\t\t\t\t\titemType: 'group',\r\n\t\t\t\t\t\titems: [{\r\n\t\t\t\t\t\t\titemType: 'empty',\r\n\t\t\t\t\t\t\tcolSpan: 1\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//Submit button\r\n\t\t\t\t\t\t\tname: \"submitButton\",\r\n\t\t\t\t\t\t\tcolSpan: 1,\r\n\t\t\t\t\t\t\titemType: 'button',\r\n\t\t\t\t\t\t\tcssClass: \"contactUsSubmitButton\",\r\n\t\t\t\t\t\t\tbuttonOptions: {\r\n\t\t\t\t\t\t\t\tvalidationGroup: formGroup,\r\n\t\t\t\t\t\t\t\tuseSubmitBehavior: true,\r\n\t\t\t\t\t\t\t\ttext: 'Submit',\r\n\t\t\t\t\t\t\t\twidth: 150,\r\n\t\t\t\t\t\t\t\tonClick: (e) =>\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tlet result = formContainer.dxForm('instance').validate();\r\n\t\t\t\t\t\t\t\t\tif (result.isValid)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tme.submitContactForm(formData);\r\n\t\t\t\t\t\t\t\t\t}\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\t}]\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t\t]\r\n\t\t});\r\n\r\n\t\t// we do a few modifications if the contact form is in the sidebar or full page\r\n\t\tif (isSideBarContent)\r\n\t\t{\r\n\t\t\t$('#' + me._ids.sidebarContentHeaderDiv).removeClass('hidden');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// initializing the validation summary section\r\n\t\t\t$('#' + me._ids.validationSummaryDiv).dxValidationSummary({\r\n\t\t\t\tvalidationGroup: formGroup\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvalidator.initCustomValidationErrorHandling();\r\n\t},\r\n\r\n\tsubmitContactForm: function (data: ContactUsContract)\r\n\t{\r\n\t\tvar me = ContactUs;\r\n\r\n\t\twindow.NauUtility.loadingOps.customLoadingMessage('Submiting Contact Request...');\r\n\r\n\t\tconsole.log(JSON.stringify(data));\r\n\r\n\t\twindow.NauUtility.apiOps.post({\r\n\t\t\trequiresCrossDomain: true,\r\n\t\t\tapi: me._routes.emailServiceUrl,\r\n\t\t\tdata: JSON.stringify(data),\r\n\t\t\tsuccess: function (serverResponse)\r\n\t\t\t{\r\n\t\t\t\tif (window.NauUtility.serverValidationOps.hasErrors({ response: serverResponse }))\r\n\t\t\t\t{\r\n\t\t\t\t\t$(\"#\" + me._ids.contactUsForm).addClass('hidden');\r\n\t\t\t\t\t$(\"#\" + me._ids.failMessageDiv).removeClass('hidden');\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$(\"#\" + me._ids.contactUsForm).addClass('hidden');\r\n\t\t\t\t\t$(\"#\" + me._ids.successMessageDiv).removeClass('hidden');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: function ()\r\n\t\t\t{\r\n\t\t\t\t$(\"#\" + me._ids.contactUsForm).addClass('hidden');\r\n\t\t\t\t$(\"#\" + me._ids.failMessageDiv).removeClass('hidden');\r\n\t\t\t},\r\n\t\t});\r\n\t},\r\n\r\n\r\n\tgetUserProfile: function (isActiveUser)\r\n\t{\r\n\r\n\t\tlet promise = new Promise((resolve) =>\r\n\t\t{\r\n\t\t\tif (isActiveUser)\r\n\t\t\t{\r\n\t\t\t\t// Get policyholder data\r\n\t\t\t\twindow.NauUtility.UserProfile.get().done(resolve);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tresolve(null);\r\n\t\t\t}\r\n\t\t});\t\r\n\t\treturn promise;\r\n\t},\r\n\r\n\tgetAllLinesOfBusiness: function ()\r\n\t{\r\n\t\tvar me = ContactUs;\r\n\r\n\t\tlet promise = new Promise((resolve) =>\r\n\t\t{\r\n\t\t\twindow.NauUtility.apiOps.get({\r\n\t\t\t\tapiVersion: '1.0',\r\n\t\t\t\tapi: me._routes.getAllLinesOfBusiness,\r\n\t\t\t\tsuccess: function (data)\r\n\t\t\t\t{\r\n\t\t\t\t\tresolve(data);\r\n\t\t\t\t},\r\n\t\t\t\terror: function (data)\r\n\t\t\t\t{\r\n\t\t\t\t\tme.errorFunction(data);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\treturn promise;\r\n\t},\r\n\terrorFunction: function (errorMessage)\r\n\t{\r\n\t\tvar me = ContactUs;\r\n\r\n\t\t$('#failMessage').append(\r\n\t\t\t'
' + errorMessage + '
'\r\n\t\t);\r\n\t}\r\n}\r\n","declare global\r\n{\r\n\tinterface Window\r\n\t{\r\n\t\tNauUtility: any;\r\n\t\texitOkay: any;\r\n\t}\r\n}\r\n\r\nexport const SupportMap =\r\n{\r\n\t_ids: {\r\n\t\tsupportMapDiv: \"supportMapDiv\",\r\n\t\tsupportKeyDiv: \"supportKeyDiv\",\r\n\t\tsupportMapKeyColumnOneDiv: \"supportMapKeyColumnOneDiv\",\r\n\t\tsupportMapKeyColumnTwoDiv: \"supportMapKeyColumnTwoDiv\",\r\n\t\tsupportErrorDiv: \"supportErrorDiv\"\r\n\t},\r\n\r\n\t_supportMapHtml: function ()\r\n\t{\r\n\t\tvar ids = SupportMap._ids;\r\n\r\n\t\treturn '
' +\r\n\t\t\t'' +\r\n\t\t\t'
' +\r\n\t\t\t'' +\r\n\t\t\t'' +\r\n\t\t\t'
';\r\n\t},\r\n\r\n\tinitializeSupportMap: function (parentId)\r\n\t{\r\n\t\tvar me = SupportMap;\r\n\r\n\t\t// adding our html template to parent div\r\n\t\t$('#' + parentId).append(me._supportMapHtml);\r\n\r\n\t\tme._populateMapUrl();\r\n\t\tme._populateMapKey();\r\n\r\n\t},\r\n\r\n\t// Populating Map Url from session storage or api request\r\n\t_populateMapUrl: function ()\r\n\t{\r\n\t\tvar me = SupportMap;\r\n\r\n\t\tvar dfdMapUrl = $.Deferred();\r\n\r\n\t\t// Pull from session variable if this was already loaded\r\n\t\tif (window.NauUtility.sessionStorageOps.hasValue(window.NauUtility.sessionStorageOps.constants.portalSupportMap))\r\n\t\t{\r\n\t\t\tdfdMapUrl.resolve(window.NauUtility.sessionStorageOps.getValue(window.NauUtility.sessionStorageOps.constants.portalSupportMap));\r\n\t\t}\r\n\t\t// Otherwise pull from our server\r\n\t\telse\r\n\t\t{\r\n\t\t\twindow.NauUtility.apiOps.get({\r\n\t\t\t\tapi: window.NauUtility.routeOps.support.getOfficeMapUrl(),\r\n\t\t\t\tsuccess: function (officeMapUrl)\r\n\t\t\t\t{\r\n\t\t\t\t\twindow.NauUtility.sessionStorageOps.setValue(window.NauUtility.sessionStorageOps.constants.portalSupportMap, officeMapUrl);\r\n\r\n\t\t\t\t\tdfdMapUrl.resolve(officeMapUrl);\r\n\t\t\t\t},\r\n\t\t\t\terror: function ()\r\n\t\t\t\t{\r\n\t\t\t\t\t$('#' + me._ids.supportErrorDiv).html(window.NauUtility.errorOps.errorMessages.errorMessageTemplate('Office Map'));\r\n\t\t\t\t\tdfdMapUrl.resolve(\"\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tdfdMapUrl.promise().done(function (officeMapUrl)\r\n\t\t{\r\n\t\t\t$('#' + me._ids.supportMapDiv).attr('src', officeMapUrl['officeMapUrl']);\r\n\t\t});\r\n\t},\r\n\r\n\t// Populating Office Data List from session storage or api request\r\n\t_populateMapKey: function ()\r\n\t{\r\n\t\tvar me = SupportMap;\r\n\r\n\t\tvar dfdMapKey = $.Deferred();\r\n\r\n\t\t// Pull from session variable if this was already loaded\r\n\t\tif (window.NauUtility.sessionStorageOps.hasValue(window.NauUtility.sessionStorageOps.constants.portalSupportMapKey))\r\n\t\t{\r\n\t\t\tdfdMapKey.resolve(window.NauUtility.sessionStorageOps.getValue(window.NauUtility.sessionStorageOps.constants.portalSupportMapKey));\r\n\t\t}\r\n\t\t// Otherwise pull from our server\r\n\t\telse\r\n\t\t{\r\n\t\t\twindow.NauUtility.apiOps.get({\r\n\t\t\t\tapi: window.NauUtility.routeOps.support.getOfficesList(),\r\n\t\t\t\tsuccess: function (officeList)\r\n\t\t\t\t{\r\n\t\t\t\t\twindow.NauUtility.sessionStorageOps.setValue(window.NauUtility.sessionStorageOps.constants.portalSupportMapKey, officeList);\r\n\r\n\t\t\t\t\tdfdMapKey.resolve(officeList);\r\n\t\t\t\t},\r\n\t\t\t\terror: function ()\r\n\t\t\t\t{\r\n\t\t\t\t\t$('#' + me._ids.supportErrorDiv).html(window.NauUtility.errorOps.errorMessages.errorMessageTemplate('List Of Offices'));\r\n\t\t\t\t\tdfdMapKey.resolve(\"\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tdfdMapKey.promise().done(function (officeList)\r\n\t\t{\r\n\t\t\tfor (var i = 0; i < officeList.length; i++)\r\n\t\t\t{\r\n\t\t\t\t// splitting into 2 columns\r\n\t\t\t\tif (i < (officeList.length / 2))\r\n\t\t\t\t{\r\n\t\t\t\t\t$('#' + me._ids.supportMapKeyColumnOneDiv).append(me._officeTemplate(officeList[i]));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$('#' + me._ids.supportMapKeyColumnTwoDiv).append(me._officeTemplate(officeList[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\t_officeTemplate: function (office)\r\n\t{\r\n\t\tvar officeTemplate = '' +\r\n\t\t\t'
  • ' + office.description + '

    ' +\r\n\t\t\t'

    ' + office.locationAddress.address1 + '

    ' +\r\n\t\t\t'

    ' + office.locationAddress.city + ', ' + office.locationAddress.state + ' ' + office.locationAddress.zipCode + '

    ' +\r\n\t\t\t'

    Phone: ' + office.localPhone.displayPhoneNumber + '

    ';\r\n\r\n\t\tif (office.tollFreePhone) officeTemplate += '

    Toll Free: ' + office.tollFreePhone.displayPhoneNumber + '

    ';\r\n\t\tif (office.fax) officeTemplate += '

    Fax: ' + office.fax.displayPhoneNumber + '

    ';\r\n\r\n\t\treturn officeTemplate += '
  • ';\r\n\t}\r\n}","import { ContactUs } from \"./ContactUs\";\r\nimport { SupportMap } from \"./SupportMap\";\r\n\r\n/**Build out the contact us page */\r\nexport const BuildContactUsPage = (includeSideBar, isInActiveUser) =>\r\n{\r\n\tContactUs.initialize(includeSideBar, isInActiveUser);\r\n};\r\n\r\n/**Build out the support page */\r\nexport const BuildSupportMap = (id) =>\r\n{\r\n\tSupportMap.initializeSupportMap(id);\r\n};"],"names":["module","exports","jQuery","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ContactUsContract","ContactUs","_ids","sidebarContentHeaderDiv","validationSummaryDiv","submitButtonDiv","successMessageDiv","failMessageDiv","contactUsForm","_routes","emailServiceUrl","getAllLinesOfBusiness","_contactSubjects","_contactUsHtml","ids","initialize","isSideBarContent","isActiveUser","defaultName","defaultEmail","defaultPhone","defaultUserName","me","formData","linesOfBusinessPromise","userProfilePromise","getUserProfile","Promise","all","then","values","fullName","phone","displayPhoneNumber","email","emailAddress","userName","createContactForm","formGroup","linesOfBusiness","validator","window","NauUtility","Dx","validationUtility","formContainer","$","dxForm","colCount","showRequiredMark","validationGroup","items","name","itemType","label","location","text","dataField","editorOptions","editorType","validationRules","getPresetValidationRules","nameValidationRules","type","zipCodeValidationRules","message","mask","maskRules","maskInvalidMessage","pattern","regexOps","phoneNumber","placeholder","height","colSpan","cssClass","buttonOptions","useSubmitBehavior","width","onClick","e","validate","isValid","submitContactForm","removeClass","dxValidationSummary","initCustomValidationErrorHandling","data","loadingOps","customLoadingMessage","console","log","JSON","stringify","apiOps","post","requiresCrossDomain","api","success","serverResponse","serverValidationOps","hasErrors","response","addClass","error","resolve","UserProfile","done","apiVersion","errorFunction","errorMessage","append","SupportMap","supportMapDiv","supportKeyDiv","supportMapKeyColumnOneDiv","supportMapKeyColumnTwoDiv","supportErrorDiv","_supportMapHtml","initializeSupportMap","parentId","_populateMapUrl","_populateMapKey","dfdMapUrl","Deferred","sessionStorageOps","hasValue","constants","portalSupportMap","getValue","routeOps","support","getOfficeMapUrl","officeMapUrl","setValue","html","errorOps","errorMessages","errorMessageTemplate","promise","attr","dfdMapKey","portalSupportMapKey","getOfficesList","officeList","i","length","_officeTemplate","office","officeTemplate","officeTypeIcon","description","locationAddress","address1","city","state","zipCode","localPhone","tollFreePhone","fax","BuildContactUsPage","includeSideBar","isInActiveUser","BuildSupportMap","id"],"sourceRoot":""}