{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./source/core/environment/hostName.js","webpack:///./source/core/environment/cmsUrlBase.js","webpack:///./source/core/environment/environment.js","webpack:///./source/core/environment/detect.js","webpack:///./source/core/environment/urls.js","webpack:///./source/core/lifecycle/configure.js","webpack:///./source/core/html-building/containing-page/addInlineStyle.js","webpack:///./source/core/html-building/addStyleLink.js","webpack:///./source/core/html-building/containing-page/addLegacyStylesheets.js","webpack:///./source/core/html-building/containing-page/index.js","webpack:///./source/core/html-building/containing-page/addPageResources.js","webpack:///./source/core/html-building/containing-page/configureHostApplicationContainer.js","webpack:///./source/core/lifecycle/initializeOneLni.js","webpack:///./source/core/html-building/createBodyContainer.js","webpack:///./source/core/html-building/addOneLniScripts.js","webpack:///./source/elements/lni-ewn-footer/LniEwnFooter.js","webpack:///./source/core/html-building/createIframeContainer.js","webpack:///./source/core/html-building/compileIframe.js","webpack:///./source/elements/lni-ewn-footer/index.js","webpack:///./source/elements/lni-ewn-footer/footerIframe.js","webpack:///./source/elements/lni-ewn-header/LniEwnHeader.js","webpack:///./source/elements/lni-ewn-header/LniEwnHtmlHeader.js","webpack:///./source/core/html-building/populateContainer.js","webpack:///./source/elements/lni-ewn-header/index.js","webpack:///./source/elements/lni-ewn-secondary-nav/LniEwnSecondaryNav.js","webpack:///./source/elements/lni-ewn-secondary-nav/secondaryNavIframe.js","webpack:///./source/elements/lni-ewn-secondary-nav/index.js","webpack:///./source/core/lifecycle/addComponents.js","webpack:///./source/core/lifecycle/start.js","webpack:///./source/index.js","webpack:///./source/core/html-building/addScriptLink.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","stage","cmsRoot","window","location","host","indexOf","detect","environmentUrls","hostName","isDeployed","oneLni","ewn","root","script","style","polyfills","legacy3Css","legacy31Css","cms","api","cmsUrlBase","urls","prefix","description","defaultConfiguration","experience","legacyScripts","backbone","jquery","modernizr","require","underscore","breadcrumb","secondaryNavigation","iaLocation","isolation","is31App","appInformation","compatibilityMode","hideHeader","sharingWidget","options","head","configuration","document","querySelector","fontSize","iframeStyle","styleElement","createElement","innerHTML","environment","appendChild","parentElement","element","rel","type","href","addStyleLink","addInlineStyle","addLegacyStyleSheets","fullWidthContainer","id","classList","add","appPaths","forEach","path","formNode","headerContainer","hostApplicationContainer","clearFix","clear","leftMenuContainer","skipLink","tabIndex","hostApplication","show","clearFix2","footerContainer","legalFooterContainer","body","hostBody","hostBodyIdElement","documentHostApplication","newHostBodyIdElement","children","length","Array","from","node","containerElement","windowContext","framework","activeOneLni","setLocation","initialize","el","enableRouter","start","console","log","container","idCounter","child","childElement","includeCss","scriptElement","addScriptLink","src","LniEwnFooter","HTMLElement","constructor","super","shadow","this","attachShadow","connectedCallback","initializeFooter","oneLniElements","addOneLniScripts","isFunctionalFooter","getAttribute","createBodyContainer","addEventListener","initializeOneLni","iframeElement","sandbox","configureIframe","headElement","contentDocument","fontElement","addIframeResources","addInitializationScript","oneLniInitializationScriptElement","scriptText","scriptTextNode","createTextNode","useWebComponents","customElements","define","footerElement","setAttribute","functionalFooter","bodyElement","createIframeContainer","compileIframe","footerIframe","LniEwnHeader","initializeHeader","appTitle","appNames","push","split","appName","createHtmlHeader","oneLniScriptElement","isolationContainer","populateContainer","headerElement","join","insertBefore","firstChild","oneLniScripts","publicHeader","secureHeader","lniEwnHtmlHeader","secondaryNavElement","ewnLeftMenuContainer","LniSecondaryNav","secondaryNavIframe","callback","hideEwnComponents","secondaryNav","footer","header","original","simpleHeader","currentAppPath","legacyName","legacyTitle","configure","containingPage","addComponents"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACH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,cAArChG,EAAcqI,SAAS7I,UAI9BQ,EAAcqI,SAASxI,gBACvBG,EAAcH,cAAgBG,EAAcqI,SAASxI,eAGlDG,GuBlHe0I,CAAU5I,GAIhC6I,EAAgC3I,GAE5BA,EAAcL,mBAGdgJ,EAAiD3I,GACjD4I,EAAc5I,EAAegI,IAE7BY,EAAc5I,EAAegI,IAIrCzK,OAAOS,IAAM,CACTwF,SCpBW,WACXA,QACAhD,kB,+BCPW,KAACE,EAAeZ,KAC3B,MAAMa,EAAUV,SAASK,cAAc,UAMvC,OALAK,EAAQuD,IAAMpE,EAAQoE,IAClBpE,EAAQqB,KACRR,EAAQQ,GAAKrB,EAAQqB,IAEzBT,EAAcD,YAAYE,GACnBA,I","file":"ewn.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 12);\n","export default stage => {\r\n const hostNameTemplate = 'secure.lni.wa.gov';\r\n let prefix = '';\r\n if (stage === 'integration') {\r\n prefix = 'dev-';\r\n } else if (stage === 'pre-production') {\r\n prefix = 'test-';\r\n }\r\n return `${prefix}${hostNameTemplate}`;\r\n};","export default stage => {\r\n let cmsRoot = 'lni.wa.gov/';\r\n if (stage === 'integration') {\r\n cmsRoot = `dev-public.${cmsRoot}`;\r\n } else if (stage === 'pre-production') {\r\n cmsRoot = `demo-public.${cmsRoot}`;\r\n }\r\n\r\n return `https://${cmsRoot}`;\r\n};","import detect from './detect';\r\nimport hostName from './hostName';\r\nimport urls from './urls';\r\n\r\n// To run locally:\r\n// Change \"isDeployed\" to false(below)\r\n// Run htt-server from ewn/deploy on 8080\r\n// Run http-server onelni/deploy/dist on 8082 using this command\r\n// http-server –p 8082 --cors\r\n\r\n// TODO: get this from the environment/build\r\nlet isDeployed = true;\r\nconst stage = detect();\r\nconst host = hostName(stage);\r\nconst environmentUrls = urls(host, stage, isDeployed);\r\nexport default {\r\n stage,\r\n cms: environmentUrls.cms,\r\n oneLni: environmentUrls.oneLni,\r\n ewn: environmentUrls.ewn,\r\n description: stage,\r\n};","export default function detect() {\r\n let stage = 'production';\r\n if (window.location.host.indexOf('unit-test.wads.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('dev.wads.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('localhost', 0) !== -1\r\n || window.location.host.indexOf('dev-secure.lni.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('dev2-secure.lni.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('lnidaptumcom91', 0) !== -1) {\r\n stage = 'integration';\r\n } else if (window.location.host.indexOf('test-internet.lni.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('test-secure.lni.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('test-fortress.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('lnixapolycom9pr', 0) !== -1\r\n || window.location.host.indexOf('sowa.stage.sumtotal.host', 0) !== -1\r\n || window.location.host.indexOf('test-drivers-complaint.lni.wa.gov', 0) !== -1\r\n || window.location.host.indexOf('wordbridge.io') !== -1) {\r\n stage = 'pre-production';\r\n }\r\n\r\n return stage;\r\n}","import cmsUrlBase from './cmsUrlBase';\r\n\r\nexport default (hostName, stage, isDeployed) => {\r\n let oneLni = null;\r\n let ewn = null;\r\n\r\n const cms = {\r\n api: `${cmsUrlBase(stage)}api/vtl`,\r\n };\r\n\r\n if (isDeployed) {\r\n oneLni = {\r\n root: `https://${hostName}/one-lni/v3`,\r\n script: `https://${hostName}/one-lni/v3/oneLni.js`,\r\n style: `https://${hostName}/one-lni/v3/oneLni.css`,\r\n polyfills: `https://${hostName}/one-lni/v3/polyfills.js`,\r\n };\r\n\r\n ewn = {\r\n script: `https://${hostName}/ewn/v4/ewn.js`,\r\n style: `https://${hostName}/ewn/v4/ewnFrame.css`,\r\n legacy3Css: `https://${hostName}/ewn3`,\r\n legacy31Css: `https://${hostName}/ewn3branch`,\r\n };\r\n } else {\r\n oneLni = {\r\n root: `http://dev-secure.lni.wa.gov/one-lni/v3/`,\r\n script: `http://dev-secure.lni.wa.gov/one-lni/v3/oneLni.js`,\r\n style: `http://dev-secure.lni.wa.gov/one-lni/v3/oneLni.css`,\r\n polyfills: `https://dev-secure.lni.wa.gov/one-lni/v3/polyfills.js`,\r\n };\r\n\r\n ewn = {\r\n script: `http://localhost:8080/ewn.js`,\r\n style: `http://localhost:8080/ewnFrame.css`,\r\n legacy3Css: 'https://dev-secure.lni.wa.gov/ewn3',\r\n legacy31Css: 'https://dev-secure.lni.wa.gov/ewn3branch',\r\n };\r\n }\r\n\r\n return {\r\n cms,\r\n oneLni,\r\n ewn,\r\n };\r\n};","// eslint-disable-next-line no-mixed-operators\r\n/* eslint-disable no-mixed-operators */\r\nconst defaultConfiguration = {\r\n // authenticated|anonymous|simple - which environment is the user in, which header do they get?\r\n experience: 'anonymous',\r\n\r\n // object - which scripts the contained app wants loaded for it\r\n legacyScripts: {\r\n backbone: true,\r\n jquery: true,\r\n modernizr: true,\r\n require: true,\r\n underscore: true,\r\n },\r\n // true|false - where or not there is a breadcrumb\r\n breadcrumb: null,\r\n\r\n // cms|null - the variant of left navigation\r\n secondaryNavigation: null,\r\n\r\n // string - the app's location relative to the cms IA\r\n iaLocation: null,\r\n\r\n // auto | webcomponent | iframe - the method used to separate EWN from the app\r\n isolation: 'auto',\r\n\r\n // true | false - whether this app had used the EWN 3.1 version\r\n is31App: false,\r\n\r\n // object - information about the app used by EWN\r\n appInformation: null,\r\n\r\n // true | false - whether this app was initiated via the ewnHeader.js file\r\n compatibilityMode: false,\r\n\r\n // true | false - whether this app(used primarily by popup pages in OHMS) should\r\n // hide all of the EWN components\r\n hideHeader: false,\r\n\r\n // true | false - whether the sharing widget should be displayed\r\n sharingWidget: false,\r\n};\r\n\r\nexport default options => {\r\n const configuration = {\r\n original: {\r\n ...defaultConfiguration,\r\n ...options,\r\n },\r\n show: {},\r\n };\r\n\r\n configuration.compatibilityMode = configuration.original.compatibilityMode;\r\n\r\n // By default, include all legacy scripts. If there is a config object,\r\n // let it override this default.\r\n if (configuration.original.legacyScripts) {\r\n configuration.legacyScripts = configuration.original.legacyScripts;\r\n }\r\n\r\n // This is used by OHMS for popups\r\n configuration.hideEwnComponents = configuration.original.hideHeader;\r\n\r\n if (configuration.hideEwnComponents) {\r\n configuration.show.publicHeader = false;\r\n configuration.show.secureHeader = false;\r\n configuration.show.simpleHeader = false;\r\n // We need this setting directly because it is clearer to pass this\r\n // string into the webcomponent than to pass 3 booleans.\r\n configuration.experience = configuration.original.experience;\r\n configuration.show.functionalFooter = false;\r\n configuration.show.secondaryNavigation = false;\r\n configuration.show.breadcrumb = false;\r\n } else {\r\n configuration.show.publicHeader = configuration.original.experience === 'anonymous';\r\n configuration.show.secureHeader = configuration.original.experience === 'authenticated';\r\n configuration.show.simpleHeader = configuration.original.experience === 'simple';\r\n\r\n // We need this setting directly because it is clearer to pass this\r\n // string into the webcomponent than to pass 3 booleans.\r\n configuration.experience = configuration.original.experience;\r\n\r\n configuration.show.functionalFooter = configuration.original.experience === 'anonymous';\r\n\r\n configuration.show.secondaryNavigation\r\n = configuration.original.secondaryNavigation === 'cms';\r\n configuration.show.breadcrumb = configuration.original.breadcrumb;\r\n }\r\n\r\n if (configuration.compatibilityMode) {\r\n // If neither the left nav nor breadcrumb is shown, we will not set this and so\r\n // the navigation components will not try to place the user and\r\n // highlight tabs on the menu, etc.\r\n configuration.iaLocation\r\n = configuration.show.secondaryNavigation || configuration.show.breadcrumb\r\n ? configuration.original.appInformation.iaLocation\r\n : '/';\r\n } else {\r\n configuration.iaLocation = configuration.original.iaLocation;\r\n }\r\n\r\n if (configuration.compatibilityMode) {\r\n configuration.is31App = configuration.original.appInformation.is31App;\r\n configuration.currentAppPath = configuration.original.appInformation.currentAppPath;\r\n configuration.appPaths = configuration.original.appInformation.appPaths;\r\n\r\n configuration.appName = configuration.original.appInformation.legacyName;\r\n configuration.appTitle = configuration.original.appInformation.legacyTitle;\r\n }\r\n\r\n configuration.useWebComponents = false;\r\n if (!configuration.original.isolation || configuration.original.isolation === 'auto') {\r\n configuration.useWebComponents\r\n = document.head.attachShadow && customElements\r\n || configuration.original.isolation === 'component';\r\n } else {\r\n configuration.useWebComponents = configuration.original.isolation === 'component';\r\n }\r\n if (configuration.original.sharingWidget) {\r\n configuration.sharingWidget = configuration.original.sharingWidget;\r\n }\r\n\r\n return configuration;\r\n};","import environment from '../../environment/environment';\r\n\r\nexport default (head, configuration) => {\r\n // This sets the font size on the html element. The webcomponents that use the\r\n // OneLni styles require this because they use rem units\r\n const htmlElement = document.querySelector('HTML');\r\n htmlElement.style.fontSize = '18px';\r\n\r\n const iframeStyle = configuration.compatibilityMode ? '' : `\r\n#ewn-footer-iframe {\r\n border: 0;\r\n width: 100%;\r\n height: 455px;\r\n}\r\n\r\n#ewn-footer-iframe.is-legal-footer {\r\n height: 190px;\r\n}\r\n `;\r\n\r\n let styleElement = document.createElement('style');\r\n styleElement.innerHTML = `\r\n@font-face {\r\n font-family: 'MyLNI';\r\n src: url('${environment.oneLni.root}/fonts/MyLNI.woff') format('woff');\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\nbody, html {\r\n margin: 0\r\n}\r\n\r\n${iframeStyle}\r\n `;\r\n\r\n head.appendChild(styleElement);\r\n};","export default (parentElement, options) => {\r\n const element = document.createElement('link');\r\n element.rel = options.type;\r\n element.href = options.href;\r\n parentElement.appendChild(element);\r\n return element;\r\n};","import environment from '../../environment/environment';\r\nimport addStyleLink from '../addStyleLink';\r\n\r\nexport default (head, configuration) => {\r\n const location = configuration.is31App\r\n ? environment.ewn.legacy31Css\r\n : environment.ewn.legacy3Css;\r\n addStyleLink(head, {\r\n type: 'stylesheet',\r\n href: `${location}/css/ewn.css`,\r\n });\r\n\r\n addStyleLink(head, {\r\n type: 'stylesheet',\r\n href: `${location}/css/ewnAdapt.css`,\r\n });\r\n\r\n addStyleLink(head, {\r\n type: 'stylesheet',\r\n href: `${location}/_WebNavCommon/CSS/contentAdapt.css`,\r\n });\r\n\r\n addStyleLink(head, {\r\n type: 'stylesheet',\r\n href: `${location}/_WebNavCommon/CSS/content.css`,\r\n });\r\n};","import addInlineStyle from './addInlineStyle';\r\nimport addLegacyStylesheets from './addLegacyStylesheets';\r\nimport addPageResources from './addPageResources';\r\nimport configureHostApplicationContainer from './configureHostApplicationContainer';\r\n\r\nexport default {\r\n addInlineStyle,\r\n addLegacyStylesheets,\r\n addPageResources,\r\n configureHostApplicationContainer,\r\n};","import environment from '../../environment/environment';\r\nimport addStyleLink from '../addStyleLink';\r\nimport addInlineStyle from './addInlineStyle';\r\nimport addLegacyStyleSheets from './addLegacyStylesheets';\r\n\r\nexport default configuration => {\r\n const head = document.head;\r\n\r\n addStyleLink(head, {\r\n type: 'stylesheet',\r\n href: 'https://fonts.googleapis.com/css?family=Libre+Franklin:400,400i,700,700i|Roboto:400,500,700,900',\r\n });\r\n\r\n addInlineStyle(head, configuration);\r\n\r\n if (configuration.compatibilityMode) {\r\n addLegacyStyleSheets(head, configuration);\r\n\r\n addStyleLink(head, {\r\n type: 'stylesheet',\r\n href: `${environment.ewn.style}`,\r\n });\r\n }\r\n};","// Build the EWN DOM structure. Much of this structure is expected by contained apps\r\n// in one fashion or another, primarily their styles attach to these classes and ids\r\nexport default configuration => {\r\n const fullWidthContainer = document.createElement('DIV');\r\n fullWidthContainer.id = 'ewnContainer';\r\n fullWidthContainer.classList.add('full-width-ewn-container');\r\n if (configuration.appPaths) {\r\n // put the paths from each environment for this app\r\n // into the classlist. Then we can use a css selector that\r\n // will work everywhere to modify the app if needed.\r\n configuration.appPaths.forEach(path => {\r\n fullWidthContainer.classList.add(path);\r\n });\r\n }\r\n\r\n // This is added because the contractor debarment app depends\r\n // on the count of form elements in the dom. The new EWN has\r\n // the form element in a web component and so it isn't counted\r\n // and that app breaks.\r\n const formNode = document.createElement('FORM');\r\n formNode.id = 'emptyForm';\r\n fullWidthContainer.appendChild(formNode);\r\n\r\n const headerContainer = document.createElement('DIV');\r\n headerContainer.id = 'ewnHeaderContainer';\r\n fullWidthContainer.appendChild(headerContainer);\r\n\r\n const hostApplicationContainer = document.createElement('DIV');\r\n hostApplicationContainer.id = 'hostContainer';\r\n hostApplicationContainer.classList.add('container');\r\n\r\n const clearFix = document.createElement('DIV');\r\n clearFix.style.clear = 'both';\r\n hostApplicationContainer.appendChild(clearFix);\r\n\r\n const leftMenuContainer = document.createElement('DIV');\r\n leftMenuContainer.id = 'ewnLeftMenu';\r\n hostApplicationContainer.appendChild(leftMenuContainer);\r\n\r\n const skipLink = document.createElement('A');\r\n skipLink.name = 'ContentArea';\r\n skipLink.tabIndex = 0;\r\n hostApplicationContainer.appendChild(skipLink);\r\n\r\n const hostApplication = document.createElement('DIV');\r\n hostApplication.id = 'appBody';\r\n hostApplication.classList.add('ewn3body');\r\n if (configuration.show.secondaryNavigation) {\r\n hostApplication.classList.add('bodyHasLeftMenu');\r\n hostApplicationContainer.classList.add('has-left-menu');\r\n }\r\n\r\n hostApplicationContainer.appendChild(hostApplication);\r\n\r\n const clearFix2 = document.createElement('DIV');\r\n clearFix2.style.clear = 'both';\r\n hostApplicationContainer.appendChild(clearFix2);\r\n\r\n fullWidthContainer.appendChild(hostApplicationContainer);\r\n\r\n const footerContainer = document.createElement('DIV');\r\n footerContainer.id = 'footer';\r\n fullWidthContainer.appendChild(footerContainer);\r\n\r\n const legalFooterContainer = document.createElement('DIV');\r\n legalFooterContainer.id = 'legalFoot';\r\n fullWidthContainer.appendChild(legalFooterContainer);\r\n\r\n document.body.appendChild(fullWidthContainer);\r\n\r\n const hostBody = document.querySelector('BODY');\r\n const hostBodyIdElement = hostBody.querySelector('#body');\r\n\r\n // Some apps have an element with a id of body inside of them. If they do,\r\n // we can't add another. If they don't, we have to add one. That is the reason\r\n // we have to create the containing div with id of #appBody.\r\n let documentHostApplication = document.querySelector('#appBody');\r\n if (!hostBodyIdElement) {\r\n const newHostBodyIdElement = document.createElement('DIV');\r\n newHostBodyIdElement.id = 'body';\r\n documentHostApplication.appendChild(newHostBodyIdElement);\r\n documentHostApplication = newHostBodyIdElement;\r\n }\r\n\r\n // Take all of the elements that are in the body of the contained app and put\r\n // them into the new container div within our created DOM structure. \"appendChild\"\r\n // will remove them from their existing place in the DOM when it moves them to the\r\n // new place.\r\n if (hostBody.children.length > 0) {\r\n const childrenArray = Array.from(hostBody.children);\r\n childrenArray.forEach(node => {\r\n if (node.id !== 'ewnContainer') {\r\n documentHostApplication.appendChild(node);\r\n }\r\n });\r\n }\r\n};","export default (containerElement, windowContext, iaLocation) => {\r\n const context = windowContext || window;\r\n const framework = context.activeOneLni();\r\n if (iaLocation) {\r\n framework.setLocation(iaLocation);\r\n }\r\n\r\n framework.initialize({\r\n el: containerElement,\r\n enableRouter: false,\r\n }, () => framework.start(() => {\r\n // eslint-disable-next-line no-console\r\n console.log('Framework initialized');\r\n }));\r\n};","export default (parentElement, id, children) => {\r\n const container = document.createElement('body');\r\n container.id = id;\r\n\r\n let idCounter = 0;\r\n\r\n children.forEach(child => {\r\n const childElement = document.createElement(child);\r\n childElement.id = `${id}-${child}_${idCounter++}`;\r\n\r\n container.appendChild(childElement);\r\n });\r\n\r\n parentElement.appendChild(container);\r\n\r\n return container;\r\n};","import environment from '../environment/environment';\r\nimport addScriptLink from './addScriptLink';\r\nimport addStyleLink from './addStyleLink';\r\n\r\n// This will add the onelni script and css. We don't ever want to add the full\r\n// one-lni css file to the main document or it will overwrite the contained apps css.\r\n// For the main document, if needed, we add one-lni styles via the \"isolatedOneLniStyles.css\"\r\nexport default (parentElement, includeCss) => {\r\n const scriptElement = addScriptLink(parentElement, {\r\n src: environment.oneLni.script,\r\n id: 'oneLniScript',\r\n });\r\n\r\n parentElement.appendChild(scriptElement);\r\n\r\n let styleElement = null;\r\n if (includeCss) {\r\n let styleElement = addStyleLink(parentElement, {\r\n type: 'stylesheet',\r\n href: environment.oneLni.style,\r\n });\r\n parentElement.appendChild(styleElement);\r\n }\r\n\r\n return {\r\n scriptElement,\r\n styleElement,\r\n };\r\n};","import initializeOneLni from '../../core/lifecycle/initializeOneLni';\r\nimport createBodyContainer from '../../core/html-building/createBodyContainer';\r\nimport addOneLniScripts from '../../core/html-building/addOneLniScripts';\r\n\r\nexport default class LniEwnFooter extends HTMLElement {\r\n constructor() {\r\n super();\r\n\r\n const shadow = this.attachShadow({\r\n mode: 'open',\r\n });\r\n\r\n this.shadow = shadow;\r\n }\r\n connectedCallback() {\r\n this.initializeFooter(this);\r\n }\r\n\r\n initializeFooter() {\r\n const oneLniElements = addOneLniScripts(this.shadow, true);\r\n let styleElement = document.createElement('style');\r\n styleElement.innerHTML = `\r\n .is-legal-footer .lni-c-site-footer__container--functional {\r\n display: none;\r\n }\r\n `;\r\n\r\n this.shadow.appendChild(styleElement);\r\n\r\n const isFunctionalFooter = this.getAttribute('is-functional-footer');\r\n\r\n const container = createBodyContainer(this.shadow, 'ewn-footer', [\r\n 'lni-footer',\r\n ]);\r\n\r\n if (isFunctionalFooter === 'false') {\r\n container.classList.add('is-legal-footer');\r\n }\r\n\r\n oneLniElements.scriptElement.addEventListener('load', () => {\r\n initializeOneLni(container);\r\n });\r\n }\r\n}","export default (parentElement, id, children) => {\r\n const container = document.createElement('div');\r\n container.id = 'oneLniIframe';\r\n let idCounter = 0;\r\n\r\n children.forEach(child => {\r\n const childElement = document.createElement(child);\r\n childElement.id = `${id}-${child}_${idCounter++}`;\r\n\r\n container.appendChild(childElement);\r\n });\r\n\r\n parentElement.appendChild(container);\r\n\r\n return container;\r\n};","import environment from '../environment/environment';\r\n\r\nconst addIframeResources = headElement => {\r\n const fontElement = document.createElement('link');\r\n fontElement.rel = 'stylesheet';\r\n fontElement.href = 'https://fonts.googleapis.com/css?family=Libre+Franklin:400,400i,700,700i,900|Roboto:400,500,700,900';\r\n headElement.appendChild(fontElement);\r\n\r\n let styleElement = document.createElement('style');\r\n styleElement.innerHTML = `\r\n @font-face {\r\n font-family: 'MyLNI';\r\n src: url('${environment.oneLni.root}/fonts/MyLNI.woff') format('woff');\r\n font-weight: normal;\r\n font-style: normal;\r\n }\r\n\r\n .is-legal-footer .lni-c-site-footer__container--functional {\r\n display: none;\r\n }\r\n\r\n #oneLniIframe.is-legal-footer {\r\n margin-top: 20px;\r\n }\r\n `;\r\n\r\n headElement.appendChild(styleElement);\r\n};\r\n\r\n// This adds a string literal that will evaluate as a script. This is not run\r\n// through babel(transpiled) so it must be javascript can natively run on IE>=11\r\nconst addInitializationScript = (headElement, iaLocation) => {\r\n const oneLniInitializationScriptElement = document.createElement('script');\r\n const scriptText = `\r\n function initializeFramework() {\r\n var framework = window.activeOneLni();\r\n var containerElement = document.getElementById('oneLniIframe');\r\n if ('${iaLocation}') {\r\n framework.setLocation('${iaLocation}');\r\n }\r\n\r\n framework.initialize({\r\n el: containerElement,\r\n enableRouter: false,\r\n }, function() {\r\n framework.start(function() {\r\n console.log('Framework initialized');\r\n });\r\n });\r\n }\r\n\r\n var addLinkHandler = function(link) {\r\n link.addEventListener('click', function (e) {\r\n e.preventDefault();\r\n window.parent.location = link.href;\r\n });\r\n }\r\n\r\n var addLinkHandlers = function(allLinks) {\r\n for (var i = 0; i < allLinks.length; i++) {\r\n var link = allLinks[i];\r\n addLinkHandler(link);\r\n }\r\n };\r\n\r\n var script = document.querySelector('#oneLniScript');\r\n script.addEventListener('load', function() {\r\n window.initializeFramework();\r\n\r\n var setLinksInterval = setInterval(function() {\r\n var allLinks = document.querySelectorAll('a');\r\n if (allLinks.length !== 0) {\r\n clearInterval(setLinksInterval);\r\n addLinkHandlers(allLinks);\r\n }\r\n }, 500);\r\n });\r\n `;\r\n\r\n const scriptTextNode = document.createTextNode(scriptText);\r\n oneLniInitializationScriptElement.appendChild(scriptTextNode);\r\n headElement.appendChild(oneLniInitializationScriptElement);\r\n};\r\n\r\nconst configureIframe = iframeElement => {\r\n iframeElement.sandbox = 'allow-top-navigation allow-scripts allow-forms';\r\n};\r\n\r\n\r\nexport default (iframeElement, container, iaLocation) => {\r\n configureIframe(iframeElement);\r\n\r\n const headElement = iframeElement.contentDocument.head;\r\n addIframeResources(headElement);\r\n addInitializationScript(headElement, iaLocation);\r\n\r\n const bodyElement = iframeElement.contentDocument.body;\r\n bodyElement.appendChild(container);\r\n\r\n return iframeElement;\r\n};","import LniEwnFooter from './LniEwnFooter';\r\nimport footerIframe from './footerIframe';\r\n\r\nexport default configuration => {\r\n const footerContainer = configuration.compatibilityMode\r\n ? document.querySelector('#footer')\r\n : document.body;\r\n\r\n if (configuration.useWebComponents) {\r\n customElements.define('lni-ewn-footer', LniEwnFooter);\r\n const footerElement = document.createElement('lni-ewn-footer');\r\n footerElement.setAttribute('is-functional-footer', configuration.show.functionalFooter);\r\n\r\n footerContainer.appendChild(footerElement);\r\n } else {\r\n const footerElement = document.createElement('IFRAME');\r\n footerElement.id = 'ewn-footer-iframe';\r\n if (!configuration.show.functionalFooter) {\r\n footerElement.classList.add('is-legal-footer');\r\n }\r\n footerContainer.appendChild(footerElement);\r\n footerIframe(footerElement, configuration);\r\n }\r\n};","import createIframeContainer from '../../core/html-building/createIframeContainer';\r\nimport addOneLniScripts from '../../core/html-building/addOneLniScripts';\r\nimport compileIframe from '../../core/html-building/compileIframe';\r\n\r\n\r\nexport default (iframeElement, configuration) => {\r\n const headElement = iframeElement.contentDocument.head;\r\n addOneLniScripts(headElement, true);\r\n\r\n const bodyElement = iframeElement.contentDocument.body;\r\n\r\n const container = createIframeContainer(bodyElement, 'ewn-footer', [\r\n 'lni-footer',\r\n ]);\r\n\r\n if (!configuration.show.functionalFooter) {\r\n container.classList.add('is-legal-footer');\r\n }\r\n\r\n return compileIframe(iframeElement, container, null);\r\n};","import initializeOneLni from '../../core/lifecycle/initializeOneLni';\r\nimport createBodyContainer from '../../core/html-building/createBodyContainer';\r\nimport addOneLniScripts from '../../core/html-building/addOneLniScripts';\r\n\r\nexport default class LniEwnHeader extends HTMLElement {\r\n constructor() {\r\n super();\r\n\r\n const shadow = this.attachShadow({\r\n mode: 'open',\r\n });\r\n this.shadow = shadow;\r\n }\r\n\r\n connectedCallback() {\r\n this.initializeHeader(this);\r\n }\r\n\r\n initializeHeader() {\r\n const oneLniElements = addOneLniScripts(this.shadow, true);\r\n let styleElement = document.createElement('style');\r\n styleElement.innerHTML = `\r\n .lni-c-site-header__container {\r\n box-shadow: none !important;\r\n }\r\n\r\n @media screen and (min-width: 715px) {\r\n .lni-c-mega-menu__section-link {\r\n width: unset !important;\r\n z-index: 10;\r\n }\r\n\r\n .lni-c-mega-menu__item.lni-c-mega-menu__toggle.--level2 {\r\n width: 95%\r\n }\r\n }\r\n `;\r\n\r\n this.shadow.appendChild(styleElement);\r\n\r\n let container;\r\n const experience = this.getAttribute('experience');\r\n const breadcrumb = this.getAttribute('breadcrumb');\r\n const iaLocation = this.getAttribute('ia-location');\r\n const appTitle = this.getAttribute('app-title');\r\n const appNames = this.getAttribute('app-names');\r\n\r\n let children = [];\r\n if (experience === 'simple') {\r\n children.push('lni-header-simple');\r\n } else if (experience === 'authenticated') {\r\n children.push('lni-header-secure');\r\n } else {\r\n children.push('lni-header-anonymous');\r\n }\r\n\r\n if (breadcrumb === 'true') {\r\n children.push('lni-breadcrumb');\r\n }\r\n container = createBodyContainer(this.shadow, 'ewn-header', children);\r\n\r\n if (appNames) {\r\n const appNamesList = appNames.split(',');\r\n appNamesList.forEach(appName => {\r\n if (appName) {\r\n container.classList.add(appName);\r\n }\r\n });\r\n }\r\n\r\n if (experience === 'simple') {\r\n if (appTitle) {\r\n let component = container.querySelector('lni-header-simple');\r\n component.setAttribute('app-name', appTitle);\r\n } else {\r\n //TODO: This should be fixed in the simple header component itself.\r\n //Missing class names should not have text on the header\r\n let component = container.querySelector('lni-header-simple');\r\n component.setAttribute('app-name', '');\r\n }\r\n }\r\n\r\n oneLniElements.scriptElement.addEventListener('load', () => {\r\n initializeOneLni(container, null, iaLocation);\r\n });\r\n }\r\n}","import environment from '../../core/environment/environment';\r\nimport initializeOneLni from '../../core/lifecycle/initializeOneLni';\r\nimport populateContainer from '../../core/html-building/populateContainer';\r\nimport addOneLniScripts from '../../core/html-building/addOneLniScripts';\r\nimport addStyleLink from '../../core/html-building/addStyleLink';\r\n\r\nconst createHtmlHeader = (configuration, children, oneLniScriptElement) => {\r\n const isolationContainer = document.createElement('div');\r\n isolationContainer.id = 'oneLniIsolationHeaderContainer';\r\n isolationContainer.classList.add('one-lni-isolation-container');\r\n populateContainer(isolationContainer, children);\r\n\r\n oneLniScriptElement.addEventListener('load', () => {\r\n initializeOneLni(\r\n '#oneLniIsolationHeaderContainer',\r\n null,\r\n configuration.iaLocation\r\n );\r\n });\r\n return isolationContainer;\r\n};\r\n\r\nexport default configuration => {\r\n const oneLniScripts = addOneLniScripts(document.head, false);\r\n addStyleLink(document.head, {\r\n type: 'stylesheet',\r\n href: `${environment.oneLni.root}/isolatedOneLniStyles.css`,\r\n });\r\n\r\n let container;\r\n if (configuration.show.publicHeader) {\r\n const children = [\r\n 'lni-header-anonymous',\r\n ];\r\n if (configuration.show.breadcrumb) {\r\n children.push('lni-breadcrumb');\r\n }\r\n\r\n container = createHtmlHeader(configuration, children, oneLniScripts.scriptElement);\r\n\r\n } else if (configuration.show.secureHeader) {\r\n container = createHtmlHeader(configuration, [\r\n 'lni-header-secure',\r\n ], oneLniScripts.scriptElement);\r\n } else {\r\n container = createHtmlHeader(configuration, [\r\n 'lni-header-simple',\r\n ], oneLniScripts.scriptElement);\r\n\r\n if (configuration.appTitle) {\r\n let component = container.querySelector('lni-header-simple');\r\n component.setAttribute('app-name', configuration.appTitle);\r\n }\r\n }\r\n\r\n return container;\r\n};","\r\nexport default (parentElement, children) => {\r\n let idCounter = 0;\r\n\r\n children.forEach(child => {\r\n const childElement = document.createElement(child);\r\n childElement.id = `${parentElement.id}-${child}_${idCounter++}`;\r\n\r\n parentElement.appendChild(childElement);\r\n });\r\n};","import LniEwnHeader from './LniEwnHeader';\r\nimport lniEwnHtmlHeader from './LniEwnHtmlHeader';\r\n\r\nexport default (configuration, oneLniScriptElement) => {\r\n let headerElement = null;\r\n const headerContainer = document.querySelector('#ewnHeaderContainer');\r\n\r\n if (configuration.useWebComponents) {\r\n customElements.define('lni-ewn-header', LniEwnHeader);\r\n headerElement = document.createElement('lni-ewn-header');\r\n headerElement.setAttribute('experience', configuration.experience);\r\n headerElement.setAttribute('breadcrumb', configuration.show.breadcrumb);\r\n headerElement.setAttribute(\r\n 'ia-location',\r\n configuration.iaLocation,\r\n );\r\n\r\n if (configuration.compatibilityMode) {\r\n headerElement.setAttribute('app-title', configuration.appTitle);\r\n headerElement.setAttribute('app-names', configuration.appPaths.join(','));\r\n }\r\n\r\n if (configuration.compatibilityMode) {\r\n headerContainer.appendChild(headerElement);\r\n } else {\r\n document.body.insertBefore(headerElement, document.body.firstChild);\r\n }\r\n } else {\r\n const headerElement = lniEwnHtmlHeader(configuration, oneLniScriptElement);\r\n\r\n if (configuration.compatibilityMode) {\r\n headerContainer.appendChild(headerElement);\r\n } else {\r\n document.body.insertBefore(headerElement, document.body.firstChild);\r\n }\r\n }\r\n};","import initializeOneLni from '../../core/lifecycle/initializeOneLni';\r\nimport createBodyContainer from '../../core/html-building/createBodyContainer';\r\nimport addOneLniScripts from '../../core/html-building/addOneLniScripts';\r\n\r\nexport default class LniEwnHeader extends HTMLElement {\r\n constructor() {\r\n super();\r\n\r\n const shadow = this.attachShadow({\r\n mode: 'open',\r\n });\r\n this.shadow = shadow;\r\n\r\n createBodyContainer(this.shadow, 'ewn-secondary-nav', []);\r\n }\r\n\r\n connectedCallback() {\r\n this.initialize(this);\r\n }\r\n\r\n initialize() {\r\n const oneLniElements = addOneLniScripts(this.shadow, true);\r\n const container = createBodyContainer(this.shadow, 'ewn-secondary-nav', [\r\n 'lni-side-nav',\r\n ]);\r\n\r\n const iaLocation = this.getAttribute('ia-location');\r\n oneLniElements.scriptElement.addEventListener('load', () => {\r\n initializeOneLni(container, null, iaLocation);\r\n });\r\n }\r\n}","import createIframeContainer from '../../core/html-building/createIframeContainer';\r\nimport addOneLniScripts from '../../core/html-building/addOneLniScripts';\r\nimport compileIframe from '../../core/html-building/compileIframe';\r\n\r\n\r\nexport default (iframeElement, configuration) => {\r\n const parentElement = iframeElement.contentDocument.body;\r\n\r\n addOneLniScripts(parentElement, true);\r\n\r\n const container = createIframeContainer(parentElement, 'ewn-secondary-nav', [\r\n 'lni-side-nav',\r\n ]);\r\n\r\n return compileIframe(\r\n iframeElement,\r\n container,\r\n configuration.iaLocation\r\n );\r\n};","import LniSecondaryNav from './LniEwnSecondaryNav';\r\nimport secondaryNavIframe from './secondaryNavIframe';\r\n\r\nexport default configuration => {\r\n\r\n //TODO: Ad support for left nav outside of compatibility mode.\r\n let secondaryNavElement = null;\r\n const ewnLeftMenuContainer = document.querySelector('#ewnLeftMenu');\r\n if (configuration.useWebComponents) {\r\n customElements.define('lni-ewn-secondary-nav', LniSecondaryNav);\r\n secondaryNavElement = document.createElement('lni-ewn-secondary-nav');\r\n secondaryNavElement.setAttribute(\r\n 'ia-location',\r\n configuration.iaLocation,\r\n );\r\n\r\n ewnLeftMenuContainer.appendChild(secondaryNavElement);\r\n } else {\r\n const secondaryNavElement = document.createElement('IFRAME');\r\n secondaryNavElement.id = 'ewn-secondary-nav-iframe';\r\n ewnLeftMenuContainer.appendChild(secondaryNavElement);\r\n secondaryNavIframe(secondaryNavElement, configuration);\r\n }\r\n};","import footer from '../../elements/lni-ewn-footer';\r\nimport header from '../../elements/lni-ewn-header';\r\nimport secondaryNav from '../../elements/lni-ewn-secondary-nav';\r\n\r\nexport default (configuration, callback) => {\r\n // Below, we add the actual EWN components into the containing elements that\r\n // we created above.\r\n if (!configuration.hideEwnComponents) {\r\n if (configuration.show.secondaryNavigation) {\r\n secondaryNav(configuration);\r\n }\r\n\r\n footer(configuration);\r\n header(configuration);\r\n }\r\n // We're done building EWN, give control back to the EWNHeader script, if it needs it.\r\n callback && callback();\r\n};","import configure from './configure';\r\nimport containingPage from '../html-building/containing-page';\r\nimport addComponents from './addComponents';\r\n\r\n\r\nimport '../../ewnFrame.css';\r\n\r\nexport const start = (options, callback) => {\r\n const configuration = configure(options);\r\n\r\n // This adds fonts, old ewn stylesheets, and the new ewnFrame sheet to the main document\r\n // The fonts must be here in the main document for webcomponents to have that font.\r\n containingPage.addPageResources(configuration);\r\n\r\n if (configuration.compatibilityMode) {\r\n // This builds the DOM structure for the EWN app, including the DOM\r\n // container that will hold the contained app.\r\n containingPage.configureHostApplicationContainer(configuration);\r\n addComponents(configuration, callback);\r\n } else {\r\n addComponents(configuration, callback);\r\n }\r\n};\r\n\r\nwindow.ewn = {\r\n start,\r\n};","import environment from './core/environment/environment';\r\nimport {\r\n start,\r\n} from './core/lifecycle/start';\r\n\r\nexport default {\r\n start,\r\n environment,\r\n};","export default (parentElement, options) => {\r\n const element = document.createElement('script');\r\n element.src = options.src;\r\n if (options.id) {\r\n element.id = options.id;\r\n }\r\n parentElement.appendChild(element);\r\n return element;\r\n};"],"sourceRoot":""}