{"version":3,"sources":["app.tsx","../node_modules/react-gtm-module/dist/index.js","../node_modules/react-gtm-module/dist/TagManager.js","../node_modules/react-gtm-module/dist/Snippets.js","../node_modules/react-gtm-module/dist/utils/warn.js"],"names":["withRouter","connect","ui","isAppLoading","app","isLicenseLoading","dispatch","onGetLoggedInUser","getLoggedInUser","React","useEffect","localStorage","getItem","TagManager","initialize","gtmId","AppHeaderComponent","lazy","AppRoutesComponent","AppFooterComponent","className","obj","_TagManager","require","_TagManager2","__esModule","default","module","exports","_Snippets","_Snippets2","dataScript","dataLayer","script","document","createElement","innerHTML","gtm","args","snippets","tags","noScript","noscript","iframe","this","dataLayerVar","_ref","_ref$events","events","undefined","_ref$dataLayerName","dataLayerName","_ref$auth","auth","_ref$preview","preview","id","head","appendChild","insertBefore","childNodes","body","_ref2","_dataLayer","_ref2$dataLayerName","window","push","_warn","_warn2","Snippets","gtm_auth","gtm_preview","JSON","stringify","slice","Object","defineProperty","value","s","console","warn"],"mappings":"iGAAA,4EAqDeA,sBACbC,aAVsB,SAAC,GAAD,IAAGC,EAAH,EAAGA,GAAH,MAAoB,CAC1CC,aAAcD,EAAGE,IAAID,aACrBE,iBAAkBH,EAAGE,IAAIC,qBAGA,SAACC,GAAD,MAAyB,CAClDC,kBAAmB,kBAAMD,EAASE,mBAIlCP,EA5CU,SAAC,GAIG,EAHdE,aAGc,EAFdE,iBAEe,IADfE,EACc,EADdA,kBAGAE,IAAMC,WAAU,WACdH,MAEC,IAMsD,UAArDI,aAAaC,QAAQ,6BACvBC,IAAWC,WAJU,CACrBC,MAAO,gBAMT,IAAMC,EAAqBC,gBAAK,kBAAM,sEAChCC,EAAqBD,gBAAK,kBAAM,sEAChCE,EAAqBF,gBAAK,kBAAM,mCAEtC,OACI,yBAAKG,UAAU,YACb,kBAACJ,EAAD,MACA,yBAAKI,UAAU,eACb,kBAACF,EAAD,OAEF,kBAACC,EAAD,Y,uDCrCR,IAIgCE,EAJ5BC,EAAcC,EAAQ,KAEtBC,GA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\nimport { AppProps, State } from \"./types\";\nimport React, { lazy } from \"react\";\nimport { connect } from \"react-redux\";\nimport { withRouter } from \"react-router\";\nimport { getLoggedInUser } from \"./redux/domain/auth\";\nimport { Dispatch } from \"redux\";\nimport TagManager from 'react-gtm-module'\n\nconst App = ({\n isAppLoading,\n isLicenseLoading,\n onGetLoggedInUser,\n}: AppProps) => {\n\n React.useEffect(() => {\n onGetLoggedInUser();\n // eslint-disable-next-line\n }, [])\n\n // React GTM\n const tagManagerArgs = {\n gtmId: \"GTM-WRMZ3BM\",\n }\n if (localStorage.getItem(\"isGoogleAnalyticsEnabled\") !== \"false\") {\n TagManager.initialize(tagManagerArgs)\n }\n\n const AppHeaderComponent = lazy(() => import('./components/common/header/header'));\n const AppRoutesComponent = lazy(() => import('./appRoutes'));\n const AppFooterComponent = lazy(() => import('./components/common/footer/footer'));\n\n return (\n
\n \n
\n \n
\n \n
\n );\n};\n\nconst mapStateToProps = ({ ui }: State) => ({\n isAppLoading: ui.app.isAppLoading,\n isLicenseLoading: ui.app.isLicenseLoading,\n});\n\nconst mapDispatchToProps = (dispatch: Dispatch) => ({\n onGetLoggedInUser: () => dispatch(getLoggedInUser())\n});\n\nexport default withRouter(\n connect(mapStateToProps, mapDispatchToProps)(App)\n);","'use strict';\n\nvar _TagManager = require('./TagManager');\n\nvar _TagManager2 = _interopRequireDefault(_TagManager);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = _TagManager2.default;","'use strict';\n\nvar _Snippets = require('./Snippets');\n\nvar _Snippets2 = _interopRequireDefault(_Snippets);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar TagManager = {\n dataScript: function dataScript(dataLayer) {\n var script = document.createElement('script');\n script.innerHTML = dataLayer;\n return script;\n },\n gtm: function gtm(args) {\n var snippets = _Snippets2.default.tags(args);\n\n var noScript = function noScript() {\n var noscript = document.createElement('noscript');\n noscript.innerHTML = snippets.iframe;\n return noscript;\n };\n\n var script = function script() {\n var script = document.createElement('script');\n script.innerHTML = snippets.script;\n return script;\n };\n\n var dataScript = this.dataScript(snippets.dataLayerVar);\n\n return {\n noScript: noScript,\n script: script,\n dataScript: dataScript\n };\n },\n initialize: function initialize(_ref) {\n var gtmId = _ref.gtmId,\n _ref$events = _ref.events,\n events = _ref$events === undefined ? {} : _ref$events,\n dataLayer = _ref.dataLayer,\n _ref$dataLayerName = _ref.dataLayerName,\n dataLayerName = _ref$dataLayerName === undefined ? 'dataLayer' : _ref$dataLayerName,\n _ref$auth = _ref.auth,\n auth = _ref$auth === undefined ? '' : _ref$auth,\n _ref$preview = _ref.preview,\n preview = _ref$preview === undefined ? '' : _ref$preview;\n\n var gtm = this.gtm({\n id: gtmId,\n events: events,\n dataLayer: dataLayer || undefined,\n dataLayerName: dataLayerName,\n auth: auth,\n preview: preview\n });\n if (dataLayer) document.head.appendChild(gtm.dataScript);\n document.head.insertBefore(gtm.script(), document.head.childNodes[0]);\n document.body.insertBefore(gtm.noScript(), document.body.childNodes[0]);\n },\n dataLayer: function dataLayer(_ref2) {\n var _dataLayer = _ref2.dataLayer,\n _ref2$dataLayerName = _ref2.dataLayerName,\n dataLayerName = _ref2$dataLayerName === undefined ? 'dataLayer' : _ref2$dataLayerName;\n\n if (window[dataLayerName]) return window[dataLayerName].push(_dataLayer);\n var snippets = _Snippets2.default.dataLayer(_dataLayer, dataLayerName);\n var dataScript = this.dataScript(snippets);\n document.head.insertBefore(dataScript, document.head.childNodes[0]);\n }\n};\n\nmodule.exports = TagManager;","'use strict';\n\nvar _warn = require('./utils/warn');\n\nvar _warn2 = _interopRequireDefault(_warn);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// https://developers.google.com/tag-manager/quickstart\n\nvar Snippets = {\n tags: function tags(_ref) {\n var id = _ref.id,\n events = _ref.events,\n dataLayer = _ref.dataLayer,\n dataLayerName = _ref.dataLayerName,\n preview = _ref.preview,\n auth = _ref.auth;\n\n var gtm_auth = '>m_auth=' + auth;\n var gtm_preview = '>m_preview=' + preview;\n\n if (!id) (0, _warn2.default)('GTM Id is required');\n\n var iframe = '\\n ';\n\n var script = '\\n (function(w,d,s,l,i){w[l]=w[l]||[];\\n w[l].push({\\'gtm.start\\': new Date().getTime(),event:\\'gtm.js\\', ' + JSON.stringify(events).slice(1, -1) + '});\\n var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=\\'dataLayer\\'?\\'&l=\\'+l:\\'\\';\\n j.async=true;j.src=\\'https://www.googletagmanager.com/gtm.js?id=\\'+i+dl+\\'' + gtm_auth + gtm_preview + '>m_cookies_win=x\\';\\n f.parentNode.insertBefore(j,f);\\n })(window,document,\\'script\\',\\'' + dataLayerName + '\\',\\'' + id + '\\');';\n\n var dataLayerVar = this.dataLayer(dataLayer, dataLayerName);\n\n return {\n iframe: iframe,\n script: script,\n dataLayerVar: dataLayerVar\n };\n },\n dataLayer: function dataLayer(_dataLayer, dataLayerName) {\n return '\\n window.' + dataLayerName + ' = window.' + dataLayerName + ' || [];\\n window.' + dataLayerName + '.push(' + JSON.stringify(_dataLayer) + ')';\n }\n};\n\nmodule.exports = Snippets;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar warn = function warn(s) {\n console.warn('[react-gtm]', s);\n};\n\nexports.default = warn;"],"sourceRoot":""}