{"version":3,"file":"sm.portal.page.inquiry.min.js","names":["viewModel","sm","portal","vm","InquiryViewModel","$","window","extend","page","inquiry","initPage","when","utility","loadTemplate","done","TemplatesLoaded","AccountViewModel","IsUserLoggedIn","LoadInitialData","ko","applyBindings","jQuery","document","bind"],"sources":["assets/js/pages/sm.portal.page.inquiry.js"],"mappings":"AAIA,IAAIA,UAAY,IAAIC,GAAGC,OAAOC,GAAGC,kBAKjC,SAAWC,GACP,IAAIJ,EAAKK,OAAOL,GAAKK,OAAOL,IAAM,CAAC,OAEV,IAAdA,EAAGC,QACVG,EAAEE,OAAON,EAAI,CAAEC,OAAQ,CAAC,SAEE,IAAnBD,EAAGC,OAAOM,MACjBH,EAAEE,OAAON,EAAGC,OAAQ,CAAEM,KAAM,CAAC,SAEK,IAA3BP,EAAGC,OAAOM,KAAKC,SACtBJ,EAAEE,OAAON,EAAGC,OAAOM,KAAM,CAAEC,QAAS,CAAC,IA2BzCJ,EAAEE,QAAO,EAAMN,EAAGC,OAAOM,KAAKC,QAAS,CACnCC,SAzBJ,WAEIV,UAAY,IAAIC,EAAGC,OAAOC,GAAGC,iBAE7BC,EAAEM,KACEV,EAAGC,OAAOU,QAAQC,aAAa,kBAAmB,iBAClDZ,EAAGC,OAAOU,QAAQC,aAAa,0BAA2B,uBAC1DZ,EAAGC,OAAOU,QAAQC,aAAa,yBAA0B,wBACzDZ,EAAGC,OAAOU,QAAQC,aAAa,kBAAmB,oBAClDZ,EAAGC,OAAOU,QAAQC,aAAa,6BAA8B,kBAC7DZ,EAAGC,OAAOU,QAAQC,aAAa,mCAAoC,qCACnEZ,EAAGC,OAAOU,QAAQC,aAAa,gCAAiC,mCAClEC,MAAK,WAEHd,UAAUe,iBAAgB,GAC1Bf,UAAUgB,mBAAmBC,gBAAe,WACxCjB,UAAUkB,iBACd,GACJ,IAGAC,GAAGC,cAAcpB,UACrB,GAMH,CAzCD,CAyCGqB,QAWAA,OAJGC,UAAUC,KAAK,mBAAmB,WAChCtB,GAAGC,OAAOM,KAAKC,QAAQC,UAC3B","ignoreList":[],"sourcesContent":["\r\n/************************************************/\r\n/* Variables */\r\n/************************************************/\r\nvar viewModel = new sm.portal.vm.InquiryViewModel();\r\n\r\n/************************************************/\r\n/* Page Object */\r\n/************************************************/\r\n(function ($) {\r\n var sm = window.sm = window.sm || {};\r\n\r\n if (typeof sm.portal === \"undefined\") {\r\n $.extend(sm, { portal: {} });\r\n }\r\n if (typeof sm.portal.page === \"undefined\") {\r\n $.extend(sm.portal, { page: {} });\r\n }\r\n if (typeof sm.portal.page.inquiry === \"undefined\") {\r\n $.extend(sm.portal.page, { inquiry: {} });\r\n }\r\n\r\n function initPage() {\r\n // Initialize the View Model\r\n viewModel = new sm.portal.vm.InquiryViewModel();\r\n\r\n $.when(\r\n sm.portal.utility.loadTemplate('InquiryTemplate', 'formTemplates'),\r\n sm.portal.utility.loadTemplate('ValidationFieldTemplate', 'validationTemplates'),\r\n sm.portal.utility.loadTemplate('MailingAddressTemplate', 'addressFormTemplates'),\r\n sm.portal.utility.loadTemplate('AccountTemplate', 'accountTemplates'),\r\n sm.portal.utility.loadTemplate('TermsAndConditionsTemplate', 'termsTemplates'),\r\n sm.portal.utility.loadTemplate('PortalValidationMessagesTemplate', 'portalValidationMessagesTemplates'),\r\n sm.portal.utility.loadTemplate('PortalWarningMessagesTemplate', 'portalWarningMessagesTemplates')\r\n ).done(function () {\r\n\r\n viewModel.TemplatesLoaded(true);\r\n viewModel.AccountViewModel().IsUserLoggedIn(function () {\r\n viewModel.LoadInitialData();\r\n });\r\n });\r\n\r\n // Bind to Page Elements\r\n ko.applyBindings(viewModel);\r\n }\r\n\r\n $.extend(true, sm.portal.page.inquiry, {\r\n initPage: initPage\r\n });\r\n\r\n})(jQuery);\r\n\r\n/************************************************/\r\n/* Event Hooks */\r\n/************************************************/\r\n(function ($) {\r\n\r\n $(document).bind('afterSMInitPage', function () {\r\n sm.portal.page.inquiry.initPage();\r\n });\r\n\r\n})(jQuery);"]}