{"version":3,"sources":["webpack:///sw.7a94a.js","webpack:///webpack/bootstrap c2e20bee55e4f2759ea7","webpack:///./sw.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","LNWJ","self","addEventListener","event","console","log","data","text","JSON","parse","ex","message","title","options","body","icon","badge","waitUntil","registration","showNotification","notification","close","clients","openWindow"],"mappings":"CAAS,SAAUA,GCIjB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUE,OAGnC,IAAIC,GAASF,EAAiBD,IAC7BI,EAAGJ,EACHK,GAAG,EACHH,WAUD,OANAJ,GAAQE,GAAUM,KAAKH,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,GAAID,KA4BJF,GAAoBQ,EAAIT,EAGxBC,EAAoBS,EAAIP,EAGxBF,EAAoBU,EAAI,SAASP,EAASQ,EAAMC,GAC3CZ,EAAoBa,EAAEV,EAASQ,IAClCG,OAAOC,eAAeZ,EAASQ,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRZ,EAAoBmB,EAAI,SAASf,GAChC,GAAIQ,GAASR,GAAUA,EAAOgB,WAC7B,WAAwB,MAAOhB,GAAgB,SAC/C,WAA8B,MAAOA,GAEtC,OADAJ,GAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASQ,EAAQC,GAAY,MAAOR,QAAOS,UAAUC,eAAejB,KAAKc,EAAQC,IAGzGtB,EAAoByB,EAAI,IAGjBzB,EAAoBA,EAAoB0B,EAAI,UDM/CC,KACA,WAEN,YEpEAC,MAAKC,iBAAiB,OAAQ,SAAUC,GACpCC,QAAQC,IAAI,mCACZD,QAAQC,IAAR,yCAAqDF,EAAMG,KAAKC,OAAhE,IACA,IAAID,KAEJ,KACI,GAAIA,GAAOE,KAAKC,MAAMN,EAAMG,KAAKC,QAErC,MAAOG,GACHJ,EAAKK,QAAUR,EAAMG,KAAKC,OAG9B,GAAMK,GAAQN,EAAKM,OAAS,aACtBC,GACFC,KAAMR,EAAKK,SAAW,gBACtBI,8BACAC,kCAGJb,GAAMc,UAAUhB,KAAKiB,aAAaC,iBAAiBP,EAAOC,MAG9DZ,KAAKC,iBAAiB,oBAAqB,SAAUC,GACjDC,QAAQC,IAAI,iDAEZF,EAAMiB,aAAaC,QAEnBlB,EAAMc,UACFK,QAAQC,WAAW","file":"sw.7a94a.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \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, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\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/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"LNWJ\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"LNWJ\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nself.addEventListener('push', function (event) {\n console.log('[Service Worker] Push Received.');\n console.log('[Service Worker] Push had this data: \"' + event.data.text() + '\"');\n var data = {};\n\n try {\n var data = JSON.parse(event.data.text());\n } catch (ex) {\n data.message = event.data.text();\n }\n\n var title = data.title || 'CoreVision';\n var options = {\n body: data.message || 'Yay it works.',\n icon: '/assets/icons/cv32.png',\n badge: '/assets/icons/cvbadge.png'\n };\n\n event.waitUntil(self.registration.showNotification(title, options));\n});\n\nself.addEventListener('notificationclick', function (event) {\n console.log('[Service Worker] Notification click Received.');\n\n event.notification.close();\n\n event.waitUntil(clients.openWindow('http://www.corevision.com.au/'));\n});\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// sw.7a94a.js"," \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, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\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 \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"LNWJ\");\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c2e20bee55e4f2759ea7","'use strict';\r\n\r\nself.addEventListener('push', function (event) {\r\n console.log('[Service Worker] Push Received.');\r\n console.log(`[Service Worker] Push had this data: \"${event.data.text()}\"`);\r\n var data = {};\r\n\r\n try {\r\n var data = JSON.parse(event.data.text());\r\n }\r\n catch (ex) {\r\n data.message = event.data.text();\r\n }\r\n\r\n const title = data.title || 'CoreVision';\r\n const options = {\r\n body: data.message || 'Yay it works.',\r\n icon: `/assets/icons/cv32.png`,\r\n badge: `/assets/icons/cvbadge.png`\r\n };\r\n\r\n event.waitUntil(self.registration.showNotification(title, options));\r\n});\r\n\r\nself.addEventListener('notificationclick', function (event) {\r\n console.log('[Service Worker] Notification click Received.');\r\n\r\n event.notification.close();\r\n\r\n event.waitUntil(\r\n clients.openWindow('http://www.corevision.com.au/')\r\n );\r\n});\r\n\n\n\n// WEBPACK FOOTER //\n// ./sw.js"],"sourceRoot":""}