{"version":3,"sources":["AppMain.ts"],"names":["define","require","exports","Navigation","Env","App","ExternalLinksInNewWindow_1","CustomerProfileCard_1","ImageFallback_1","NavigationScrollHideEffect_1","CookieBannerPlaceholder_1","AdminSessionTimer_1","InputExtensions_1","ExternalLinksConfirmationDialog_1","[object Object]","configFile","initialize","appContext","AppContext","this","masterNavigation","MasterNavigation","$","customerProfileCard","CustomerProfileCard","app","AppModel","ExternalLinksInNewWindow","ExternalLinksConfirmationDialog","ImageFallback","NavigationScrollHideEffect","CookieBannerPlaceholder","InputExtensions","AdminSessionTimer"],"mappings":"AAAAA,OAAO,CAAC,UAAW,UAAW,oBAAqB,qBAAsB,aAAc,kCAAmC,6BAA8B,uBAAwB,oCAAqC,iCAAkC,2BAA4B,yBAA0B,0CAA2C,SAAUC,EAASC,EAASC,EAAYC,EAAKC,EAAKC,EAA4BC,EAAuBC,EAAiBC,EAA8BC,EAA2BC,EAAqBC,EAAmBC,GAC3iB,aAkBA,OAjBA,MACIC,IAAIC,GAEAX,EAAIY,WAAWD,GACf,IAAIE,EAAa,IAAIZ,EAAIa,WACzBC,KAAKC,iBAAmB,IAAIjB,EAAWkB,iBAAiBC,EAAE,qBAAqB,IAC/EH,KAAKI,oBAAsB,IAAIhB,EAAsBiB,oBAJ1CL,KAKNM,IAAM,IAAIpB,EAAIqB,SAAST,GAC5B,IAAIX,EAA2BqB,yBAC/B,IAAId,EAAkCe,gCACtC,IAAIpB,EAAgBqB,cACpB,IAAIpB,EAA6BqB,2BACjC,IAAIpB,EAA0BqB,wBAC9B,IAAInB,EAAkBoB,gBACtB,IAAIrB,EAAoBsB","sourcesContent":["import Interfaces = require('./Core/Interfaces');\nimport Navigation = require('./Core/Navigation');\nimport Env = require('./Core/Environment');\nimport App = require('./Core/App');\nimport { ExternalLinksInNewWindow } from \"./Core/ExternalLinksInNewWindow\";\nimport { CustomerProfileCard } from './Core/CustomerProfileCard';\nimport { ImageFallback } from './Core/ImageFallback';\nimport { NavigationScrollHideEffect } from './Core/NavigationScrollHideEffect';\nimport { CookieBannerPlaceholder } from './Core/CookieBannerPlaceholder';\nimport { AdminSessionTimer } from './Core/AdminSessionTimer';\nimport { InputExtensions } from './Core/InputExtensions'\nimport { ExternalLinksConfirmationDialog } from './Core/ExternalLinksConfirmationDialog';\n\nclass AppMain {\n\n public masterNavigation: Navigation.MasterNavigation;\n public customerProfileCard: CustomerProfileCard;\n public app: App.AppModel;\n\n run(configFile: Interfaces.IAppConfig): void {\n var self = this;\n //init environment from config.json\n Env.initialize(configFile);\n //init js app context\n var appContext = new App.AppContext();\n //init master navigation\n this.masterNavigation = new Navigation.MasterNavigation($('#masterNavigation')[0]);\n this.customerProfileCard = new CustomerProfileCard();\n // init js app model and load context relevant module\n self.app = new App.AppModel(appContext);\n // Automatically open external links in new tab\n new ExternalLinksInNewWindow();\n // Automatically Calls ModalDialog when extern Link is called\n new ExternalLinksConfirmationDialog();\n // Enable data-fallback attribute for images\n new ImageFallback();\n // Add scroll effect for screens with less than 500px height (phone landscape mode)\n new NavigationScrollHideEffect();\n // Push down the navigation elements if the cookie banner is displayed\n new CookieBannerPlaceholder();\n\n new InputExtensions();\n\n new AdminSessionTimer();\n } \n}\n\nexport = AppMain"],"file":"AppMain.js"}