{"version":3,"sources":["img/logo-mymb-color.svg","actions/index.js","actionTypes/index.js","utils/userManager.js","components/Translation/index.js","components/Footer/index.js","utils/Stubs/SiteLanguages/index.js","components/LangSelector/index.js","utils/Helpers/index.js","components/blocks/Hero/index.js","components/blocks/Welcome/index.js","components/blocks/How/index.js","components/blocks/Costello/index.js","components/blocks/Banking/index.js","components/blocks/Process/index.js","components/blocks/Additional/index.js","components/blocks/Started/index.js","components/Home/index.js","components/Login/index.js","components/Logout/index.js","components/Navbar/index.js","components/About/index.js","components/CallbackPage/index.js","components/Messages/index.js","components/PrintMessages/index.js","routes/index.js","components/App/index.js","reducers/App/index.js","reducers/index.js","resources/helpers.js","services/APIMiddleware/index.js","store/index.js","index.js","img/ico-nav-close.svg"],"names":["module","exports","__webpack_require__","p","setUser","user","type","config","client_id","redirect_uri","concat","window","location","origin","response_type","scope","authority","process","silent_redirect_uri","automaticSilentRenew","post_logout_redirect_uri","userManager","UserManager","Translation","_this$props","this","props","pre","translation","post","textonly","react_default","a","createElement","dangerouslySetInnerHTML","__html","React","Component","connect","state","app","getIn","translate","Footer","currentYear","Date","getFullYear","className","href","target","rel","src","alt","components_Translation","onClick","e","preventDefault","data-toggle","data-target","SiteLanguages","name","label","code","LangSelector","_this","Object","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","changeLocale","bind","assertThisInitialized","localeValue","getCookieValue","langs","fullLocale","_this2","map","lang","key","activeClass","data-locale","localeCode","nodeName","dataset","locale","setCookie","change","setState","dispatchAction","dispatch","setTimeout","$","matchHeight","fixCode","includes","split","labelOutput","fullLocaleLabel","some","checkSiteLangSupport","id","role","aria-haspopup","aria-expanded","aria-labelledby","renderLangs","login","get","Hero","event","signinRedirect","document","trigger","on","stopImmediatePropagation","blur","title","onLoginButtonClick","data-offcanvas-trigger","data-offcanvas-options","data-button-options","closeIcon","components_LangSelector","settings","Welcome","How","Costello","Banking","Process","Additional","Started","Home","Redirect","to","blocks_Hero","blocks_Welcome","blocks_How","blocks_Costello","blocks_Banking","blocks_Process","blocks_Started","blocks_Additional","components_Footer","Login","Logout","Navbar","signOut","signoutRedirect","then","clearStaleState","colorLogo","build","Link","About","components_Navbar","CallbackPage","response_mode","signinRedirectCallback","action","appInsights","setAuthenticatedUserContext","profile","sub","history","push","console","error","Messages","access_token","useHash","client","Print","thisToken","fullName","given_name","family_name","accessToken","MmbRoutes","BrowserRouter","Switch","Route","path","exact","component","render","PrintMessages","components_Messages","App","store","getUser","events","addAccessTokenExpired","asyncToGenerator","regenerator_default","mark","_callee","timeElapsed","wrap","_context","prev","next","now","refreshToken","stop","lock","addAccessTokenExpiring","_callee2","_context2","body","refresh_token","fetch","authorityUrl","method","headers","Content-Type","response","json","data","id_token","expires_in","storeUser","routes","arguments","length","undefined","Map","pageSize","set","fromJS","translations","availLangs","setIn","reducers","combineReducers","messagebank","dynamicSort","property","order","sortOrder","b","mytdURL","langCookie","localeCookieValue","getUserAsync","_callee3","_context3","sent","abrupt","_baseMyTDCall","_callee4","_context4","axios","create","baseURL","timeout","X-Requested-With","Accept","Accept-Language","Access-Control-Allow-Origin","Vary","mbService","_callee5","res","authString","mbServicesURL","_context5","MESSAGE_BANK_API_URL","Authorization","getTranslations","_ref","base","thisItem","apply","getAvailLangs","_ref2","allAvailLangs","azureLangs","_embedded","languageModels","forEach","el","transcriptionEngine","sort","APIMiddleware","createStore","compose","applyMiddleware","thunk","MessageBankService","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","ReactDOM","es","components_App","getElementById"],"mappings":"6EAAAA,EAAAC,QAAiBC,EAAAC,EAAuB,kQCsB3BC,EAAU,SAACC,GACtB,MAAO,CACLC,KCrBoB,WDsBpBD,iBEvBEE,EAAS,CACbC,UAAW,YACXC,aAAY,GAAAC,OAAKC,OAAOC,SAASC,OAArB,aACZC,cAAe,OACfC,MAAO,sDACPC,UAAWC,qBACXC,oBAAmB,GAAAR,OAAKC,OAAOC,SAASC,OAArB,gBACnBM,sBAAsB,EACtBC,yBAAwB,GAAAV,OA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c54dbf.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/logo-mymb-color.598cceb0.svg\";","import * as t from \"actionTypes\";\r\n\r\nexport const setAccessToken = (access_token) => {\r\n return {\r\n type: \"SET_ACCESS_TOKEN\",\r\n access_token,\r\n };\r\n};\r\n\r\nexport const getTranslations = () => {\r\n return {\r\n type: t.GET_TRANSLATIONS,\r\n };\r\n};\r\n\r\nexport const getAvailLangs = (availLangs) => {\r\n return {\r\n type: t.GET_AVAILABLE_LANGS,\r\n availLangs,\r\n };\r\n};\r\n\r\nexport const setUser = (user) => {\r\n return {\r\n type: t.SET_USER,\r\n user,\r\n };\r\n};\r\n","export const GET_INIT_MESSAGE_DATA = 'GET_INIT_MESSAGE_DATA'\r\nexport const GET_TRANSLATIONS = 'GET_TRANSLATIONS'\r\nexport const GET_TRANSLATIONS_OK = 'GET_TRANSLATIONS_OK'\r\nexport const SET_USER = 'SET_USER'\r\n\r\nexport const GET_AVAILABLE_LANGS = 'GET_AVAILABLE_LANGS'\r\nexport const GET_AVAILABLE_LANGS_RECEIVED = 'GET_AVAILABLE_LANGS_RECEIVED'","import { UserManager } from \"oidc-client\";\r\n\r\nconst config = {\r\n client_id: \"mymb-pkce\",\r\n redirect_uri: `${window.location.origin}/callback`,\r\n response_type: \"code\",\r\n scope: \"openid profile offline_access message-bank-services\",\r\n authority: process.env.REACT_APP_SSO_AUTHORITY,\r\n silent_redirect_uri: `${window.location.origin}/silentrenew`,\r\n automaticSilentRenew: false,\r\n post_logout_redirect_uri: `${window.location.origin}`,\r\n // filterProtocolClaims: true,\r\n //loadUserInfo: true\r\n};\r\n\r\nvar userManager = new UserManager(config);\r\n\r\nexport default userManager;\r\n","import React from 'react'\r\nimport { connect } from 'react-redux'\r\n\r\nclass Translation extends React.Component {\r\n\r\n render() {\r\n let { pre, translation, post, textonly } = this.props\r\n\r\n pre = pre ? pre : \"\"\r\n post = post ? post : \"\"\r\n\r\n let thisContent = null\r\n\r\n if (textonly === 'true') {\r\n thisContent = translation ? translation : null\r\n }\r\n\r\n else {\r\n thisContent = translation ? : null\r\n }\r\n\r\n return thisContent\r\n \r\n }\r\n}\r\n\r\nconst mapStateToProps = (state, props) => (\r\n {\r\n translation: state.app.getIn(['translations', props.translate])\r\n }\r\n)\r\n\r\nexport default connect(mapStateToProps)(Translation)","import React, { Component } from 'react'\r\n\r\nimport Translation from 'components/Translation'\r\n\r\nclass Footer extends Component {\r\n\r\n \r\n\r\n render() {\r\n const currentYear = (new Date()).getFullYear()\r\n return (\r\n \r\n )\r\n\r\n }\r\n}\r\n\r\nexport default Footer\r\n\r\n\r\n\r\n","export const SiteLanguages = [\r\n {\r\n name: \"Chinese\",\r\n label: \"中文\",\r\n //label: '中文(简体)', - matching SSO\r\n code: \"zh\",\r\n },\r\n {\r\n name: \"Danish\",\r\n label: \"dansk\",\r\n code: \"da\",\r\n },\r\n {\r\n name: \"German\",\r\n label: \"Deutsch\",\r\n code: \"de\",\r\n },\r\n {\r\n name: \"English\",\r\n label: \"English\",\r\n code: \"en\",\r\n },\r\n {\r\n name: \"Spanish\",\r\n label: \"español\",\r\n code: \"es\",\r\n },\r\n {\r\n name: \"French\",\r\n label: \"français\",\r\n code: \"fr\",\r\n },\r\n {\r\n name: \"Italian\",\r\n label: \"italiano\",\r\n code: \"it\",\r\n },\r\n {\r\n name: \"Dutch\",\r\n label: \"Nederlands\",\r\n code: \"nl\",\r\n },\r\n {\r\n name: \"Norwegian\",\r\n label: \"norsk bokmål\",\r\n code: \"nb\",\r\n },\r\n {\r\n name: \"Portuguese\",\r\n label: \"português\",\r\n code: \"pt\",\r\n },\r\n {\r\n name: \"Swedish\",\r\n label: \"svenska\",\r\n code: \"sv\",\r\n },\r\n]\r\n\r\n// Íslensku\r\n\r\nexport const checkSiteLangSupport = (code) => {\r\n let isSupported = (lang) => code === lang.code\r\n return SiteLanguages.some(isSupported)\r\n}\r\n\r\nexport const fixLocaleCode = (code) => {\r\n if (code === \"nn\" || code === \"no\") {\r\n code = \"nb\"\r\n }\r\n let mainCode = code.includes(\"-\") ? code.split(\"-\")[0] : code\r\n return mainCode\r\n}\r\n","import React from 'react'\r\nimport Translation from 'components/Translation'\r\nimport { SiteLanguages } from 'utils/Stubs/SiteLanguages'\r\nimport { connect } from 'react-redux'\r\nimport { getTranslations } from 'actions'\r\nimport { fullLocaleLabel } from 'utils/Helpers'\r\nimport { checkSiteLangSupport, fixLocaleCode } from 'utils/Stubs/SiteLanguages'\r\n//import localeNormalizer from 'locales-normalizer'\r\n//const localeNormalizer = require('locales-normalizer')\r\n\r\n\r\nconst dispatchAction = (dispatch, action) => dispatch(action)\r\n\r\nclass LangSelector extends React.Component {\r\n\r\n constructor(props) {\r\n\r\n super(props)\r\n\r\n this.changeLocale = this.changeLocale.bind(this)\r\n\r\n this.state = {\r\n localeValue: window.getCookieValue('locale')\r\n }\r\n\r\n }\r\n\r\n renderLangs(langs, fullLocale){\r\n return ( \r\n langs.map(( lang, key ) => {\r\n let activeClass = (fullLocale === lang.label) ? ' active' : ''\r\n return this.changeLocale(e)} data-locale={lang.code} className={`dropdown-item${activeClass}`}>{lang.label}\r\n }\r\n )\r\n )\r\n }\r\n\r\n changeLocale(e){\r\n\r\n e.preventDefault()\r\n let localeCode = e.target.nodeName === 'A' ? e.target.dataset.locale : 'en-US'\r\n\r\n // set a cookie with new code\r\n window.setCookie('locale', localeCode, 365)\r\n\r\n // update state\r\n let change = { localeValue : localeCode }\r\n this.setState(change)\r\n\r\n // get translations for new code\r\n dispatchAction(this.props.dispatch, getTranslations())\r\n\r\n // process cells need to be rematched\r\n setTimeout(()=> window.$('.process').matchHeight(),1000)\r\n\r\n }\r\n\r\n render() {\r\n\r\n const { localeValue } = this.state\r\n let fixCode = fixLocaleCode(localeValue)\r\n const useLocale = checkSiteLangSupport(fixCode) ? fixCode : 'en'\r\n const fullLocale = fullLocaleLabel(useLocale)\r\n \r\n return (\r\n
\r\n \r\n : {fullLocale}\r\n \r\n
\r\n {\r\n this.renderLangs(SiteLanguages, fullLocale)\r\n }\r\n
\r\n
\r\n )\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => (\r\n {\r\n login: state.app.get('login')\r\n }\r\n)\r\nLangSelector = connect(mapStateToProps)(LangSelector)\r\nexport default LangSelector","export const shortLocaleLabel = (code) => {\r\n let labelOutput = \"\"\r\n switch (code) {\r\n case \"da\":\r\n labelOutput = \"DA\"\r\n break\r\n case \"de\":\r\n labelOutput = \"DE\"\r\n break\r\n case \"en-US\":\r\n labelOutput = \"EN\"\r\n break\r\n case \"es\":\r\n labelOutput = \"ES\"\r\n break\r\n case \"fr\":\r\n labelOutput = \"FR\"\r\n break\r\n case \"nl\":\r\n labelOutput = \"NL\"\r\n break\r\n case \"nb\":\r\n case \"nn\":\r\n case \"no\":\r\n labelOutput = \"NB\"\r\n break\r\n case \"pt\":\r\n labelOutput = \"PT\"\r\n break\r\n case \"sv\":\r\n labelOutput = \"SV\"\r\n break\r\n case \"zh\":\r\n labelOutput = \"ZH\"\r\n break\r\n default:\r\n labelOutput = \"EN\"\r\n break\r\n }\r\n return labelOutput\r\n}\r\n\r\nexport const fullLocaleLabel = (code) => {\r\n let labelOutput = \"\"\r\n switch (code) {\r\n case \"da\":\r\n labelOutput = \"dansk\"\r\n break\r\n case \"de\":\r\n labelOutput = \"Deutsch\"\r\n break\r\n case \"en\":\r\n labelOutput = \"English\"\r\n break\r\n case \"es\":\r\n labelOutput = \"español\"\r\n break\r\n case \"fr\":\r\n labelOutput = \"français\"\r\n break\r\n case \"it\":\r\n labelOutput = \"italiano\"\r\n break\r\n case \"nl\":\r\n labelOutput = \"Nederlands\"\r\n break\r\n case \"nb\":\r\n case \"nn\":\r\n case \"no\":\r\n labelOutput = \"norsk bokmål\"\r\n break\r\n case \"pt\":\r\n labelOutput = \"português\"\r\n break\r\n case \"sv\":\r\n labelOutput = \"svenska\"\r\n break\r\n case \"zh\":\r\n labelOutput = \"中文\"\r\n break\r\n default:\r\n labelOutput = \"English\"\r\n break\r\n }\r\n return labelOutput\r\n}\r\n","import React from 'react'\r\nimport userManager from 'utils/userManager'\r\nimport Translation from 'components/Translation'\r\nimport closeIcon from 'img/ico-nav-close.svg'\r\nimport LangSelector from 'components/LangSelector'\r\n\r\nclass Hero extends React.Component {\r\n\r\n \r\n onLoginButtonClick(event) {\r\n event.preventDefault();\r\n userManager.signinRedirect()\r\n }\r\n\r\n\r\n componentDidMount() {\r\n window.$(document).trigger(\"enhance\");\r\n window.$('[data-offcanvas-trigger=\"menu\"]').on(\"click\", function(e) {\r\n e.stopImmediatePropagation()\r\n // $(\".offcanvas-collapse\").toggleClass(\"open\")\r\n // if ($(\".offcanvas-collapse\").hasClass(\"open\")) {\r\n // document.addEventListener(\"click\", triggerOffCanvasMenu)\r\n // } else {\r\n // document.removeEventListener(\"click\", triggerOffCanvasMenu)\r\n // }\r\n window.$('js-offcanvas-trigger').blur()\r\n })\r\n }\r\n\r\n render () {\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \"myMessageBanking\"\r\n
\r\n
\r\n \r\n \r\n\r\n \r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n

\r\n this.onLoginButtonClick(e)}>\r\n \r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n )\r\n }\r\n}\r\n\r\nexport default Hero","import React from 'react'\r\nimport Translation from 'components/Translation'\r\n\r\nconst Welcome = () => {\r\n return (\r\n
\r\n
\r\n

\r\n

\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Welcome","import React from 'react'\r\nimport Translation from 'components/Translation'\r\n\r\nconst How = () => {\r\n return (\r\n
\r\n
\r\n

\r\n

\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default How","import React from 'react'\r\nimport Translation from 'components/Translation'\r\n\r\nconst Costello = () => {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

\r\n

John Costello, MA, CCC-SLP

\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Costello","import React from 'react'\r\nimport Translation from 'components/Translation'\r\n\r\nconst Banking = () => {\r\n return (\r\n
\r\n
\r\n

\r\n

\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Banking","import React from 'react'\r\nimport Translation from 'components/Translation'\r\n\r\nclass Process extends React.Component {\r\n\r\n componentDidMount() {\r\n setTimeout(()=> window.$('.process').matchHeight(),1000)\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n }\r\n \r\n}\r\n\r\nexport default Process","import React from \"react\"\r\nimport Translation from \"components/Translation\"\r\n\r\nconst Additional = () => {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

\r\n \r\n

\r\n

\r\n \r\n \r\n \r\n {\" \"}\r\n (\r\n \r\n ,{\" \"}\r\n \r\n )\r\n
\r\n \r\n \r\n {\" \"}\r\n (\r\n \r\n )\r\n
\r\n

\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Additional\r\n","import React from 'react'\r\nimport userManager from 'utils/userManager'\r\nimport Translation from 'components/Translation'\r\n\r\n\r\nconst Started = () => {\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Started","import React from \"react\";\r\nimport Footer from \"components/Footer\";\r\nimport Hero from \"components/blocks/Hero\";\r\nimport Welcome from \"components/blocks/Welcome\";\r\nimport How from \"components/blocks/How\";\r\nimport Costello from \"components/blocks/Costello\";\r\nimport Banking from \"components/blocks/Banking\";\r\nimport Process from \"components/blocks/Process\";\r\nimport Additional from \"components/blocks/Additional\";\r\nimport Started from \"components/blocks/Started\";\r\nimport { connect } from \"react-redux\";\r\nimport { Redirect } from \"react-router-dom\";\r\n\r\nclass Home extends React.Component {\r\n render() {\r\n if (!this.props.login) {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n } else {\r\n return ;\r\n }\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n login: state.app.getIn([\"user\"]),\r\n});\r\n\r\nHome = connect(mapStateToProps)(Home);\r\nexport default Home;\r\n","import React from 'react'\r\nimport userManager from 'utils/userManager'\r\n\r\nclass Login extends React.Component {\r\n componentDidMount() {\r\n userManager.signinRedirect()\r\n }\r\n render() {\r\n return (\r\n
\r\n )\r\n }\r\n}\r\n\r\nexport default Login","import React from 'react'\r\n\r\nclass Logout extends React.Component {\r\n \r\n componentDidMount() {\r\n }\r\n\r\n render() {\r\n return (\r\n
logging out...
\r\n )\r\n }\r\n}\r\n\r\nexport default Logout\r\n","import React from 'react'\r\nimport { connect } from 'react-redux'\r\nimport { Link } from 'react-router-dom'\r\nimport LangSelector from 'components/LangSelector'\r\nimport userManager from 'utils/userManager'\r\nimport Translation from 'components/Translation'\r\nimport colorLogo from 'img/logo-mymb-color.svg'\r\nimport closeIcon from 'img/ico-nav-close.svg'\r\nimport {MessageUpload, MessageDownload} from 'messagebanking-module'\r\n\r\nclass Navbar extends React.Component {\r\n\r\n constructor(props) {\r\n super(props)\r\n\r\n this.signOut = this.signOut.bind(this)\r\n\r\n }\r\n\r\n signOut = (e) => {\r\n e.preventDefault()\r\n userManager.signoutRedirect().then(() => {\r\n userManager.clearStaleState()\r\n })\r\n }\r\n \r\n componentDidMount() {\r\n window.$(document).trigger(\"enhance\");\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \"myMessageBanking\"\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n )\r\n }\r\n}\r\n\r\n\r\nconst mapStateToProps = (state) => (\r\n {\r\n login: state.app.get('login')\r\n }\r\n)\r\n\r\nNavbar = connect(mapStateToProps)(Navbar)\r\nexport default Navbar","import React from \"react\";\r\nimport Navbar from \"components/Navbar\";\r\nimport Footer from \"components/Footer\";\r\nimport Welcome from \"components/blocks/Welcome\";\r\nimport How from \"components/blocks/How\";\r\nimport Costello from \"components/blocks/Costello\";\r\nimport Banking from \"components/blocks/Banking\";\r\nimport Process from \"components/blocks/Process\";\r\nimport Additional from \"components/blocks/Additional\";\r\nimport { connect } from \"react-redux\";\r\nimport { Redirect } from \"react-router-dom\";\r\n\r\nclass About extends React.Component {\r\n componentDidMount() {\r\n window.$(\".process\").matchHeight();\r\n }\r\n\r\n render() {\r\n if (this.props.login) {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n } else {\r\n return ;\r\n }\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n login: state.app.getIn([\"user\"]),\r\n});\r\n\r\nAbout = connect(mapStateToProps)(About);\r\n\r\nexport default About;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { UserManager } from \"oidc-client\";\r\nimport { setUser } from \"actions\";\r\n\r\nconst dispatchAction = (dispatch, action) => dispatch(action);\r\n\r\nclass CallbackPage extends React.Component {\r\n componentDidMount() {\r\n new UserManager({ response_mode: \"query\" })\r\n .signinRedirectCallback()\r\n .then((user) => {\r\n dispatchAction(this.props.dispatch, setUser(user));\r\n window.appInsights.setAuthenticatedUserContext(user.profile.sub);\r\n this.props.history.push(\"/messages\");\r\n })\r\n .catch(function (e) {\r\n console.error(\"callback error\", e);\r\n // window.location = \"/\";\r\n });\r\n }\r\n\r\n render() {\r\n return
;\r\n }\r\n}\r\n\r\nCallbackPage = connect()(CallbackPage);\r\nexport default CallbackPage;\r\n","import React from \"react\";\r\nimport Navbar from \"components/Navbar\";\r\nimport Footer from \"components/Footer\";\r\nimport { MessageBank } from \"messagebanking-module\";\r\nimport { connect } from \"react-redux\";\r\nimport { Redirect } from \"react-router-dom\";\r\n\r\nclass Messages extends React.Component {\r\n render() {\r\n if (this.props.login) {\r\n return (\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n } else {\r\n return ;\r\n }\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n login: state.app.getIn([\"user\"]),\r\n});\r\n\r\nMessages = connect(mapStateToProps)(Messages);\r\n\r\nexport default Messages;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport { PrintMessages } from \"messagebanking-module\";\r\n\r\nclass Print extends React.Component {\r\n render() {\r\n if (this.props.login) {\r\n const profile = this.props.login.profile,\r\n thisToken = this.props.login.access_token;\r\n\r\n return (\r\n \r\n );\r\n } else {\r\n return ;\r\n }\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n login: state.app.getIn([\"user\"]),\r\n});\r\n\r\nPrint = connect(mapStateToProps)(Print);\r\n\r\nexport default Print;\r\n","import React from \"react\";\r\nimport { BrowserRouter as Router, Route, Switch } from \"react-router-dom\";\r\n\r\nimport Home from \"components/Home\";\r\nimport Login from \"components/Login\";\r\nimport Logout from \"components/Logout\";\r\nimport About from \"components/About\";\r\nimport CallbackPage from \"components/CallbackPage\";\r\nimport Messages from \"components/Messages\";\r\nimport Print from \"components/PrintMessages\";\r\n\r\nclass MmbRoutes extends React.Component {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return ;\r\n }}\r\n />\r\n {\r\n return ;\r\n }}\r\n />\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default MmbRoutes;\r\n","import React from \"react\";\r\nimport { getTranslations, setUser, setAccessToken } from \"actions\";\r\nimport userManager from \"utils/userManager\";\r\nimport MmbRoutes from \"routes\";\r\nimport \"css/site.css\";\r\n\r\nconst dispatchAction = (dispatch, action) => dispatch(action);\r\nclass App extends React.Component {\r\n componentDidMount() {\r\n dispatchAction(this.props.store.dispatch, getTranslations());\r\n\r\n //Check session storage for a logged in user and dispatch a redux event if found.\r\n userManager\r\n .getUser()\r\n .then((user) => {\r\n if (user) {\r\n dispatchAction(this.props.store.dispatch, setUser(user));\r\n window.appInsights.setAuthenticatedUserContext(user.profile.sub);\r\n }\r\n })\r\n .catch(function (e) {\r\n console.error(\"callback error\", e);\r\n });\r\n\r\n userManager.events.addAccessTokenExpired(async () => {\r\n const timeElapsed = Date.now();\r\n const now = new Date(timeElapsed);\r\n await this.refreshToken();\r\n });\r\n\r\n let lock = false;\r\n\r\n userManager.events.addAccessTokenExpiring(async () => {\r\n if (lock === false) {\r\n lock = true;\r\n const timeElapsed = Date.now();\r\n const now = new Date(timeElapsed);\r\n await this.refreshToken();\r\n lock = false;\r\n }\r\n });\r\n }\r\n\r\n async refreshToken() {\r\n var user = await userManager.getUser();\r\n var body = `client_id=${userManager.settings.client_id}&grant_type=refresh_token&refresh_token=${user.refresh_token}`;\r\n var authorityUrl = process.env.REACT_APP_SSO_AUTHORITY;\r\n\r\n var response = await fetch(authorityUrl + \"/connect/token\", {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\r\n body: body,\r\n });\r\n\r\n var data = await response.json();\r\n\r\n if (!data.error) {\r\n user.id_token = data.id_token;\r\n user.access_token = data.access_token;\r\n user.refresh_token = data.refresh_token;\r\n user.expires_in = data.expires_in;\r\n userManager.storeUser(user);\r\n\r\n dispatchAction(\r\n this.props.store.dispatch,\r\n setAccessToken(data.access_token)\r\n );\r\n } else userManager.clearStaleState();\r\n }\r\n\r\n render() {\r\n const { store } = this.props;\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default App;\r\n","import * as at from \"actionTypes\";\r\nimport { Map, fromJS } from \"immutable\";\r\nimport userManager from \"utils/userManager\";\r\n\r\nconst app = (\r\n state = Map({\r\n pageSize: 10,\r\n }),\r\n action\r\n) => {\r\n switch (action.type) {\r\n case at.GET_TRANSLATIONS_OK:\r\n return state.set(\"translations\", fromJS(action.translations));\r\n case at.GET_AVAILABLE_LANGS_RECEIVED:\r\n return state.set(\"availLangs\", action.availLangs);\r\n case at.SET_USER:\r\n return state.setIn([\"user\"], action.user);\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default app;\r\n","import { combineReducers } from \"redux\";\r\n\r\nimport app from \"./App\";\r\nimport { MessageBankReducers as messagebank } from \"messagebanking-module\";\r\n\r\nconst reducers = combineReducers({\r\n messagebank,\r\n app,\r\n});\r\n\r\nexport default reducers;\r\n","export function getReadableFileSize(fileSizeInBytes) {\r\n var i = -1;\r\n var byteUnits = [' KB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];\r\n do {\r\n fileSizeInBytes /= 1024;\r\n i++;\r\n } while (fileSizeInBytes > 1024);\r\n\r\n return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i];\r\n}\r\n\r\nexport function dynamicSort(property, order) {\r\n const sortOrder = order\r\n return function (a,b) {\r\n const result = (a[property] < b[property]) ? -1 : (a[property] > b[property]) ? 1 : 0\r\n return result * sortOrder\r\n }\r\n}","import axios from \"axios\";\r\nimport * as at from \"actionTypes\";\r\nimport { dynamicSort } from \"resources/helpers\";\r\nimport userManager from \"utils/userManager\";\r\n\r\nlet mytdURL = process.env.REACT_APP_MYTD_URL;\r\n\r\nlet langCookie = () =>\r\n !!window.getCookieValue(\"locale\")\r\n ? window.getCookieValue(\"locale\")\r\n : !!window.localeCookieValue\r\n ? window.localeCookieValue\r\n : \"en-US\";\r\n\r\nasync function getUserAsync() {\r\n var user = await userManager.getUser();\r\n return user;\r\n}\r\n\r\nasync function _baseMyTDCall() {\r\n return axios.create({\r\n baseURL: mytdURL + \"/api/\",\r\n timeout: 1200000,\r\n headers: {\r\n \"X-Requested-With\": \"XMLHttpRequest\",\r\n Accept: \"*/*\",\r\n \"Accept-Language\": langCookie(),\r\n },\r\n });\r\n}\r\n\r\nexport const APIService = axios.create({\r\n baseURL: process.env.REACT_APP_BASE_URL,\r\n timeout: 1200000,\r\n headers: {\r\n \"X-Requested-With\": \"XMLHttpRequest\",\r\n Accept: \"*/*\",\r\n \"Accept-Language\": langCookie(),\r\n \"Access-Control-Allow-Origin\": \"*\",\r\n Vary: \"Origin\",\r\n },\r\n});\r\n\r\nasync function mbService() {\r\n var res = await getUserAsync();\r\n const authString = res.access_token ? `Bearer ${res.access_token}` : \"\";\r\n let mbServicesURL = \"\";\r\n if (typeof window.MESSAGE_BANK_API_URL !== \"undefined\") {\r\n mbServicesURL = window.MESSAGE_BANK_API_URL + \"/api/messagebank\";\r\n }\r\n return axios.create({\r\n baseURL: mbServicesURL,\r\n timeout: 1200000,\r\n headers: {\r\n \"X-Requested-With\": \"XMLHttpRequest\",\r\n Accept: \"*/*\",\r\n \"Accept-Language\": langCookie(),\r\n Authorization: authString,\r\n },\r\n });\r\n}\r\n\r\n// const getTranslations = () => {\r\n// return APIService.get(`resources`)\r\n// }\r\n\r\nexport const getTranslations = async () => {\r\n const base = await _baseMyTDCall();\r\n let data = await base.get(\"/resources\");\r\n let thisItem = await data.data;\r\n return thisItem;\r\n};\r\n\r\nexport const getAvailLangs = async () => {\r\n const base = await mbService();\r\n let data = await base.get(`/languagemodels`);\r\n let allAvailLangs = await data.data._embedded.languageModels;\r\n let azureLangs = [];\r\n allAvailLangs.forEach((el) => {\r\n if (el.transcriptionEngine === \"azure\") {\r\n azureLangs.push(el);\r\n }\r\n });\r\n azureLangs.sort(dynamicSort(\"name\", 1));\r\n return azureLangs;\r\n};\r\n\r\nconst APIMiddleware = (store) => (next) => (action) => {\r\n switch (action.type) {\r\n case at.GET_TRANSLATIONS:\r\n getTranslations().then((res) =>\r\n next({ type: at.GET_TRANSLATIONS_OK, translations: res })\r\n );\r\n break;\r\n case at.GET_AVAILABLE_LANGS:\r\n getAvailLangs().then((res) =>\r\n next({ type: at.GET_AVAILABLE_LANGS_RECEIVED, availLangs: res })\r\n );\r\n break;\r\n default:\r\n break;\r\n }\r\n return next(action);\r\n};\r\n\r\nexport default APIMiddleware;\r\n","import { createStore, compose, applyMiddleware } from \"redux\";\r\nimport reducers from \"reducers\";\r\nimport APIMiddleware from \"services/APIMiddleware\";\r\nimport { MessageBankService } from \"messagebanking-module\";\r\nimport thunk from \"redux-thunk\";\r\n\r\nconst loggerMiddleware = (store) => (next) => (action) => {\r\n next(action);\r\n};\r\n\r\nconst store = createStore(\r\n reducers,\r\n compose(\r\n applyMiddleware(thunk, APIMiddleware, MessageBankService, loggerMiddleware),\r\n (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&\r\n window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__()) ||\r\n compose\r\n )\r\n);\r\n\r\nexport { store };\r\n","import \"babel-polyfill\";\r\nimport React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { Provider } from \"react-redux\";\r\nimport App from \"components/App\";\r\nimport { store } from \"store\";\r\n\r\nwindow.MESSAGE_BANK_API_URL = process.env.REACT_APP_MESSAGE_BANK_API_URL;\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n document.getElementById(\"root\")\r\n);\r\n","module.exports = __webpack_public_path__ + \"static/media/ico-nav-close.600dd8a0.svg\";"],"sourceRoot":""}