{"version":3,"sources":["webpack:///bundle-b3635172805f85434e67.js","webpack:///webpack/bootstrap 17a6c6355ac968ef2d41","webpack:///./src/client/helpers/nodelistToArray.js","webpack:///./src/client/index.js","webpack:///./node_modules/domready/ready.js","webpack:///./src/client/init.js","webpack:///./src/client/helpers/uuid.js","webpack:///./src/shared/App.css","webpack:///./src/shared/components/Message/Message.css"],"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","nodelistToArray","nodeList","slice","value","_interopRequireDefault","obj","default","mountFn","el","_nodelistToArray","querySelectorAll","imgClass","map","makeExpandable","_domready","_domready2","_init","_App","_Message","_Message2","rootElementClassName","window","message__image","clickable","expanded","hover","onClick","className","classList","toggle","onEnter","shouldHover","add","onLeave","remove","isHoverable","addEventListener","init","Symbol","iterator","definition","listener","fns","doc","document","hack","documentElement","doScroll","loaded","test","readyState","removeEventListener","shift","fn","setTimeout","push","callbackFn","findElements","forEach","id","_uuid","uuid","getElementsByClassName","filter","isInitialized","Math","random","toString","substr","root","app","message","message--left","message--is-display-avatar","message--right","message--is-last-in-group","message__text","message__text--right","message__text--left","message__image--expanded","message__image--clickable","message__image--hover","message__image--left","message__image--right","message__name","message__content","message__content--left","message__content--right","message__content--has-name"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAI,EAAAJ,EACAK,GAAA,EACAH,WAUA,OANAJ,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,GAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,SAAAP,EAAAQ,EAAAC,GACAZ,EAAAa,EAAAV,EAAAQ,IACAG,OAAAC,eAAAZ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IY,KAI7B,QAAS4C,GAAexD,EAAIY,GAC1B,MAAOZ,GAAGmD,IAAMtC,OAAOD,GAAsBZ,EAAGmD,ILgKlDxE,OAAOC,eAAeZ,EAAS,cAC7B2B,OAAO,IAET3B,EKtMgB6D,MAHhB,IAAA5B,GAAApC,EAAA,GACAuF,EAAAvF,EAAA,ILyPM,SAAUI,EAAQD,EAASH,GAEjC,YM7PO,SAASwF,KACd,UAAWI,KAAKC,SAASC,SAAS,IAAIC,OAAO,EAAG,GN+PlDjF,OAAOC,eAAeZ,EAAS,cAC7B2B,OAAO,IAET3B,EMnQgBqF,QN0QV,SAAUpF,EAAQD,KAMlB,SAAUC,EAAQD,GO/QxBC,EAAAD,SAAkB6F,KAAA,mBAAAC,IAAA,oBPsRZ,SAAU7F,EAAQD,GQtRxBC,EAAAD,SAAkB+F,QAAA,sBAAAC,gBAAA,4BAAAC,6BAAA,yCAAAC,iBAAA,6BAAAC,4BAAA,wCAAAC,cAAA,4BAAAC,uBAAA,mCAAAC,sBAAA,kCAAAxD,eAAA,6BAAAyD,2BAAA,uCAAAC,4BAAA,wCAAAC,wBAAA,oCAAAC,uBAAA,mCAAAC,wBAAA,oCAAAC,cAAA,4BAAAC,iBAAA,+BAAAC,yBAAA,qCAAAC,0BAAA,sCAAAC,6BAAA","file":"bundle-b3635172805f85434e67.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 = \"https://dh-static.mesos.nrk.no/chatlog/static/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nodelistToArray = nodelistToArray;\nfunction nodelistToArray(nodeList) {\n return [].slice.call(nodeList);\n}\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(2);\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _domready = __webpack_require__(3);\n\nvar _domready2 = _interopRequireDefault(_domready);\n\nvar _nodelistToArray = __webpack_require__(0);\n\nvar _init = __webpack_require__(4);\n\n__webpack_require__(6);\n\nvar _App = __webpack_require__(7);\n\nvar _Message = __webpack_require__(8);\n\nvar _Message2 = _interopRequireDefault(_Message);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar rootElementClassName = _App.root;\n\nwindow[rootElementClassName] = window[rootElementClassName] || {};\n\nvar imgClass = _Message2.default.message__image;\nvar clickable = _Message2.default['message__image--clickable'];\nvar expanded = _Message2.default['message__image--expanded'];\nvar hover = _Message2.default['message__image--hover'];\n\nfunction mountFn(el) {\n var imgs = (0, _nodelistToArray.nodelistToArray)(el.querySelectorAll('.' + imgClass));\n imgs.map(makeExpandable);\n}\n\nvar onClick = function onClick(el, className) {\n return el.classList.toggle(className);\n};\nvar onEnter = function onEnter(el, className, shouldHover) {\n return shouldHover && el.classList.add(className);\n};\nvar onLeave = function onLeave(el, className) {\n return el.classList.remove(className);\n};\nvar makeExpandable = function makeExpandable(el) {\n var isHoverable = true;\n el.classList.add(clickable);\n el.addEventListener('click', function () {\n return onClick(el, expanded);\n });\n el.addEventListener('touchstart', function () {\n return isHoverable = false;\n });\n el.addEventListener('mouseenter', function () {\n return onEnter(el, hover, isHoverable);\n });\n el.addEventListener('mouseleave', function () {\n return onLeave(el, hover);\n });\n};\n(0, _domready2.default)(function () {\n return (0, _init.init)(rootElementClassName, mountFn);\n});\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n */\n!function (name, definition) {\n\n if (true) module.exports = definition();else if (typeof define == 'function' && _typeof(define.amd) == 'object') define(definition);else this[name] = definition();\n}('domready', function () {\n\n var fns = [],\n _listener,\n doc = document,\n hack = doc.documentElement.doScroll,\n domContentLoaded = 'DOMContentLoaded',\n loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);\n\n if (!loaded) doc.addEventListener(domContentLoaded, _listener = function listener() {\n doc.removeEventListener(domContentLoaded, _listener);\n loaded = 1;\n while (_listener = fns.shift()) {\n _listener();\n }\n });\n\n return function (fn) {\n loaded ? setTimeout(fn, 0) : fns.push(fn);\n };\n});\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.init = init;\n\nvar _nodelistToArray = __webpack_require__(0);\n\nvar _uuid = __webpack_require__(5);\n\n/* global __HOT__ */\nfunction init(rootElementClassName, mountFn, callbackFn) {\n findElements(rootElementClassName).forEach(function (el) {\n el.id = (0, _uuid.uuid)();\n window[rootElementClassName][el.id] = true;\n\n // Extract preloaded state sent person server\n mountFn(el);\n\n // Enable webpack hot-reloading\n if (false) {\n // Reload CSS file\n\n require('webpack/hot/emitter').on('webpackHotUpdate', function (currentHash) {\n document.querySelectorAll('link[href][rel=stylesheet]').forEach(function (link) {\n var nextStyleHref = link.href.replace(/(\\?\\d+)?$/, '?' + Date.now());\n link.href = nextStyleHref;\n });\n });\n\n // Reload and re-render React application\n module.hot.accept('./index', function () {\n var _require = require('react'),\n ReactDOM = _require.ReactDOM;\n\n ReactDOM.hydrate(require('../shared/App').default, el);\n });\n }\n });\n}\n\nfunction findElements(rootElementClassName) {\n return (0, _nodelistToArray.nodelistToArray)(document.getElementsByClassName(rootElementClassName)).filter(function (el) {\n return !isInitialized(el, rootElementClassName);\n });\n}\n\nfunction isInitialized(el, rootElementClassName) {\n return el.id && window[rootElementClassName][el.id];\n}\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.uuid = uuid;\nfunction uuid() {\n return \"_\" + Math.random().toString(36).substr(2, 9);\n}\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\nmodule.exports = {\"root\":\"nrk-chatlog-root\",\"app\":\"nrk-chatlog-app\"};\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\nmodule.exports = {\"message\":\"nrk-chatlog-message\",\"message--left\":\"nrk-chatlog-message--left\",\"message--is-display-avatar\":\"nrk-chatlog-message--is-display-avatar\",\"message--right\":\"nrk-chatlog-message--right\",\"message--is-last-in-group\":\"nrk-chatlog-message--is-last-in-group\",\"message__text\":\"nrk-chatlog-message__text\",\"message__text--right\":\"nrk-chatlog-message__text--right\",\"message__text--left\":\"nrk-chatlog-message__text--left\",\"message__image\":\"nrk-chatlog-message__image\",\"message__image--expanded\":\"nrk-chatlog-message__image--expanded\",\"message__image--clickable\":\"nrk-chatlog-message__image--clickable\",\"message__image--hover\":\"nrk-chatlog-message__image--hover\",\"message__image--left\":\"nrk-chatlog-message__image--left\",\"message__image--right\":\"nrk-chatlog-message__image--right\",\"message__name\":\"nrk-chatlog-message__name\",\"message__content\":\"nrk-chatlog-message__content\",\"message__content--left\":\"nrk-chatlog-message__content--left\",\"message__content--right\":\"nrk-chatlog-message__content--right\",\"message__content--has-name\":\"nrk-chatlog-message__content--has-name\"};\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// bundle-b3635172805f85434e67.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 = \"https://dh-static.mesos.nrk.no/chatlog/static/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 17a6c6355ac968ef2d41","export function nodelistToArray (nodeList) {\n return [].slice.call(nodeList)\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/client/helpers/nodelistToArray.js","import domready from 'domready'\nimport { nodelistToArray } from './helpers/nodelistToArray'\nimport { init } from './init'\nimport './index.css'\nimport { root } from '../shared/App.css'\nimport msgStyle from '../shared/components/Message/Message.css'\nconst rootElementClassName = root\n\nwindow[rootElementClassName] = window[rootElementClassName] || {}\n\nconst imgClass = msgStyle.message__image\nconst clickable = msgStyle['message__image--clickable']\nconst expanded = msgStyle['message__image--expanded']\nconst hover = msgStyle['message__image--hover']\n\nfunction mountFn (el) {\n const imgs = nodelistToArray(el.querySelectorAll(`.${imgClass}`))\n imgs.map(makeExpandable)\n}\n\nconst onClick = (el, className) => el.classList.toggle(className)\nconst onEnter = (el, className, shouldHover) => shouldHover && el.classList.add(className)\nconst onLeave = (el, className) => el.classList.remove(className)\nconst makeExpandable = el => {\n let isHoverable = true\n el.classList.add(clickable)\n el.addEventListener('click', () => onClick(el, expanded))\n el.addEventListener('touchstart', () => (isHoverable = false))\n el.addEventListener('mouseenter', () => onEnter(el, hover, isHoverable))\n el.addEventListener('mouseleave', () => onLeave(el, hover))\n}\ndomready(() => init(rootElementClassName, mountFn))\n\n\n\n// WEBPACK FOOTER //\n// ./src/client/index.js","/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n */\n!function (name, definition) {\n\n if (typeof module != 'undefined') module.exports = definition()\n else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)\n else this[name] = definition()\n\n}('domready', function () {\n\n var fns = [], listener\n , doc = document\n , hack = doc.documentElement.doScroll\n , domContentLoaded = 'DOMContentLoaded'\n , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState)\n\n\n if (!loaded)\n doc.addEventListener(domContentLoaded, listener = function () {\n doc.removeEventListener(domContentLoaded, listener)\n loaded = 1\n while (listener = fns.shift()) listener()\n })\n\n return function (fn) {\n loaded ? setTimeout(fn, 0) : fns.push(fn)\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./node_modules/domready/ready.js","/* global __HOT__ */\nimport { nodelistToArray } from './helpers/nodelistToArray'\nimport { uuid } from './helpers/uuid'\n\nexport function init (rootElementClassName, mountFn, callbackFn) {\n findElements(rootElementClassName).forEach(el => {\n el.id = uuid()\n window[rootElementClassName][el.id] = true\n\n // Extract preloaded state sent person server\n mountFn(el)\n\n // Enable webpack hot-reloading\n if (__HOT__) {\n // Reload CSS file\n\n require('webpack/hot/emitter').on('webpackHotUpdate', currentHash => {\n document.querySelectorAll('link[href][rel=stylesheet]').forEach(link => {\n const nextStyleHref = link.href.replace(/(\\?\\d+)?$/, `?${Date.now()}`)\n link.href = nextStyleHref\n })\n })\n\n // Reload and re-render React application\n module.hot.accept('./index', () => {\n const { ReactDOM } = require('react')\n ReactDOM.hydrate(require('../shared/App').default, el)\n })\n }\n })\n}\n\nfunction findElements (rootElementClassName) {\n return nodelistToArray(document.getElementsByClassName(rootElementClassName)).filter(\n el => !isInitialized(el, rootElementClassName)\n )\n}\n\nfunction isInitialized (el, rootElementClassName) {\n return el.id && window[rootElementClassName][el.id]\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/client/init.js","export function uuid () {\n return `_${Math.random().toString(36).substr(2, 9)}`\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/client/helpers/uuid.js","// removed by extract-text-webpack-plugin\nmodule.exports = {\"root\":\"nrk-chatlog-root\",\"app\":\"nrk-chatlog-app\"};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/shared/App.css\n// module id = 7\n// module chunks = 0","// removed by extract-text-webpack-plugin\nmodule.exports = {\"message\":\"nrk-chatlog-message\",\"message--left\":\"nrk-chatlog-message--left\",\"message--is-display-avatar\":\"nrk-chatlog-message--is-display-avatar\",\"message--right\":\"nrk-chatlog-message--right\",\"message--is-last-in-group\":\"nrk-chatlog-message--is-last-in-group\",\"message__text\":\"nrk-chatlog-message__text\",\"message__text--right\":\"nrk-chatlog-message__text--right\",\"message__text--left\":\"nrk-chatlog-message__text--left\",\"message__image\":\"nrk-chatlog-message__image\",\"message__image--expanded\":\"nrk-chatlog-message__image--expanded\",\"message__image--clickable\":\"nrk-chatlog-message__image--clickable\",\"message__image--hover\":\"nrk-chatlog-message__image--hover\",\"message__image--left\":\"nrk-chatlog-message__image--left\",\"message__image--right\":\"nrk-chatlog-message__image--right\",\"message__name\":\"nrk-chatlog-message__name\",\"message__content\":\"nrk-chatlog-message__content\",\"message__content--left\":\"nrk-chatlog-message__content--left\",\"message__content--right\":\"nrk-chatlog-message__content--right\",\"message__content--has-name\":\"nrk-chatlog-message__content--has-name\"};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/shared/components/Message/Message.css\n// module id = 8\n// module chunks = 0"],"sourceRoot":""}