UNPKG

@kablamo/react-transcript-editor

Version:

A React component to make transcribing audio and video easier and faster.

970 lines (783 loc) 31.8 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 39); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { module.exports = require("react"); /***/ }), /***/ 1: /***/ (function(module, exports) { module.exports = require("prop-types"); /***/ }), /***/ 10: /***/ (function(module, exports, __webpack_require__) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var stylesInDom = {}; var memoize = function (fn) { var memo; return function () { if (typeof memo === "undefined") memo = fn.apply(this, arguments); return memo; }; }; var isOldIE = memoize(function () { // Test for IE <= 9 as proposed by Browserhacks // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // Tests for existence of standard globals is to allow style-loader // to operate correctly into non-standard environments // @see https://github.com/webpack-contrib/style-loader/issues/177 return window && document && document.all && !window.atob; }); var getTarget = function (target, parent) { if (parent){ return parent.querySelector(target); } return document.querySelector(target); }; var getElement = (function (fn) { var memo = {}; return function(target, parent) { // If passing function in options, then use it for resolve "head" element. // Useful for Shadow Root style i.e // { // insertInto: function () { return document.querySelector("#foo").shadowRoot } // } if (typeof target === 'function') { return target(); } if (typeof memo[target] === "undefined") { var styleTarget = getTarget.call(this, target, parent); // Special case to return head of iframe instead of iframe itself if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { try { // This will throw an exception if access to iframe is blocked // due to cross-origin restrictions styleTarget = styleTarget.contentDocument.head; } catch(e) { styleTarget = null; } } memo[target] = styleTarget; } return memo[target] }; })(); var singleton = null; var singletonCounter = 0; var stylesInsertedAtTop = []; var fixUrls = __webpack_require__(16); module.exports = function(list, options) { if (typeof DEBUG !== "undefined" && DEBUG) { if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); } options = options || {}; options.attrs = typeof options.attrs === "object" ? options.attrs : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> // tags it will allow on a page if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE(); // By default, add <style> tags to the <head> element if (!options.insertInto) options.insertInto = "head"; // By default, add <style> tags to the bottom of the target if (!options.insertAt) options.insertAt = "bottom"; var styles = listToStyles(list, options); addStylesToDom(styles, options); return function update (newList) { var mayRemove = []; for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; domStyle.refs--; mayRemove.push(domStyle); } if(newList) { var newStyles = listToStyles(newList, options); addStylesToDom(newStyles, options); } for (var i = 0; i < mayRemove.length; i++) { var domStyle = mayRemove[i]; if(domStyle.refs === 0) { for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](); delete stylesInDom[domStyle.id]; } } }; }; function addStylesToDom (styles, options) { for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; if(domStyle) { domStyle.refs++; for(var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](item.parts[j]); } for(; j < item.parts.length; j++) { domStyle.parts.push(addStyle(item.parts[j], options)); } } else { var parts = []; for(var j = 0; j < item.parts.length; j++) { parts.push(addStyle(item.parts[j], options)); } stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts}; } } } function listToStyles (list, options) { var styles = []; var newStyles = {}; for (var i = 0; i < list.length; i++) { var item = list[i]; var id = options.base ? item[0] + options.base : item[0]; var css = item[1]; var media = item[2]; var sourceMap = item[3]; var part = {css: css, media: media, sourceMap: sourceMap}; if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]}); else newStyles[id].parts.push(part); } return styles; } function insertStyleElement (options, style) { var target = getElement(options.insertInto) if (!target) { throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."); } var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1]; if (options.insertAt === "top") { if (!lastStyleElementInsertedAtTop) { target.insertBefore(style, target.firstChild); } else if (lastStyleElementInsertedAtTop.nextSibling) { target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling); } else { target.appendChild(style); } stylesInsertedAtTop.push(style); } else if (options.insertAt === "bottom") { target.appendChild(style); } else if (typeof options.insertAt === "object" && options.insertAt.before) { var nextSibling = getElement(options.insertAt.before, target); target.insertBefore(style, nextSibling); } else { throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n"); } } function removeStyleElement (style) { if (style.parentNode === null) return false; style.parentNode.removeChild(style); var idx = stylesInsertedAtTop.indexOf(style); if(idx >= 0) { stylesInsertedAtTop.splice(idx, 1); } } function createStyleElement (options) { var style = document.createElement("style"); if(options.attrs.type === undefined) { options.attrs.type = "text/css"; } if(options.attrs.nonce === undefined) { var nonce = getNonce(); if (nonce) { options.attrs.nonce = nonce; } } addAttrs(style, options.attrs); insertStyleElement(options, style); return style; } function createLinkElement (options) { var link = document.createElement("link"); if(options.attrs.type === undefined) { options.attrs.type = "text/css"; } options.attrs.rel = "stylesheet"; addAttrs(link, options.attrs); insertStyleElement(options, link); return link; } function addAttrs (el, attrs) { Object.keys(attrs).forEach(function (key) { el.setAttribute(key, attrs[key]); }); } function getNonce() { if (false) {} return __webpack_require__.nc; } function addStyle (obj, options) { var style, update, remove, result; // If a transform function was defined, run it on the css if (options.transform && obj.css) { result = typeof options.transform === 'function' ? options.transform(obj.css) : options.transform.default(obj.css); if (result) { // If transform returns a value, use that instead of the original css. // This allows running runtime transformations on the css. obj.css = result; } else { // If the transform function returns a falsy value, don't add this css. // This allows conditional loading of css return function() { // noop }; } } if (options.singleton) { var styleIndex = singletonCounter++; style = singleton || (singleton = createStyleElement(options)); update = applyToSingletonTag.bind(null, style, styleIndex, false); remove = applyToSingletonTag.bind(null, style, styleIndex, true); } else if ( obj.sourceMap && typeof URL === "function" && typeof URL.createObjectURL === "function" && typeof URL.revokeObjectURL === "function" && typeof Blob === "function" && typeof btoa === "function" ) { style = createLinkElement(options); update = updateLink.bind(null, style, options); remove = function () { removeStyleElement(style); if(style.href) URL.revokeObjectURL(style.href); }; } else { style = createStyleElement(options); update = applyToTag.bind(null, style); remove = function () { removeStyleElement(style); }; } update(obj); return function updateStyle (newObj) { if (newObj) { if ( newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap ) { return; } update(obj = newObj); } else { remove(); } }; } var replaceText = (function () { var textStore = []; return function (index, replacement) { textStore[index] = replacement; return textStore.filter(Boolean).join('\n'); }; })(); function applyToSingletonTag (style, index, remove, obj) { var css = remove ? "" : obj.css; if (style.styleSheet) { style.styleSheet.cssText = replaceText(index, css); } else { var cssNode = document.createTextNode(css); var childNodes = style.childNodes; if (childNodes[index]) style.removeChild(childNodes[index]); if (childNodes.length) { style.insertBefore(cssNode, childNodes[index]); } else { style.appendChild(cssNode); } } } function applyToTag (style, obj) { var css = obj.css; var media = obj.media; if(media) { style.setAttribute("media", media) } if(style.styleSheet) { style.styleSheet.cssText = css; } else { while(style.firstChild) { style.removeChild(style.firstChild); } style.appendChild(document.createTextNode(css)); } } function updateLink (link, options, obj) { var css = obj.css; var sourceMap = obj.sourceMap; /* If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled and there is no publicPath defined then lets turn convertToAbsoluteUrls on by default. Otherwise default to the convertToAbsoluteUrls option directly */ var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap; if (options.convertToAbsoluteUrls || autoFixUrls) { css = fixUrls(css); } if (sourceMap) { // http://stackoverflow.com/a/26603875 css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"; } var blob = new Blob([css], { type: "text/css" }); var oldSrc = link.href; link.href = URL.createObjectURL(blob); if(oldSrc) URL.revokeObjectURL(oldSrc); } /***/ }), /***/ 15: /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(53); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(10)(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ 16: /***/ (function(module, exports) { /** * When source maps are enabled, `style-loader` uses a link element with a data-uri to * embed the css on the page. This breaks all relative urls because now they are relative to a * bundle instead of the current page. * * One solution is to only use full urls, but that may be impossible. * * Instead, this function "fixes" the relative urls to be absolute according to the current page location. * * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command. * */ module.exports = function (css) { // get current location var location = typeof window !== "undefined" && window.location; if (!location) { throw new Error("fixUrls requires window.location"); } // blank or null? if (!css || typeof css !== "string") { return css; } var baseUrl = location.protocol + "//" + location.host; var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/"); // convert each url(...) /* This regular expression is just a way to recursively match brackets within a string. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens ( = Start a capturing group (?: = Start a non-capturing group [^)(] = Match anything that isn't a parentheses | = OR \( = Match a start parentheses (?: = Start another non-capturing groups [^)(]+ = Match anything that isn't a parentheses | = OR \( = Match a start parentheses [^)(]* = Match anything that isn't a parentheses \) = Match a end parentheses ) = End Group *\) = Match anything and then a close parens ) = Close non-capturing group * = Match anything ) = Close capturing group \) = Match a close parens /gi = Get all matches, not the first. Be case insensitive. */ var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) { // strip quotes (if they exist) var unquotedOrigUrl = origUrl .trim() .replace(/^"(.*)"$/, function(o, $1){ return $1; }) .replace(/^'(.*)'$/, function(o, $1){ return $1; }); // already a full url? no change if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) { return fullMatch; } // convert the url to a full url var newUrl; if (unquotedOrigUrl.indexOf("//") === 0) { //TODO: should we add protocol? newUrl = unquotedOrigUrl; } else if (unquotedOrigUrl.indexOf("/") === 0) { // path should be relative to the base url newUrl = baseUrl + unquotedOrigUrl; // already starts with '/' } else { // path should be relative to current directory newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './' } // send back the fixed url(...) return "url(" + JSON.stringify(newUrl) + ")"; }); // send back the fixed css return fixedCss; }; /***/ }), /***/ 3: /***/ (function(module, exports) { module.exports = require("@fortawesome/react-fontawesome"); /***/ }), /***/ 39: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "getHotKeys", function() { return /* binding */ getHotKeys; }); // EXTERNAL MODULE: external "react" var external_react_ = __webpack_require__(0); var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); // EXTERNAL MODULE: external "prop-types" var external_prop_types_ = __webpack_require__(1); var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_); // EXTERNAL MODULE: external "@fortawesome/free-solid-svg-icons" var free_solid_svg_icons_ = __webpack_require__(4); // EXTERNAL MODULE: external "@fortawesome/react-fontawesome" var react_fontawesome_ = __webpack_require__(3); // CONCATENATED MODULE: ./packages/components/keyboard-shortcuts/hot-keys.js function returnHotKeys(self) { return { 'alt+k': { priority: 1, handler: function handler() { self.togglePlayMedia(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+k', name: 'togglePlayMedia', value: 'na' }); }, displayKeyCombination: 'alt + k', label: 'Play Media' }, 'alt+l': { priority: 1, handler: function handler() { self.skipForward(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+l', name: 'skipForward', value: 'na' }); }, displayKeyCombination: 'alt + l', label: 'Fast Forward' }, 'alt+j': { priority: 1, handler: function handler() { self.skipBackward(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+j', name: 'skipBackward', value: 'na' }); }, displayKeyCombination: 'alt + j', label: 'Rewind' }, 'alt+-': { priority: 1, handler: function handler() { self.decreasePlaybackRate(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+-', name: 'decreasePlaybackRate', value: 'na' }); }, displayKeyCombination: 'alt + -', label: 'Decrease Playback Speed' }, // https://github.com/ccampbell/mousetrap/issues/266 'alt+=': { priority: 1, handler: function handler() { self.increasePlaybackRate(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+plus', name: 'increasePlaybackRate', value: 'na' }); }, displayKeyCombination: 'alt + +', label: 'Increase Playback Speed' }, 'alt+r': { priority: 1, handler: function handler() { self.rollBack(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+r', name: 'rollBack', value: 'na' }); }, displayKeyCombination: 'alt + r', label: 'Roll Back' }, 'alt+t': { priority: 1, handler: function handler() { self.promptSetCurrentTime(); self.props.handleAnalyticsEvents({ category: 'defaultHotKeys', action: 'alt+t', name: 'promptSetCurrentTime', value: 'na' }); }, displayKeyCombination: 'alt + t', label: 'set current time' } }; } /* harmony default export */ var hot_keys = (returnHotKeys); // EXTERNAL MODULE: ./packages/components/keyboard-shortcuts/index.module.css var index_module = __webpack_require__(15); var index_module_default = /*#__PURE__*/__webpack_require__.n(index_module); // CONCATENATED MODULE: ./packages/components/keyboard-shortcuts/index.js function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var getHotKeys = hot_keys; var keyboard_shortcuts_KeyboardShortcuts = /*#__PURE__*/ function (_React$Component) { _inherits(KeyboardShortcuts, _React$Component); function KeyboardShortcuts() { _classCallCheck(this, KeyboardShortcuts); return _possibleConstructorReturn(this, _getPrototypeOf(KeyboardShortcuts).apply(this, arguments)); } _createClass(KeyboardShortcuts, [{ key: "render", value: function render() { var hotKeys = hot_keys(this); var hotKeysCheatsheet = Object.keys(hotKeys).map(function (key) { var shortcut = hotKeys[key]; return external_react_default.a.createElement("li", { key: key, className: index_module_default.a.listItem }, external_react_default.a.createElement("div", { className: index_module_default.a.shortcut }, shortcut.displayKeyCombination), external_react_default.a.createElement("div", { className: index_module_default.a.shortcutLabel }, shortcut.label)); }); return external_react_default.a.createElement("div", { className: index_module_default.a.shortcuts }, external_react_default.a.createElement("h2", { className: index_module_default.a.header }, "Shortcuts"), external_react_default.a.createElement("div", { className: index_module_default.a.closeButton, onClick: this.props.handleShortcutsToggle }, external_react_default.a.createElement(react_fontawesome_["FontAwesomeIcon"], { icon: free_solid_svg_icons_["faWindowClose"] })), external_react_default.a.createElement("ul", { className: index_module_default.a.list }, hotKeysCheatsheet)); } }]); return KeyboardShortcuts; }(external_react_default.a.Component); keyboard_shortcuts_KeyboardShortcuts.propTypes = { handleShortcutsToggle: external_prop_types_default.a.func }; /* harmony default export */ var keyboard_shortcuts = __webpack_exports__["default"] = (keyboard_shortcuts_KeyboardShortcuts); /***/ }), /***/ 4: /***/ (function(module, exports) { module.exports = require("@fortawesome/free-solid-svg-icons"); /***/ }), /***/ 53: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(9)(true); // Module exports.push([module.i, "._3vz4i9xSEAUQCef4V49RqJ{font-size:0.85em;padding:1em;margin:0 auto;height:auto;vertical-align:middle;color:black;background:#f2f2f2;z-index:2;position:absolute;top:0;right:0}.XKXO62F3z7twaGOQau4AA{margin-top:0;margin-bottom:1em;text-align:center}._38JlPnDM81pTOO6XyC_2d{position:absolute;top:0;right:0;padding:1em;cursor:pointer;z-index:3}._3hIDqyJI9sseBtlYSXKcjQ{list-style:none;padding:1em;margin:0 auto}.CxEhL3Nl4a1OgiWFaRSwU{margin:0 auto;margin-bottom:0.5em}._3w39IqtcTpY5o5oh4Ohe5u{display:inline-block;width:6em;background:#a0372d;font-weight:lighter;color:white;padding:0 0;border-radius:1em;text-align:center;margin-right:1em}._2adwK9rVdwW2MXgO_2B02B{display:inline-block;text-align:left}\n", "",{"version":3,"sources":["/home/nhardy/git/react-transcript-editor/packages/components/keyboard-shortcuts/index.module.css","/home/nhardy/git/react-transcript-editor/packages/config/style-guide/colours.scss"],"names":[],"mappings":"AAEA,yBACE,gBAAiB,CACjB,WAAY,CACZ,aAAc,CACd,WAAY,CACZ,qBAAsB,CACtB,WAAY,CACZ,kBCJ2B,CDK3B,SAAU,CACV,iBAAkB,CAClB,KAAM,CACN,OAAQ,CACT,uBAGC,YAAa,CACb,iBAAkB,CAClB,iBAAkB,CACnB,wBAGC,iBAAkB,CAClB,KAAM,CACN,OAAQ,CACR,WAAY,CACZ,cAAe,CACf,SAAU,CACX,yBAGC,eAAgB,CAChB,WAAY,CACZ,aAAc,CACf,uBAGC,aAAc,CACd,mBAAoB,CACrB,yBAGC,oBAAqB,CACrB,SAAU,CACV,kBC7CsB,CD8CtB,mBAAoB,CACpB,WAAY,CACZ,WAAY,CACZ,iBAAkB,CAClB,iBAAkB,CAClB,gBAAiB,CAClB,yBAGC,oBAAqB,CACrB,eAAgB","file":"index.module.css","sourcesContent":["@import '../../config/style-guide/colours.scss';\n\n.shortcuts {\n font-size: 0.85em;\n padding: 1em;\n margin: 0 auto;\n height: auto;\n vertical-align: middle;\n color: black;\n background: $color-lightest-grey;\n z-index: 2;\n position: absolute;\n top: 0;\n right: 0;\n}\n\n.header {\n margin-top: 0;\n margin-bottom: 1em;\n text-align: center;\n}\n\n.closeButton {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1em;\n cursor: pointer;\n z-index: 3;\n}\n\n.list {\n list-style: none;\n padding: 1em;\n margin: 0 auto;\n}\n\n.listItem {\n margin: 0 auto;\n margin-bottom: 0.5em;\n}\n\n.shortcut {\n display: inline-block;\n width: 6em;\n background: $color-labs-red;\n font-weight: lighter;\n color: white;\n padding: 0 0;\n border-radius: 1em;\n text-align: center;\n margin-right: 1em;\n}\n\n.shortcutLabel {\n display: inline-block;\n text-align: left;\n}\n","$color-labs-red: #a0372d !default;\n$color-darkest-grey: #282828 !default;\n$color-dark-grey: #4a4a4a !default;\n$color-mid-grey: #696969 !default;\n$color-light-grey: #767676 !default;\n$color-lightest-grey: #f2f2f2 !default;\n$color-subt-green: #69e3c2 !default;\n$color-light-shilo: #E2A9A2 !default;\n"]}]); // Exports exports.locals = { "shortcuts": "_3vz4i9xSEAUQCef4V49RqJ", "header": "XKXO62F3z7twaGOQau4AA", "closeButton": "_38JlPnDM81pTOO6XyC_2d", "list": "_3hIDqyJI9sseBtlYSXKcjQ", "listItem": "CxEhL3Nl4a1OgiWFaRSwU", "shortcut": "_3w39IqtcTpY5o5oh4Ohe5u", "shortcutLabel": "_2adwK9rVdwW2MXgO_2B02B" }; /***/ }), /***/ 9: /***/ (function(module, exports, __webpack_require__) { "use strict"; /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ // css base code, injected by the css-loader module.exports = function (useSourceMap) { var list = []; // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { var content = cssWithMappingToString(item, useSourceMap); if (item[2]) { return '@media ' + item[2] + '{' + content + '}'; } else { return content; } }).join(''); }; // import a list of modules into the list list.i = function (modules, mediaQuery) { if (typeof modules === 'string') { modules = [[null, modules, '']]; } var alreadyImportedModules = {}; for (var i = 0; i < this.length; i++) { var id = this[i][0]; if (id != null) { alreadyImportedModules[id] = true; } } for (i = 0; i < modules.length; i++) { var item = modules[i]; // skip already imported module // this implementation is not 100% perfect for weird media query combinations // when a module is imported multiple times with different media queries. // I hope this will never occur (Hey this way we have smaller bundles) if (item[0] == null || !alreadyImportedModules[item[0]]) { if (mediaQuery && !item[2]) { item[2] = mediaQuery; } else if (mediaQuery) { item[2] = '(' + item[2] + ') and (' + mediaQuery + ')'; } list.push(item); } } }; return list; }; function cssWithMappingToString(item, useSourceMap) { var content = item[1] || ''; var cssMapping = item[3]; if (!cssMapping) { return content; } if (useSourceMap && typeof btoa === 'function') { var sourceMapping = toComment(cssMapping); var sourceURLs = cssMapping.sources.map(function (source) { return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'; }); return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); } return [content].join('\n'); } // Adapted from convert-source-map (MIT) function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; } /***/ }) /******/ }); //# sourceMappingURL=KeyboardShortcuts.js.map