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AAI5B,EAAS4B,EAAQrC,GAGlC,IADGkC,GAA4BA,EAA2BC,GACrDpB,EAAIL,EAASM,OAAQD,IACzBiB,EAAUtB,EAASK,GAChBf,EAAoByB,EAAEM,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOhC,EAAoBQ,EAAEC,IAG1B+B,EAAqBC,KAAmB,aAAIA,KAAmB,cAAK,GACxED,EAAmBE,QAAQT,EAAqBU,KAAK,KAAM,IAC3DH,EAAmBhF,KAAOyE,EAAqBU,KAAK,KAAMH,EAAmBhF,KAAKmF,KAAKH,K,GC/CvFxC,EAAoBQ,OAAEL,EAAW,CAAC,IAAI,MAAM,IAAOH,EAAoB,OACvEA,EAAoBQ,OAAEL,EAAW,CAAC,IAAI,MAAM,IAAOH,EAAoB,OACvE,IAAI4C,EAAsB5C,EAAoBQ,OAAEL,EAAW,CAAC,IAAI,MAAM,IAAOH,EAAoB,OACjG4C,EAAsB5C,EAAoBQ,EAAEoC,I","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///./resources/js/merchants/bmo-shell-benefit/tracking.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","window.adobeDataLayerPushWebEvents = function(event, webPayload) {\n window.adobeDataLayer = window.adobeDataLayer || [];\n window.adobeDataLayer.push({\n event,\n web : webPayload\n });\n}\n\nwindow.adobeInternalLinkClickTrack = function(name, location, href) {\n adobeDataLayerPushWebEvents(\"internalLinkClick\", {\n internalLink : {\n linkName : name,\n linkHref: href,\n linkLocation: location\n }\n })\n}\n\nwindow.adobeCtaLinkClickTrack = function(name, location, href, pageName = 'clo:shell-benefit') {\n // console.log({name,href,location})\n adobeDataLayerPushWebEvents(\"CTAClick\", {\n CTAClick: {\n linkName: name,\n linkHref: href,\n linkLocation: location\n },\n pageDetails: {\n name: pageName\n }\n })\n}\n\nwindow.adobeFormStartTrack = function(formName) {\n adobeDataLayerPushWebEvents(\"formStart\", {\n form: {\n formName\n }\n })\n}\n\nwindow.adobeFormCompleteTrack = function(formName) {\n adobeDataLayerPushWebEvents(\"formComplete\", {\n form: {\n formName\n }\n })\n}\nwindow.adobePageViewsTrack = function() {\n let payload = {\n pageDetails: {\n name: \"clo:shell-benefit\",\n // previousPageName: \"\",\n title: document.title,\n url: document.URL,\n // subSection1: \"\",\n category: \"page\",\n // loadTime: \"\"\n },\n collector: {\n // id: \"\",\n // tier: \"\", //blue/gold/onyx\n // login_status: \"\", //logged_in/not_logged_in/recognized\n // cash_miles: \"\",\n // dream_miles: \"dream_miles\",\n // cash_miles_pref: \"cash_miles_pref\" //cash miles preference % (0 to 100)\n },\n siteDetails: {\n domain: window.location.host,\n section: \"clo:shell-benefit\",\n subsection: \"clo:shell-benefit\",\n language: document.documentElement.lang, //en/fr\n screen_height: screen.height,\n screen_width: screen.width\n }\n };\n adobeDataLayerPushWebEvents(\"pageViews\", payload);\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t914: 0,\n\t234: 0,\n\t500: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk\"] = self[\"webpackChunk\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [234,500], () => (__webpack_require__(701)))\n__webpack_require__.O(undefined, [234,500], () => (__webpack_require__(425)))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [234,500], () => (__webpack_require__(343)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","window","adobeDataLayerPushWebEvents","event","webPayload","adobeDataLayer","push","web","adobeInternalLinkClickTrack","name","location","href","internalLink","linkName","linkHref","linkLocation","adobeCtaLinkClickTrack","pageName","CTAClick","pageDetails","adobeFormStartTrack","formName","form","adobeFormCompleteTrack","adobePageViewsTrack","payload","title","document","url","URL","category","collector","siteDetails","domain","host","section","subsection","language","documentElement","lang","screen_height","screen","height","screen_width","width","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","o","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}