{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/framework/analytics2.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","__webpackPublicPath","Error","e","set","newPublicPath","console","warn","s","analyticsInit","params","cookieType","getStacking","path","window","location","pathname","toLowerCase","replace","match","host","stackCookie","data","cookie","crumbsDepth","array","previousCookie","type","crumbs","prevCookies","page","campaigns","RegExp","exec","search","decodeURIComponent","sites","website","document","split","filter","getCookie","length","shift","push","join","adobeDataLayer","sections","pageLoad","pageInfo","server","hostname","fullUrl","href","fullQuery","language","pageName","campaignStacking","websiteStacking","pageStacking","siteSection1","siteSection2","siteSection3","siteSection4","siteSection5","pageCode","responseStatusCode","pageType","_objectSpread","event","analyticsConfig"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,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SACjBC,SAAU5B,EACV6B,iBAAkBpC,EAAYX,EAAQC,EAAqB,GAC3D+C,gBAAiBrC,EAAYX,EAAQC,EAAoB,GACzDgD,aAActC,EAAYX,EAAQC,EAAiB,GACnDiD,aAAcb,EAAS,IAAM,GAC7Bc,aAAcd,EAAS,IAAM,GAC7Be,aAAcf,EAAS,IAAM,GAC7BgB,aAAchB,EAAS,IAAM,GAC7BiB,aAAcjB,EAAS,IAAM,GAC7BV,QAAS3B,EAAO2B,QAChB4B,SAAUvD,EAAOwD,mBACjBC,SAAwC,MAA9BzD,EAAOwD,mBAA6B,YAAc,KAK9DpD,OAAOgC,eAAeF,K,+VAAIwB,CAAC,CAAEC,MAAO,gCAAmCrB,IAIpElC,OAAOwD,iBACV7D,EAAcK,OAAOwD,sBAGyC,IAAnBrG,EAAOD,UAClDC,EAAOD,QAAU,CAChByC","file":"analytics2-9770f11f.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 = \"/content/dist/\";\n \t// WebpackRequireFrom\n \ttypeof __webpack_require__ !== \"undefined\" && Object.defineProperty(__webpack_require__, \"p\", {\n \t get: function () {\n \ttry {\n \t if (typeof __webpackPublicPath !== \"function\") {\n \t throw new Error(\"WebpackRequireFrom: '__webpackPublicPath' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting\");\n \t }\n \t return __webpackPublicPath();\n \t} catch (e) {\n \t if (!true) {\n \t console.error(e);\n \t }\n \t return \"/content/dist/\";\n \t}\n \t },\n \t set: function (newPublicPath) {\n \t console.warn(\"WebpackRequireFrom: something is trying to override webpack public path. Ignoring the new value\" + newPublicPath + \".\");\n \t}\n \t});\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 332);\n","/*\r\n\tInit data for \"Adobe Experience Manager\".\r\n\tWe create a custom dataLayer (named digitalData), that we apply our site information to, this enables better tracking.\r\n\tThis need to be accessible as a global variable.\r\n\r\n\thttps://marketing.adobe.com/resources/help/en_US/dtm/c_custom-data-layer-example.html\r\n\r\n*/\r\nfunction analyticsInit(params) {\r\n\tconst cookieType = { CAMPAIGN: 1, PAGE: 2, WEBSITE: 3 };\r\n\r\n\twindow.adobeDataLayer = window.adobeDataLayer || [];\r\n\r\n\tfunction getStacking() {\r\n\t\tconst languagePath = /^:[a-z]{2}-[a-z]{2}/;\r\n\t\tlet path = window.location.pathname.toLowerCase().replace(/\\//g, ':');\r\n\r\n\t\tif (!path.match(languagePath)) {\r\n\t\t\tswitch (window.location.host) {\r\n\t\t\t\tcase 'cn.saxobank.com':\r\n\t\t\t\t\tpath = 'zh-cn' + path;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'www.bgsaxo.it':\r\n\t\t\t\tcase 'bgsaxo.it':\r\n\t\t\t\t\tpath = 'it-it' + path;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tpath = 'en' + path;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn path.replace(/^:/, '').replace(/:$/, '');\r\n\t}\r\n\r\n\tfunction getCookie(name) {\r\n\t\tconst value = document.cookie\r\n\t\t\t.split(';')\r\n\t\t\t.filter(cookie => cookie.match(new RegExp(name + '=.*')))[0];\r\n\r\n\t\treturn value ? value.split('=')[1] : '';\r\n\t}\r\n\r\n\tfunction getQueryString(name) {\r\n\t\tconst match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);\r\n\t\treturn match && decodeURIComponent(match[1].replace(/\\+/g, ' '));\r\n\t}\r\n\r\n\tfunction stackCookie(data, cookie, crumbsDepth) {\r\n\t\tlet array = [];\r\n\t\tlet previousCookie = '';\r\n\t\tlet type = '';\r\n\t\tlet value;\r\n\t\tconst crumbs = getStacking();\r\n\r\n\t\tswitch (cookie) {\r\n\t\t\tdefault:\r\n\t\t\tcase cookieType.PAGE:\r\n\t\t\t\ttype = data.prevCookies.page;\r\n\t\t\t\tvalue = crumbs;\r\n\t\t\t\tbreak;\r\n\t\t\tcase cookieType.CAMPAIGN:\r\n\t\t\t\ttype = data.prevCookies.campaigns;\r\n\t\t\t\tvalue = getQueryString('cmpid');\r\n\t\t\t\tbreak;\r\n\t\t\tcase cookieType.WEBSITE:\r\n\t\t\t\ttype = data.prevCookies.sites;\r\n\t\t\t\tvalue = data.website;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tpreviousCookie = type && getCookie(type);\r\n\r\n\t\tif (!value) {\r\n\t\t\treturn previousCookie;\r\n\t\t}\r\n\r\n\t\tif (previousCookie) {\r\n\t\t\tarray = previousCookie.split('>');\r\n\t\t}\r\n\r\n\t\tif (value && value !== array[array.length - 1]) {\r\n\t\t\tif (array.length === crumbsDepth) {\r\n\t\t\t\tarray.shift();\r\n\t\t\t}\r\n\r\n\t\t\tarray.push(value);\r\n\r\n\t\t\tif (type) {\r\n\t\t\t\tdocument.cookie = type + '=' + array.join('>') + '; path=/';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn array.join('>');\r\n\t}\r\n\tconst crumbs = getStacking();\r\n\tconst sections = crumbs.split(':');\r\n\r\n\tconst pageLoad = {\r\n\t\tpageInfo: {\r\n\t\t\tserver: window.location.hostname,\r\n\t\t\tfullUrl: window.location.href,\r\n\t\t\tfullQuery: window.location.search,\r\n\t\t\tlanguage: params.language,\r\n\t\t\tpageName: crumbs,\r\n\t\t\tcampaignStacking: stackCookie(params, cookieType.CAMPAIGN, 5),\r\n\t\t\twebsiteStacking: stackCookie(params, cookieType.WEBSITE, 3),\r\n\t\t\tpageStacking: stackCookie(params, cookieType.PAGE, 5),\r\n\t\t\tsiteSection1: sections[0] || '',\r\n\t\t\tsiteSection2: sections[1] || '',\r\n\t\t\tsiteSection3: sections[2] || '',\r\n\t\t\tsiteSection4: sections[3] || '',\r\n\t\t\tsiteSection5: sections[4] || '',\r\n\t\t\twebsite: params.website,\r\n\t\t\tpageCode: params.responseStatusCode,\r\n\t\t\tpageType: params.responseStatusCode === 404 ? 'errorPage' : ''\r\n\t\t}\r\n\t};\r\n\t// TODO : need to check where to add mPulse and consentInfo details in the object\r\n\r\n\twindow.adobeDataLayer.push({ event: 'web.webpagedetails.pageViews', ...pageLoad });\r\n\t// push the page load info\r\n}\r\n\r\nif (window.analyticsConfig) {\r\n\tanalyticsInit(window.analyticsConfig);\r\n}\r\n\r\nif (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\r\n\tmodule.exports = {\r\n\t\tanalyticsInit\r\n\t};\r\n}\r\n"],"sourceRoot":""}