diff --git a/packages/omim/README.md b/packages/omim/README.md index b890d87c9..ae51ee671 100644 --- a/packages/omim/README.md +++ b/packages/omim/README.md @@ -196,22 +196,23 @@ To prevent duplication of development, PR submission fills in owner to lock the | chart bar line| member |done | | pagination| member |done | | color-picker| member |done | -| input (lable,button)| | | -| input-number | | | -| input-table | | | | loading |member| done | | path-progress | member | done | | popover | member | done | -| rate | | | +| rate | member | done| | step | member | done | | toast | member | done| +| paper | zainchen | done| +| transfer list | member | done| +| editor | member | done| +| input (lable,button)| | | +| input-number | | | +| input-table | | | | autocomplete | | | -| transfer list | member | | | bottom nav | | | -| paper | zainchen | | | accordion | | | | toggle buttons | | | -| editor | member | | +| player | 132yse | | | welcome to add a new element! | | | welcome to add a new element! | | | welcome to add a new element! | | diff --git a/packages/omim/demos/rate/bundle.js b/packages/omim/demos/rate/bundle.js new file mode 100644 index 000000000..90b5b88c6 --- /dev/null +++ b/packages/omim/demos/rate/bundle.js @@ -0,0 +1,180 @@ +/******/ (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 = "./demos/rate/index.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./demos/rate/index.js": +/*!*****************************!*\ + !*** ./demos/rate/index.js ***! + \*****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__webpack_require__(/*! ../../src/rate/index.tsx */ \"./src/rate/index.tsx\");\nvar omi_1 = __webpack_require__(/*! omi */ \"./node_modules/_omi@6.6.2@omi/dist/omi.esm.js\");\nomi_1.render(omi_1.h(\"div\", null,\n omi_1.h(\"m-rate\", { total: 5, value: this.valueA, color: '#f57c00', onSelected: onSelected })), 'body');\nfunction onSelected(evt) {\n console.log(evt.detail);\n}\n\n\n//# sourceURL=webpack:///./demos/rate/index.js?"); + +/***/ }), + +/***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/rate/index.scss": +/*!***********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./src/rate/index.scss ***! + \***********************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \":host {\\n display: inline-block; }\\n\\n.m-rate {\\n display: inline-block;\\n text-align: center;\\n cursor: pointer;\\n padding: 2px; }\\n\\nul,\\nli {\\n list-style: none;\\n padding: 0;\\n margin: 0; }\\n\\nsvg {\\n margin: 0;\\n padding: 0; }\\n\\nli {\\n width: auto;\\n height: auto; }\\n\\n._star {\\n position: relative;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n padding: 3px; }\\n\\n._star-first {\\n position: absolute;\\n z-index: 10;\\n overflow: hidden; }\\n\\n._star-second {\\n position: absolute; }\\n\\n._star-half ._star-first {\\n width: 1em; }\\n\\n._star-empty ._star-first {\\n width: 0; }\\n\\n.star-box {\\n position: relative;\\n left: -0.5em;\\n top: -0.2em; }\\n\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/rate/index.scss?./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3"); + +/***/ }), + +/***/ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js": +/*!*******************************************************************!*\ + !*** ./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n//# sourceURL=webpack:///./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js?"); + +/***/ }), + +/***/ "./node_modules/_omi@6.6.2@omi/dist/omi.esm.js": +/*!*****************************************************!*\ + !*** ./node_modules/_omi@6.6.2@omi/dist/omi.esm.js ***! + \*****************************************************/ +/*! exports provided: default, tag, WeElement, Component, render, h, createElement, options, define, observe, cloneElement, getHost, rpx, tick, nextTick, ModelView, defineElement, classNames, extractClass, createRef, html, htm, o, elements */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"tag\", function() { return tag; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WeElement\", function() { return WeElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Component\", function() { return Component; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return h; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createElement\", function() { return h; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"options\", function() { return options; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"define\", function() { return define; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"observe\", function() { return observe; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"cloneElement\", function() { return cloneElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getHost\", function() { return getHost; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"rpx\", function() { return rpx; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"tick\", function() { return tick; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"nextTick\", function() { return nextTick; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ModelView\", function() { return ModelView; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defineElement\", function() { return defineElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"classNames\", function() { return classNames; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extractClass\", function() { return extractClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createRef\", function() { return createRef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"html\", function() { return html; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"htm\", function() { return htm; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"o\", function() { return o; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"elements\", function() { return elements; });\n/**\n * omi v6.6.2 http://omijs.org\n * Omi === Preact + Scoped CSS + Store System + Native Support in 3kb javascript.\n * By dntzhang https://github.com/dntzhang\n * Github: https://github.com/Tencent/omi\n * MIT Licensed.\n */\n\n/** Virtual DOM Node */\nfunction VNode() {}\n\nfunction getGlobal() {\n if (typeof global !== 'object' || !global || global.Math !== Math || global.Array !== Array) {\n return self || window || global || function () {\n return this;\n }();\n }\n return global;\n}\n\n/** Global options\n *\t@public\n *\t@namespace options {Object}\n */\nvar options = {\n store: null,\n root: getGlobal(),\n mapping: {}\n};\n\nvar stack = [];\n\nfunction h(nodeName, attributes) {\n var children = [],\n lastSimple,\n child,\n simple,\n i;\n for (i = arguments.length; i-- > 2;) {\n stack.push(arguments[i]);\n }\n if (attributes && attributes.children != null) {\n if (!stack.length) stack.push(attributes.children);\n delete attributes.children;\n }\n while (stack.length) {\n if ((child = stack.pop()) && child.pop !== undefined) {\n for (i = child.length; i--;) {\n stack.push(child[i]);\n }\n } else {\n if (typeof child === 'boolean') child = null;\n\n if (simple = typeof nodeName !== 'function') {\n if (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n }\n\n if (simple && lastSimple) {\n children[children.length - 1] += child;\n } else if (children.length === 0) {\n children = [child];\n } else {\n children.push(child);\n }\n\n lastSimple = simple;\n }\n }\n\n var p = new VNode();\n p.nodeName = nodeName;\n p.children = children;\n p.attributes = attributes == null ? undefined : attributes;\n p.key = attributes == null ? undefined : attributes.key;\n\n // if a \"vnode hook\" is defined, pass every created VNode to it\n if (options.vnode !== undefined) options.vnode(p);\n\n return p;\n}\n\n/**\n * @license\n * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n */\n(function () {\n if (\n // No Reflect, no classes, no need for shim because native custom elements\n // require ES2015 classes or Reflect.\n window.Reflect === undefined || window.customElements === undefined ||\n // The webcomponentsjs custom elements polyfill doesn't require\n // ES2015-compatible construction (`super()` or `Reflect.construct`).\n window.customElements.hasOwnProperty('polyfillWrapFlushCallback')) {\n return;\n }\n var BuiltInHTMLElement = HTMLElement;\n window.HTMLElement = function HTMLElement() {\n return Reflect.construct(BuiltInHTMLElement, [], this.constructor);\n };\n HTMLElement.prototype = BuiltInHTMLElement.prototype;\n HTMLElement.prototype.constructor = HTMLElement;\n Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);\n})();\n\nfunction cssToDom(css) {\n var node = document.createElement('style');\n node.textContent = css;\n return node;\n}\n\nfunction npn(str) {\n return str.replace(/-(\\w)/g, function ($, $1) {\n return $1.toUpperCase();\n });\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\n/** Invoke or update a ref, depending on whether it is a function or object ref.\n * @param {object|function} [ref=null]\n * @param {any} [value]\n */\nfunction applyRef(ref, value) {\n if (ref != null) {\n if (typeof ref == 'function') ref(value);else ref.current = value;\n }\n}\n\n/**\n * Call a function asynchronously, as soon as possible. Makes\n * use of HTML Promise to schedule the callback if available,\n * otherwise falling back to `setTimeout` (mainly for IE<11).\n * @type {(callback: function) => void}\n */\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction isArray(obj) {\n return Object.prototype.toString.call(obj) === '[object Array]';\n}\n\nfunction nProps(props) {\n if (!props || isArray(props)) return {};\n var result = {};\n Object.keys(props).forEach(function (key) {\n result[key] = props[key].value;\n });\n return result;\n}\n\nfunction getUse(data, paths) {\n var obj = [];\n paths.forEach(function (path, index) {\n var isPath = typeof path === 'string';\n if (isPath) {\n obj[index] = getTargetByPath(data, path);\n } else {\n var key = Object.keys(path)[0];\n var value = path[key];\n if (typeof value === 'string') {\n obj[index] = getTargetByPath(data, value);\n } else {\n var tempPath = value[0];\n if (typeof tempPath === 'string') {\n var tempVal = getTargetByPath(data, tempPath);\n obj[index] = value[1] ? value[1](tempVal) : tempVal;\n } else {\n var args = [];\n tempPath.forEach(function (path) {\n args.push(getTargetByPath(data, path));\n });\n obj[index] = value[1].apply(null, args);\n }\n }\n obj[key] = obj[index];\n }\n });\n return obj;\n}\n\nfunction getTargetByPath(origin, path) {\n var arr = path.replace(/]/g, '').replace(/\\[/g, '.').split('.');\n var current = origin;\n for (var i = 0, len = arr.length; i < len; i++) {\n current = current[arr[i]];\n }\n return current;\n}\n\nvar hyphenateRE = /\\B([A-Z])/g;\nfunction hyphenate(str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n}\n\n// DOM properties that should NOT have \"px\" added when numeric\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\n/**\n * Check if two nodes are equivalent.\n *\n * @param {Node} node\t\t\tDOM Node to compare\n * @param {VNode} vnode\t\t\tVirtual DOM node to compare\n * @param {boolean} [hydrating=false]\tIf true, ignores component constructors when comparing.\n * @private\n */\nfunction isSameNodeType(node, vnode, hydrating) {\n if (typeof vnode === 'string' || typeof vnode === 'number') {\n return node.splitText !== undefined;\n }\n if (typeof vnode.nodeName === 'string') {\n return !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n } else if (typeof vnode.nodeName === 'function') {\n return options.mapping[node.nodeName.toLowerCase()] === vnode.nodeName;\n }\n return hydrating || node._componentConstructor === vnode.nodeName;\n}\n\n/**\n * Check if an Element has a given nodeName, case-insensitively.\n *\n * @param {Element} node\tA DOM Element to inspect the name of.\n * @param {String} nodeName\tUnnormalized name to compare against.\n */\nfunction isNamedNode(node, nodeName) {\n return node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\n/**\n * Create an element with the given nodeName.\n * @param {string} nodeName The DOM node to create\n * @param {boolean} [isSvg=false] If `true`, creates an element within the SVG\n * namespace.\n * @returns {Element} The created DOM node\n */\nfunction createNode(nodeName, isSvg) {\n /** @type {Element} */\n var node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n node.normalizedNodeName = nodeName;\n return node;\n}\n\n/**\n * Remove a child node from its parent if attached.\n * @param {Node} node The node to remove\n */\nfunction removeNode(node) {\n var parentNode = node.parentNode;\n if (parentNode) parentNode.removeChild(node);\n}\n\n/**\n * Set a named attribute on the given Node, with special behavior for some names\n * and event handlers. If `value` is `null`, the attribute/handler will be\n * removed.\n * @param {Element} node An element to mutate\n * @param {string} name The name/key to set, such as an event or attribute name\n * @param {*} old The last value that was set for this name/node pair\n * @param {*} value An attribute value, such as a function to be used as an\n * event handler\n * @param {boolean} isSvg Are we currently diffing inside an svg?\n * @private\n */\nfunction setAccessor(node, name, old, value, isSvg) {\n if (name === 'className') name = 'class';\n\n if (name === 'key') {\n // ignore\n } else if (name === 'ref') {\n applyRef(old, null);\n applyRef(value, node);\n } else if (name === 'class' && !isSvg) {\n node.className = value || '';\n } else if (name === 'style') {\n if (!value || typeof value === 'string' || typeof old === 'string') {\n node.style.cssText = value || '';\n }\n if (value && typeof value === 'object') {\n if (typeof old !== 'string') {\n for (var i in old) {\n if (!(i in value)) node.style[i] = '';\n }\n }\n for (var i in value) {\n node.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n }\n }\n } else if (name === 'dangerouslySetInnerHTML') {\n if (value) node.innerHTML = value.__html || '';\n } else if (name[0] == 'o' && name[1] == 'n') {\n var useCapture = name !== (name = name.replace(/Capture$/, ''));\n name = name.toLowerCase().substring(2);\n if (value) {\n if (!old) {\n node.addEventListener(name, eventProxy, useCapture);\n if (name == 'tap') {\n node.addEventListener('touchstart', touchStart, useCapture);\n node.addEventListener('touchend', touchEnd, useCapture);\n }\n }\n } else {\n node.removeEventListener(name, eventProxy, useCapture);\n if (name == 'tap') {\n node.removeEventListener('touchstart', touchStart, useCapture);\n node.removeEventListener('touchend', touchEnd, useCapture);\n }\n }\n(node._listeners || (node._listeners = {}))[name] = value;\n } else if (name !== 'list' && name !== 'type' && name !== 'css' && !isSvg && name in node && value !== '') {\n //value !== '' fix for selected, disabled, checked with pure element\n // Attempt to set a DOM property to the given value.\n // IE & FF throw for certain property-value combinations.\n try {\n node[name] = value == null ? '' : value;\n } catch (e) {}\n if ((value == null || value === false) && name != 'spellcheck') node.pureRemoveAttribute ? node.pureRemoveAttribute(name) : node.removeAttribute(name);\n } else {\n var ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n // spellcheck is treated differently than all other boolean values and\n // should not be removed when the value is `false`. See:\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-spellcheck\n if (value == null || value === false) {\n if (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.pureRemoveAttribute ? node.pureRemoveAttribute(name) : node.removeAttribute(name);\n } else if (typeof value !== 'function') {\n if (ns) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);\n } else {\n node.pureSetAttribute ? node.pureSetAttribute(name, value) : node.setAttribute(name, value);\n }\n }\n }\n}\n\n/**\n * Proxy an event to hooked event handlers\n * @param {Event} e The event object from the browser\n * @private\n */\nfunction eventProxy(e) {\n return this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nfunction touchStart(e) {\n this.___touchX = e.touches[0].pageX;\n this.___touchY = e.touches[0].pageY;\n this.___scrollTop = document.body.scrollTop;\n}\n\nfunction touchEnd(e) {\n if (Math.abs(e.changedTouches[0].pageX - this.___touchX) < 30 && Math.abs(e.changedTouches[0].pageY - this.___touchY) < 30 && Math.abs(document.body.scrollTop - this.___scrollTop) < 30) {\n this.dispatchEvent(new CustomEvent('tap', { detail: e }));\n }\n}\n\n/** Diff recursion count, used to track the end of the diff cycle. */\nvar diffLevel = 0;\n\n/** Global flag indicating if the diff is currently within an SVG */\nvar isSvgMode = false;\n\n/** Global flag indicating if the diff is performing hydration */\nvar hydrating = false;\n\n/** Apply differences in a given vnode (and it's deep children) to a real DOM Node.\n *\t@param {Element} [dom=null]\t\tA DOM node to mutate into the shape of the `vnode`\n *\t@param {VNode} vnode\t\t\tA VNode (with descendants forming a tree) representing the desired DOM structure\n *\t@returns {Element} dom\t\t\tThe created/mutated element\n *\t@private\n */\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n // diffLevel having been 0 here indicates initial entry into the diff (not a subdiff)\n var ret;\n if (!diffLevel++) {\n // when first starting the diff, check if we're diffing an SVG or within an SVG\n isSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n // hydration is indicated by the existing element to be diffed not having a prop cache\n hydrating = dom != null && !('__omiattr_' in dom);\n }\n if (isArray(vnode)) {\n if (parent) {\n var styles = parent.querySelectorAll('style');\n styles.forEach(function (s) {\n parent.removeChild(s);\n });\n innerDiffNode(parent, vnode);\n\n for (var i = styles.length - 1; i >= 0; i--) {\n parent.firstChild ? parent.insertBefore(styles[i], parent.firstChild) : parent.appendChild(style[i]);\n }\n } else {\n\n ret = [];\n vnode.forEach(function (item, index) {\n var ele = idiff(index === 0 ? dom : null, item, context, mountAll, componentRoot);\n ret.push(ele);\n parent && parent.appendChild(ele);\n });\n }\n } else {\n if (isArray(dom)) {\n dom.forEach(function (one, index) {\n if (index === 0) {\n ret = idiff(one, vnode, context, mountAll, componentRoot);\n } else {\n recollectNodeTree(one, false);\n }\n });\n } else {\n ret = idiff(dom, vnode, context, mountAll, componentRoot);\n }\n // append the element if its a new parent\n if (parent && ret.parentNode !== parent) parent.appendChild(ret);\n }\n\n // diffLevel being reduced to 0 means we're exiting the diff\n if (! --diffLevel) {\n hydrating = false;\n // invoke queued componentDidMount lifecycle methods\n }\n\n return ret;\n}\n\n/** Internals of `diff()`, separated to allow bypassing diffLevel / mount flushing. */\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n if (dom && vnode && dom.props) {\n dom.props.children = vnode.children;\n }\n var out = dom,\n prevSvgMode = isSvgMode;\n\n // empty values (null, undefined, booleans) render as empty Text nodes\n if (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n // Fast case: Strings & Numbers create/update Text nodes.\n if (typeof vnode === 'string' || typeof vnode === 'number') {\n // update if it's already a Text node:\n if (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n /* istanbul ignore if */ /* Browser quirk that can't be covered: https://github.com/developit/preact/commit/fd4f21f5c45dfd75151bd27b4c217d8003aa5eb9 */\n if (dom.nodeValue != vnode) {\n dom.nodeValue = vnode;\n }\n } else {\n // it wasn't a Text node: replace it with one and recycle the old Element\n out = document.createTextNode(vnode);\n if (dom) {\n if (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n recollectNodeTree(dom, true);\n }\n }\n\n out['__omiattr_'] = true;\n\n return out;\n }\n\n // If the VNode represents a Component, perform a component diff:\n var vnodeName = vnode.nodeName;\n if (typeof vnodeName === 'function') {\n for (var key in options.mapping) {\n if (options.mapping[key] === vnodeName) {\n vnodeName = key;\n vnode.nodeName = key;\n break;\n }\n }\n }\n // Tracks entering and exiting SVG namespace when descending through the tree.\n isSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n // If there's no existing element or it's the wrong type, create a new one:\n vnodeName = String(vnodeName);\n if (!dom || !isNamedNode(dom, vnodeName)) {\n out = createNode(vnodeName, isSvgMode);\n\n if (dom) {\n // move children into the replacement node\n while (dom.firstChild) {\n out.appendChild(dom.firstChild);\n } // if the previous Element was mounted into the DOM, replace it inline\n if (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n // recycle the old element (skips non-Element node types)\n recollectNodeTree(dom, true);\n }\n }\n\n var fc = out.firstChild,\n props = out['__omiattr_'],\n vchildren = vnode.children;\n\n if (props == null) {\n props = out['__omiattr_'] = {};\n for (var a = out.attributes, i = a.length; i--;) {\n props[a[i].name] = a[i].value;\n }\n }\n\n // Optimization: fast-path for elements containing a single TextNode:\n if (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n if (fc.nodeValue != vchildren[0]) {\n fc.nodeValue = vchildren[0];\n }\n }\n // otherwise, if there are existing or new children, diff them:\n else if (vchildren && vchildren.length || fc != null) {\n if (!(out.constructor.is == 'WeElement' && out.constructor.noSlot)) {\n innerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n }\n }\n\n // Apply attributes/props from VNode to the DOM Element:\n diffAttributes(out, vnode.attributes, props);\n if (out.props) {\n out.props.children = vnode.children;\n }\n // restore previous SVG mode: (in case we're exiting an SVG namespace)\n isSvgMode = prevSvgMode;\n\n return out;\n}\n\n/** Apply child and attribute changes between a VNode and a DOM Node to the DOM.\n *\t@param {Element} dom\t\t\tElement whose children should be compared & mutated\n *\t@param {Array} vchildren\t\tArray of VNodes to compare to `dom.childNodes`\n *\t@param {Object} context\t\t\tImplicitly descendant context object (from most recent `getChildContext()`)\n *\t@param {Boolean} mountAll\n *\t@param {Boolean} isHydrating\tIf `true`, consumes externally created elements similar to hydration\n */\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n var originalChildren = dom.childNodes,\n children = [],\n keyed = {},\n keyedLen = 0,\n min = 0,\n len = originalChildren.length,\n childrenLen = 0,\n vlen = vchildren ? vchildren.length : 0,\n j,\n c,\n f,\n vchild,\n child;\n\n // Build up a map of keyed children and an Array of unkeyed children:\n if (len !== 0) {\n for (var i = 0; i < len; i++) {\n var _child = originalChildren[i],\n props = _child['__omiattr_'],\n key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n if (key != null) {\n keyedLen++;\n keyed[key] = _child;\n } else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n children[childrenLen++] = _child;\n }\n }\n }\n\n if (vlen !== 0) {\n for (var i = 0; i < vlen; i++) {\n vchild = vchildren[i];\n child = null;\n\n // attempt to find a node based on key matching\n var key = vchild.key;\n if (key != null) {\n if (keyedLen && keyed[key] !== undefined) {\n child = keyed[key];\n keyed[key] = undefined;\n keyedLen--;\n }\n }\n // attempt to pluck a node of the same type from the existing children\n else if (!child && min < childrenLen) {\n for (j = min; j < childrenLen; j++) {\n if (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n child = c;\n children[j] = undefined;\n if (j === childrenLen - 1) childrenLen--;\n if (j === min) min++;\n break;\n }\n }\n }\n\n // morph the matched/found/created DOM child to match vchild (deep)\n child = idiff(child, vchild, context, mountAll);\n\n f = originalChildren[i];\n if (child && child !== dom && child !== f) {\n if (f == null) {\n dom.appendChild(child);\n } else if (child === f.nextSibling) {\n removeNode(f);\n } else {\n dom.insertBefore(child, f);\n }\n }\n }\n }\n\n // remove unused keyed children:\n if (keyedLen) {\n for (var i in keyed) {\n if (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n }\n }\n\n // remove orphaned unkeyed children:\n while (min <= childrenLen) {\n if ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n }\n}\n\n/** Recursively recycle (or just unmount) a node and its descendants.\n *\t@param {Node} node\t\t\t\t\t\tDOM node to start unmount/removal from\n *\t@param {Boolean} [unmountOnly=false]\tIf `true`, only triggers unmount lifecycle, skips removal\n */\nfunction recollectNodeTree(node, unmountOnly) {\n // If the node's VNode had a ref function, invoke it with null here.\n // (this is part of the React spec, and smart for unsetting references)\n if (node['__omiattr_'] != null && node['__omiattr_'].ref) {\n if (typeof node['__omiattr_'].ref === 'function') {\n node['__omiattr_'].ref(null);\n } else if (node['__omiattr_'].ref.current) {\n node['__omiattr_'].ref.current = null;\n }\n }\n\n if (unmountOnly === false || node['__omiattr_'] == null) {\n removeNode(node);\n }\n\n removeChildren(node);\n}\n\n/** Recollect/unmount all children.\n *\t- we use .lastChild here because it causes less reflow than .firstChild\n *\t- it's also cheaper than accessing the .childNodes Live NodeList\n */\nfunction removeChildren(node) {\n node = node.lastChild;\n while (node) {\n var next = node.previousSibling;\n recollectNodeTree(node, true);\n node = next;\n }\n}\n\n/** Apply differences in attributes from a VNode to the given DOM Element.\n *\t@param {Element} dom\t\tElement with attributes to diff `attrs` against\n *\t@param {Object} attrs\t\tThe desired end-state key-value attribute pairs\n *\t@param {Object} old\t\t\tCurrent/previous attributes (from previous VNode or element's prop cache)\n */\nfunction diffAttributes(dom, attrs, old) {\n var name;\n var update = false;\n var isWeElement = dom.update;\n var oldClone;\n if (dom.receiveProps) {\n oldClone = Object.assign({}, old);\n }\n // remove attributes no longer present on the vnode by setting them to undefined\n for (name in old) {\n if (!(attrs && attrs[name] != null) && old[name] != null) {\n setAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n if (isWeElement) {\n delete dom.props[name];\n update = true;\n }\n }\n }\n\n // add new & update changed attributes\n for (name in attrs) {\n if (isWeElement && typeof attrs[name] === 'object' && name !== 'ref') {\n if (name === 'style') {\n setAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n }\n if (dom.receiveProps) {\n try {\n old[name] = JSON.parse(JSON.stringify(attrs[name]));\n } catch (e) {\n console.warn('When using receiveProps, you cannot pass prop of cyclic dependencies down.');\n }\n }\n dom.props[npn(name)] = attrs[name];\n update = true;\n } else if (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n setAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n if (isWeElement) {\n dom.props[npn(name)] = attrs[name];\n update = true;\n }\n }\n }\n\n if (isWeElement && dom.parentNode) {\n //__hasChildren is not accuracy when it was empty at first, so add dom.children.length > 0 condition\n if (update || dom.__hasChildren || dom.children.length > 0 || dom.store && !dom.store.data) {\n if (dom.receiveProps(dom.props, dom.data, oldClone) !== false) {\n dom.update();\n }\n }\n }\n}\n\n/*!\n * https://github.com/Palindrom/JSONPatcherProxy\n * (c) 2017 Starcounter\n * MIT license\n */\n\n/** Class representing a JS Object observer */\nvar JSONPatcherProxy = function () {\n /**\n * Deep clones your object and returns a new object.\n */\n function deepClone(obj) {\n switch (typeof obj) {\n case 'object':\n return JSON.parse(JSON.stringify(obj)); //Faster than ES5 clone - http://jsperf.com/deep-cloning-of-objects/5\n case 'undefined':\n return null; //this is how JSON.stringify behaves for array items\n default:\n return obj; //no need to clone primitives\n }\n }\n JSONPatcherProxy.deepClone = deepClone;\n\n function escapePathComponent(str) {\n if (str.indexOf('/') == -1 && str.indexOf('~') == -1) return str;\n return str.replace(/~/g, '~0').replace(/\\//g, '~1');\n }\n JSONPatcherProxy.escapePathComponent = escapePathComponent;\n\n /**\n * Walk up the parenthood tree to get the path\n * @param {JSONPatcherProxy} instance\n * @param {Object} obj the object you need to find its path\n */\n function findObjectPath(instance, obj) {\n var pathComponents = [];\n var parentAndPath = instance.parenthoodMap.get(obj);\n while (parentAndPath && parentAndPath.path) {\n // because we're walking up-tree, we need to use the array as a stack\n pathComponents.unshift(parentAndPath.path);\n parentAndPath = instance.parenthoodMap.get(parentAndPath.parent);\n }\n if (pathComponents.length) {\n var path = pathComponents.join('/');\n return '/' + path;\n }\n return '';\n }\n /**\n * A callback to be used as th proxy set trap callback.\n * It updates parenthood map if needed, proxifies nested newly-added objects, calls default callbacks with the changes occurred.\n * @param {JSONPatcherProxy} instance JSONPatcherProxy instance\n * @param {Object} target the affected object\n * @param {String} key the effect property's name\n * @param {Any} newValue the value being set\n */\n function setTrap(instance, target, key, newValue) {\n var parentPath = findObjectPath(instance, target);\n\n var destinationPropKey = parentPath + '/' + escapePathComponent(key);\n\n if (instance.proxifiedObjectsMap.has(newValue)) {\n var newValueOriginalObject = instance.proxifiedObjectsMap.get(newValue);\n\n instance.parenthoodMap.set(newValueOriginalObject.originalObject, {\n parent: target,\n path: key\n });\n }\n /*\n mark already proxified values as inherited.\n rationale: proxy.arr.shift()\n will emit\n {op: replace, path: '/arr/1', value: arr_2}\n {op: remove, path: '/arr/2'}\n by default, the second operation would revoke the proxy, and this renders arr revoked.\n That's why we need to remember the proxies that are inherited.\n */\n var revokableInstance = instance.proxifiedObjectsMap.get(newValue);\n /*\n Why do we need to check instance.isProxifyingTreeNow?\n We need to make sure we mark revokables as inherited ONLY when we're observing,\n because throughout the first proxification, a sub-object is proxified and then assigned to\n its parent object. This assignment of a pre-proxified object can fool us into thinking\n that it's a proxified object moved around, while in fact it's the first assignment ever.\n Checking isProxifyingTreeNow ensures this is not happening in the first proxification,\n but in fact is is a proxified object moved around the tree\n */\n if (revokableInstance && !instance.isProxifyingTreeNow) {\n revokableInstance.inherited = true;\n }\n\n // if the new value is an object, make sure to watch it\n if (newValue && typeof newValue == 'object' && !instance.proxifiedObjectsMap.has(newValue)) {\n instance.parenthoodMap.set(newValue, {\n parent: target,\n path: key\n });\n newValue = instance._proxifyObjectTreeRecursively(target, newValue, key);\n }\n // let's start with this operation, and may or may not update it later\n var operation = {\n op: 'remove',\n path: destinationPropKey\n };\n if (typeof newValue == 'undefined') {\n // applying De Morgan's laws would be a tad faster, but less readable\n if (!Array.isArray(target) && !target.hasOwnProperty(key)) {\n // `undefined` is being set to an already undefined value, keep silent\n return Reflect.set(target, key, newValue);\n }\n // when array element is set to `undefined`, should generate replace to `null`\n if (Array.isArray(target)) {\noperation.op = 'replace', operation.value = null;\n }\n var oldValue = instance.proxifiedObjectsMap.get(target[key]);\n // was the deleted a proxified object?\n if (oldValue) {\n instance.parenthoodMap.delete(target[key]);\n instance.disableTrapsForProxy(oldValue);\n instance.proxifiedObjectsMap.delete(oldValue);\n }\n } else {\n if (Array.isArray(target) && !Number.isInteger(+key.toString())) {\n /* array props (as opposed to indices) don't emit any patches, to avoid needless `length` patches */\n if (key != 'length') {\n console.warn('JSONPatcherProxy noticed a non-integer prop was set for an array. This will not emit a patch');\n }\n return Reflect.set(target, key, newValue);\n }\n operation.op = 'add';\n if (target.hasOwnProperty(key)) {\n if (typeof target[key] !== 'undefined' || Array.isArray(target)) {\n operation.op = 'replace'; // setting `undefined` array elements is a `replace` op\n }\n }\n operation.value = newValue;\n }\n operation.oldValue = target[key];\n var reflectionResult = Reflect.set(target, key, newValue);\n instance.defaultCallback(operation);\n return reflectionResult;\n }\n /**\n * A callback to be used as th proxy delete trap callback.\n * It updates parenthood map if needed, calls default callbacks with the changes occurred.\n * @param {JSONPatcherProxy} instance JSONPatcherProxy instance\n * @param {Object} target the effected object\n * @param {String} key the effected property's name\n */\n function deleteTrap(instance, target, key) {\n if (typeof target[key] !== 'undefined') {\n var parentPath = findObjectPath(instance, target);\n var destinationPropKey = parentPath + '/' + escapePathComponent(key);\n\n var revokableProxyInstance = instance.proxifiedObjectsMap.get(target[key]);\n\n if (revokableProxyInstance) {\n if (revokableProxyInstance.inherited) {\n /*\n this is an inherited proxy (an already proxified object that was moved around),\n we shouldn't revoke it, because even though it was removed from path1, it is still used in path2.\n And we know that because we mark moved proxies with `inherited` flag when we move them\n it is a good idea to remove this flag if we come across it here, in deleteProperty trap.\n We DO want to revoke the proxy if it was removed again.\n */\n revokableProxyInstance.inherited = false;\n } else {\n instance.parenthoodMap.delete(revokableProxyInstance.originalObject);\n instance.disableTrapsForProxy(revokableProxyInstance);\n instance.proxifiedObjectsMap.delete(target[key]);\n }\n }\n var reflectionResult = Reflect.deleteProperty(target, key);\n\n instance.defaultCallback({\n op: 'remove',\n path: destinationPropKey\n });\n\n return reflectionResult;\n }\n }\n /* pre-define resume and pause functions to enhance constructors performance */\n function resume() {\n var _this = this;\n\n this.defaultCallback = function (operation) {\n _this.isRecording && _this.patches.push(operation);\n _this.userCallback && _this.userCallback(operation);\n };\n this.isObserving = true;\n }\n function pause() {\n this.defaultCallback = function () {};\n this.isObserving = false;\n }\n /**\n * Creates an instance of JSONPatcherProxy around your object of interest `root`.\n * @param {Object|Array} root - the object you want to wrap\n * @param {Boolean} [showDetachedWarning = true] - whether to log a warning when a detached sub-object is modified @see {@link https://github.com/Palindrom/JSONPatcherProxy#detached-objects}\n * @returns {JSONPatcherProxy}\n * @constructor\n */\n function JSONPatcherProxy(root, showDetachedWarning) {\n this.isProxifyingTreeNow = false;\n this.isObserving = false;\n this.proxifiedObjectsMap = new Map();\n this.parenthoodMap = new Map();\n // default to true\n if (typeof showDetachedWarning !== 'boolean') {\n showDetachedWarning = true;\n }\n\n this.showDetachedWarning = showDetachedWarning;\n this.originalObject = root;\n this.cachedProxy = null;\n this.isRecording = false;\n this.userCallback;\n /**\n * @memberof JSONPatcherProxy\n * Restores callback back to the original one provided to `observe`.\n */\n this.resume = resume.bind(this);\n /**\n * @memberof JSONPatcherProxy\n * Replaces your callback with a noop function.\n */\n this.pause = pause.bind(this);\n }\n\n JSONPatcherProxy.prototype.generateProxyAtPath = function (parent, obj, path) {\n var _this2 = this;\n\n if (!obj) {\n return obj;\n }\n var traps = {\n set: function set(target, key, value, receiver) {\n return setTrap(_this2, target, key, value, receiver);\n },\n deleteProperty: function deleteProperty(target, key) {\n return deleteTrap(_this2, target, key);\n }\n };\n var revocableInstance = Proxy.revocable(obj, traps);\n // cache traps object to disable them later.\n revocableInstance.trapsInstance = traps;\n revocableInstance.originalObject = obj;\n\n /* keeping track of object's parent and path */\n\n this.parenthoodMap.set(obj, { parent: parent, path: path });\n\n /* keeping track of all the proxies to be able to revoke them later */\n this.proxifiedObjectsMap.set(revocableInstance.proxy, revocableInstance);\n return revocableInstance.proxy;\n };\n // grab tree's leaves one by one, encapsulate them into a proxy and return\n JSONPatcherProxy.prototype._proxifyObjectTreeRecursively = function (parent, root, path) {\n for (var key in root) {\n if (root.hasOwnProperty(key)) {\n if (root[key] instanceof Object) {\n root[key] = this._proxifyObjectTreeRecursively(root, root[key], escapePathComponent(key));\n }\n }\n }\n return this.generateProxyAtPath(parent, root, path);\n };\n // this function is for aesthetic purposes\n JSONPatcherProxy.prototype.proxifyObjectTree = function (root) {\n /*\n while proxyifying object tree,\n the proxyifying operation itself is being\n recorded, which in an unwanted behavior,\n that's why we disable recording through this\n initial process;\n */\n this.pause();\n this.isProxifyingTreeNow = true;\n var proxifiedObject = this._proxifyObjectTreeRecursively(undefined, root, '');\n /* OK you can record now */\n this.isProxifyingTreeNow = false;\n this.resume();\n return proxifiedObject;\n };\n /**\n * Turns a proxified object into a forward-proxy object; doesn't emit any patches anymore, like a normal object\n * @param {Proxy} proxy - The target proxy object\n */\n JSONPatcherProxy.prototype.disableTrapsForProxy = function (revokableProxyInstance) {\n if (this.showDetachedWarning) {\n var message = \"You're accessing an object that is detached from the observedObject tree, see https://github.com/Palindrom/JSONPatcherProxy#detached-objects\";\n\n revokableProxyInstance.trapsInstance.set = function (targetObject, propKey, newValue) {\n console.warn(message);\n return Reflect.set(targetObject, propKey, newValue);\n };\n revokableProxyInstance.trapsInstance.set = function (targetObject, propKey, newValue) {\n console.warn(message);\n return Reflect.set(targetObject, propKey, newValue);\n };\n revokableProxyInstance.trapsInstance.deleteProperty = function (targetObject, propKey) {\n return Reflect.deleteProperty(targetObject, propKey);\n };\n } else {\n delete revokableProxyInstance.trapsInstance.set;\n delete revokableProxyInstance.trapsInstance.get;\n delete revokableProxyInstance.trapsInstance.deleteProperty;\n }\n };\n /**\n * Proxifies the object that was passed in the constructor and returns a proxified mirror of it. Even though both parameters are options. You need to pass at least one of them.\n * @param {Boolean} [record] - whether to record object changes to a later-retrievable patches array.\n * @param {Function} [callback] - this will be synchronously called with every object change with a single `patch` as the only parameter.\n */\n JSONPatcherProxy.prototype.observe = function (record, callback) {\n if (!record && !callback) {\n throw new Error('You need to either record changes or pass a callback');\n }\n this.isRecording = record;\n this.userCallback = callback;\n /*\n I moved it here to remove it from `unobserve`,\n this will also make the constructor faster, why initiate\n the array before they decide to actually observe with recording?\n They might need to use only a callback.\n */\n if (record) this.patches = [];\n this.cachedProxy = this.proxifyObjectTree(this.originalObject);\n return this.cachedProxy;\n };\n /**\n * If the observed is set to record, it will synchronously return all the patches and empties patches array.\n */\n JSONPatcherProxy.prototype.generate = function () {\n if (!this.isRecording) {\n throw new Error('You should set record to true to get patches later');\n }\n return this.patches.splice(0, this.patches.length);\n };\n /**\n * Revokes all proxies rendering the observed object useless and good for garbage collection @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/revocable}\n */\n JSONPatcherProxy.prototype.revoke = function () {\n this.proxifiedObjectsMap.forEach(function (el) {\n el.revoke();\n });\n };\n /**\n * Disables all proxies' traps, turning the observed object into a forward-proxy object, like a normal object that you can modify silently.\n */\n JSONPatcherProxy.prototype.disableTraps = function () {\n this.proxifiedObjectsMap.forEach(this.disableTrapsForProxy, this);\n };\n return JSONPatcherProxy;\n}();\n\nvar callbacks = [];\nvar nextTickCallback = [];\n\nfunction tick(fn, scope) {\n callbacks.push({ fn: fn, scope: scope });\n}\n\nfunction fireTick() {\n callbacks.forEach(function (item) {\n item.fn.call(item.scope);\n });\n\n nextTickCallback.forEach(function (nextItem) {\n nextItem.fn.call(nextItem.scope);\n });\n nextTickCallback.length = 0;\n}\n\nfunction nextTick(fn, scope) {\n nextTickCallback.push({ fn: fn, scope: scope });\n}\n\nfunction observe(target) {\n target.observe = true;\n}\n\nfunction proxyUpdate(ele) {\n var timeout = null;\n ele.data = new JSONPatcherProxy(ele.data).observe(false, function () {\n if (ele._willUpdate) {\n return;\n }\n if (ele.constructor.mergeUpdate) {\n clearTimeout(timeout);\n\n timeout = setTimeout(function () {\n ele.update();\n fireTick();\n }, 0);\n } else {\n ele.update();\n fireTick();\n }\n });\n}\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction define(name, ctor) {\n if (ctor.is === 'WeElement') {\n if (options.mapping[name]) {\n // if(options.mapping[name] === ctor){\n // console.warn(`You redefine custom elements named [${name}], redundant JS files may be referenced.`)\n // } else {\n // console.warn(`This custom elements name [${name}] has already been used, please rename it.`)\n // }\n return;\n }\n customElements.define(name, ctor);\n options.mapping[name] = ctor;\n if (ctor.use) {\n ctor.updatePath = getPath(ctor.use);\n } else if (ctor.data) {\n //Compatible with older versions\n ctor.updatePath = getUpdatePath(ctor.data);\n }\n } else {\n var Element = function (_WeElement) {\n _inherits(Element, _WeElement);\n\n function Element() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Element);\n\n for (var _len = arguments.length, args = Array(_len), key = 0; key < _len; key++) {\n args[key] = arguments[key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _WeElement.call.apply(_WeElement, [this].concat(args))), _this), _this._useId = 0, _this._useMap = {}, _this._preCss = null, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Element.prototype.render = function render(props, data) {\n return ctor.call(this, props, data);\n };\n\n Element.prototype.beforeRender = function beforeRender() {\n this._useId = 0;\n };\n\n Element.prototype.useCss = function useCss(css) {\n if (css === this._preCss) {\n return;\n }\n this._preCss = css;\n var style = this.shadowRoot.querySelector('style');\n style && this.shadowRoot.removeChild(style);\n this.shadowRoot.appendChild(cssToDom(css));\n };\n\n Element.prototype.useData = function useData(data) {\n return this.use({ data: data });\n };\n\n Element.prototype.use = function use(option) {\n var _this2 = this;\n\n this._useId++;\n var updater = function updater(newValue) {\n var item = _this2._useMap[updater.id];\n\n item.data = newValue;\n\n _this2.update();\n item.effect && item.effect();\n };\n\n updater.id = this._useId;\n if (!this._isInstalled) {\n this._useMap[this._useId] = option;\n return [option.data, updater];\n }\n\n return [this._useMap[this._useId].data, updater];\n };\n\n Element.prototype.installed = function installed() {\n this._isInstalled = true;\n };\n\n return Element;\n }(WeElement);\n\n customElements.define(name, Element);\n }\n}\n\nfunction getPath(obj) {\n if (Object.prototype.toString.call(obj) === '[object Array]') {\n var result = {};\n obj.forEach(function (item) {\n if (typeof item === 'string') {\n result[item] = true;\n } else {\n var tempPath = item[Object.keys(item)[0]];\n if (typeof tempPath === 'string') {\n result[tempPath] = true;\n } else {\n if (typeof tempPath[0] === 'string') {\n result[tempPath[0]] = true;\n } else {\n tempPath[0].forEach(function (path) {\n return result[path] = true;\n });\n }\n }\n }\n });\n return result;\n } else {\n return getUpdatePath(obj);\n }\n}\n\nfunction getUpdatePath(data) {\n var result = {};\n dataToPath(data, result);\n return result;\n}\n\nfunction dataToPath(data, result) {\n Object.keys(data).forEach(function (key) {\n result[key] = true;\n var type = Object.prototype.toString.call(data[key]);\n if (type === '[object Object]') {\n _objToPath(data[key], key, result);\n } else if (type === '[object Array]') {\n _arrayToPath(data[key], key, result);\n }\n });\n}\n\nfunction _objToPath(data, path, result) {\n Object.keys(data).forEach(function (key) {\n result[path + '.' + key] = true;\n delete result[path];\n var type = Object.prototype.toString.call(data[key]);\n if (type === '[object Object]') {\n _objToPath(data[key], path + '.' + key, result);\n } else if (type === '[object Array]') {\n _arrayToPath(data[key], path + '.' + key, result);\n }\n });\n}\n\nfunction _arrayToPath(data, path, result) {\n data.forEach(function (item, index) {\n result[path + '[' + index + ']'] = true;\n delete result[path];\n var type = Object.prototype.toString.call(item);\n if (type === '[object Object]') {\n _objToPath(item, path + '[' + index + ']', result);\n } else if (type === '[object Array]') {\n _arrayToPath(item, path + '[' + index + ']', result);\n }\n });\n}\n\nfunction _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn$1(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits$1(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar id = 0;\n\nvar WeElement = function (_HTMLElement) {\n _inherits$1(WeElement, _HTMLElement);\n\n function WeElement() {\n _classCallCheck$1(this, WeElement);\n\n var _this = _possibleConstructorReturn$1(this, _HTMLElement.call(this));\n\n _this.props = Object.assign(nProps(_this.constructor.props), _this.constructor.defaultProps);\n _this.elementId = id++;\n _this.data = {};\n return _this;\n }\n\n WeElement.prototype.connectedCallback = function connectedCallback() {\n var p = this.parentNode;\n while (p && !this.store) {\n this.store = p.store;\n p = p.parentNode || p.host;\n }\n if (this.store) {\n this.store.instances.push(this);\n }\n\n if (this.initUse) {\n var use = this.initUse();\n this._updatePath = getPath(use);\n this.use = getUse(this.store.data, use);\n } else {\n this.constructor.use && (this.use = getUse(this.store.data, this.constructor.use));\n }\n this.attrsToProps();\n this.beforeInstall();\n this.install();\n this.afterInstall();\n\n var shadowRoot;\n if (!this.shadowRoot) {\n shadowRoot = this.attachShadow({\n mode: 'open'\n });\n } else {\n shadowRoot = this.shadowRoot;\n var fc;\n while (fc = shadowRoot.firstChild) {\n shadowRoot.removeChild(fc);\n }\n }\n\n if (this.constructor.css) {\n shadowRoot.appendChild(cssToDom(this.constructor.css));\n } else if (this.css) {\n shadowRoot.appendChild(cssToDom(typeof this.css === 'function' ? this.css() : this.css));\n }\n this.beforeRender();\n options.afterInstall && options.afterInstall(this);\n if (this.constructor.observe) {\n this.beforeObserve();\n proxyUpdate(this);\n this.observed();\n }\n\n var rendered = this.render(this.props, this.data, this.store);\n this.__hasChildren = Object.prototype.toString.call(rendered) === '[object Array]' && rendered.length > 0;\n\n this._host = diff(null, rendered, {}, false, null, false);\n this.rendered();\n\n if (this.props.css) {\n this._customStyleElement = cssToDom(this.props.css);\n this._customStyleContent = this.props.css;\n shadowRoot.appendChild(this._customStyleElement);\n }\n\n if (isArray(this._host)) {\n this._host.forEach(function (item) {\n shadowRoot.appendChild(item);\n });\n } else {\n shadowRoot.appendChild(this._host);\n }\n this.installed();\n this._isInstalled = true;\n };\n\n WeElement.prototype.disconnectedCallback = function disconnectedCallback() {\n this.uninstall();\n this._isInstalled = false;\n if (this.store) {\n for (var i = 0, len = this.store.instances.length; i < len; i++) {\n if (this.store.instances[i] === this) {\n this.store.instances.splice(i, 1);\n break;\n }\n }\n }\n };\n\n WeElement.prototype.update = function update() {\n this._willUpdate = true;\n this.beforeUpdate();\n this.beforeRender();\n //fix null !== undefined\n if (this._customStyleContent != this.props.css) {\n this._customStyleContent = this.props.css;\n this._customStyleElement.textContent = this._customStyleContent;\n }\n this.attrsToProps();\n\n var rendered = this.render(this.props, this.data, this.store);\n this.__hasChildren = this.__hasChildren || Object.prototype.toString.call(rendered) === '[object Array]' && rendered.length > 0;\n\n this._host = diff(this._host, rendered, null, null, this.shadowRoot);\n this._willUpdate = false;\n this.updated();\n };\n\n WeElement.prototype.removeAttribute = function removeAttribute(key) {\n _HTMLElement.prototype.removeAttribute.call(this, key);\n //Avoid executing removeAttribute methods before connectedCallback\n this._isInstalled && this.update();\n };\n\n WeElement.prototype.setAttribute = function setAttribute(key, val) {\n if (val && typeof val === 'object') {\n _HTMLElement.prototype.setAttribute.call(this, key, JSON.stringify(val));\n } else {\n _HTMLElement.prototype.setAttribute.call(this, key, val);\n }\n //Avoid executing setAttribute methods before connectedCallback\n this._isInstalled && this.update();\n };\n\n WeElement.prototype.pureRemoveAttribute = function pureRemoveAttribute(key) {\n _HTMLElement.prototype.removeAttribute.call(this, key);\n };\n\n WeElement.prototype.pureSetAttribute = function pureSetAttribute(key, val) {\n _HTMLElement.prototype.setAttribute.call(this, key, val);\n };\n\n WeElement.prototype.attrsToProps = function attrsToProps() {\n var ele = this;\n if (ele.normalizedNodeName) return;\n ele.props['css'] = ele.getAttribute('css');\n var attrs = this.constructor.propTypes;\n if (!attrs) return;\n Object.keys(attrs).forEach(function (key) {\n var type = attrs[key];\n var val = ele.getAttribute(hyphenate(key));\n if (val !== null) {\n switch (type) {\n case String:\n ele.props[key] = val;\n break;\n case Number:\n ele.props[key] = Number(val);\n break;\n case Boolean:\n if (val === 'false' || val === '0') {\n ele.props[key] = false;\n } else {\n ele.props[key] = true;\n }\n break;\n case Array:\n case Object:\n ele.props[key] = JSON.parse(val.replace(/(['\"])?([a-zA-Z0-9_-]+)(['\"])?:([^\\/])/g, '\"$2\":$4').replace(/'([\\s\\S]*?)'/g, '\"$1\"').replace(/,(\\s*})/g, '$1'));\n break;\n }\n } else {\n if (ele.constructor.defaultProps && ele.constructor.defaultProps.hasOwnProperty(key)) {\n ele.props[key] = ele.constructor.defaultProps[key];\n } else {\n ele.props[key] = null;\n }\n }\n });\n };\n\n WeElement.prototype.fire = function fire(name, data) {\n this.dispatchEvent(new CustomEvent(name.replace(/-/g, '').toLowerCase(), { detail: data }));\n };\n\n WeElement.prototype.beforeInstall = function beforeInstall() {};\n\n WeElement.prototype.install = function install() {};\n\n WeElement.prototype.afterInstall = function afterInstall() {};\n\n WeElement.prototype.installed = function installed() {};\n\n WeElement.prototype.uninstall = function uninstall() {};\n\n WeElement.prototype.beforeUpdate = function beforeUpdate() {};\n\n WeElement.prototype.updated = function updated() {};\n\n WeElement.prototype.beforeRender = function beforeRender() {};\n\n WeElement.prototype.rendered = function rendered() {};\n\n WeElement.prototype.receiveProps = function receiveProps() {};\n\n WeElement.prototype.beforeObserve = function beforeObserve() {};\n\n WeElement.prototype.observed = function observed() {};\n\n return WeElement;\n}(HTMLElement);\n\nWeElement.is = 'WeElement';\n\nfunction render(vnode, parent, store) {\n parent = typeof parent === 'string' ? document.querySelector(parent) : parent;\n if (store) {\n store.instances = [];\n extendStoreUpate(store);\n\n store.data = new JSONPatcherProxy(store.data).observe(false, function (patch) {\n var patchs = {};\n if (patch.op === 'remove') {\n // fix arr splice\n var kv = getArrayPatch(patch.path, store);\n patchs[kv.k] = kv.v;\n\n update(patchs, store);\n } else {\n var key = fixPath(patch.path);\n patchs[key] = patch.value;\n\n update(patchs, store);\n }\n });\n parent.store = store;\n }\n return diff(null, vnode, {}, false, parent, false);\n}\n\nfunction update(patch, store) {\n store.update(patch);\n}\n\nfunction extendStoreUpate(store) {\n store.update = function (patch) {\n var _this = this;\n\n var updateAll = matchGlobalData(this.globalData, patch);\n\n if (Object.keys(patch).length > 0) {\n this.instances.forEach(function (instance) {\n if (updateAll || _this.updateAll || instance.constructor.updatePath && needUpdate(patch, instance.constructor.updatePath) || instance._updatePath && needUpdate(patch, instance._updatePath)) {\n //update this.use\n if (instance.constructor.use) {\n instance.use = getUse(store.data, instance.constructor.use);\n } else if (instance.initUse) {\n instance.use = getUse(store.data, instance.initUse());\n }\n\n instance.update();\n }\n });\n this.onChange && this.onChange(patch);\n }\n };\n}\n\nfunction matchGlobalData(globalData, diffResult) {\n if (!globalData) return false;\n for (var keyA in diffResult) {\n if (globalData.indexOf(keyA) > -1) {\n return true;\n }\n for (var i = 0, len = globalData.length; i < len; i++) {\n if (includePath(keyA, globalData[i])) {\n return true;\n }\n }\n }\n return false;\n}\n\nfunction needUpdate(diffResult, updatePath) {\n for (var keyA in diffResult) {\n if (updatePath[keyA]) {\n return true;\n }\n for (var keyB in updatePath) {\n if (includePath(keyA, keyB)) {\n return true;\n }\n }\n }\n return false;\n}\n\nfunction includePath(pathA, pathB) {\n if (pathA.indexOf(pathB) === 0) {\n var next = pathA.substr(pathB.length, 1);\n if (next === '[' || next === '.') {\n return true;\n }\n }\n return false;\n}\n\nfunction fixPath(path) {\n var mpPath = '';\n var arr = path.replace('/', '').split('/');\n arr.forEach(function (item, index) {\n if (index) {\n if (isNaN(Number(item))) {\n mpPath += '.' + item;\n } else {\n mpPath += '[' + item + ']';\n }\n } else {\n mpPath += item;\n }\n });\n return mpPath;\n}\n\nfunction getArrayPatch(path, store) {\n var arr = path.replace('/', '').split('/');\n var current = store.data[arr[0]];\n for (var i = 1, len = arr.length; i < len - 1; i++) {\n current = current[arr[i]];\n }\n return { k: fixArrPath(path), v: current };\n}\n\nfunction fixArrPath(path) {\n var mpPath = '';\n var arr = path.replace('/', '').split('/');\n var len = arr.length;\n arr.forEach(function (item, index) {\n if (index < len - 1) {\n if (index) {\n if (isNaN(Number(item))) {\n mpPath += '.' + item;\n } else {\n mpPath += '[' + item + ']';\n }\n } else {\n mpPath += item;\n }\n }\n });\n return mpPath;\n}\n\nfunction tag(name, pure) {\n return function (target) {\n target.pure = pure;\n define(name, target);\n };\n}\n\n/**\n * Clones the given VNode, optionally adding attributes/props and replacing its children.\n * @param {VNode} vnode\t\tThe virtual DOM element to clone\n * @param {Object} props\tAttributes/props to add when cloning\n * @param {VNode} rest\t\tAny additional arguments will be used as replacement children.\n */\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nfunction getHost(ele) {\n var p = ele.parentNode;\n while (p) {\n if (p.host) {\n return p.host;\n } else if (p.shadowRoot && p.shadowRoot.host) {\n return p.shadowRoot.host;\n } else {\n p = p.parentNode;\n }\n }\n}\n\nfunction rpx(str) {\n return str.replace(/([1-9]\\d*|0)(\\.\\d*)*rpx/g, function (a, b) {\n return window.innerWidth * Number(b) / 750 + 'px';\n });\n}\n\nfunction _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn$2(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits$2(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ModelView = function (_WeElement) {\n _inherits$2(ModelView, _WeElement);\n\n function ModelView() {\n _classCallCheck$2(this, ModelView);\n\n return _possibleConstructorReturn$2(this, _WeElement.apply(this, arguments));\n }\n\n ModelView.prototype.beforeInstall = function beforeInstall() {\n this.data = this.vm.data;\n };\n\n ModelView.prototype.observed = function observed() {\n this.vm.data = this.data;\n };\n\n return ModelView;\n}(WeElement);\n\nModelView.observe = true;\nModelView.mergeUpdate = false;\n\n/**\n * classNames based on https://github.com/JedWatson/classnames\n * by Jed Watson\n * Licensed under the MIT License\n * https://github.com/JedWatson/classnames/blob/master/LICENSE\n * modified by dntzhang\n */\n\nvar hasOwn = {}.hasOwnProperty;\n\nfunction classNames() {\n var classes = [];\n\n for (var i = 0; i < arguments.length; i++) {\n var arg = arguments[i];\n if (!arg) continue;\n\n var argType = typeof arg;\n\n if (argType === 'string' || argType === 'number') {\n classes.push(arg);\n } else if (Array.isArray(arg) && arg.length) {\n var inner = classNames.apply(null, arg);\n if (inner) {\n classes.push(inner);\n }\n } else if (argType === 'object') {\n for (var key in arg) {\n if (hasOwn.call(arg, key) && arg[key]) {\n classes.push(key);\n }\n }\n }\n }\n\n return classes.join(' ');\n}\n\nfunction extractClass() {\n var _Array$prototype$slic = Array.prototype.slice.call(arguments, 0),\n props = _Array$prototype$slic[0],\n args = _Array$prototype$slic.slice(1);\n\n if (props.class) {\n args.unshift(props.class);\n delete props.class;\n } else if (props.className) {\n args.unshift(props.className);\n delete props.className;\n }\n if (args.length > 0) {\n return { class: classNames.apply(null, args) };\n }\n}\n\nfunction o(obj) {\n return JSON.stringify(obj);\n}\n\nvar n=function(t,r,u,e){for(var p=1;p\"===t?(a(), u=1):u&&(\"=\"===t?(u=4, r=e, e=\"\"):\"/\"===t?(a(), 3===u&&(s=s[0]), u=s, (s=s[0]).push(u,4), u=0):\" \"===t||\"\\t\"===t||\"\\n\"===t||\"\\r\"===t?(a(), u=2):e+=t);}return a(), s},r=\"function\"==typeof Map,u=r?new Map:{},e=r?function(n){var r=u.get(n);return r||u.set(n,r=t(n)), r}:function(n){for(var r=\"\",e=0;e1?r:r[0]}\n\nvar html = htm.bind(h);\n\nfunction createRef() {\n return {};\n}\n\nvar Component = WeElement;\nvar defineElement = define;\nvar elements = options.mapping;\n\nvar omi = {\n tag: tag,\n WeElement: WeElement,\n Component: Component,\n render: render,\n h: h,\n createElement: h,\n options: options,\n define: define,\n observe: observe,\n cloneElement: cloneElement,\n getHost: getHost,\n rpx: rpx,\n tick: tick,\n nextTick: nextTick,\n ModelView: ModelView,\n defineElement: defineElement,\n classNames: classNames,\n extractClass: extractClass,\n createRef: createRef,\n html: html,\n htm: htm,\n o: o,\n elements: elements\n};\n\noptions.root.Omi = omi;\noptions.root.omi = omi;\noptions.root.Omi.version = '6.6.2';\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (omi);\n\n//# sourceMappingURL=omi.esm.js.map\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../_webpack@4.33.0@webpack/buildin/global.js */ \"./node_modules/_webpack@4.33.0@webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/_omi@6.6.2@omi/dist/omi.esm.js?"); + +/***/ }), + +/***/ "./node_modules/_webpack@4.33.0@webpack/buildin/global.js": +/*!***********************************!*\ + !*** (webpack)/buildin/global.js ***! + \***********************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?"); + +/***/ }), + +/***/ "./src/rate/index.scss": +/*!*****************************!*\ + !*** ./src/rate/index.scss ***! + \*****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("\n var result = __webpack_require__(/*! !../../node_modules/_css-loader@1.0.1@css-loader!../../node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!../../node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./index.scss */ \"./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/rate/index.scss\");\n\n if (typeof result === \"string\") {\n module.exports = result;\n } else {\n module.exports = result.toString();\n }\n \n\n//# sourceURL=webpack:///./src/rate/index.scss?"); + +/***/ }), + +/***/ "./src/rate/index.tsx": +/*!****************************!*\ + !*** ./src/rate/index.tsx ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ \"./node_modules/_omi@6.6.2@omi/dist/omi.esm.js\");\nvar css = __webpack_require__(/*! ./index.scss */ \"./src/rate/index.scss\");\n//@ts-ignore\n__webpack_require__(/*! ../theme.ts */ \"./src/theme.ts\");\nvar Rate = /** @class */ (function (_super) {\n __extends(Rate, _super);\n function Rate() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._current = 0;\n _this._rect = null;\n _this._hover = false;\n _this.onSelect = function (evt) {\n _this._rect = _this.base.getBoundingClientRect();\n var dx = evt.pageX - _this._rect.left;\n var value = dx / _this._rect.width * _this.props.total;\n var intValue = Math.floor(value);\n //@ts-ignore\n _this.fire('selected', intValue + (value - intValue > 0.5 ? 1 : 0.5));\n };\n _this.onMouseMove = function (evt) {\n _this._rect = _this.base.getBoundingClientRect();\n var dx = evt.pageX - _this._rect.left;\n _this._current = dx / _this._rect.width * _this.props.total;\n _this.update();\n };\n _this.onMouseEnter = function () {\n _this._hover = true;\n };\n _this.onMouseLeave = function () {\n _this._hover = false;\n _this.update();\n };\n _this._getClass = function (i, current) {\n if (i < current) {\n if (current - i <= 0.5) {\n return '_star _star-half ';\n }\n return '_star';\n }\n else {\n return '_star _star-empty ';\n }\n };\n return _this;\n }\n Rate.prototype.installed = function () {\n this.base = this.shadowRoot.querySelector('ul');\n };\n Rate.prototype.render = function (props) {\n var _this = this;\n return (omi_1.h(\"ul\", __assign({ onMouseMove: this.onMouseMove, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.onSelect }, omi_1.extractClass(props, \"m-rate\")), Array.apply(0, Array(props.total)).map(function (x, i) {\n return omi_1.h(\"li\", { class: _this._getClass(i, _this._hover ? _this._current : props.value) },\n omi_1.h(\"div\", { class: 'star-box' },\n omi_1.h(\"div\", { class: \"_star-first\" },\n omi_1.h(\"i\", { class: \"anticon anticon-star\" },\n omi_1.h(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"2em\", height: \"2em\", fill: props.color || \"#f57c00\", viewBox: \"0 0 18 18\" },\n omi_1.h(\"path\", { d: \"M9 11.3l3.71 2.7-1.42-4.36L15 7h-4.55L9 2.5 7.55 7H3l3.71 2.64L5.29 14z\" }),\n omi_1.h(\"path\", { fill: \"none\", d: \"M0 0h18v18H0z\" })))),\n omi_1.h(\"div\", { class: \"_star-second\" },\n omi_1.h(\"i\", { class: \"anticon anticon-star\" },\n omi_1.h(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"2em\", height: \"2em\", fill: \"#E8E8E8\", viewBox: \"0 0 18 18\" },\n omi_1.h(\"path\", { d: \"M9 11.3l3.71 2.7-1.42-4.36L15 7h-4.55L9 2.5 7.55 7H3l3.71 2.64L5.29 14z\" }),\n omi_1.h(\"path\", { fill: \"none\", d: \"M0 0h18v18H0z\" }))))));\n })));\n };\n Rate.css = css;\n Rate.defaultProps = {\n value: 0\n };\n Rate = __decorate([\n omi_1.tag('m-rate')\n ], Rate);\n return Rate;\n}(omi_1.WeElement));\nexports.default = Rate;\n\n\n//# sourceURL=webpack:///./src/rate/index.tsx?"); + +/***/ }), + +/***/ "./src/theme.ts": +/*!**********************!*\ + !*** ./src/theme.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("theme();\ndocument.addEventListener('DOMContentLoaded', function () {\n theme();\n});\nfunction theme() {\n if (document.body && !document.body.style.getPropertyValue('--mdc-theme-primary')) {\n document.body.style.setProperty('--mdc-theme-primary', '#0072d9');\n document.body.style.setProperty('--mdc-theme-secondary', '#2170b8');\n document.body.style.setProperty('--mdc-theme-error', '#f5222d');\n document.body.style.setProperty('--mdc-theme-surface', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-primary', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-secondary', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-error', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-surface', '#000000');\n document.body.style.setProperty('--mdc-theme-background', '#ffffff');\n document.body.style.setProperty('--mdc-shape-small-component-radius', '4px');\n document.body.style.setProperty('--mdc-shape-medium-component-radius', '4px');\n document.body.style.setProperty('--mdc-shape-large-component-radius', '0px');\n document.body.style.setProperty('--mdc-typography--font-family', 'Roboto, sans-serif');\n }\n}\n\n\n//# sourceURL=webpack:///./src/theme.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/packages/omim/demos/rate/index.html b/packages/omim/demos/rate/index.html new file mode 100644 index 000000000..aaee72e6e --- /dev/null +++ b/packages/omim/demos/rate/index.html @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/omim/demos/rate/index.js b/packages/omim/demos/rate/index.js new file mode 100644 index 000000000..ae6821e2c --- /dev/null +++ b/packages/omim/demos/rate/index.js @@ -0,0 +1,14 @@ +import '../../src/rate/index.tsx' +import { render, h } from 'omi' + +render( +
+ + +
+ , 'body') + + + function onSelected(evt){ + console.log(evt.detail) + } \ No newline at end of file diff --git a/packages/omim/demos/rate/index.script.html b/packages/omim/demos/rate/index.script.html new file mode 100644 index 000000000..d40b89567 --- /dev/null +++ b/packages/omim/demos/rate/index.script.html @@ -0,0 +1,54 @@ + + + + + + + Add Omi in One Minute + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/packages/omim/src/avatar/index.scss b/packages/omim/src/avatar/index.scss index bcfd92d78..02ac5e829 100644 --- a/packages/omim/src/avatar/index.scss +++ b/packages/omim/src/avatar/index.scss @@ -1,5 +1,8 @@ @import "../theme.scss"; +:host { + display: inline-block; +} img{ diff --git a/packages/omim/src/breadcrumb/index.scss b/packages/omim/src/breadcrumb/index.scss index f2234a5d6..ee0dde755 100644 --- a/packages/omim/src/breadcrumb/index.scss +++ b/packages/omim/src/breadcrumb/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + ol { list-style-type: decimal; font-size: 14px; diff --git a/packages/omim/src/button/index.scss b/packages/omim/src/button/index.scss index be74f42f1..a40d0494e 100644 --- a/packages/omim/src/button/index.scss +++ b/packages/omim/src/button/index.scss @@ -1,6 +1,10 @@ @import "../theme"; @import "@material/button/mdc-button"; +:host { + display: inline-block; +} + .m-icon{ margin-right: 0.6em; } diff --git a/packages/omim/src/checkbox/index.scss b/packages/omim/src/checkbox/index.scss index b771cd84c..28d380c49 100644 --- a/packages/omim/src/checkbox/index.scss +++ b/packages/omim/src/checkbox/index.scss @@ -1,3 +1,7 @@ @import "../theme"; @import "@material/form-field/mdc-form-field"; -@import "@material/checkbox/mdc-checkbox"; \ No newline at end of file +@import "@material/checkbox/mdc-checkbox"; + +:host { + display: inline-block; +} \ No newline at end of file diff --git a/packages/omim/src/chips/index.scss b/packages/omim/src/chips/index.scss index 567c9a3e8..a9e4912a7 100644 --- a/packages/omim/src/chips/index.scss +++ b/packages/omim/src/chips/index.scss @@ -1,5 +1,6 @@ @import "../theme"; @import "@material/chips/mdc-chips"; + .mdc-chip { -moz-user-select:none; -webkit-user-select:none; @@ -7,3 +8,6 @@ user-select:none; } +:host { + display: inline-block; +} \ No newline at end of file diff --git a/packages/omim/src/editor/index.scss b/packages/omim/src/editor/index.scss index 35c32c389..14e2efa2b 100644 --- a/packages/omim/src/editor/index.scss +++ b/packages/omim/src/editor/index.scss @@ -1,2 +1,6 @@ @import "../theme"; @import "@material/elevation/mdc-elevation"; + +:host { + display: block; +} \ No newline at end of file diff --git a/packages/omim/src/elevation/index.scss b/packages/omim/src/elevation/index.scss index 35c32c389..527df9e0e 100644 --- a/packages/omim/src/elevation/index.scss +++ b/packages/omim/src/elevation/index.scss @@ -1,2 +1,6 @@ @import "../theme"; @import "@material/elevation/mdc-elevation"; + +:host { + display: inline-block; +} \ No newline at end of file diff --git a/packages/omim/src/fab/index.scss b/packages/omim/src/fab/index.scss index c6a4ad14f..bebd02cf6 100644 --- a/packages/omim/src/fab/index.scss +++ b/packages/omim/src/fab/index.scss @@ -1,6 +1,10 @@ @import "../theme"; @import "@material/fab/mdc-fab"; +:host { + display: inline-block; +} + .material-icons { font-family: 'Material Icons'; font-weight: normal; diff --git a/packages/omim/src/icon-button/index.scss b/packages/omim/src/icon-button/index.scss index 6e2d77bef..d44c60e3a 100644 --- a/packages/omim/src/icon-button/index.scss +++ b/packages/omim/src/icon-button/index.scss @@ -1,6 +1,10 @@ @import "../theme"; @import "@material/icon-button/mdc-icon-button"; +:host { + display: inline-block; +} + .material-icons { font-family: 'Material Icons'; font-weight: normal; diff --git a/packages/omim/src/icon/index.css b/packages/omim/src/icon/index.css new file mode 100644 index 000000000..2956ac346 --- /dev/null +++ b/packages/omim/src/icon/index.css @@ -0,0 +1,31 @@ +:host { + display: inline-block; +} +.m-icon { + text-align: center; + display: inline-block; +} +.m-icon svg { + display: inline-block; + vertical-align: top; +} +.rotate { + display: inline-block; + -webkit-animation: rotate 1s infinite linear; + animation: rotate 1s infinite linear; +} +i div { + font-style: normal; +} +@-webkit-keyframes rotate { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes rotate { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} diff --git a/packages/omim/src/icon/index.scss b/packages/omim/src/icon/index.scss index 0ab8b0373..56ce2bdfc 100644 --- a/packages/omim/src/icon/index.scss +++ b/packages/omim/src/icon/index.scss @@ -1,3 +1,7 @@ +:host { + display: inline-block; +} + .m-icon { text-align: center; display: inline-block; diff --git a/packages/omim/src/image-list/index.scss b/packages/omim/src/image-list/index.scss index adbfa460c..45f01c95f 100644 --- a/packages/omim/src/image-list/index.scss +++ b/packages/omim/src/image-list/index.scss @@ -1,2 +1,6 @@ @import "../theme"; @import "@material/image-list/mdc-image-list"; + +:host { + display: block; +} \ No newline at end of file diff --git a/packages/omim/src/linear-progress/index.scss b/packages/omim/src/linear-progress/index.scss index 825019de9..bb7921ce7 100644 --- a/packages/omim/src/linear-progress/index.scss +++ b/packages/omim/src/linear-progress/index.scss @@ -1,2 +1,6 @@ @import "../theme"; -@import "@material/linear-progress/mdc-linear-progress"; \ No newline at end of file +@import "@material/linear-progress/mdc-linear-progress"; + +:host { + display: inline-block; +} \ No newline at end of file diff --git a/packages/omim/src/list/index.scss b/packages/omim/src/list/index.scss index 34286a9ce..1192d4e22 100644 --- a/packages/omim/src/list/index.scss +++ b/packages/omim/src/list/index.scss @@ -3,6 +3,10 @@ @import "@material/checkbox/mdc-checkbox"; @import "@material/radio/mdc-radio"; +:host { + display: block; +} + .material-icons { font-family: 'Material Icons'; font-weight: normal; diff --git a/packages/omim/src/loading/index.scss b/packages/omim/src/loading/index.scss index 5c80054b9..3da40e093 100644 --- a/packages/omim/src/loading/index.scss +++ b/packages/omim/src/loading/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: inline-block; +} + .m-root { display: inline-block; line-height: 1; diff --git a/packages/omim/src/menu/index.scss b/packages/omim/src/menu/index.scss index 575aeb3ae..827917c10 100644 --- a/packages/omim/src/menu/index.scss +++ b/packages/omim/src/menu/index.scss @@ -1,4 +1,8 @@ @import "../theme"; @import "@material/list/mdc-list"; @import "@material/menu-surface/mdc-menu-surface"; -@import "@material/menu/mdc-menu"; \ No newline at end of file +@import "@material/menu/mdc-menu"; + +:host { + display: inline-block; +} \ No newline at end of file diff --git a/packages/omim/src/nav/index.scss b/packages/omim/src/nav/index.scss index ffe77d6b1..7da2d6a4b 100644 --- a/packages/omim/src/nav/index.scss +++ b/packages/omim/src/nav/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + .material-icons { font-family: 'Material Icons'; font-weight: normal; diff --git a/packages/omim/src/pagination/index.scss b/packages/omim/src/pagination/index.scss index 718355885..c253877fb 100644 --- a/packages/omim/src/pagination/index.scss +++ b/packages/omim/src/pagination/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + div { color: rgba(0, 0, 0, .65); } diff --git a/packages/omim/src/paper/index.scss b/packages/omim/src/paper/index.scss index f27a70d34..8dd8dbe76 100644 --- a/packages/omim/src/paper/index.scss +++ b/packages/omim/src/paper/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + .m-paper-root { color: rgba(0, 0, 0, 0.87); transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; diff --git a/packages/omim/src/path-progress/index.tsx b/packages/omim/src/path-progress/index.tsx index e60eb9b36..9e7b83535 100644 --- a/packages/omim/src/path-progress/index.tsx +++ b/packages/omim/src/path-progress/index.tsx @@ -10,6 +10,12 @@ interface Data { } define('m-path-progress', class extends WeElement { + static css = ` + :host { + display: block; + } + ` + static defaultProps = { options: {}, progress: 0, diff --git a/packages/omim/src/picker/index.css b/packages/omim/src/picker/index.css new file mode 100644 index 000000000..48bb062ea --- /dev/null +++ b/packages/omim/src/picker/index.css @@ -0,0 +1,3 @@ +:host { + display: inline-block; +} diff --git a/packages/omim/src/picker/index.scss b/packages/omim/src/picker/index.scss index e69de29bb..48bb062ea 100644 --- a/packages/omim/src/picker/index.scss +++ b/packages/omim/src/picker/index.scss @@ -0,0 +1,3 @@ +:host { + display: inline-block; +} diff --git a/packages/omim/src/radio/index.scss b/packages/omim/src/radio/index.scss index 3e672f65e..62bed7352 100644 --- a/packages/omim/src/radio/index.scss +++ b/packages/omim/src/radio/index.scss @@ -1,3 +1,7 @@ @import "../theme"; @import "@material/form-field/mdc-form-field"; -@import "@material/radio/mdc-radio"; \ No newline at end of file +@import "@material/radio/mdc-radio"; + +:host { + display: inline-block; +} diff --git a/packages/omim/src/rate/index.d.ts b/packages/omim/src/rate/index.d.ts new file mode 100644 index 000000000..fa388da95 --- /dev/null +++ b/packages/omim/src/rate/index.d.ts @@ -0,0 +1,32 @@ +import { WeElement } from 'omi'; +import '../icon'; +import '../theme.ts'; +interface Props { + ripple: boolean; + raised: boolean; + dense: boolean; + unelevated: boolean; + outlined: boolean; + svgIcon: object; + icon: string; +} +interface Data { +} +export default class Button extends WeElement { + static css: any; + static defaultProps: { + ripple: boolean; + }; + static propTypes: { + ripple: BooleanConstructor; + raised: BooleanConstructor; + dense: BooleanConstructor; + unelevated: BooleanConstructor; + outlined: BooleanConstructor; + svgIcon: ObjectConstructor; + icon: StringConstructor; + }; + installed(): void; + render(props: any): JSX.Element; +} +export {}; diff --git a/packages/omim/src/rate/index.js b/packages/omim/src/rate/index.js new file mode 100644 index 000000000..28d568c5a --- /dev/null +++ b/packages/omim/src/rate/index.js @@ -0,0 +1,2029 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(require("omi")); + else if(typeof define === 'function' && define.amd) + define(["omi"], factory); + else if(typeof exports === 'object') + exports["MButton"] = factory(require("omi")); + else + root["MButton"] = factory(root["Omi"]); +})(window, function(__WEBPACK_EXTERNAL_MODULE_omi__) { +return /******/ (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 = "./src/button/index.tsx"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/_@material_base@1.0.0@@material/base/component.js": +/*!************************************************************************!*\ + !*** ./node_modules/_@material_base@1.0.0@@material/base/component.js ***! + \************************************************************************/ +/*! exports provided: MDCComponent, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCComponent", function() { return MDCComponent; }); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/_tslib@1.9.3@tslib/tslib.es6.js"); +/* harmony import */ var _foundation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation */ "./node_modules/_@material_base@1.0.0@@material/base/foundation.js"); +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + +var MDCComponent = /** @class */ (function () { + function MDCComponent(root, foundation) { + var args = []; + for (var _i = 2; _i < arguments.length; _i++) { + args[_i - 2] = arguments[_i]; + } + this.root_ = root; + this.initialize.apply(this, tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"](args)); + // Note that we initialize foundation here and not within the constructor's default param so that + // this.root_ is defined and can be used within the foundation class. + this.foundation_ = foundation === undefined ? this.getDefaultFoundation() : foundation; + this.foundation_.init(); + this.initialSyncWithDOM(); + } + MDCComponent.attachTo = function (root) { + // Subclasses which extend MDCBase should provide an attachTo() method that takes a root element and + // returns an instantiated component with its root set to that element. Also note that in the cases of + // subclasses, an explicit foundation class will not have to be passed in; it will simply be initialized + // from getDefaultFoundation(). + return new MDCComponent(root, new _foundation__WEBPACK_IMPORTED_MODULE_1__["MDCFoundation"]({})); + }; + /* istanbul ignore next: method param only exists for typing purposes; it does not need to be unit tested */ + MDCComponent.prototype.initialize = function () { + var _args = []; + for (var _i = 0; _i < arguments.length; _i++) { + _args[_i] = arguments[_i]; + } + // Subclasses can override this to do any additional setup work that would be considered part of a + // "constructor". Essentially, it is a hook into the parent constructor before the foundation is + // initialized. Any additional arguments besides root and foundation will be passed in here. + }; + MDCComponent.prototype.getDefaultFoundation = function () { + // Subclasses must override this method to return a properly configured foundation class for the + // component. + throw new Error('Subclasses must override getDefaultFoundation to return a properly configured ' + + 'foundation class'); + }; + MDCComponent.prototype.initialSyncWithDOM = function () { + // Subclasses should override this method if they need to perform work to synchronize with a host DOM + // object. An example of this would be a form control wrapper that needs to synchronize its internal state + // to some property or attribute of the host DOM. Please note: this is *not* the place to perform DOM + // reads/writes that would cause layout / paint, as this is called synchronously from within the constructor. + }; + MDCComponent.prototype.destroy = function () { + // Subclasses may implement this method to release any resources / deregister any listeners they have + // attached. An example of this might be deregistering a resize event from the window object. + this.foundation_.destroy(); + }; + MDCComponent.prototype.listen = function (evtType, handler) { + this.root_.addEventListener(evtType, handler); + }; + MDCComponent.prototype.unlisten = function (evtType, handler) { + this.root_.removeEventListener(evtType, handler); + }; + /** + * Fires a cross-browser-compatible custom event from the component root of the given type, with the given data. + */ + MDCComponent.prototype.emit = function (evtType, evtData, shouldBubble) { + if (shouldBubble === void 0) { shouldBubble = false; } + var evt; + if (typeof CustomEvent === 'function') { + evt = new CustomEvent(evtType, { + bubbles: shouldBubble, + detail: evtData, + }); + } + else { + evt = document.createEvent('CustomEvent'); + evt.initCustomEvent(evtType, shouldBubble, false, evtData); + } + this.root_.dispatchEvent(evt); + }; + return MDCComponent; +}()); + +// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier. +/* harmony default export */ __webpack_exports__["default"] = (MDCComponent); +//# sourceMappingURL=component.js.map + +/***/ }), + +/***/ "./node_modules/_@material_base@1.0.0@@material/base/foundation.js": +/*!*************************************************************************!*\ + !*** ./node_modules/_@material_base@1.0.0@@material/base/foundation.js ***! + \*************************************************************************/ +/*! exports provided: MDCFoundation, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFoundation", function() { return MDCFoundation; }); +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var MDCFoundation = /** @class */ (function () { + function MDCFoundation(adapter) { + if (adapter === void 0) { adapter = {}; } + this.adapter_ = adapter; + } + Object.defineProperty(MDCFoundation, "cssClasses", { + get: function () { + // Classes extending MDCFoundation should implement this method to return an object which exports every + // CSS class the foundation class needs as a property. e.g. {ACTIVE: 'mdc-component--active'} + return {}; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(MDCFoundation, "strings", { + get: function () { + // Classes extending MDCFoundation should implement this method to return an object which exports all + // semantic strings as constants. e.g. {ARIA_ROLE: 'tablist'} + return {}; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(MDCFoundation, "numbers", { + get: function () { + // Classes extending MDCFoundation should implement this method to return an object which exports all + // of its semantic numbers as constants. e.g. {ANIMATION_DELAY_MS: 350} + return {}; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(MDCFoundation, "defaultAdapter", { + get: function () { + // Classes extending MDCFoundation may choose to implement this getter in order to provide a convenient + // way of viewing the necessary methods of an adapter. In the future, this could also be used for adapter + // validation. + return {}; + }, + enumerable: true, + configurable: true + }); + MDCFoundation.prototype.init = function () { + // Subclasses should override this method to perform initialization routines (registering events, etc.) + }; + MDCFoundation.prototype.destroy = function () { + // Subclasses should override this method to perform de-initialization routines (de-registering events, etc.) + }; + return MDCFoundation; +}()); + +// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier. +/* harmony default export */ __webpack_exports__["default"] = (MDCFoundation); +//# sourceMappingURL=foundation.js.map + +/***/ }), + +/***/ "./node_modules/_@material_dom@1.1.0@@material/dom/ponyfill.js": +/*!*********************************************************************!*\ + !*** ./node_modules/_@material_dom@1.1.0@@material/dom/ponyfill.js ***! + \*********************************************************************/ +/*! exports provided: closest, matches */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return closest; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return matches; }); +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +/** + * @fileoverview A "ponyfill" is a polyfill that doesn't modify the global prototype chain. + * This makes ponyfills safer than traditional polyfills, especially for libraries like MDC. + */ +function closest(element, selector) { + if (element.closest) { + return element.closest(selector); + } + var el = element; + while (el) { + if (matches(el, selector)) { + return el; + } + el = el.parentElement; + } + return null; +} +function matches(element, selector) { + var nativeMatches = element.matches + || element.webkitMatchesSelector + || element.msMatchesSelector; + return nativeMatches.call(element, selector); +} +//# sourceMappingURL=ponyfill.js.map + +/***/ }), + +/***/ "./node_modules/_@material_ripple@2.3.0@@material/ripple/component.js": +/*!****************************************************************************!*\ + !*** ./node_modules/_@material_ripple@2.3.0@@material/ripple/component.js ***! + \****************************************************************************/ +/*! exports provided: MDCRipple */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRipple", function() { return MDCRipple; }); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/_tslib@1.9.3@tslib/tslib.es6.js"); +/* harmony import */ var _material_base_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @material/base/component */ "./node_modules/_@material_base@1.0.0@@material/base/component.js"); +/* harmony import */ var _material_dom_ponyfill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @material/dom/ponyfill */ "./node_modules/_@material_dom@1.1.0@@material/dom/ponyfill.js"); +/* harmony import */ var _foundation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/foundation.js"); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/util.js"); +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + + + + +var MDCRipple = /** @class */ (function (_super) { + tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MDCRipple, _super); + function MDCRipple() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.disabled = false; + return _this; + } + MDCRipple.attachTo = function (root, opts) { + if (opts === void 0) { opts = { isUnbounded: undefined }; } + var ripple = new MDCRipple(root); + // Only override unbounded behavior if option is explicitly specified + if (opts.isUnbounded !== undefined) { + ripple.unbounded = opts.isUnbounded; + } + return ripple; + }; + MDCRipple.createAdapter = function (instance) { + return { + addClass: function (className) { return instance.root_.classList.add(className); }, + browserSupportsCssVars: function () { return _util__WEBPACK_IMPORTED_MODULE_4__["supportsCssVariables"](window); }, + computeBoundingRect: function () { return instance.root_.getBoundingClientRect(); }, + containsEventTarget: function (target) { return instance.root_.contains(target); }, + deregisterDocumentInteractionHandler: function (evtType, handler) { + return document.documentElement.removeEventListener(evtType, handler, _util__WEBPACK_IMPORTED_MODULE_4__["applyPassive"]()); + }, + deregisterInteractionHandler: function (evtType, handler) { + return instance.root_.removeEventListener(evtType, handler, _util__WEBPACK_IMPORTED_MODULE_4__["applyPassive"]()); + }, + deregisterResizeHandler: function (handler) { return window.removeEventListener('resize', handler); }, + getWindowPageOffset: function () { return ({ x: window.pageXOffset, y: window.pageYOffset }); }, + isSurfaceActive: function () { return Object(_material_dom_ponyfill__WEBPACK_IMPORTED_MODULE_2__["matches"])(instance.root_, ':active'); }, + isSurfaceDisabled: function () { return Boolean(instance.disabled); }, + isUnbounded: function () { return Boolean(instance.unbounded); }, + registerDocumentInteractionHandler: function (evtType, handler) { + return document.documentElement.addEventListener(evtType, handler, _util__WEBPACK_IMPORTED_MODULE_4__["applyPassive"]()); + }, + registerInteractionHandler: function (evtType, handler) { + return instance.root_.addEventListener(evtType, handler, _util__WEBPACK_IMPORTED_MODULE_4__["applyPassive"]()); + }, + registerResizeHandler: function (handler) { return window.addEventListener('resize', handler); }, + removeClass: function (className) { return instance.root_.classList.remove(className); }, + updateCssVariable: function (varName, value) { return instance.root_.style.setProperty(varName, value); }, + }; + }; + Object.defineProperty(MDCRipple.prototype, "unbounded", { + get: function () { + return Boolean(this.unbounded_); + }, + set: function (unbounded) { + this.unbounded_ = Boolean(unbounded); + this.setUnbounded_(); + }, + enumerable: true, + configurable: true + }); + MDCRipple.prototype.activate = function () { + this.foundation_.activate(); + }; + MDCRipple.prototype.deactivate = function () { + this.foundation_.deactivate(); + }; + MDCRipple.prototype.layout = function () { + this.foundation_.layout(); + }; + MDCRipple.prototype.getDefaultFoundation = function () { + return new _foundation__WEBPACK_IMPORTED_MODULE_3__["MDCRippleFoundation"](MDCRipple.createAdapter(this)); + }; + MDCRipple.prototype.initialSyncWithDOM = function () { + var root = this.root_; + this.unbounded = 'mdcRippleIsUnbounded' in root.dataset; + }; + /** + * Closure Compiler throws an access control error when directly accessing a + * protected or private property inside a getter/setter, like unbounded above. + * By accessing the protected property inside a method, we solve that problem. + * That's why this function exists. + */ + MDCRipple.prototype.setUnbounded_ = function () { + this.foundation_.setUnbounded(Boolean(this.unbounded_)); + }; + return MDCRipple; +}(_material_base_component__WEBPACK_IMPORTED_MODULE_1__["MDCComponent"])); + +//# sourceMappingURL=component.js.map + +/***/ }), + +/***/ "./node_modules/_@material_ripple@2.3.0@@material/ripple/constants.js": +/*!****************************************************************************!*\ + !*** ./node_modules/_@material_ripple@2.3.0@@material/ripple/constants.js ***! + \****************************************************************************/ +/*! exports provided: cssClasses, strings, numbers */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cssClasses", function() { return cssClasses; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "strings", function() { return strings; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numbers", function() { return numbers; }); +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var cssClasses = { + // Ripple is a special case where the "root" component is really a "mixin" of sorts, + // given that it's an 'upgrade' to an existing component. That being said it is the root + // CSS class that all other CSS classes derive from. + BG_FOCUSED: 'mdc-ripple-upgraded--background-focused', + FG_ACTIVATION: 'mdc-ripple-upgraded--foreground-activation', + FG_DEACTIVATION: 'mdc-ripple-upgraded--foreground-deactivation', + ROOT: 'mdc-ripple-upgraded', + UNBOUNDED: 'mdc-ripple-upgraded--unbounded', +}; +var strings = { + VAR_FG_SCALE: '--mdc-ripple-fg-scale', + VAR_FG_SIZE: '--mdc-ripple-fg-size', + VAR_FG_TRANSLATE_END: '--mdc-ripple-fg-translate-end', + VAR_FG_TRANSLATE_START: '--mdc-ripple-fg-translate-start', + VAR_LEFT: '--mdc-ripple-left', + VAR_TOP: '--mdc-ripple-top', +}; +var numbers = { + DEACTIVATION_TIMEOUT_MS: 225, + FG_DEACTIVATION_MS: 150, + INITIAL_ORIGIN_SCALE: 0.6, + PADDING: 10, + TAP_DELAY_MS: 300, +}; +//# sourceMappingURL=constants.js.map + +/***/ }), + +/***/ "./node_modules/_@material_ripple@2.3.0@@material/ripple/foundation.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/_@material_ripple@2.3.0@@material/ripple/foundation.js ***! + \*****************************************************************************/ +/*! exports provided: MDCRippleFoundation, default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRippleFoundation", function() { return MDCRippleFoundation; }); +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/_tslib@1.9.3@tslib/tslib.es6.js"); +/* harmony import */ var _material_base_foundation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @material/base/foundation */ "./node_modules/_@material_base@1.0.0@@material/base/foundation.js"); +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/constants.js"); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/util.js"); +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + + + +// Activation events registered on the root element of each instance for activation +var ACTIVATION_EVENT_TYPES = [ + 'touchstart', 'pointerdown', 'mousedown', 'keydown', +]; +// Deactivation events registered on documentElement when a pointer-related down event occurs +var POINTER_DEACTIVATION_EVENT_TYPES = [ + 'touchend', 'pointerup', 'mouseup', 'contextmenu', +]; +// simultaneous nested activations +var activatedTargets = []; +var MDCRippleFoundation = /** @class */ (function (_super) { + tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MDCRippleFoundation, _super); + function MDCRippleFoundation(adapter) { + var _this = _super.call(this, tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, MDCRippleFoundation.defaultAdapter, adapter)) || this; + _this.activationAnimationHasEnded_ = false; + _this.activationTimer_ = 0; + _this.fgDeactivationRemovalTimer_ = 0; + _this.fgScale_ = '0'; + _this.frame_ = { width: 0, height: 0 }; + _this.initialSize_ = 0; + _this.layoutFrame_ = 0; + _this.maxRadius_ = 0; + _this.unboundedCoords_ = { left: 0, top: 0 }; + _this.activationState_ = _this.defaultActivationState_(); + _this.activationTimerCallback_ = function () { + _this.activationAnimationHasEnded_ = true; + _this.runDeactivationUXLogicIfReady_(); + }; + _this.activateHandler_ = function (e) { return _this.activate_(e); }; + _this.deactivateHandler_ = function () { return _this.deactivate_(); }; + _this.focusHandler_ = function () { return _this.handleFocus(); }; + _this.blurHandler_ = function () { return _this.handleBlur(); }; + _this.resizeHandler_ = function () { return _this.layout(); }; + return _this; + } + Object.defineProperty(MDCRippleFoundation, "cssClasses", { + get: function () { + return _constants__WEBPACK_IMPORTED_MODULE_2__["cssClasses"]; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(MDCRippleFoundation, "strings", { + get: function () { + return _constants__WEBPACK_IMPORTED_MODULE_2__["strings"]; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(MDCRippleFoundation, "numbers", { + get: function () { + return _constants__WEBPACK_IMPORTED_MODULE_2__["numbers"]; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(MDCRippleFoundation, "defaultAdapter", { + get: function () { + return { + addClass: function () { return undefined; }, + browserSupportsCssVars: function () { return true; }, + computeBoundingRect: function () { return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }); }, + containsEventTarget: function () { return true; }, + deregisterDocumentInteractionHandler: function () { return undefined; }, + deregisterInteractionHandler: function () { return undefined; }, + deregisterResizeHandler: function () { return undefined; }, + getWindowPageOffset: function () { return ({ x: 0, y: 0 }); }, + isSurfaceActive: function () { return true; }, + isSurfaceDisabled: function () { return true; }, + isUnbounded: function () { return true; }, + registerDocumentInteractionHandler: function () { return undefined; }, + registerInteractionHandler: function () { return undefined; }, + registerResizeHandler: function () { return undefined; }, + removeClass: function () { return undefined; }, + updateCssVariable: function () { return undefined; }, + }; + }, + enumerable: true, + configurable: true + }); + MDCRippleFoundation.prototype.init = function () { + var _this = this; + var supportsPressRipple = this.supportsPressRipple_(); + this.registerRootHandlers_(supportsPressRipple); + if (supportsPressRipple) { + var _a = MDCRippleFoundation.cssClasses, ROOT_1 = _a.ROOT, UNBOUNDED_1 = _a.UNBOUNDED; + requestAnimationFrame(function () { + _this.adapter_.addClass(ROOT_1); + if (_this.adapter_.isUnbounded()) { + _this.adapter_.addClass(UNBOUNDED_1); + // Unbounded ripples need layout logic applied immediately to set coordinates for both shade and ripple + _this.layoutInternal_(); + } + }); + } + }; + MDCRippleFoundation.prototype.destroy = function () { + var _this = this; + if (this.supportsPressRipple_()) { + if (this.activationTimer_) { + clearTimeout(this.activationTimer_); + this.activationTimer_ = 0; + this.adapter_.removeClass(MDCRippleFoundation.cssClasses.FG_ACTIVATION); + } + if (this.fgDeactivationRemovalTimer_) { + clearTimeout(this.fgDeactivationRemovalTimer_); + this.fgDeactivationRemovalTimer_ = 0; + this.adapter_.removeClass(MDCRippleFoundation.cssClasses.FG_DEACTIVATION); + } + var _a = MDCRippleFoundation.cssClasses, ROOT_2 = _a.ROOT, UNBOUNDED_2 = _a.UNBOUNDED; + requestAnimationFrame(function () { + _this.adapter_.removeClass(ROOT_2); + _this.adapter_.removeClass(UNBOUNDED_2); + _this.removeCssVars_(); + }); + } + this.deregisterRootHandlers_(); + this.deregisterDeactivationHandlers_(); + }; + /** + * @param evt Optional event containing position information. + */ + MDCRippleFoundation.prototype.activate = function (evt) { + this.activate_(evt); + }; + MDCRippleFoundation.prototype.deactivate = function () { + this.deactivate_(); + }; + MDCRippleFoundation.prototype.layout = function () { + var _this = this; + if (this.layoutFrame_) { + cancelAnimationFrame(this.layoutFrame_); + } + this.layoutFrame_ = requestAnimationFrame(function () { + _this.layoutInternal_(); + _this.layoutFrame_ = 0; + }); + }; + MDCRippleFoundation.prototype.setUnbounded = function (unbounded) { + var UNBOUNDED = MDCRippleFoundation.cssClasses.UNBOUNDED; + if (unbounded) { + this.adapter_.addClass(UNBOUNDED); + } + else { + this.adapter_.removeClass(UNBOUNDED); + } + }; + MDCRippleFoundation.prototype.handleFocus = function () { + var _this = this; + requestAnimationFrame(function () { + return _this.adapter_.addClass(MDCRippleFoundation.cssClasses.BG_FOCUSED); + }); + }; + MDCRippleFoundation.prototype.handleBlur = function () { + var _this = this; + requestAnimationFrame(function () { + return _this.adapter_.removeClass(MDCRippleFoundation.cssClasses.BG_FOCUSED); + }); + }; + /** + * We compute this property so that we are not querying information about the client + * until the point in time where the foundation requests it. This prevents scenarios where + * client-side feature-detection may happen too early, such as when components are rendered on the server + * and then initialized at mount time on the client. + */ + MDCRippleFoundation.prototype.supportsPressRipple_ = function () { + return this.adapter_.browserSupportsCssVars(); + }; + MDCRippleFoundation.prototype.defaultActivationState_ = function () { + return { + activationEvent: undefined, + hasDeactivationUXRun: false, + isActivated: false, + isProgrammatic: false, + wasActivatedByPointer: false, + wasElementMadeActive: false, + }; + }; + /** + * supportsPressRipple Passed from init to save a redundant function call + */ + MDCRippleFoundation.prototype.registerRootHandlers_ = function (supportsPressRipple) { + var _this = this; + if (supportsPressRipple) { + ACTIVATION_EVENT_TYPES.forEach(function (evtType) { + _this.adapter_.registerInteractionHandler(evtType, _this.activateHandler_); + }); + if (this.adapter_.isUnbounded()) { + this.adapter_.registerResizeHandler(this.resizeHandler_); + } + } + this.adapter_.registerInteractionHandler('focus', this.focusHandler_); + this.adapter_.registerInteractionHandler('blur', this.blurHandler_); + }; + MDCRippleFoundation.prototype.registerDeactivationHandlers_ = function (evt) { + var _this = this; + if (evt.type === 'keydown') { + this.adapter_.registerInteractionHandler('keyup', this.deactivateHandler_); + } + else { + POINTER_DEACTIVATION_EVENT_TYPES.forEach(function (evtType) { + _this.adapter_.registerDocumentInteractionHandler(evtType, _this.deactivateHandler_); + }); + } + }; + MDCRippleFoundation.prototype.deregisterRootHandlers_ = function () { + var _this = this; + ACTIVATION_EVENT_TYPES.forEach(function (evtType) { + _this.adapter_.deregisterInteractionHandler(evtType, _this.activateHandler_); + }); + this.adapter_.deregisterInteractionHandler('focus', this.focusHandler_); + this.adapter_.deregisterInteractionHandler('blur', this.blurHandler_); + if (this.adapter_.isUnbounded()) { + this.adapter_.deregisterResizeHandler(this.resizeHandler_); + } + }; + MDCRippleFoundation.prototype.deregisterDeactivationHandlers_ = function () { + var _this = this; + this.adapter_.deregisterInteractionHandler('keyup', this.deactivateHandler_); + POINTER_DEACTIVATION_EVENT_TYPES.forEach(function (evtType) { + _this.adapter_.deregisterDocumentInteractionHandler(evtType, _this.deactivateHandler_); + }); + }; + MDCRippleFoundation.prototype.removeCssVars_ = function () { + var _this = this; + var rippleStrings = MDCRippleFoundation.strings; + var keys = Object.keys(rippleStrings); + keys.forEach(function (key) { + if (key.indexOf('VAR_') === 0) { + _this.adapter_.updateCssVariable(rippleStrings[key], null); + } + }); + }; + MDCRippleFoundation.prototype.activate_ = function (evt) { + var _this = this; + if (this.adapter_.isSurfaceDisabled()) { + return; + } + var activationState = this.activationState_; + if (activationState.isActivated) { + return; + } + // Avoid reacting to follow-on events fired by touch device after an already-processed user interaction + var previousActivationEvent = this.previousActivationEvent_; + var isSameInteraction = previousActivationEvent && evt !== undefined && previousActivationEvent.type !== evt.type; + if (isSameInteraction) { + return; + } + activationState.isActivated = true; + activationState.isProgrammatic = evt === undefined; + activationState.activationEvent = evt; + activationState.wasActivatedByPointer = activationState.isProgrammatic ? false : evt !== undefined && (evt.type === 'mousedown' || evt.type === 'touchstart' || evt.type === 'pointerdown'); + var hasActivatedChild = evt !== undefined && activatedTargets.length > 0 && activatedTargets.some(function (target) { return _this.adapter_.containsEventTarget(target); }); + if (hasActivatedChild) { + // Immediately reset activation state, while preserving logic that prevents touch follow-on events + this.resetActivationState_(); + return; + } + if (evt !== undefined) { + activatedTargets.push(evt.target); + this.registerDeactivationHandlers_(evt); + } + activationState.wasElementMadeActive = this.checkElementMadeActive_(evt); + if (activationState.wasElementMadeActive) { + this.animateActivation_(); + } + requestAnimationFrame(function () { + // Reset array on next frame after the current event has had a chance to bubble to prevent ancestor ripples + activatedTargets = []; + if (!activationState.wasElementMadeActive + && evt !== undefined + && (evt.key === ' ' || evt.keyCode === 32)) { + // If space was pressed, try again within an rAF call to detect :active, because different UAs report + // active states inconsistently when they're called within event handling code: + // - https://bugs.chromium.org/p/chromium/issues/detail?id=635971 + // - https://bugzilla.mozilla.org/show_bug.cgi?id=1293741 + // We try first outside rAF to support Edge, which does not exhibit this problem, but will crash if a CSS + // variable is set within a rAF callback for a submit button interaction (#2241). + activationState.wasElementMadeActive = _this.checkElementMadeActive_(evt); + if (activationState.wasElementMadeActive) { + _this.animateActivation_(); + } + } + if (!activationState.wasElementMadeActive) { + // Reset activation state immediately if element was not made active. + _this.activationState_ = _this.defaultActivationState_(); + } + }); + }; + MDCRippleFoundation.prototype.checkElementMadeActive_ = function (evt) { + return (evt !== undefined && evt.type === 'keydown') ? this.adapter_.isSurfaceActive() : true; + }; + MDCRippleFoundation.prototype.animateActivation_ = function () { + var _this = this; + var _a = MDCRippleFoundation.strings, VAR_FG_TRANSLATE_START = _a.VAR_FG_TRANSLATE_START, VAR_FG_TRANSLATE_END = _a.VAR_FG_TRANSLATE_END; + var _b = MDCRippleFoundation.cssClasses, FG_DEACTIVATION = _b.FG_DEACTIVATION, FG_ACTIVATION = _b.FG_ACTIVATION; + var DEACTIVATION_TIMEOUT_MS = MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS; + this.layoutInternal_(); + var translateStart = ''; + var translateEnd = ''; + if (!this.adapter_.isUnbounded()) { + var _c = this.getFgTranslationCoordinates_(), startPoint = _c.startPoint, endPoint = _c.endPoint; + translateStart = startPoint.x + "px, " + startPoint.y + "px"; + translateEnd = endPoint.x + "px, " + endPoint.y + "px"; + } + this.adapter_.updateCssVariable(VAR_FG_TRANSLATE_START, translateStart); + this.adapter_.updateCssVariable(VAR_FG_TRANSLATE_END, translateEnd); + // Cancel any ongoing activation/deactivation animations + clearTimeout(this.activationTimer_); + clearTimeout(this.fgDeactivationRemovalTimer_); + this.rmBoundedActivationClasses_(); + this.adapter_.removeClass(FG_DEACTIVATION); + // Force layout in order to re-trigger the animation. + this.adapter_.computeBoundingRect(); + this.adapter_.addClass(FG_ACTIVATION); + this.activationTimer_ = setTimeout(function () { return _this.activationTimerCallback_(); }, DEACTIVATION_TIMEOUT_MS); + }; + MDCRippleFoundation.prototype.getFgTranslationCoordinates_ = function () { + var _a = this.activationState_, activationEvent = _a.activationEvent, wasActivatedByPointer = _a.wasActivatedByPointer; + var startPoint; + if (wasActivatedByPointer) { + startPoint = Object(_util__WEBPACK_IMPORTED_MODULE_3__["getNormalizedEventCoords"])(activationEvent, this.adapter_.getWindowPageOffset(), this.adapter_.computeBoundingRect()); + } + else { + startPoint = { + x: this.frame_.width / 2, + y: this.frame_.height / 2, + }; + } + // Center the element around the start point. + startPoint = { + x: startPoint.x - (this.initialSize_ / 2), + y: startPoint.y - (this.initialSize_ / 2), + }; + var endPoint = { + x: (this.frame_.width / 2) - (this.initialSize_ / 2), + y: (this.frame_.height / 2) - (this.initialSize_ / 2), + }; + return { startPoint: startPoint, endPoint: endPoint }; + }; + MDCRippleFoundation.prototype.runDeactivationUXLogicIfReady_ = function () { + var _this = this; + // This method is called both when a pointing device is released, and when the activation animation ends. + // The deactivation animation should only run after both of those occur. + var FG_DEACTIVATION = MDCRippleFoundation.cssClasses.FG_DEACTIVATION; + var _a = this.activationState_, hasDeactivationUXRun = _a.hasDeactivationUXRun, isActivated = _a.isActivated; + var activationHasEnded = hasDeactivationUXRun || !isActivated; + if (activationHasEnded && this.activationAnimationHasEnded_) { + this.rmBoundedActivationClasses_(); + this.adapter_.addClass(FG_DEACTIVATION); + this.fgDeactivationRemovalTimer_ = setTimeout(function () { + _this.adapter_.removeClass(FG_DEACTIVATION); + }, _constants__WEBPACK_IMPORTED_MODULE_2__["numbers"].FG_DEACTIVATION_MS); + } + }; + MDCRippleFoundation.prototype.rmBoundedActivationClasses_ = function () { + var FG_ACTIVATION = MDCRippleFoundation.cssClasses.FG_ACTIVATION; + this.adapter_.removeClass(FG_ACTIVATION); + this.activationAnimationHasEnded_ = false; + this.adapter_.computeBoundingRect(); + }; + MDCRippleFoundation.prototype.resetActivationState_ = function () { + var _this = this; + this.previousActivationEvent_ = this.activationState_.activationEvent; + this.activationState_ = this.defaultActivationState_(); + // Touch devices may fire additional events for the same interaction within a short time. + // Store the previous event until it's safe to assume that subsequent events are for new interactions. + setTimeout(function () { return _this.previousActivationEvent_ = undefined; }, MDCRippleFoundation.numbers.TAP_DELAY_MS); + }; + MDCRippleFoundation.prototype.deactivate_ = function () { + var _this = this; + var activationState = this.activationState_; + // This can happen in scenarios such as when you have a keyup event that blurs the element. + if (!activationState.isActivated) { + return; + } + var state = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, activationState); + if (activationState.isProgrammatic) { + requestAnimationFrame(function () { return _this.animateDeactivation_(state); }); + this.resetActivationState_(); + } + else { + this.deregisterDeactivationHandlers_(); + requestAnimationFrame(function () { + _this.activationState_.hasDeactivationUXRun = true; + _this.animateDeactivation_(state); + _this.resetActivationState_(); + }); + } + }; + MDCRippleFoundation.prototype.animateDeactivation_ = function (_a) { + var wasActivatedByPointer = _a.wasActivatedByPointer, wasElementMadeActive = _a.wasElementMadeActive; + if (wasActivatedByPointer || wasElementMadeActive) { + this.runDeactivationUXLogicIfReady_(); + } + }; + MDCRippleFoundation.prototype.layoutInternal_ = function () { + var _this = this; + this.frame_ = this.adapter_.computeBoundingRect(); + var maxDim = Math.max(this.frame_.height, this.frame_.width); + // Surface diameter is treated differently for unbounded vs. bounded ripples. + // Unbounded ripple diameter is calculated smaller since the surface is expected to already be padded appropriately + // to extend the hitbox, and the ripple is expected to meet the edges of the padded hitbox (which is typically + // square). Bounded ripples, on the other hand, are fully expected to expand beyond the surface's longest diameter + // (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via + // `overflow: hidden`. + var getBoundedRadius = function () { + var hypotenuse = Math.sqrt(Math.pow(_this.frame_.width, 2) + Math.pow(_this.frame_.height, 2)); + return hypotenuse + MDCRippleFoundation.numbers.PADDING; + }; + this.maxRadius_ = this.adapter_.isUnbounded() ? maxDim : getBoundedRadius(); + // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform + this.initialSize_ = Math.floor(maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE); + this.fgScale_ = "" + this.maxRadius_ / this.initialSize_; + this.updateLayoutCssVars_(); + }; + MDCRippleFoundation.prototype.updateLayoutCssVars_ = function () { + var _a = MDCRippleFoundation.strings, VAR_FG_SIZE = _a.VAR_FG_SIZE, VAR_LEFT = _a.VAR_LEFT, VAR_TOP = _a.VAR_TOP, VAR_FG_SCALE = _a.VAR_FG_SCALE; + this.adapter_.updateCssVariable(VAR_FG_SIZE, this.initialSize_ + "px"); + this.adapter_.updateCssVariable(VAR_FG_SCALE, this.fgScale_); + if (this.adapter_.isUnbounded()) { + this.unboundedCoords_ = { + left: Math.round((this.frame_.width / 2) - (this.initialSize_ / 2)), + top: Math.round((this.frame_.height / 2) - (this.initialSize_ / 2)), + }; + this.adapter_.updateCssVariable(VAR_LEFT, this.unboundedCoords_.left + "px"); + this.adapter_.updateCssVariable(VAR_TOP, this.unboundedCoords_.top + "px"); + } + }; + return MDCRippleFoundation; +}(_material_base_foundation__WEBPACK_IMPORTED_MODULE_1__["MDCFoundation"])); + +// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier. +/* harmony default export */ __webpack_exports__["default"] = (MDCRippleFoundation); +//# sourceMappingURL=foundation.js.map + +/***/ }), + +/***/ "./node_modules/_@material_ripple@2.3.0@@material/ripple/index.js": +/*!************************************************************************!*\ + !*** ./node_modules/_@material_ripple@2.3.0@@material/ripple/index.js ***! + \************************************************************************/ +/*! exports provided: util, MDCRipple, cssClasses, strings, numbers, MDCRippleFoundation */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/util.js"); +/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return _util__WEBPACK_IMPORTED_MODULE_0__; }); +/* harmony import */ var _component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./component */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/component.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MDCRipple", function() { return _component__WEBPACK_IMPORTED_MODULE_1__["MDCRipple"]; }); + +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/constants.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cssClasses", function() { return _constants__WEBPACK_IMPORTED_MODULE_2__["cssClasses"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "strings", function() { return _constants__WEBPACK_IMPORTED_MODULE_2__["strings"]; }); + +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "numbers", function() { return _constants__WEBPACK_IMPORTED_MODULE_2__["numbers"]; }); + +/* harmony import */ var _foundation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/foundation.js"); +/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MDCRippleFoundation", function() { return _foundation__WEBPACK_IMPORTED_MODULE_3__["MDCRippleFoundation"]; }); + +/** + * @license + * Copyright 2019 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + + + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/_@material_ripple@2.3.0@@material/ripple/util.js": +/*!***********************************************************************!*\ + !*** ./node_modules/_@material_ripple@2.3.0@@material/ripple/util.js ***! + \***********************************************************************/ +/*! exports provided: supportsCssVariables, applyPassive, getNormalizedEventCoords */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsCssVariables", function() { return supportsCssVariables; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyPassive", function() { return applyPassive; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNormalizedEventCoords", function() { return getNormalizedEventCoords; }); +/** + * Stores result from supportsCssVariables to avoid redundant processing to + * detect CSS custom variable support. + */ +var supportsCssVariables_; +/** + * Stores result from applyPassive to avoid redundant processing to detect + * passive event listener support. + */ +var supportsPassive_; +function detectEdgePseudoVarBug(windowObj) { + // Detect versions of Edge with buggy var() support + // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11495448/ + var document = windowObj.document; + var node = document.createElement('div'); + node.className = 'mdc-ripple-surface--test-edge-var-bug'; + document.body.appendChild(node); + // The bug exists if ::before style ends up propagating to the parent element. + // Additionally, getComputedStyle returns null in iframes with display: "none" in Firefox, + // but Firefox is known to support CSS custom properties correctly. + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397 + var computedStyle = windowObj.getComputedStyle(node); + var hasPseudoVarBug = computedStyle !== null && computedStyle.borderTopStyle === 'solid'; + if (node.parentNode) { + node.parentNode.removeChild(node); + } + return hasPseudoVarBug; +} +function supportsCssVariables(windowObj, forceRefresh) { + if (forceRefresh === void 0) { forceRefresh = false; } + var CSS = windowObj.CSS; + var supportsCssVars = supportsCssVariables_; + if (typeof supportsCssVariables_ === 'boolean' && !forceRefresh) { + return supportsCssVariables_; + } + var supportsFunctionPresent = CSS && typeof CSS.supports === 'function'; + if (!supportsFunctionPresent) { + return false; + } + var explicitlySupportsCssVars = CSS.supports('--css-vars', 'yes'); + // See: https://bugs.webkit.org/show_bug.cgi?id=154669 + // See: README section on Safari + var weAreFeatureDetectingSafari10plus = (CSS.supports('(--css-vars: yes)') && + CSS.supports('color', '#00000000')); + if (explicitlySupportsCssVars || weAreFeatureDetectingSafari10plus) { + supportsCssVars = !detectEdgePseudoVarBug(windowObj); + } + else { + supportsCssVars = false; + } + if (!forceRefresh) { + supportsCssVariables_ = supportsCssVars; + } + return supportsCssVars; +} +/** + * Determine whether the current browser supports passive event listeners, and + * if so, use them. + */ +function applyPassive(globalObj, forceRefresh) { + if (globalObj === void 0) { globalObj = window; } + if (forceRefresh === void 0) { forceRefresh = false; } + if (supportsPassive_ === undefined || forceRefresh) { + var isSupported_1 = false; + try { + globalObj.document.addEventListener('test', function () { return undefined; }, { + get passive() { + isSupported_1 = true; + return isSupported_1; + }, + }); + } + catch (e) { + } // tslint:disable-line:no-empty cannot throw error due to tests. tslint also disables console.log. + supportsPassive_ = isSupported_1; + } + return supportsPassive_ ? { passive: true } : false; +} +function getNormalizedEventCoords(evt, pageOffset, clientRect) { + if (!evt) { + return { x: 0, y: 0 }; + } + var x = pageOffset.x, y = pageOffset.y; + var documentX = x + clientRect.left; + var documentY = y + clientRect.top; + var normalizedX; + var normalizedY; + // Determine touch point relative to the ripple container. + if (evt.type === 'touchstart') { + var touchEvent = evt; + normalizedX = touchEvent.changedTouches[0].pageX - documentX; + normalizedY = touchEvent.changedTouches[0].pageY - documentY; + } + else { + var mouseEvent = evt; + normalizedX = mouseEvent.pageX - documentX; + normalizedY = mouseEvent.pageY - documentY; + } + return { x: normalizedX, y: normalizedY }; +} +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/button/index.scss": +/*!*************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./src/button/index.scss ***! + \*************************************************************************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +exports = module.exports = __webpack_require__(/*! ../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js")(false); +// imports + + +// module +exports.push([module.i, ".mdc-button {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 0.875rem;\n line-height: 2.25rem;\n font-weight: 500;\n letter-spacing: 0.08929em;\n text-decoration: none;\n text-transform: uppercase;\n padding: 0 8px 0 8px;\n display: inline-flex;\n position: relative;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: 64px;\n height: 36px;\n border: none;\n outline: none;\n /* @alternate */\n line-height: inherit;\n user-select: none;\n -webkit-appearance: none;\n overflow: hidden;\n vertical-align: middle;\n border-radius: 4px; }\n .mdc-button::-moz-focus-inner {\n padding: 0;\n border: 0; }\n .mdc-button:active {\n outline: none; }\n .mdc-button:hover {\n cursor: pointer; }\n .mdc-button:disabled {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.37);\n cursor: default;\n pointer-events: none; }\n .mdc-button.mdc-button--dense {\n border-radius: 4px; }\n .mdc-button:not(:disabled) {\n background-color: transparent; }\n .mdc-button .mdc-button__icon {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 8px;\n display: inline-block;\n width: 18px;\n height: 18px;\n font-size: 18px;\n vertical-align: top; }\n [dir=\"rtl\"] .mdc-button .mdc-button__icon, .mdc-button .mdc-button__icon[dir=\"rtl\"] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 0; }\n .mdc-button:not(:disabled) {\n color: #0072d9;\n /* @alternate */\n color: var(--mdc-theme-primary, #0072d9); }\n\n.mdc-button__label + .mdc-button__icon {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 0; }\n [dir=\"rtl\"] .mdc-button__label + .mdc-button__icon, .mdc-button__label + .mdc-button__icon[dir=\"rtl\"] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 8px; }\n\nsvg.mdc-button__icon {\n fill: currentColor; }\n\n.mdc-button--raised .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__icon,\n.mdc-button--outlined .mdc-button__icon {\n /* @noflip */\n margin-left: -4px;\n /* @noflip */\n margin-right: 8px; }\n [dir=\"rtl\"] .mdc-button--raised .mdc-button__icon, .mdc-button--raised .mdc-button__icon[dir=\"rtl\"], [dir=\"rtl\"]\n .mdc-button--unelevated .mdc-button__icon,\n .mdc-button--unelevated .mdc-button__icon[dir=\"rtl\"], [dir=\"rtl\"]\n .mdc-button--outlined .mdc-button__icon,\n .mdc-button--outlined .mdc-button__icon[dir=\"rtl\"] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: -4px; }\n\n.mdc-button--raised .mdc-button__label + .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__label + .mdc-button__icon,\n.mdc-button--outlined .mdc-button__label + .mdc-button__icon {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: -4px; }\n [dir=\"rtl\"] .mdc-button--raised .mdc-button__label + .mdc-button__icon, .mdc-button--raised .mdc-button__label + .mdc-button__icon[dir=\"rtl\"], [dir=\"rtl\"]\n .mdc-button--unelevated .mdc-button__label + .mdc-button__icon,\n .mdc-button--unelevated .mdc-button__label + .mdc-button__icon[dir=\"rtl\"], [dir=\"rtl\"]\n .mdc-button--outlined .mdc-button__label + .mdc-button__icon,\n .mdc-button--outlined .mdc-button__label + .mdc-button__icon[dir=\"rtl\"] {\n /* @noflip */\n margin-left: -4px;\n /* @noflip */\n margin-right: 8px; }\n\n.mdc-button--raised,\n.mdc-button--unelevated {\n padding: 0 16px 0 16px; }\n .mdc-button--raised:disabled,\n .mdc-button--unelevated:disabled {\n background-color: rgba(0, 0, 0, 0.12);\n color: rgba(0, 0, 0, 0.37); }\n .mdc-button--raised:not(:disabled),\n .mdc-button--unelevated:not(:disabled) {\n background-color: #0072d9; }\n @supports not (-ms-ime-align: auto) {\n .mdc-button--raised:not(:disabled),\n .mdc-button--unelevated:not(:disabled) {\n /* @alternate */\n background-color: var(--mdc-theme-primary, #0072d9); } }\n .mdc-button--raised:not(:disabled),\n .mdc-button--unelevated:not(:disabled) {\n color: #ffffff;\n /* @alternate */\n color: var(--mdc-theme-on-primary, #ffffff); }\n\n.mdc-button--raised {\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); }\n .mdc-button--raised:hover, .mdc-button--raised:focus {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); }\n .mdc-button--raised:active {\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); }\n .mdc-button--raised:disabled {\n box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12); }\n\n.mdc-button--outlined {\n border-style: solid;\n padding: 0 15px 0 15px;\n border-width: 1px; }\n .mdc-button--outlined:disabled {\n border-color: rgba(0, 0, 0, 0.37); }\n .mdc-button--outlined:not(:disabled) {\n border-color: #0072d9;\n /* @alternate */\n border-color: var(--mdc-theme-primary, #0072d9); }\n\n.mdc-button--dense {\n height: 32px;\n font-size: .8125rem; }\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1); }\n to {\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); } }\n\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n animation-timing-function: linear;\n opacity: 0; }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0); } }\n\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0); }\n to {\n opacity: 0; } }\n\n.mdc-ripple-surface--test-edge-var-bug {\n --mdc-ripple-surface-test-edge-var: 1px solid #000;\n visibility: hidden; }\n .mdc-ripple-surface--test-edge-var-bug::before {\n border: var(--mdc-ripple-surface-test-edge-var); }\n\n.mdc-button {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n .mdc-button::before, .mdc-button::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: \"\"; }\n .mdc-button::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1; }\n .mdc-button.mdc-ripple-upgraded::before {\n transform: scale(var(--mdc-ripple-fg-scale, 1)); }\n .mdc-button.mdc-ripple-upgraded::after {\n top: 0;\n /* @noflip */\n left: 0;\n transform: scale(0);\n transform-origin: center center; }\n .mdc-button.mdc-ripple-upgraded--unbounded::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0); }\n .mdc-button.mdc-ripple-upgraded--foreground-activation::after {\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards; }\n .mdc-button.mdc-ripple-upgraded--foreground-deactivation::after {\n animation: mdc-ripple-fg-opacity-out 150ms;\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); }\n .mdc-button::before, .mdc-button::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%; }\n .mdc-button.mdc-ripple-upgraded::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%); }\n .mdc-button::before, .mdc-button::after {\n background-color: #0072d9; }\n @supports not (-ms-ime-align: auto) {\n .mdc-button::before, .mdc-button::after {\n /* @alternate */\n background-color: var(--mdc-theme-primary, #0072d9); } }\n .mdc-button:hover::before {\n opacity: 0.04; }\n .mdc-button:not(.mdc-ripple-upgraded):focus::before, .mdc-button.mdc-ripple-upgraded--background-focused::before {\n transition-duration: 75ms;\n opacity: 0.12; }\n .mdc-button:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear; }\n .mdc-button:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12; }\n .mdc-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: 0.12; }\n\n.mdc-button--raised::before, .mdc-button--raised::after,\n.mdc-button--unelevated::before,\n.mdc-button--unelevated::after {\n background-color: #ffffff; }\n @supports not (-ms-ime-align: auto) {\n .mdc-button--raised::before, .mdc-button--raised::after,\n .mdc-button--unelevated::before,\n .mdc-button--unelevated::after {\n /* @alternate */\n background-color: var(--mdc-theme-on-primary, #ffffff); } }\n\n.mdc-button--raised:hover::before,\n.mdc-button--unelevated:hover::before {\n opacity: 0.08; }\n\n.mdc-button--raised:not(.mdc-ripple-upgraded):focus::before, .mdc-button--raised.mdc-ripple-upgraded--background-focused::before,\n.mdc-button--unelevated:not(.mdc-ripple-upgraded):focus::before,\n.mdc-button--unelevated.mdc-ripple-upgraded--background-focused::before {\n transition-duration: 75ms;\n opacity: 0.24; }\n\n.mdc-button--raised:not(.mdc-ripple-upgraded)::after,\n.mdc-button--unelevated:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear; }\n\n.mdc-button--raised:not(.mdc-ripple-upgraded):active::after,\n.mdc-button--unelevated:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.24; }\n\n.mdc-button--raised.mdc-ripple-upgraded,\n.mdc-button--unelevated.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: 0.24; }\n\n.m-icon {\n margin-right: 0.6em; }\n\n.material-icons {\n font-family: 'Material Icons';\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-feature-settings: 'liga';\n -webkit-font-smoothing: antialiased; }\n", ""]); + +// exports + + +/***/ }), + +/***/ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js": +/*!*******************************************************************!*\ + !*** ./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/* + 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(typeof id === "number") + 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(typeof item[0] !== "number" || !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 + ' */'; +} + + +/***/ }), + +/***/ "./node_modules/_tslib@1.9.3@tslib/tslib.es6.js": +/*!******************************************************!*\ + !*** ./node_modules/_tslib@1.9.3@tslib/tslib.es6.js ***! + \******************************************************/ +/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; }); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); +}; + +function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + } + return __assign.apply(this, arguments); +} + +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +} + +function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +function __param(paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +} + +function __metadata(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); +} + +function __awaiter(thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +function __exportStar(m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} + +function __values(o) { + var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; + if (m) return m.call(o); + return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; +} + +function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +} + +function __spread() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; +} + +function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); +} + +function __asyncGenerator(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +} + +function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } +} + +function __asyncValues(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } +} + +function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; + +function __importStar(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result.default = mod; + return result; +} + +function __importDefault(mod) { + return (mod && mod.__esModule) ? mod : { default: mod }; +} + + +/***/ }), + +/***/ "./src/button/index.scss": +/*!*******************************!*\ + !*** ./src/button/index.scss ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + + + var result = __webpack_require__(/*! !../../node_modules/_css-loader@1.0.1@css-loader!../../node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!../../node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./index.scss */ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/button/index.scss"); + + if (typeof result === "string") { + module.exports = result; + } else { + module.exports = result.toString(); + } + + +/***/ }), + +/***/ "./src/button/index.tsx": +/*!******************************!*\ + !*** ./src/button/index.tsx ***! + \******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var omi_1 = __webpack_require__(/*! omi */ "omi"); +var css = __webpack_require__(/*! ./index.scss */ "./src/button/index.scss"); +var ripple_1 = __webpack_require__(/*! @material/ripple */ "./node_modules/_@material_ripple@2.3.0@@material/ripple/index.js"); +__webpack_require__(/*! ../icon */ "./src/icon/index.js"); +//@ts-ignore +__webpack_require__(/*! ../theme.ts */ "./src/theme.ts"); +var Button = /** @class */ (function (_super) { + __extends(Button, _super); + function Button() { + return _super !== null && _super.apply(this, arguments) || this; + } + Button.prototype.installed = function () { + if (this.props.ripple) { + new ripple_1.MDCRipple(this.shadowRoot.querySelector('.mdc-button')); + } + }; + Button.prototype.render = function (props) { + return (omi_1.h("button", __assign({}, omi_1.extractClass(props, 'mdc-button', { + 'mdc-button--dense': props.dense, + 'mdc-button--raised': props.raised, + 'mdc-button--unelevated': props.unelevated, + 'mdc-button--outlined': props.outlined + })), + (props.icon) && omi_1.h("i", { class: "material-icons mdc-button__icon" }, props.icon), + (props.svgIcon) && omi_1.h("m-icon", __assign({ class: 'm-icon' }, props.svgIcon)), + omi_1.h("span", { class: "mdc-button__label" }, + omi_1.h("slot", null)))); + }; + Button.css = css; + Button.defaultProps = { + ripple: true + }; + Button.propTypes = { + ripple: Boolean, + raised: Boolean, + dense: Boolean, + unelevated: Boolean, + outlined: Boolean, + svgIcon: Object, + icon: String + }; + Button = __decorate([ + omi_1.tag('m-button') + ], Button); + return Button; +}(omi_1.WeElement)); +exports.default = Button; + + +/***/ }), + +/***/ "./src/icon/index.js": +/*!***************************!*\ + !*** ./src/icon/index.js ***! + \***************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +(function webpackUniversalModuleDefinition(root, factory) { + if (true) + module.exports = factory(__webpack_require__(/*! omi */ "omi")); + else {} +})(window, function (__WEBPACK_EXTERNAL_MODULE_omi__) { + return /******/ (function (modules) { + /******/ // 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 = "./src/icon/index.tsx"); + /******/ + })({ + /***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/icon/index.scss": + /*!***********************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./src/icon/index.scss ***! + \***********************************************************************************************************************************************************************************************************/ + /*! no static exports found */ + /***/ (function (module, exports, __webpack_require__) { + exports = module.exports = __webpack_require__(/*! ../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js")(false); + // imports + // module + exports.push([module.i, ".m-icon {\n text-align: center;\n display: inline-block; }\n\n.m-icon svg {\n display: inline-block;\n vertical-align: top; }\n\n.rotate {\n display: inline-block;\n -webkit-animation: rotate 1s infinite linear;\n animation: rotate 1s infinite linear; }\n\ni div {\n font-style: normal; }\n\n@-webkit-keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n", ""]); + // exports + /***/ + }), + /***/ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js": + /*!*******************************************************************!*\ + !*** ./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js ***! + \*******************************************************************/ + /*! no static exports found */ + /***/ (function (module, exports) { + /* + 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 (typeof id === "number") + 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 (typeof item[0] !== "number" || !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 + ' */'; + } + /***/ + }), + /***/ "./src/icon/index.scss": + /*!*****************************!*\ + !*** ./src/icon/index.scss ***! + \*****************************/ + /*! no static exports found */ + /***/ (function (module, exports, __webpack_require__) { + var result = __webpack_require__(/*! !../../node_modules/_css-loader@1.0.1@css-loader!../../node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!../../node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./index.scss */ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/icon/index.scss"); + if (typeof result === "string") { + module.exports = result; + } + else { + module.exports = result.toString(); + } + /***/ + }), + /***/ "./src/icon/index.tsx": + /*!****************************!*\ + !*** ./src/icon/index.tsx ***! + \****************************/ + /*! no static exports found */ + /***/ (function (module, exports, __webpack_require__) { + "use strict"; + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })(); + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + }; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + var omi_1 = __webpack_require__(/*! omi */ "omi"); + var css = __webpack_require__(/*! ./index.scss */ "./src/icon/index.scss"); + //@ts-ignore + __webpack_require__(/*! ../theme.ts */ "./src/theme.ts"); + var Icon = /** @class */ (function (_super) { + __extends(Icon, _super); + function Icon() { + return _super !== null && _super.apply(this, arguments) || this; + } + Icon.prototype.render = function (props) { + return (omi_1.h("i", __assign({}, omi_1.extractClass(props, 'm-icon')), omi_1.h("svg", { viewBox: '0 0 ' + props.view + ' ' + props.view, class: omi_1.classNames({ rotate: props.rotate }), width: props.scale + 'em', height: props.scale + 'em', fill: props.color, "aria-hidden": "true" }, props.paths ? (props.paths.map(function (item) { + var attrs = { d: item.path, fill: props.color || 'black' }; + if (item.color) + attrs.fill = item.color; + return omi_1.h("path", __assign({}, attrs)); + })) : omi_1.h("path", { d: props.path })), props.children && (omi_1.h("div", { style: "color:" + (props.color || 'black') + ";" }, props.children[0])))); + }; + Icon.css = css; + Icon.defaultProps = { + view: 1024, + scale: 2 + }; + Icon.propTypes = { + path: String, + paths: Object, + view: Number, + scale: Number, + color: String, + rotate: Boolean + }; + Icon = __decorate([ + omi_1.tag('m-icon') + ], Icon); + return Icon; + }(omi_1.WeElement)); + exports.default = Icon; + /***/ + }), + /***/ "./src/theme.ts": + /*!**********************!*\ + !*** ./src/theme.ts ***! + \**********************/ + /*! no static exports found */ + /***/ (function (module, exports) { + theme(); + document.addEventListener('DOMContentLoaded', function () { + theme(); + }); + function theme() { + if (document.body && !document.body.style.getPropertyValue('--mdc-theme-primary')) { + document.body.style.setProperty('--mdc-theme-primary', '#0072d9'); + document.body.style.setProperty('--mdc-theme-secondary', '#2170b8'); + document.body.style.setProperty('--mdc-theme-error', '#f5222d'); + document.body.style.setProperty('--mdc-theme-surface', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-primary', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-secondary', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-error', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-surface', '#000000'); + document.body.style.setProperty('--mdc-theme-background', '#ffffff'); + document.body.style.setProperty('--mdc-shape-small-component-radius', '4px'); + document.body.style.setProperty('--mdc-shape-medium-component-radius', '4px'); + document.body.style.setProperty('--mdc-shape-large-component-radius', '0px'); + document.body.style.setProperty('--mdc-typography--font-family', 'Roboto, sans-serif'); + } + } + /***/ + }), + /***/ "omi": + /*!******************************************************************************!*\ + !*** external {"commonjs":"omi","commonjs2":"omi","amd":"omi","root":"Omi"} ***! + \******************************************************************************/ + /*! no static exports found */ + /***/ (function (module, exports) { + module.exports = __WEBPACK_EXTERNAL_MODULE_omi__; + /***/ + }) + /******/ + })["default"]; +}); +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ "./src/theme.ts": +/*!**********************!*\ + !*** ./src/theme.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +theme(); +document.addEventListener('DOMContentLoaded', function () { + theme(); +}); +function theme() { + if (document.body && !document.body.style.getPropertyValue('--mdc-theme-primary')) { + document.body.style.setProperty('--mdc-theme-primary', '#0072d9'); + document.body.style.setProperty('--mdc-theme-secondary', '#2170b8'); + document.body.style.setProperty('--mdc-theme-error', '#f5222d'); + document.body.style.setProperty('--mdc-theme-surface', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-primary', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-secondary', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-error', '#ffffff'); + document.body.style.setProperty('--mdc-theme-on-surface', '#000000'); + document.body.style.setProperty('--mdc-theme-background', '#ffffff'); + document.body.style.setProperty('--mdc-shape-small-component-radius', '4px'); + document.body.style.setProperty('--mdc-shape-medium-component-radius', '4px'); + document.body.style.setProperty('--mdc-shape-large-component-radius', '0px'); + document.body.style.setProperty('--mdc-typography--font-family', 'Roboto, sans-serif'); + } +} + + +/***/ }), + +/***/ "omi": +/*!******************************************************************************!*\ + !*** external {"commonjs":"omi","commonjs2":"omi","amd":"omi","root":"Omi"} ***! + \******************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_omi__; + +/***/ }) + +/******/ })["default"]; +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/omim/src/rate/index.js.map b/packages/omim/src/rate/index.js.map new file mode 100644 index 000000000..b5ece036f --- /dev/null +++ b/packages/omim/src/rate/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://MButton/webpack/universalModuleDefinition","webpack://MButton/webpack/bootstrap","webpack://MButton/./node_modules/_@material_base@1.0.0@@material/base/component.js","webpack://MButton/./node_modules/_@material_base@1.0.0@@material/base/foundation.js","webpack://MButton/./node_modules/_@material_dom@1.1.0@@material/dom/ponyfill.js","webpack://MButton/./node_modules/_@material_ripple@2.3.0@@material/ripple/component.js","webpack://MButton/./node_modules/_@material_ripple@2.3.0@@material/ripple/constants.js","webpack://MButton/./node_modules/_@material_ripple@2.3.0@@material/ripple/foundation.js","webpack://MButton/./node_modules/_@material_ripple@2.3.0@@material/ripple/index.js","webpack://MButton/./node_modules/_@material_ripple@2.3.0@@material/ripple/util.js","webpack://MButton/./src/button/index.scss","webpack://MButton/./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js","webpack://MButton/./node_modules/_tslib@1.9.3@tslib/tslib.es6.js","webpack://MButton/./src/button/index.scss?f5fa","webpack://MButton/./src/button/index.tsx","webpack://MButton/./src/icon/index.js","webpack://MButton/./src/theme.ts","webpack://MButton/external {\"commonjs\":\"omi\",\"commonjs2\":\"omi\",\"amd\":\"omi\",\"root\":\"Omi\"}"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACiC;AACY;AAC7C;AACA;AACA;AACA,wBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA,oCAAoC,8CAAgB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF;AACA,0CAA0C,yDAAa,GAAG;AAC1D;AACA,0EAA0E;AAC1E;AACA;AACA,wBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,sBAAsB;AAC5D;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACuB;AACxB;AACe,2EAAY,EAAC;AAC5B,qC;;;;;;;;;;;;ACrGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,oDAAoD;AACpD;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,2DAA2D;AAC3D;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACwB;AACzB;AACe,4EAAa,EAAC;AAC7B,sC;;;;;;;;;;;;AC3EA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;;;;;AC7CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACiC;AACuB;AACP;AACE;AACpB;AAC/B;AACA,IAAI,+CAAiB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,SAAS,0BAA0B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,gDAAgD,EAAE;AAC9F,iDAAiD,QAAQ,0DAAyB,SAAS,EAAE;AAC7F,8CAA8C,+CAA+C,EAAE;AAC/F,oDAAoD,wCAAwC,EAAE;AAC9F;AACA,sFAAsF,kDAAiB;AACvG,aAAa;AACb;AACA,4EAA4E,kDAAiB;AAC7F,aAAa;AACb,yDAAyD,sDAAsD,EAAE;AACjH,8CAA8C,UAAU,+CAA+C,EAAE,EAAE;AAC3G,0CAA0C,QAAQ,sEAAO,4BAA4B,EAAE;AACvF,4CAA4C,mCAAmC,EAAE;AACjF,sCAAsC,oCAAoC,EAAE;AAC5E;AACA,mFAAmF,kDAAiB;AACpG,aAAa;AACb;AACA,yEAAyE,kDAAiB;AAC1F,aAAa;AACb,uDAAuD,mDAAmD,EAAE;AAC5G,+CAA+C,mDAAmD,EAAE;AACpG,0DAA0D,yDAAyD,EAAE;AACrH;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,+DAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,qEAAY;AACO;AACrB,qC;;;;;;;;;;;;AC9GA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;;;;;AC/CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACiC;AACyB;AACC;AACT;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,+CAAiB;AACrB;AACA,sCAAsC,8CAAgB,GAAG;AACzD;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,+CAA+C,2BAA2B;AAC1E,gDAAgD,4BAA4B;AAC5E,2CAA2C,4BAA4B;AACvE,0CAA0C,2BAA2B;AACrE,4CAA4C,uBAAuB;AACnE;AACA;AACA;AACA;AACA,mBAAmB,qDAAU;AAC7B,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,mBAAmB,kDAAO;AAC1B,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,mBAAmB,kDAAO;AAC1B,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,uCAAuC,kBAAkB,EAAE;AAC3D,qDAAqD,aAAa,EAAE;AACpE,kDAAkD,UAAU,4DAA4D,EAAE,EAAE;AAC5H,kDAAkD,aAAa,EAAE;AACjE,mEAAmE,kBAAkB,EAAE;AACvF,2DAA2D,kBAAkB,EAAE;AAC/E,sDAAsD,kBAAkB,EAAE;AAC1E,kDAAkD,UAAU,aAAa,EAAE,EAAE;AAC7E,8CAA8C,aAAa,EAAE;AAC7D,gDAAgD,aAAa,EAAE;AAC/D,0CAA0C,aAAa,EAAE;AACzD,iEAAiE,kBAAkB,EAAE;AACrF,yDAAyD,kBAAkB,EAAE;AAC7E,oDAAoD,kBAAkB,EAAE;AACxE,0CAA0C,kBAAkB,EAAE;AAC9D,gDAAgD,kBAAkB,EAAE;AACpE;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6HAA6H,mDAAmD,EAAE;AAClL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,yCAAyC,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA,yBAAyB,sEAAwB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,EAAE,kDAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mDAAmD,EAAE;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,8CAAgB,GAAG;AACvC;AACA,+CAA+C,0CAA0C,EAAE;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,uEAAa;AACgB;AAC/B;AACe,kFAAmB,EAAC;AACnC,sC;;;;;;;;;;;;AC5cA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC+B;AACf;AACY;AACA;AACC;AAC7B,iC;;;;;;;;;;;;AC3BA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,kCAAkC,sBAAsB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,+BAA+B,oBAAoB;AACnD,kCAAkC,sBAAsB;AACxD;AACA;AACA;AACA,qEAAqE,kBAAkB,EAAE;AACzF;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA,+BAA+B,gBAAgB;AAC/C;AACO;AACP;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,gC;;;;;;;;;;;ACpGA,2BAA2B,mBAAO,CAAC,oIAAiE;AACpG;;;AAGA;AACA,cAAc,QAAS,gBAAgB,oCAAoC,uCAAuC,wCAAwC,wBAAwB,yBAAyB,qBAAqB,8BAA8B,0BAA0B,8BAA8B,yBAAyB,yBAAyB,uBAAuB,wBAAwB,4BAA4B,2BAA2B,oBAAoB,iBAAiB,iBAAiB,kBAAkB,6CAA6C,sBAAsB,6BAA6B,qBAAqB,2BAA2B,uBAAuB,EAAE,mCAAmC,iBAAiB,gBAAgB,EAAE,wBAAwB,oBAAoB,EAAE,uBAAuB,sBAAsB,EAAE,0BAA0B,oCAAoC,iCAAiC,sBAAsB,2BAA2B,EAAE,mCAAmC,yBAAyB,EAAE,gCAAgC,oCAAoC,EAAE,mCAAmC,wCAAwC,2CAA2C,4BAA4B,kBAAkB,mBAAmB,sBAAsB,0BAA0B,EAAE,+FAA+F,8CAA8C,6CAA6C,EAAE,gCAAgC,qBAAqB,qEAAqE,EAAE,4CAA4C,sCAAsC,qCAAqC,EAAE,+GAA+G,wCAAwC,2CAA2C,EAAE,0BAA0B,uBAAuB,EAAE,iIAAiI,uCAAuC,uCAAuC,EAAE,uVAAuV,0CAA0C,4CAA4C,EAAE,gMAAgM,sCAAsC,wCAAwC,EAAE,qdAAqd,2CAA2C,2CAA2C,EAAE,mDAAmD,2BAA2B,EAAE,uEAAuE,4CAA4C,iCAAiC,EAAE,mFAAmF,gCAAgC,EAAE,2CAA2C,2FAA2F,wFAAwF,EAAE,EAAE,mFAAmF,qBAAqB,wEAAwE,EAAE,yBAAyB,8HAA8H,8DAA8D,EAAE,0DAA0D,iIAAiI,EAAE,gCAAgC,kIAAkI,EAAE,kCAAkC,+HAA+H,EAAE,2BAA2B,wBAAwB,2BAA2B,sBAAsB,EAAE,oCAAoC,wCAAwC,EAAE,0CAA0C,4BAA4B,4EAA4E,EAAE,wBAAwB,iBAAiB,wBAAwB,EAAE,wCAAwC,UAAU,8DAA8D,6EAA6E,EAAE,QAAQ,uGAAuG,EAAE,EAAE,yCAAyC,UAAU,wCAAwC,iBAAiB,EAAE,QAAQ,+CAA+C,EAAE,EAAE,0CAA0C,UAAU,wCAAwC,+CAA+C,EAAE,QAAQ,iBAAiB,EAAE,EAAE,4CAA4C,uDAAuD,uBAAuB,EAAE,oDAAoD,sDAAsD,EAAE,iBAAiB,4BAA4B,yBAAyB,wBAAwB,6BAA6B,qCAAqC,uCAAuC,kDAAkD,EAAE,6CAA6C,yBAAyB,yBAAyB,iBAAiB,2BAA2B,oBAAoB,EAAE,yBAAyB,oEAAoE,iBAAiB,EAAE,6CAA6C,sDAAsD,EAAE,4CAA4C,aAAa,iCAAiC,0BAA0B,sCAAsC,EAAE,uDAAuD,oCAAoC,yDAAyD,EAAE,mEAAmE,gGAAgG,EAAE,qEAAqE,iDAAiD,uGAAuG,EAAE,6CAA6C,4BAA4B,gDAAgD,kBAAkB,mBAAmB,EAAE,4CAA4C,6CAA6C,8CAA8C,EAAE,6CAA6C,gCAAgC,EAAE,2CAA2C,iDAAiD,wFAAwF,EAAE,EAAE,+BAA+B,oBAAoB,EAAE,sHAAsH,gCAAgC,oBAAoB,EAAE,kDAAkD,uCAAuC,EAAE,yDAAyD,gCAAgC,oBAAoB,EAAE,qCAAqC,oCAAoC,EAAE,gIAAgI,8BAA8B,EAAE,yCAAyC,0IAA0I,uFAAuF,EAAE,EAAE,+EAA+E,kBAAkB,EAAE,kRAAkR,8BAA8B,kBAAkB,EAAE,qHAAqH,qCAAqC,EAAE,mIAAmI,8BAA8B,kBAAkB,EAAE,2FAA2F,kCAAkC,EAAE,aAAa,wBAAwB,EAAE,qBAAqB,kCAAkC,wBAAwB,uBAAuB,oBAAoB,mBAAmB,2BAA2B,yBAAyB,0BAA0B,wBAAwB,sBAAsB,mBAAmB,0CAA0C,wCAAwC,EAAE;;AAEjpU;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mCAAmC,gBAAgB;AACnD,IAAI;AACJ;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA,YAAY,oBAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,cAAc;;AAElE;AACA;;;;;;;;;;;;;AC3EA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnF,yBAAyB,uDAAuD;AAChF;AACA;;AAEO;AACP;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEO;AACP;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA,4DAA4D,cAAc;AAC1E;AACA;AACA;;AAEO;AACP;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;;AAEO;AACP,mCAAmC,oCAAoC;AACvE;;AAEO;AACP;AACA;;AAEO;AACP;AACA,mCAAmC,MAAM,6BAA6B,EAAE,YAAY,WAAW,EAAE;AACjG,kCAAkC,MAAM,iCAAiC,EAAE,YAAY,WAAW,EAAE;AACpG,+BAA+B,iEAAiE,uBAAuB,EAAE,4BAA4B;AACrJ;AACA,KAAK;AACL;;AAEO;AACP,aAAa,6BAA6B,0BAA0B,aAAa,EAAE,qBAAqB;AACxG,gBAAgB,qDAAqD,oEAAoE,aAAa,EAAE;AACxJ,sBAAsB,sBAAsB,qBAAqB,GAAG;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,kCAAkC,SAAS;AAC3C,kCAAkC,WAAW,UAAU;AACvD,yCAAyC,cAAc;AACvD;AACA,6GAA6G,OAAO,UAAU;AAC9H,gFAAgF,iBAAiB,OAAO;AACxG,wDAAwD,gBAAgB,QAAQ,OAAO;AACvF,8CAA8C,gBAAgB,gBAAgB,OAAO;AACrF;AACA,iCAAiC;AACjC;AACA;AACA,SAAS,YAAY,aAAa,OAAO,EAAE,UAAU,WAAW;AAChE,mCAAmC,SAAS;AAC5C;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM,gBAAgB;AACzC;AACA;AACA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;;AAEO;AACP,4BAA4B,sBAAsB;AAClD;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA,iBAAiB,sFAAsF,aAAa,EAAE;AACtH,sBAAsB,gCAAgC,qCAAqC,0CAA0C,EAAE,EAAE,GAAG;AAC5I,2BAA2B,MAAM,eAAe,EAAE,YAAY,oBAAoB,EAAE;AACpF,sBAAsB,oGAAoG;AAC1H,6BAA6B,uBAAuB;AACpD,4BAA4B,wBAAwB;AACpD,2BAA2B,yDAAyD;AACpF;;AAEO;AACP;AACA,iBAAiB,4CAA4C,SAAS,EAAE,qDAAqD,aAAa,EAAE;AAC5I,yBAAyB,6BAA6B,oBAAoB,gDAAgD,gBAAgB,EAAE,KAAK;AACjJ;;AAEO;AACP;AACA;AACA,2GAA2G,sFAAsF,aAAa,EAAE;AAChN,sBAAsB,8BAA8B,gDAAgD,uDAAuD,EAAE,EAAE,GAAG;AAClK,4CAA4C,sCAAsC,UAAU,oBAAoB,EAAE,EAAE,UAAU;AAC9H;;AAEO;AACP,gCAAgC,uCAAuC,aAAa,EAAE,EAAE,OAAO,kBAAkB;AACjH;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP,4CAA4C;AAC5C;;;;;;;;;;;;;ACxLA,qBAAqB,mBAAO,CAAC,+ZAA4N;;AAEzP;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;ACPa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,gBAAK;AACzB,UAAU,mBAAO,CAAC,6CAAc;AAChC,eAAe,mBAAO,CAAC,0FAAkB;AACzC,mBAAO,CAAC,oCAAS;AACjB;AACA,mBAAO,CAAC,mCAAa;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA,SAAS;AACT,0CAA0C,2CAA2C;AACrF,2DAA2D,kBAAkB;AAC7E,6BAA6B,6BAA6B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;;AC9EA;AACA,QAAQ,IAAyD;AACjE,iCAAiC,mBAAO,CAAC,gBAAK;AAC9C,SAAS,EAKoC;AAC7C,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D,gCAAgC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E,kBAAkB;AAC/F;AACA,mEAAmE,cAAc;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,iCAAiC;AAC5F;AACA;AACA,mEAAmE,mBAAmB,EAAE;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,0BAA0B,EAAE;AAC5E,sDAAsD,eAAe;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,+DAA+D;AACrI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,uBAAuB,0BAA0B,EAAE,iBAAiB,0BAA0B,wBAAwB,EAAE,aAAa,0BAA0B,iDAAiD,yCAAyC,EAAE,WAAW,uBAAuB,EAAE,+BAA+B,UAAU,wCAAwC,gCAAgC,EAAE,EAAE,uBAAuB,UAAU,wCAAwC,gCAAgC,EAAE,EAAE;AAC/iB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,gBAAgB;AAC3E;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA,+BAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE,cAAc;AACjF;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnG,yCAAyC;AACzC;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA,mCAAmC,sBAAsB;AACzD;AACA;AACA,aAAa;AACb;AACA;AACA,4DAA4D,OAAO;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,QAAQ;AAC/D;AACA;AACA;AACA;AACA,0DAA0D,cAAc;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,wDAAwD,2EAA2E,uBAAuB,oGAAoG;AAClT,qCAAqC;AACrC;AACA;AACA,0DAA0D;AAC1D,qBAAqB,sBAAsB,gBAAgB,uCAAuC,gDAAgD,GAAG;AACrJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,yBAAyB,4DAA4D;AACrF;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL,CAAC;AACD;;;;;;;;;;;;ACjVA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpBA,iD","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"omi\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"omi\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"MButton\"] = factory(require(\"omi\"));\n\telse\n\t\troot[\"MButton\"] = factory(root[\"Omi\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE_omi__) {\nreturn "," \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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/button/index.tsx\");\n","/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport * as tslib_1 from \"tslib\";\nimport { MDCFoundation } from './foundation';\nvar MDCComponent = /** @class */ (function () {\n function MDCComponent(root, foundation) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n this.root_ = root;\n this.initialize.apply(this, tslib_1.__spread(args));\n // Note that we initialize foundation here and not within the constructor's default param so that\n // this.root_ is defined and can be used within the foundation class.\n this.foundation_ = foundation === undefined ? this.getDefaultFoundation() : foundation;\n this.foundation_.init();\n this.initialSyncWithDOM();\n }\n MDCComponent.attachTo = function (root) {\n // Subclasses which extend MDCBase should provide an attachTo() method that takes a root element and\n // returns an instantiated component with its root set to that element. Also note that in the cases of\n // subclasses, an explicit foundation class will not have to be passed in; it will simply be initialized\n // from getDefaultFoundation().\n return new MDCComponent(root, new MDCFoundation({}));\n };\n /* istanbul ignore next: method param only exists for typing purposes; it does not need to be unit tested */\n MDCComponent.prototype.initialize = function () {\n var _args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n _args[_i] = arguments[_i];\n }\n // Subclasses can override this to do any additional setup work that would be considered part of a\n // \"constructor\". Essentially, it is a hook into the parent constructor before the foundation is\n // initialized. Any additional arguments besides root and foundation will be passed in here.\n };\n MDCComponent.prototype.getDefaultFoundation = function () {\n // Subclasses must override this method to return a properly configured foundation class for the\n // component.\n throw new Error('Subclasses must override getDefaultFoundation to return a properly configured ' +\n 'foundation class');\n };\n MDCComponent.prototype.initialSyncWithDOM = function () {\n // Subclasses should override this method if they need to perform work to synchronize with a host DOM\n // object. An example of this would be a form control wrapper that needs to synchronize its internal state\n // to some property or attribute of the host DOM. Please note: this is *not* the place to perform DOM\n // reads/writes that would cause layout / paint, as this is called synchronously from within the constructor.\n };\n MDCComponent.prototype.destroy = function () {\n // Subclasses may implement this method to release any resources / deregister any listeners they have\n // attached. An example of this might be deregistering a resize event from the window object.\n this.foundation_.destroy();\n };\n MDCComponent.prototype.listen = function (evtType, handler) {\n this.root_.addEventListener(evtType, handler);\n };\n MDCComponent.prototype.unlisten = function (evtType, handler) {\n this.root_.removeEventListener(evtType, handler);\n };\n /**\n * Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.\n */\n MDCComponent.prototype.emit = function (evtType, evtData, shouldBubble) {\n if (shouldBubble === void 0) { shouldBubble = false; }\n var evt;\n if (typeof CustomEvent === 'function') {\n evt = new CustomEvent(evtType, {\n bubbles: shouldBubble,\n detail: evtData,\n });\n }\n else {\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(evtType, shouldBubble, false, evtData);\n }\n this.root_.dispatchEvent(evt);\n };\n return MDCComponent;\n}());\nexport { MDCComponent };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCComponent;\n//# sourceMappingURL=component.js.map","/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nvar MDCFoundation = /** @class */ (function () {\n function MDCFoundation(adapter) {\n if (adapter === void 0) { adapter = {}; }\n this.adapter_ = adapter;\n }\n Object.defineProperty(MDCFoundation, \"cssClasses\", {\n get: function () {\n // Classes extending MDCFoundation should implement this method to return an object which exports every\n // CSS class the foundation class needs as a property. e.g. {ACTIVE: 'mdc-component--active'}\n return {};\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"strings\", {\n get: function () {\n // Classes extending MDCFoundation should implement this method to return an object which exports all\n // semantic strings as constants. e.g. {ARIA_ROLE: 'tablist'}\n return {};\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"numbers\", {\n get: function () {\n // Classes extending MDCFoundation should implement this method to return an object which exports all\n // of its semantic numbers as constants. e.g. {ANIMATION_DELAY_MS: 350}\n return {};\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"defaultAdapter\", {\n get: function () {\n // Classes extending MDCFoundation may choose to implement this getter in order to provide a convenient\n // way of viewing the necessary methods of an adapter. In the future, this could also be used for adapter\n // validation.\n return {};\n },\n enumerable: true,\n configurable: true\n });\n MDCFoundation.prototype.init = function () {\n // Subclasses should override this method to perform initialization routines (registering events, etc.)\n };\n MDCFoundation.prototype.destroy = function () {\n // Subclasses should override this method to perform de-initialization routines (de-registering events, etc.)\n };\n return MDCFoundation;\n}());\nexport { MDCFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCFoundation;\n//# sourceMappingURL=foundation.js.map","/**\n * @license\n * Copyright 2018 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/**\n * @fileoverview A \"ponyfill\" is a polyfill that doesn't modify the global prototype chain.\n * This makes ponyfills safer than traditional polyfills, especially for libraries like MDC.\n */\nexport function closest(element, selector) {\n if (element.closest) {\n return element.closest(selector);\n }\n var el = element;\n while (el) {\n if (matches(el, selector)) {\n return el;\n }\n el = el.parentElement;\n }\n return null;\n}\nexport function matches(element, selector) {\n var nativeMatches = element.matches\n || element.webkitMatchesSelector\n || element.msMatchesSelector;\n return nativeMatches.call(element, selector);\n}\n//# sourceMappingURL=ponyfill.js.map","/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport * as tslib_1 from \"tslib\";\nimport { MDCComponent } from '@material/base/component';\nimport { matches } from '@material/dom/ponyfill';\nimport { MDCRippleFoundation } from './foundation';\nimport * as util from './util';\nvar MDCRipple = /** @class */ (function (_super) {\n tslib_1.__extends(MDCRipple, _super);\n function MDCRipple() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.disabled = false;\n return _this;\n }\n MDCRipple.attachTo = function (root, opts) {\n if (opts === void 0) { opts = { isUnbounded: undefined }; }\n var ripple = new MDCRipple(root);\n // Only override unbounded behavior if option is explicitly specified\n if (opts.isUnbounded !== undefined) {\n ripple.unbounded = opts.isUnbounded;\n }\n return ripple;\n };\n MDCRipple.createAdapter = function (instance) {\n return {\n addClass: function (className) { return instance.root_.classList.add(className); },\n browserSupportsCssVars: function () { return util.supportsCssVariables(window); },\n computeBoundingRect: function () { return instance.root_.getBoundingClientRect(); },\n containsEventTarget: function (target) { return instance.root_.contains(target); },\n deregisterDocumentInteractionHandler: function (evtType, handler) {\n return document.documentElement.removeEventListener(evtType, handler, util.applyPassive());\n },\n deregisterInteractionHandler: function (evtType, handler) {\n return instance.root_.removeEventListener(evtType, handler, util.applyPassive());\n },\n deregisterResizeHandler: function (handler) { return window.removeEventListener('resize', handler); },\n getWindowPageOffset: function () { return ({ x: window.pageXOffset, y: window.pageYOffset }); },\n isSurfaceActive: function () { return matches(instance.root_, ':active'); },\n isSurfaceDisabled: function () { return Boolean(instance.disabled); },\n isUnbounded: function () { return Boolean(instance.unbounded); },\n registerDocumentInteractionHandler: function (evtType, handler) {\n return document.documentElement.addEventListener(evtType, handler, util.applyPassive());\n },\n registerInteractionHandler: function (evtType, handler) {\n return instance.root_.addEventListener(evtType, handler, util.applyPassive());\n },\n registerResizeHandler: function (handler) { return window.addEventListener('resize', handler); },\n removeClass: function (className) { return instance.root_.classList.remove(className); },\n updateCssVariable: function (varName, value) { return instance.root_.style.setProperty(varName, value); },\n };\n };\n Object.defineProperty(MDCRipple.prototype, \"unbounded\", {\n get: function () {\n return Boolean(this.unbounded_);\n },\n set: function (unbounded) {\n this.unbounded_ = Boolean(unbounded);\n this.setUnbounded_();\n },\n enumerable: true,\n configurable: true\n });\n MDCRipple.prototype.activate = function () {\n this.foundation_.activate();\n };\n MDCRipple.prototype.deactivate = function () {\n this.foundation_.deactivate();\n };\n MDCRipple.prototype.layout = function () {\n this.foundation_.layout();\n };\n MDCRipple.prototype.getDefaultFoundation = function () {\n return new MDCRippleFoundation(MDCRipple.createAdapter(this));\n };\n MDCRipple.prototype.initialSyncWithDOM = function () {\n var root = this.root_;\n this.unbounded = 'mdcRippleIsUnbounded' in root.dataset;\n };\n /**\n * Closure Compiler throws an access control error when directly accessing a\n * protected or private property inside a getter/setter, like unbounded above.\n * By accessing the protected property inside a method, we solve that problem.\n * That's why this function exists.\n */\n MDCRipple.prototype.setUnbounded_ = function () {\n this.foundation_.setUnbounded(Boolean(this.unbounded_));\n };\n return MDCRipple;\n}(MDCComponent));\nexport { MDCRipple };\n//# sourceMappingURL=component.js.map","/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport var cssClasses = {\n // Ripple is a special case where the \"root\" component is really a \"mixin\" of sorts,\n // given that it's an 'upgrade' to an existing component. That being said it is the root\n // CSS class that all other CSS classes derive from.\n BG_FOCUSED: 'mdc-ripple-upgraded--background-focused',\n FG_ACTIVATION: 'mdc-ripple-upgraded--foreground-activation',\n FG_DEACTIVATION: 'mdc-ripple-upgraded--foreground-deactivation',\n ROOT: 'mdc-ripple-upgraded',\n UNBOUNDED: 'mdc-ripple-upgraded--unbounded',\n};\nexport var strings = {\n VAR_FG_SCALE: '--mdc-ripple-fg-scale',\n VAR_FG_SIZE: '--mdc-ripple-fg-size',\n VAR_FG_TRANSLATE_END: '--mdc-ripple-fg-translate-end',\n VAR_FG_TRANSLATE_START: '--mdc-ripple-fg-translate-start',\n VAR_LEFT: '--mdc-ripple-left',\n VAR_TOP: '--mdc-ripple-top',\n};\nexport var numbers = {\n DEACTIVATION_TIMEOUT_MS: 225,\n FG_DEACTIVATION_MS: 150,\n INITIAL_ORIGIN_SCALE: 0.6,\n PADDING: 10,\n TAP_DELAY_MS: 300,\n};\n//# sourceMappingURL=constants.js.map","/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport * as tslib_1 from \"tslib\";\nimport { MDCFoundation } from '@material/base/foundation';\nimport { cssClasses, numbers, strings } from './constants';\nimport { getNormalizedEventCoords } from './util';\n// Activation events registered on the root element of each instance for activation\nvar ACTIVATION_EVENT_TYPES = [\n 'touchstart', 'pointerdown', 'mousedown', 'keydown',\n];\n// Deactivation events registered on documentElement when a pointer-related down event occurs\nvar POINTER_DEACTIVATION_EVENT_TYPES = [\n 'touchend', 'pointerup', 'mouseup', 'contextmenu',\n];\n// simultaneous nested activations\nvar activatedTargets = [];\nvar MDCRippleFoundation = /** @class */ (function (_super) {\n tslib_1.__extends(MDCRippleFoundation, _super);\n function MDCRippleFoundation(adapter) {\n var _this = _super.call(this, tslib_1.__assign({}, MDCRippleFoundation.defaultAdapter, adapter)) || this;\n _this.activationAnimationHasEnded_ = false;\n _this.activationTimer_ = 0;\n _this.fgDeactivationRemovalTimer_ = 0;\n _this.fgScale_ = '0';\n _this.frame_ = { width: 0, height: 0 };\n _this.initialSize_ = 0;\n _this.layoutFrame_ = 0;\n _this.maxRadius_ = 0;\n _this.unboundedCoords_ = { left: 0, top: 0 };\n _this.activationState_ = _this.defaultActivationState_();\n _this.activationTimerCallback_ = function () {\n _this.activationAnimationHasEnded_ = true;\n _this.runDeactivationUXLogicIfReady_();\n };\n _this.activateHandler_ = function (e) { return _this.activate_(e); };\n _this.deactivateHandler_ = function () { return _this.deactivate_(); };\n _this.focusHandler_ = function () { return _this.handleFocus(); };\n _this.blurHandler_ = function () { return _this.handleBlur(); };\n _this.resizeHandler_ = function () { return _this.layout(); };\n return _this;\n }\n Object.defineProperty(MDCRippleFoundation, \"cssClasses\", {\n get: function () {\n return cssClasses;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"strings\", {\n get: function () {\n return strings;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"numbers\", {\n get: function () {\n return numbers;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addClass: function () { return undefined; },\n browserSupportsCssVars: function () { return true; },\n computeBoundingRect: function () { return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }); },\n containsEventTarget: function () { return true; },\n deregisterDocumentInteractionHandler: function () { return undefined; },\n deregisterInteractionHandler: function () { return undefined; },\n deregisterResizeHandler: function () { return undefined; },\n getWindowPageOffset: function () { return ({ x: 0, y: 0 }); },\n isSurfaceActive: function () { return true; },\n isSurfaceDisabled: function () { return true; },\n isUnbounded: function () { return true; },\n registerDocumentInteractionHandler: function () { return undefined; },\n registerInteractionHandler: function () { return undefined; },\n registerResizeHandler: function () { return undefined; },\n removeClass: function () { return undefined; },\n updateCssVariable: function () { return undefined; },\n };\n },\n enumerable: true,\n configurable: true\n });\n MDCRippleFoundation.prototype.init = function () {\n var _this = this;\n var supportsPressRipple = this.supportsPressRipple_();\n this.registerRootHandlers_(supportsPressRipple);\n if (supportsPressRipple) {\n var _a = MDCRippleFoundation.cssClasses, ROOT_1 = _a.ROOT, UNBOUNDED_1 = _a.UNBOUNDED;\n requestAnimationFrame(function () {\n _this.adapter_.addClass(ROOT_1);\n if (_this.adapter_.isUnbounded()) {\n _this.adapter_.addClass(UNBOUNDED_1);\n // Unbounded ripples need layout logic applied immediately to set coordinates for both shade and ripple\n _this.layoutInternal_();\n }\n });\n }\n };\n MDCRippleFoundation.prototype.destroy = function () {\n var _this = this;\n if (this.supportsPressRipple_()) {\n if (this.activationTimer_) {\n clearTimeout(this.activationTimer_);\n this.activationTimer_ = 0;\n this.adapter_.removeClass(MDCRippleFoundation.cssClasses.FG_ACTIVATION);\n }\n if (this.fgDeactivationRemovalTimer_) {\n clearTimeout(this.fgDeactivationRemovalTimer_);\n this.fgDeactivationRemovalTimer_ = 0;\n this.adapter_.removeClass(MDCRippleFoundation.cssClasses.FG_DEACTIVATION);\n }\n var _a = MDCRippleFoundation.cssClasses, ROOT_2 = _a.ROOT, UNBOUNDED_2 = _a.UNBOUNDED;\n requestAnimationFrame(function () {\n _this.adapter_.removeClass(ROOT_2);\n _this.adapter_.removeClass(UNBOUNDED_2);\n _this.removeCssVars_();\n });\n }\n this.deregisterRootHandlers_();\n this.deregisterDeactivationHandlers_();\n };\n /**\n * @param evt Optional event containing position information.\n */\n MDCRippleFoundation.prototype.activate = function (evt) {\n this.activate_(evt);\n };\n MDCRippleFoundation.prototype.deactivate = function () {\n this.deactivate_();\n };\n MDCRippleFoundation.prototype.layout = function () {\n var _this = this;\n if (this.layoutFrame_) {\n cancelAnimationFrame(this.layoutFrame_);\n }\n this.layoutFrame_ = requestAnimationFrame(function () {\n _this.layoutInternal_();\n _this.layoutFrame_ = 0;\n });\n };\n MDCRippleFoundation.prototype.setUnbounded = function (unbounded) {\n var UNBOUNDED = MDCRippleFoundation.cssClasses.UNBOUNDED;\n if (unbounded) {\n this.adapter_.addClass(UNBOUNDED);\n }\n else {\n this.adapter_.removeClass(UNBOUNDED);\n }\n };\n MDCRippleFoundation.prototype.handleFocus = function () {\n var _this = this;\n requestAnimationFrame(function () {\n return _this.adapter_.addClass(MDCRippleFoundation.cssClasses.BG_FOCUSED);\n });\n };\n MDCRippleFoundation.prototype.handleBlur = function () {\n var _this = this;\n requestAnimationFrame(function () {\n return _this.adapter_.removeClass(MDCRippleFoundation.cssClasses.BG_FOCUSED);\n });\n };\n /**\n * We compute this property so that we are not querying information about the client\n * until the point in time where the foundation requests it. This prevents scenarios where\n * client-side feature-detection may happen too early, such as when components are rendered on the server\n * and then initialized at mount time on the client.\n */\n MDCRippleFoundation.prototype.supportsPressRipple_ = function () {\n return this.adapter_.browserSupportsCssVars();\n };\n MDCRippleFoundation.prototype.defaultActivationState_ = function () {\n return {\n activationEvent: undefined,\n hasDeactivationUXRun: false,\n isActivated: false,\n isProgrammatic: false,\n wasActivatedByPointer: false,\n wasElementMadeActive: false,\n };\n };\n /**\n * supportsPressRipple Passed from init to save a redundant function call\n */\n MDCRippleFoundation.prototype.registerRootHandlers_ = function (supportsPressRipple) {\n var _this = this;\n if (supportsPressRipple) {\n ACTIVATION_EVENT_TYPES.forEach(function (evtType) {\n _this.adapter_.registerInteractionHandler(evtType, _this.activateHandler_);\n });\n if (this.adapter_.isUnbounded()) {\n this.adapter_.registerResizeHandler(this.resizeHandler_);\n }\n }\n this.adapter_.registerInteractionHandler('focus', this.focusHandler_);\n this.adapter_.registerInteractionHandler('blur', this.blurHandler_);\n };\n MDCRippleFoundation.prototype.registerDeactivationHandlers_ = function (evt) {\n var _this = this;\n if (evt.type === 'keydown') {\n this.adapter_.registerInteractionHandler('keyup', this.deactivateHandler_);\n }\n else {\n POINTER_DEACTIVATION_EVENT_TYPES.forEach(function (evtType) {\n _this.adapter_.registerDocumentInteractionHandler(evtType, _this.deactivateHandler_);\n });\n }\n };\n MDCRippleFoundation.prototype.deregisterRootHandlers_ = function () {\n var _this = this;\n ACTIVATION_EVENT_TYPES.forEach(function (evtType) {\n _this.adapter_.deregisterInteractionHandler(evtType, _this.activateHandler_);\n });\n this.adapter_.deregisterInteractionHandler('focus', this.focusHandler_);\n this.adapter_.deregisterInteractionHandler('blur', this.blurHandler_);\n if (this.adapter_.isUnbounded()) {\n this.adapter_.deregisterResizeHandler(this.resizeHandler_);\n }\n };\n MDCRippleFoundation.prototype.deregisterDeactivationHandlers_ = function () {\n var _this = this;\n this.adapter_.deregisterInteractionHandler('keyup', this.deactivateHandler_);\n POINTER_DEACTIVATION_EVENT_TYPES.forEach(function (evtType) {\n _this.adapter_.deregisterDocumentInteractionHandler(evtType, _this.deactivateHandler_);\n });\n };\n MDCRippleFoundation.prototype.removeCssVars_ = function () {\n var _this = this;\n var rippleStrings = MDCRippleFoundation.strings;\n var keys = Object.keys(rippleStrings);\n keys.forEach(function (key) {\n if (key.indexOf('VAR_') === 0) {\n _this.adapter_.updateCssVariable(rippleStrings[key], null);\n }\n });\n };\n MDCRippleFoundation.prototype.activate_ = function (evt) {\n var _this = this;\n if (this.adapter_.isSurfaceDisabled()) {\n return;\n }\n var activationState = this.activationState_;\n if (activationState.isActivated) {\n return;\n }\n // Avoid reacting to follow-on events fired by touch device after an already-processed user interaction\n var previousActivationEvent = this.previousActivationEvent_;\n var isSameInteraction = previousActivationEvent && evt !== undefined && previousActivationEvent.type !== evt.type;\n if (isSameInteraction) {\n return;\n }\n activationState.isActivated = true;\n activationState.isProgrammatic = evt === undefined;\n activationState.activationEvent = evt;\n activationState.wasActivatedByPointer = activationState.isProgrammatic ? false : evt !== undefined && (evt.type === 'mousedown' || evt.type === 'touchstart' || evt.type === 'pointerdown');\n var hasActivatedChild = evt !== undefined && activatedTargets.length > 0 && activatedTargets.some(function (target) { return _this.adapter_.containsEventTarget(target); });\n if (hasActivatedChild) {\n // Immediately reset activation state, while preserving logic that prevents touch follow-on events\n this.resetActivationState_();\n return;\n }\n if (evt !== undefined) {\n activatedTargets.push(evt.target);\n this.registerDeactivationHandlers_(evt);\n }\n activationState.wasElementMadeActive = this.checkElementMadeActive_(evt);\n if (activationState.wasElementMadeActive) {\n this.animateActivation_();\n }\n requestAnimationFrame(function () {\n // Reset array on next frame after the current event has had a chance to bubble to prevent ancestor ripples\n activatedTargets = [];\n if (!activationState.wasElementMadeActive\n && evt !== undefined\n && (evt.key === ' ' || evt.keyCode === 32)) {\n // If space was pressed, try again within an rAF call to detect :active, because different UAs report\n // active states inconsistently when they're called within event handling code:\n // - https://bugs.chromium.org/p/chromium/issues/detail?id=635971\n // - https://bugzilla.mozilla.org/show_bug.cgi?id=1293741\n // We try first outside rAF to support Edge, which does not exhibit this problem, but will crash if a CSS\n // variable is set within a rAF callback for a submit button interaction (#2241).\n activationState.wasElementMadeActive = _this.checkElementMadeActive_(evt);\n if (activationState.wasElementMadeActive) {\n _this.animateActivation_();\n }\n }\n if (!activationState.wasElementMadeActive) {\n // Reset activation state immediately if element was not made active.\n _this.activationState_ = _this.defaultActivationState_();\n }\n });\n };\n MDCRippleFoundation.prototype.checkElementMadeActive_ = function (evt) {\n return (evt !== undefined && evt.type === 'keydown') ? this.adapter_.isSurfaceActive() : true;\n };\n MDCRippleFoundation.prototype.animateActivation_ = function () {\n var _this = this;\n var _a = MDCRippleFoundation.strings, VAR_FG_TRANSLATE_START = _a.VAR_FG_TRANSLATE_START, VAR_FG_TRANSLATE_END = _a.VAR_FG_TRANSLATE_END;\n var _b = MDCRippleFoundation.cssClasses, FG_DEACTIVATION = _b.FG_DEACTIVATION, FG_ACTIVATION = _b.FG_ACTIVATION;\n var DEACTIVATION_TIMEOUT_MS = MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS;\n this.layoutInternal_();\n var translateStart = '';\n var translateEnd = '';\n if (!this.adapter_.isUnbounded()) {\n var _c = this.getFgTranslationCoordinates_(), startPoint = _c.startPoint, endPoint = _c.endPoint;\n translateStart = startPoint.x + \"px, \" + startPoint.y + \"px\";\n translateEnd = endPoint.x + \"px, \" + endPoint.y + \"px\";\n }\n this.adapter_.updateCssVariable(VAR_FG_TRANSLATE_START, translateStart);\n this.adapter_.updateCssVariable(VAR_FG_TRANSLATE_END, translateEnd);\n // Cancel any ongoing activation/deactivation animations\n clearTimeout(this.activationTimer_);\n clearTimeout(this.fgDeactivationRemovalTimer_);\n this.rmBoundedActivationClasses_();\n this.adapter_.removeClass(FG_DEACTIVATION);\n // Force layout in order to re-trigger the animation.\n this.adapter_.computeBoundingRect();\n this.adapter_.addClass(FG_ACTIVATION);\n this.activationTimer_ = setTimeout(function () { return _this.activationTimerCallback_(); }, DEACTIVATION_TIMEOUT_MS);\n };\n MDCRippleFoundation.prototype.getFgTranslationCoordinates_ = function () {\n var _a = this.activationState_, activationEvent = _a.activationEvent, wasActivatedByPointer = _a.wasActivatedByPointer;\n var startPoint;\n if (wasActivatedByPointer) {\n startPoint = getNormalizedEventCoords(activationEvent, this.adapter_.getWindowPageOffset(), this.adapter_.computeBoundingRect());\n }\n else {\n startPoint = {\n x: this.frame_.width / 2,\n y: this.frame_.height / 2,\n };\n }\n // Center the element around the start point.\n startPoint = {\n x: startPoint.x - (this.initialSize_ / 2),\n y: startPoint.y - (this.initialSize_ / 2),\n };\n var endPoint = {\n x: (this.frame_.width / 2) - (this.initialSize_ / 2),\n y: (this.frame_.height / 2) - (this.initialSize_ / 2),\n };\n return { startPoint: startPoint, endPoint: endPoint };\n };\n MDCRippleFoundation.prototype.runDeactivationUXLogicIfReady_ = function () {\n var _this = this;\n // This method is called both when a pointing device is released, and when the activation animation ends.\n // The deactivation animation should only run after both of those occur.\n var FG_DEACTIVATION = MDCRippleFoundation.cssClasses.FG_DEACTIVATION;\n var _a = this.activationState_, hasDeactivationUXRun = _a.hasDeactivationUXRun, isActivated = _a.isActivated;\n var activationHasEnded = hasDeactivationUXRun || !isActivated;\n if (activationHasEnded && this.activationAnimationHasEnded_) {\n this.rmBoundedActivationClasses_();\n this.adapter_.addClass(FG_DEACTIVATION);\n this.fgDeactivationRemovalTimer_ = setTimeout(function () {\n _this.adapter_.removeClass(FG_DEACTIVATION);\n }, numbers.FG_DEACTIVATION_MS);\n }\n };\n MDCRippleFoundation.prototype.rmBoundedActivationClasses_ = function () {\n var FG_ACTIVATION = MDCRippleFoundation.cssClasses.FG_ACTIVATION;\n this.adapter_.removeClass(FG_ACTIVATION);\n this.activationAnimationHasEnded_ = false;\n this.adapter_.computeBoundingRect();\n };\n MDCRippleFoundation.prototype.resetActivationState_ = function () {\n var _this = this;\n this.previousActivationEvent_ = this.activationState_.activationEvent;\n this.activationState_ = this.defaultActivationState_();\n // Touch devices may fire additional events for the same interaction within a short time.\n // Store the previous event until it's safe to assume that subsequent events are for new interactions.\n setTimeout(function () { return _this.previousActivationEvent_ = undefined; }, MDCRippleFoundation.numbers.TAP_DELAY_MS);\n };\n MDCRippleFoundation.prototype.deactivate_ = function () {\n var _this = this;\n var activationState = this.activationState_;\n // This can happen in scenarios such as when you have a keyup event that blurs the element.\n if (!activationState.isActivated) {\n return;\n }\n var state = tslib_1.__assign({}, activationState);\n if (activationState.isProgrammatic) {\n requestAnimationFrame(function () { return _this.animateDeactivation_(state); });\n this.resetActivationState_();\n }\n else {\n this.deregisterDeactivationHandlers_();\n requestAnimationFrame(function () {\n _this.activationState_.hasDeactivationUXRun = true;\n _this.animateDeactivation_(state);\n _this.resetActivationState_();\n });\n }\n };\n MDCRippleFoundation.prototype.animateDeactivation_ = function (_a) {\n var wasActivatedByPointer = _a.wasActivatedByPointer, wasElementMadeActive = _a.wasElementMadeActive;\n if (wasActivatedByPointer || wasElementMadeActive) {\n this.runDeactivationUXLogicIfReady_();\n }\n };\n MDCRippleFoundation.prototype.layoutInternal_ = function () {\n var _this = this;\n this.frame_ = this.adapter_.computeBoundingRect();\n var maxDim = Math.max(this.frame_.height, this.frame_.width);\n // Surface diameter is treated differently for unbounded vs. bounded ripples.\n // Unbounded ripple diameter is calculated smaller since the surface is expected to already be padded appropriately\n // to extend the hitbox, and the ripple is expected to meet the edges of the padded hitbox (which is typically\n // square). Bounded ripples, on the other hand, are fully expected to expand beyond the surface's longest diameter\n // (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via\n // `overflow: hidden`.\n var getBoundedRadius = function () {\n var hypotenuse = Math.sqrt(Math.pow(_this.frame_.width, 2) + Math.pow(_this.frame_.height, 2));\n return hypotenuse + MDCRippleFoundation.numbers.PADDING;\n };\n this.maxRadius_ = this.adapter_.isUnbounded() ? maxDim : getBoundedRadius();\n // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform\n this.initialSize_ = Math.floor(maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE);\n this.fgScale_ = \"\" + this.maxRadius_ / this.initialSize_;\n this.updateLayoutCssVars_();\n };\n MDCRippleFoundation.prototype.updateLayoutCssVars_ = function () {\n var _a = MDCRippleFoundation.strings, VAR_FG_SIZE = _a.VAR_FG_SIZE, VAR_LEFT = _a.VAR_LEFT, VAR_TOP = _a.VAR_TOP, VAR_FG_SCALE = _a.VAR_FG_SCALE;\n this.adapter_.updateCssVariable(VAR_FG_SIZE, this.initialSize_ + \"px\");\n this.adapter_.updateCssVariable(VAR_FG_SCALE, this.fgScale_);\n if (this.adapter_.isUnbounded()) {\n this.unboundedCoords_ = {\n left: Math.round((this.frame_.width / 2) - (this.initialSize_ / 2)),\n top: Math.round((this.frame_.height / 2) - (this.initialSize_ / 2)),\n };\n this.adapter_.updateCssVariable(VAR_LEFT, this.unboundedCoords_.left + \"px\");\n this.adapter_.updateCssVariable(VAR_TOP, this.unboundedCoords_.top + \"px\");\n }\n };\n return MDCRippleFoundation;\n}(MDCFoundation));\nexport { MDCRippleFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCRippleFoundation;\n//# sourceMappingURL=foundation.js.map","/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport * as util from './util';\nexport { util };\nexport * from './component';\nexport * from './constants';\nexport * from './foundation';\n//# sourceMappingURL=index.js.map","/**\n * Stores result from supportsCssVariables to avoid redundant processing to\n * detect CSS custom variable support.\n */\nvar supportsCssVariables_;\n/**\n * Stores result from applyPassive to avoid redundant processing to detect\n * passive event listener support.\n */\nvar supportsPassive_;\nfunction detectEdgePseudoVarBug(windowObj) {\n // Detect versions of Edge with buggy var() support\n // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11495448/\n var document = windowObj.document;\n var node = document.createElement('div');\n node.className = 'mdc-ripple-surface--test-edge-var-bug';\n document.body.appendChild(node);\n // The bug exists if ::before style ends up propagating to the parent element.\n // Additionally, getComputedStyle returns null in iframes with display: \"none\" in Firefox,\n // but Firefox is known to support CSS custom properties correctly.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n var computedStyle = windowObj.getComputedStyle(node);\n var hasPseudoVarBug = computedStyle !== null && computedStyle.borderTopStyle === 'solid';\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n return hasPseudoVarBug;\n}\nexport function supportsCssVariables(windowObj, forceRefresh) {\n if (forceRefresh === void 0) { forceRefresh = false; }\n var CSS = windowObj.CSS;\n var supportsCssVars = supportsCssVariables_;\n if (typeof supportsCssVariables_ === 'boolean' && !forceRefresh) {\n return supportsCssVariables_;\n }\n var supportsFunctionPresent = CSS && typeof CSS.supports === 'function';\n if (!supportsFunctionPresent) {\n return false;\n }\n var explicitlySupportsCssVars = CSS.supports('--css-vars', 'yes');\n // See: https://bugs.webkit.org/show_bug.cgi?id=154669\n // See: README section on Safari\n var weAreFeatureDetectingSafari10plus = (CSS.supports('(--css-vars: yes)') &&\n CSS.supports('color', '#00000000'));\n if (explicitlySupportsCssVars || weAreFeatureDetectingSafari10plus) {\n supportsCssVars = !detectEdgePseudoVarBug(windowObj);\n }\n else {\n supportsCssVars = false;\n }\n if (!forceRefresh) {\n supportsCssVariables_ = supportsCssVars;\n }\n return supportsCssVars;\n}\n/**\n * Determine whether the current browser supports passive event listeners, and\n * if so, use them.\n */\nexport function applyPassive(globalObj, forceRefresh) {\n if (globalObj === void 0) { globalObj = window; }\n if (forceRefresh === void 0) { forceRefresh = false; }\n if (supportsPassive_ === undefined || forceRefresh) {\n var isSupported_1 = false;\n try {\n globalObj.document.addEventListener('test', function () { return undefined; }, {\n get passive() {\n isSupported_1 = true;\n return isSupported_1;\n },\n });\n }\n catch (e) {\n } // tslint:disable-line:no-empty cannot throw error due to tests. tslint also disables console.log.\n supportsPassive_ = isSupported_1;\n }\n return supportsPassive_ ? { passive: true } : false;\n}\nexport function getNormalizedEventCoords(evt, pageOffset, clientRect) {\n if (!evt) {\n return { x: 0, y: 0 };\n }\n var x = pageOffset.x, y = pageOffset.y;\n var documentX = x + clientRect.left;\n var documentY = y + clientRect.top;\n var normalizedX;\n var normalizedY;\n // Determine touch point relative to the ripple container.\n if (evt.type === 'touchstart') {\n var touchEvent = evt;\n normalizedX = touchEvent.changedTouches[0].pageX - documentX;\n normalizedY = touchEvent.changedTouches[0].pageY - documentY;\n }\n else {\n var mouseEvent = evt;\n normalizedX = mouseEvent.pageX - documentX;\n normalizedY = mouseEvent.pageY - documentY;\n }\n return { x: normalizedX, y: normalizedY };\n}\n//# sourceMappingURL=util.js.map","exports = module.exports = require(\"../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".mdc-button {\\n font-family: Roboto, sans-serif;\\n -moz-osx-font-smoothing: grayscale;\\n -webkit-font-smoothing: antialiased;\\n font-size: 0.875rem;\\n line-height: 2.25rem;\\n font-weight: 500;\\n letter-spacing: 0.08929em;\\n text-decoration: none;\\n text-transform: uppercase;\\n padding: 0 8px 0 8px;\\n display: inline-flex;\\n position: relative;\\n align-items: center;\\n justify-content: center;\\n box-sizing: border-box;\\n min-width: 64px;\\n height: 36px;\\n border: none;\\n outline: none;\\n /* @alternate */\\n line-height: inherit;\\n user-select: none;\\n -webkit-appearance: none;\\n overflow: hidden;\\n vertical-align: middle;\\n border-radius: 4px; }\\n .mdc-button::-moz-focus-inner {\\n padding: 0;\\n border: 0; }\\n .mdc-button:active {\\n outline: none; }\\n .mdc-button:hover {\\n cursor: pointer; }\\n .mdc-button:disabled {\\n background-color: transparent;\\n color: rgba(0, 0, 0, 0.37);\\n cursor: default;\\n pointer-events: none; }\\n .mdc-button.mdc-button--dense {\\n border-radius: 4px; }\\n .mdc-button:not(:disabled) {\\n background-color: transparent; }\\n .mdc-button .mdc-button__icon {\\n /* @noflip */\\n margin-left: 0;\\n /* @noflip */\\n margin-right: 8px;\\n display: inline-block;\\n width: 18px;\\n height: 18px;\\n font-size: 18px;\\n vertical-align: top; }\\n [dir=\\\"rtl\\\"] .mdc-button .mdc-button__icon, .mdc-button .mdc-button__icon[dir=\\\"rtl\\\"] {\\n /* @noflip */\\n margin-left: 8px;\\n /* @noflip */\\n margin-right: 0; }\\n .mdc-button:not(:disabled) {\\n color: #0072d9;\\n /* @alternate */\\n color: var(--mdc-theme-primary, #0072d9); }\\n\\n.mdc-button__label + .mdc-button__icon {\\n /* @noflip */\\n margin-left: 8px;\\n /* @noflip */\\n margin-right: 0; }\\n [dir=\\\"rtl\\\"] .mdc-button__label + .mdc-button__icon, .mdc-button__label + .mdc-button__icon[dir=\\\"rtl\\\"] {\\n /* @noflip */\\n margin-left: 0;\\n /* @noflip */\\n margin-right: 8px; }\\n\\nsvg.mdc-button__icon {\\n fill: currentColor; }\\n\\n.mdc-button--raised .mdc-button__icon,\\n.mdc-button--unelevated .mdc-button__icon,\\n.mdc-button--outlined .mdc-button__icon {\\n /* @noflip */\\n margin-left: -4px;\\n /* @noflip */\\n margin-right: 8px; }\\n [dir=\\\"rtl\\\"] .mdc-button--raised .mdc-button__icon, .mdc-button--raised .mdc-button__icon[dir=\\\"rtl\\\"], [dir=\\\"rtl\\\"]\\n .mdc-button--unelevated .mdc-button__icon,\\n .mdc-button--unelevated .mdc-button__icon[dir=\\\"rtl\\\"], [dir=\\\"rtl\\\"]\\n .mdc-button--outlined .mdc-button__icon,\\n .mdc-button--outlined .mdc-button__icon[dir=\\\"rtl\\\"] {\\n /* @noflip */\\n margin-left: 8px;\\n /* @noflip */\\n margin-right: -4px; }\\n\\n.mdc-button--raised .mdc-button__label + .mdc-button__icon,\\n.mdc-button--unelevated .mdc-button__label + .mdc-button__icon,\\n.mdc-button--outlined .mdc-button__label + .mdc-button__icon {\\n /* @noflip */\\n margin-left: 8px;\\n /* @noflip */\\n margin-right: -4px; }\\n [dir=\\\"rtl\\\"] .mdc-button--raised .mdc-button__label + .mdc-button__icon, .mdc-button--raised .mdc-button__label + .mdc-button__icon[dir=\\\"rtl\\\"], [dir=\\\"rtl\\\"]\\n .mdc-button--unelevated .mdc-button__label + .mdc-button__icon,\\n .mdc-button--unelevated .mdc-button__label + .mdc-button__icon[dir=\\\"rtl\\\"], [dir=\\\"rtl\\\"]\\n .mdc-button--outlined .mdc-button__label + .mdc-button__icon,\\n .mdc-button--outlined .mdc-button__label + .mdc-button__icon[dir=\\\"rtl\\\"] {\\n /* @noflip */\\n margin-left: -4px;\\n /* @noflip */\\n margin-right: 8px; }\\n\\n.mdc-button--raised,\\n.mdc-button--unelevated {\\n padding: 0 16px 0 16px; }\\n .mdc-button--raised:disabled,\\n .mdc-button--unelevated:disabled {\\n background-color: rgba(0, 0, 0, 0.12);\\n color: rgba(0, 0, 0, 0.37); }\\n .mdc-button--raised:not(:disabled),\\n .mdc-button--unelevated:not(:disabled) {\\n background-color: #0072d9; }\\n @supports not (-ms-ime-align: auto) {\\n .mdc-button--raised:not(:disabled),\\n .mdc-button--unelevated:not(:disabled) {\\n /* @alternate */\\n background-color: var(--mdc-theme-primary, #0072d9); } }\\n .mdc-button--raised:not(:disabled),\\n .mdc-button--unelevated:not(:disabled) {\\n color: #ffffff;\\n /* @alternate */\\n color: var(--mdc-theme-on-primary, #ffffff); }\\n\\n.mdc-button--raised {\\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\\n transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); }\\n .mdc-button--raised:hover, .mdc-button--raised:focus {\\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); }\\n .mdc-button--raised:active {\\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); }\\n .mdc-button--raised:disabled {\\n box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12); }\\n\\n.mdc-button--outlined {\\n border-style: solid;\\n padding: 0 15px 0 15px;\\n border-width: 1px; }\\n .mdc-button--outlined:disabled {\\n border-color: rgba(0, 0, 0, 0.37); }\\n .mdc-button--outlined:not(:disabled) {\\n border-color: #0072d9;\\n /* @alternate */\\n border-color: var(--mdc-theme-primary, #0072d9); }\\n\\n.mdc-button--dense {\\n height: 32px;\\n font-size: .8125rem; }\\n\\n@keyframes mdc-ripple-fg-radius-in {\\n from {\\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1); }\\n to {\\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); } }\\n\\n@keyframes mdc-ripple-fg-opacity-in {\\n from {\\n animation-timing-function: linear;\\n opacity: 0; }\\n to {\\n opacity: var(--mdc-ripple-fg-opacity, 0); } }\\n\\n@keyframes mdc-ripple-fg-opacity-out {\\n from {\\n animation-timing-function: linear;\\n opacity: var(--mdc-ripple-fg-opacity, 0); }\\n to {\\n opacity: 0; } }\\n\\n.mdc-ripple-surface--test-edge-var-bug {\\n --mdc-ripple-surface-test-edge-var: 1px solid #000;\\n visibility: hidden; }\\n .mdc-ripple-surface--test-edge-var-bug::before {\\n border: var(--mdc-ripple-surface-test-edge-var); }\\n\\n.mdc-button {\\n --mdc-ripple-fg-size: 0;\\n --mdc-ripple-left: 0;\\n --mdc-ripple-top: 0;\\n --mdc-ripple-fg-scale: 1;\\n --mdc-ripple-fg-translate-end: 0;\\n --mdc-ripple-fg-translate-start: 0;\\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\\n .mdc-button::before, .mdc-button::after {\\n position: absolute;\\n border-radius: 50%;\\n opacity: 0;\\n pointer-events: none;\\n content: \\\"\\\"; }\\n .mdc-button::before {\\n transition: opacity 15ms linear, background-color 15ms linear;\\n z-index: 1; }\\n .mdc-button.mdc-ripple-upgraded::before {\\n transform: scale(var(--mdc-ripple-fg-scale, 1)); }\\n .mdc-button.mdc-ripple-upgraded::after {\\n top: 0;\\n /* @noflip */\\n left: 0;\\n transform: scale(0);\\n transform-origin: center center; }\\n .mdc-button.mdc-ripple-upgraded--unbounded::after {\\n top: var(--mdc-ripple-top, 0);\\n /* @noflip */\\n left: var(--mdc-ripple-left, 0); }\\n .mdc-button.mdc-ripple-upgraded--foreground-activation::after {\\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards; }\\n .mdc-button.mdc-ripple-upgraded--foreground-deactivation::after {\\n animation: mdc-ripple-fg-opacity-out 150ms;\\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); }\\n .mdc-button::before, .mdc-button::after {\\n top: calc(50% - 100%);\\n /* @noflip */\\n left: calc(50% - 100%);\\n width: 200%;\\n height: 200%; }\\n .mdc-button.mdc-ripple-upgraded::after {\\n width: var(--mdc-ripple-fg-size, 100%);\\n height: var(--mdc-ripple-fg-size, 100%); }\\n .mdc-button::before, .mdc-button::after {\\n background-color: #0072d9; }\\n @supports not (-ms-ime-align: auto) {\\n .mdc-button::before, .mdc-button::after {\\n /* @alternate */\\n background-color: var(--mdc-theme-primary, #0072d9); } }\\n .mdc-button:hover::before {\\n opacity: 0.04; }\\n .mdc-button:not(.mdc-ripple-upgraded):focus::before, .mdc-button.mdc-ripple-upgraded--background-focused::before {\\n transition-duration: 75ms;\\n opacity: 0.12; }\\n .mdc-button:not(.mdc-ripple-upgraded)::after {\\n transition: opacity 150ms linear; }\\n .mdc-button:not(.mdc-ripple-upgraded):active::after {\\n transition-duration: 75ms;\\n opacity: 0.12; }\\n .mdc-button.mdc-ripple-upgraded {\\n --mdc-ripple-fg-opacity: 0.12; }\\n\\n.mdc-button--raised::before, .mdc-button--raised::after,\\n.mdc-button--unelevated::before,\\n.mdc-button--unelevated::after {\\n background-color: #ffffff; }\\n @supports not (-ms-ime-align: auto) {\\n .mdc-button--raised::before, .mdc-button--raised::after,\\n .mdc-button--unelevated::before,\\n .mdc-button--unelevated::after {\\n /* @alternate */\\n background-color: var(--mdc-theme-on-primary, #ffffff); } }\\n\\n.mdc-button--raised:hover::before,\\n.mdc-button--unelevated:hover::before {\\n opacity: 0.08; }\\n\\n.mdc-button--raised:not(.mdc-ripple-upgraded):focus::before, .mdc-button--raised.mdc-ripple-upgraded--background-focused::before,\\n.mdc-button--unelevated:not(.mdc-ripple-upgraded):focus::before,\\n.mdc-button--unelevated.mdc-ripple-upgraded--background-focused::before {\\n transition-duration: 75ms;\\n opacity: 0.24; }\\n\\n.mdc-button--raised:not(.mdc-ripple-upgraded)::after,\\n.mdc-button--unelevated:not(.mdc-ripple-upgraded)::after {\\n transition: opacity 150ms linear; }\\n\\n.mdc-button--raised:not(.mdc-ripple-upgraded):active::after,\\n.mdc-button--unelevated:not(.mdc-ripple-upgraded):active::after {\\n transition-duration: 75ms;\\n opacity: 0.24; }\\n\\n.mdc-button--raised.mdc-ripple-upgraded,\\n.mdc-button--unelevated.mdc-ripple-upgraded {\\n --mdc-ripple-fg-opacity: 0.24; }\\n\\n.m-icon {\\n margin-right: 0.6em; }\\n\\n.material-icons {\\n font-family: 'Material Icons';\\n font-weight: normal;\\n font-style: normal;\\n font-size: 24px;\\n line-height: 1;\\n letter-spacing: normal;\\n text-transform: none;\\n display: inline-block;\\n white-space: nowrap;\\n word-wrap: normal;\\n direction: ltr;\\n -webkit-font-feature-settings: 'liga';\\n -webkit-font-smoothing: antialiased; }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","\n var result = require(\"!!../../node_modules/_css-loader@1.0.1@css-loader/index.js!../../node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!../../node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./index.scss\");\n\n if (typeof result === \"string\") {\n module.exports = result;\n } else {\n module.exports = result.toString();\n }\n ","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = require(\"omi\");\nvar css = require(\"./index.scss\");\nvar ripple_1 = require(\"@material/ripple\");\nrequire(\"../icon\");\n//@ts-ignore\nrequire(\"../theme.ts\");\nvar Button = /** @class */ (function (_super) {\n __extends(Button, _super);\n function Button() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Button.prototype.installed = function () {\n if (this.props.ripple) {\n new ripple_1.MDCRipple(this.shadowRoot.querySelector('.mdc-button'));\n }\n };\n Button.prototype.render = function (props) {\n return (omi_1.h(\"button\", __assign({}, omi_1.extractClass(props, 'mdc-button', {\n 'mdc-button--dense': props.dense,\n 'mdc-button--raised': props.raised,\n 'mdc-button--unelevated': props.unelevated,\n 'mdc-button--outlined': props.outlined\n })),\n (props.icon) && omi_1.h(\"i\", { class: \"material-icons mdc-button__icon\" }, props.icon),\n (props.svgIcon) && omi_1.h(\"m-icon\", __assign({ class: 'm-icon' }, props.svgIcon)),\n omi_1.h(\"span\", { class: \"mdc-button__label\" },\n omi_1.h(\"slot\", null))));\n };\n Button.css = css;\n Button.defaultProps = {\n ripple: true\n };\n Button.propTypes = {\n ripple: Boolean,\n raised: Boolean,\n dense: Boolean,\n unelevated: Boolean,\n outlined: Boolean,\n svgIcon: Object,\n icon: String\n };\n Button = __decorate([\n omi_1.tag('m-button')\n ], Button);\n return Button;\n}(omi_1.WeElement));\nexports.default = Button;\n","(function webpackUniversalModuleDefinition(root, factory) {\n if (typeof exports === 'object' && typeof module === 'object')\n module.exports = factory(require(\"omi\"));\n else if (typeof define === 'function' && define.amd)\n define([\"omi\"], factory);\n else if (typeof exports === 'object')\n exports[\"MIcon\"] = factory(require(\"omi\"));\n else\n root[\"MIcon\"] = factory(root[\"Omi\"]);\n})(window, function (__WEBPACK_EXTERNAL_MODULE_omi__) {\n return /******/ (function (modules) {\n /******/ // The module cache\n /******/ var installedModules = {};\n /******/\n /******/ // The require function\n /******/ function __webpack_require__(moduleId) {\n /******/\n /******/ // Check if module is in cache\n /******/ if (installedModules[moduleId]) {\n /******/ return installedModules[moduleId].exports;\n /******/ }\n /******/ // Create a new module (and put it into the cache)\n /******/ var module = installedModules[moduleId] = {\n /******/ i: moduleId,\n /******/ l: false,\n /******/ exports: {}\n /******/ \n };\n /******/\n /******/ // Execute the module function\n /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n /******/ // Flag the module as loaded\n /******/ module.l = true;\n /******/\n /******/ // Return the exports of the module\n /******/ return module.exports;\n /******/ \n }\n /******/\n /******/\n /******/ // expose the modules object (__webpack_modules__)\n /******/ __webpack_require__.m = modules;\n /******/\n /******/ // expose the module cache\n /******/ __webpack_require__.c = installedModules;\n /******/\n /******/ // define getter function for harmony exports\n /******/ __webpack_require__.d = function (exports, name, getter) {\n /******/ if (!__webpack_require__.o(exports, name)) {\n /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });\n /******/ }\n /******/ \n };\n /******/\n /******/ // define __esModule on exports\n /******/ __webpack_require__.r = function (exports) {\n /******/ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n /******/ }\n /******/ Object.defineProperty(exports, '__esModule', { value: true });\n /******/ \n };\n /******/\n /******/ // create a fake namespace object\n /******/ // mode & 1: value is a module id, require it\n /******/ // mode & 2: merge all properties of value into the ns\n /******/ // mode & 4: return value when already ns object\n /******/ // mode & 8|1: behave like require\n /******/ __webpack_require__.t = function (value, mode) {\n /******/ if (mode & 1)\n value = __webpack_require__(value);\n /******/ if (mode & 8)\n return value;\n /******/ if ((mode & 4) && typeof value === 'object' && value && value.__esModule)\n return value;\n /******/ var ns = Object.create(null);\n /******/ __webpack_require__.r(ns);\n /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });\n /******/ if (mode & 2 && typeof value != 'string')\n for (var key in value)\n __webpack_require__.d(ns, key, function (key) { return value[key]; }.bind(null, key));\n /******/ return ns;\n /******/ \n };\n /******/\n /******/ // getDefaultExport function for compatibility with non-harmony modules\n /******/ __webpack_require__.n = function (module) {\n /******/ var getter = module && module.__esModule ?\n /******/ function getDefault() { return module['default']; } :\n /******/ function getModuleExports() { return module; };\n /******/ __webpack_require__.d(getter, 'a', getter);\n /******/ return getter;\n /******/ \n };\n /******/\n /******/ // Object.prototype.hasOwnProperty.call\n /******/ __webpack_require__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n /******/\n /******/ // __webpack_public_path__\n /******/ __webpack_require__.p = \"\";\n /******/\n /******/\n /******/ // Load entry module and return exports\n /******/ return __webpack_require__(__webpack_require__.s = \"./src/icon/index.tsx\");\n /******/ \n })({\n /***/ \"./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/icon/index.scss\": \n /*!***********************************************************************************************************************************************************************************************************!*\\\n !*** ./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./src/icon/index.scss ***!\n \\***********************************************************************************************************************************************************************************************************/\n /*! no static exports found */\n /***/ (function (module, exports, __webpack_require__) {\n exports = module.exports = __webpack_require__(/*! ../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n // imports\n // module\n exports.push([module.i, \".m-icon {\\n text-align: center;\\n display: inline-block; }\\n\\n.m-icon svg {\\n display: inline-block;\\n vertical-align: top; }\\n\\n.rotate {\\n display: inline-block;\\n -webkit-animation: rotate 1s infinite linear;\\n animation: rotate 1s infinite linear; }\\n\\ni div {\\n font-style: normal; }\\n\\n@-webkit-keyframes rotate {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg); } }\\n\\n@keyframes rotate {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg); } }\\n\", \"\"]);\n // exports\n /***/ \n }),\n /***/ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\": \n /*!*******************************************************************!*\\\n !*** ./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js ***!\n \\*******************************************************************/\n /*! no static exports found */\n /***/ (function (module, exports) {\n /*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n */\n // css base code, injected by the css-loader\n module.exports = function (useSourceMap) {\n var list = [];\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n if (item[2]) {\n return \"@media \" + item[2] + \"{\" + content + \"}\";\n }\n else {\n return content;\n }\n }).join(\"\");\n };\n // import a list of modules into the list\n list.i = function (modules, mediaQuery) {\n if (typeof modules === \"string\")\n modules = [[null, modules, \"\"]];\n var alreadyImportedModules = {};\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n if (typeof id === \"number\")\n alreadyImportedModules[id] = true;\n }\n for (i = 0; i < modules.length; i++) {\n var item = modules[i];\n // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n if (typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n }\n else if (mediaQuery) {\n item[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n }\n list.push(item);\n }\n }\n };\n return list;\n };\n function cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n return [content].join('\\n');\n }\n // Adapted from convert-source-map (MIT)\n function toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n }\n /***/ \n }),\n /***/ \"./src/icon/index.scss\": \n /*!*****************************!*\\\n !*** ./src/icon/index.scss ***!\n \\*****************************/\n /*! no static exports found */\n /***/ (function (module, exports, __webpack_require__) {\n var result = __webpack_require__(/*! !../../node_modules/_css-loader@1.0.1@css-loader!../../node_modules/_resolve-url-loader@3.1.0@resolve-url-loader!../../node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--4-3!./index.scss */ \"./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.0@resolve-url-loader/index.js!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js?!./src/icon/index.scss\");\n if (typeof result === \"string\") {\n module.exports = result;\n }\n else {\n module.exports = result.toString();\n }\n /***/ \n }),\n /***/ \"./src/icon/index.tsx\": \n /*!****************************!*\\\n !*** ./src/icon/index.tsx ***!\n \\****************************/\n /*! no static exports found */\n /***/ (function (module, exports, __webpack_require__) {\n \"use strict\";\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\n Object.defineProperty(exports, \"__esModule\", { value: true });\n var omi_1 = __webpack_require__(/*! omi */ \"omi\");\n var css = __webpack_require__(/*! ./index.scss */ \"./src/icon/index.scss\");\n //@ts-ignore\n __webpack_require__(/*! ../theme.ts */ \"./src/theme.ts\");\n var Icon = /** @class */ (function (_super) {\n __extends(Icon, _super);\n function Icon() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Icon.prototype.render = function (props) {\n return (omi_1.h(\"i\", __assign({}, omi_1.extractClass(props, 'm-icon')), omi_1.h(\"svg\", { viewBox: '0 0 ' + props.view + ' ' + props.view, class: omi_1.classNames({ rotate: props.rotate }), width: props.scale + 'em', height: props.scale + 'em', fill: props.color, \"aria-hidden\": \"true\" }, props.paths ? (props.paths.map(function (item) {\n var attrs = { d: item.path, fill: props.color || 'black' };\n if (item.color)\n attrs.fill = item.color;\n return omi_1.h(\"path\", __assign({}, attrs));\n })) : omi_1.h(\"path\", { d: props.path })), props.children && (omi_1.h(\"div\", { style: \"color:\" + (props.color || 'black') + \";\" }, props.children[0]))));\n };\n Icon.css = css;\n Icon.defaultProps = {\n view: 1024,\n scale: 2\n };\n Icon.propTypes = {\n path: String,\n paths: Object,\n view: Number,\n scale: Number,\n color: String,\n rotate: Boolean\n };\n Icon = __decorate([\n omi_1.tag('m-icon')\n ], Icon);\n return Icon;\n }(omi_1.WeElement));\n exports.default = Icon;\n /***/ \n }),\n /***/ \"./src/theme.ts\": \n /*!**********************!*\\\n !*** ./src/theme.ts ***!\n \\**********************/\n /*! no static exports found */\n /***/ (function (module, exports) {\n theme();\n document.addEventListener('DOMContentLoaded', function () {\n theme();\n });\n function theme() {\n if (document.body && !document.body.style.getPropertyValue('--mdc-theme-primary')) {\n document.body.style.setProperty('--mdc-theme-primary', '#0072d9');\n document.body.style.setProperty('--mdc-theme-secondary', '#2170b8');\n document.body.style.setProperty('--mdc-theme-error', '#f5222d');\n document.body.style.setProperty('--mdc-theme-surface', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-primary', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-secondary', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-error', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-surface', '#000000');\n document.body.style.setProperty('--mdc-theme-background', '#ffffff');\n document.body.style.setProperty('--mdc-shape-small-component-radius', '4px');\n document.body.style.setProperty('--mdc-shape-medium-component-radius', '4px');\n document.body.style.setProperty('--mdc-shape-large-component-radius', '0px');\n document.body.style.setProperty('--mdc-typography--font-family', 'Roboto, sans-serif');\n }\n }\n /***/ \n }),\n /***/ \"omi\": \n /*!******************************************************************************!*\\\n !*** external {\"commonjs\":\"omi\",\"commonjs2\":\"omi\",\"amd\":\"omi\",\"root\":\"Omi\"} ***!\n \\******************************************************************************/\n /*! no static exports found */\n /***/ (function (module, exports) {\n module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n /***/ \n })\n /******/ \n })[\"default\"];\n});\n//# sourceMappingURL=index.js.map\n","theme();\ndocument.addEventListener('DOMContentLoaded', function () {\n theme();\n});\nfunction theme() {\n if (document.body && !document.body.style.getPropertyValue('--mdc-theme-primary')) {\n document.body.style.setProperty('--mdc-theme-primary', '#0072d9');\n document.body.style.setProperty('--mdc-theme-secondary', '#2170b8');\n document.body.style.setProperty('--mdc-theme-error', '#f5222d');\n document.body.style.setProperty('--mdc-theme-surface', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-primary', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-secondary', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-error', '#ffffff');\n document.body.style.setProperty('--mdc-theme-on-surface', '#000000');\n document.body.style.setProperty('--mdc-theme-background', '#ffffff');\n document.body.style.setProperty('--mdc-shape-small-component-radius', '4px');\n document.body.style.setProperty('--mdc-shape-medium-component-radius', '4px');\n document.body.style.setProperty('--mdc-shape-large-component-radius', '0px');\n document.body.style.setProperty('--mdc-typography--font-family', 'Roboto, sans-serif');\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;"],"sourceRoot":""} \ No newline at end of file diff --git a/packages/omim/src/rate/index.scss b/packages/omim/src/rate/index.scss new file mode 100644 index 000000000..decc312f2 --- /dev/null +++ b/packages/omim/src/rate/index.scss @@ -0,0 +1,60 @@ +@import "../theme"; + +:host { + display: inline-block; +} + +.m-rate { + display: inline-block; + text-align: center; + cursor: pointer; + padding: 2px; +} + +ul, +li { + list-style: none; + padding: 0; + margin: 0; +} + +svg{ + margin: 0; + padding: 0; +} +li{ + width:auto; + height: auto; +} + +._star { + position: relative; + width: 1em; + height: 1em; + display: inline-block; + padding: 3px; +} + +._star-first { + position: absolute; + z-index: 10; + overflow: hidden; +} + +._star-second { + position: absolute; +} + +._star-half ._star-first { + width: 1em; +} + +._star-empty ._star-first { + width: 0; +} + +.star-box{ + position: relative; + left: -0.5em; + top: -0.2em; +} \ No newline at end of file diff --git a/packages/omim/src/rate/index.tsx b/packages/omim/src/rate/index.tsx new file mode 100644 index 000000000..5a451a066 --- /dev/null +++ b/packages/omim/src/rate/index.tsx @@ -0,0 +1,93 @@ +import { tag, WeElement, h, extractClass } from 'omi' +import * as css from './index.scss' +//@ts-ignore +import '../theme.ts' + +interface Props { + total:number +} + +interface Data { + +} + +@tag('m-rate') +export default class Rate extends WeElement{ + static css = css + + static defaultProps = { + value: 0 + } + + _current = 0 + + _rect = null + + _hover = false + + onSelect = (evt) => { + this._rect = this.base.getBoundingClientRect() + const dx = evt.pageX - this._rect.left + const value = dx / this._rect.width * this.props.total + const intValue = Math.floor(value) + //@ts-ignore + this.fire('selected', intValue + (value - intValue > 0.5 ? 1 : 0.5)) + } + + onMouseMove = (evt) => { + this._rect = this.base.getBoundingClientRect() + const dx = evt.pageX - this._rect.left + this._current = dx / this._rect.width * this.props.total + this.update() + } + + base:HTMLElement + installed(){ + this.base = this.shadowRoot.querySelector('ul') + } + + onMouseEnter = () => { + this._hover = true + } + + onMouseLeave = () => { + this._hover = false + this.update() + } + + _getClass = (i, current) => { + if (i < current) { + if (current - i <= 0.5) { + return '_star _star-half ' + } + return '_star' + } else { + return '_star _star-empty ' + } + } + + render(props) { + return ( +
    + + {Array.apply(0, Array(props.total)).map((x, i) => +
  • +
    +
    + + + +
    +
    + + + +
    +
    +
  • + )} + +
+ ) + } +} diff --git a/packages/omim/src/rate/package.json b/packages/omim/src/rate/package.json new file mode 100644 index 000000000..4f94eb1d9 --- /dev/null +++ b/packages/omim/src/rate/package.json @@ -0,0 +1,24 @@ +{ + "name": "@omim/button", + "version": "0.0.1", + "description": "Material Design for Omi.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "omi", + "omim", + "material", + "material design", + "material-design" + ], + "author": "dntzhang ", + "license": "MIT", + "bugs": { + "url": "https://github.com/Tencent/omi/issues" + }, + "homepage": "https://github.com/Tencent/omi", + "typings": "./index.d.ts", + "types": "index.d.ts" +} diff --git a/packages/omim/src/row/index.css b/packages/omim/src/row/index.css new file mode 100644 index 000000000..5a3c30b2e --- /dev/null +++ b/packages/omim/src/row/index.css @@ -0,0 +1,361 @@ +:host { + display: block; +} +.col { + position: relative; + display: block; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} +.block { + display: block; +} +.block > div { + float: left; +} +.col1 { + width: 4.16666667%; +} +.col2 { + width: 8.33333333%; +} +.col3 { + width: 12.5%; +} +.col4 { + width: 16.66666667%; +} +.col5 { + width: 20.83333333%; +} +.col6 { + width: 25%; +} +.col7 { + width: 29.16666667%; +} +.col8 { + width: 33.33333333%; +} +.col9 { + width: 37.5%; +} +.col10 { + width: 41.66666667%; +} +.col11 { + width: 45.83333333%; +} +.col12 { + width: 50%; +} +.col13 { + width: 54.16666667%; +} +.col14 { + width: 58.33333333%; +} +.col15 { + width: 62.5%; +} +.col16 { + width: 66.66666667%; +} +.col17 { + width: 70.83333333%; +} +.col18 { + width: 75%; +} +.col19 { + width: 79.16666667%; +} +.col20 { + width: 83.33333333%; +} +.col21 { + width: 87.5%; +} +.col22 { + width: 91.66666667%; +} +.col23 { + width: 95.83333333%; +} +.col24 { + width: 100%; +} +.offset1 { + margin-left: 4.16666667%; +} +.offset2 { + margin-left: 8.33333333%; +} +.offset3 { + margin-left: 12.5%; +} +.offset4 { + margin-left: 16.66666667%; +} +.offset5 { + margin-left: 20.83333333%; +} +.offset6 { + margin-left: 25%; +} +.offset7 { + margin-left: 29.16666667%; +} +.offset8 { + margin-left: 33.33333333%; +} +.offset9 { + margin-left: 37.5%; +} +.offset10 { + margin-left: 41.66666667%; +} +.offset11 { + margin-left: 45.83333333%; +} +.offset12 { + margin-left: 50%; +} +.offset13 { + margin-left: 54.16666667%; +} +.offset14 { + margin-left: 58.33333333%; +} +.offset15 { + margin-left: 62.5%; +} +.offset16 { + margin-left: 66.66666667%; +} +.offset17 { + margin-left: 70.83333333%; +} +.offset18 { + margin-left: 75%; +} +.offset19 { + margin-left: 79.16666667%; +} +.offset20 { + margin-left: 83.33333333%; +} +.offset21 { + margin-left: 87.5%; +} +.offset22 { + margin-left: 91.66666667%; +} +.offset23 { + margin-left: 95.83333333%; +} +.offset24 { + margin-left: 100%; +} +.pull1 { + right: 4.16666667%; +} +.pull2 { + right: 8.33333333%; +} +.pull3 { + right: 12.5%; +} +.pull4 { + right: 16.66666667%; +} +.pull5 { + right: 20.83333333%; +} +.pull6 { + right: 25%; +} +.pull7 { + right: 29.16666667%; +} +.pull8 { + right: 33.33333333%; +} +.pull9 { + right: 37.5%; +} +.pull10 { + right: 41.66666667%; +} +.pull11 { + right: 45.83333333%; +} +.pull12 { + right: 50%; +} +.pull13 { + right: 54.16666667%; +} +.pull14 { + right: 58.33333333%; +} +.pull15 { + right: 62.5%; +} +.pull16 { + right: 66.66666667%; +} +.pull17 { + right: 70.83333333%; +} +.pull18 { + right: 75%; +} +.pull19 { + right: 79.16666667%; +} +.pull20 { + right: 83.33333333%; +} +.pull21 { + right: 87.5%; +} +.pull22 { + right: 91.66666667%; +} +.pull23 { + right: 95.83333333%; +} +.pull24 { + right: 100%; +} +.push1 { + left: 4.16666667%; +} +.push2 { + left: 8.33333333%; +} +.push3 { + left: 12.5%; +} +.push4 { + left: 16.66666667%; +} +.push5 { + left: 20.83333333%; +} +.push6 { + left: 25%; +} +.push7 { + left: 29.16666667%; +} +.push8 { + left: 33.33333333%; +} +.push9 { + left: 37.5%; +} +.push10 { + left: 41.66666667%; +} +.push11 { + left: 45.83333333%; +} +.push12 { + left: 50%; +} +.push13 { + left: 54.16666667%; +} +.push14 { + left: 58.33333333%; +} +.push15 { + left: 62.5%; +} +.push16 { + left: 66.66666667%; +} +.push17 { + left: 70.83333333%; +} +.push18 { + left: 75%; +} +.push19 { + left: 79.16666667%; +} +.push20 { + left: 83.33333333%; +} +.push21 { + left: 87.5%; +} +.push22 { + left: 91.66666667%; +} +.push23 { + left: 95.83333333%; +} +.push24 { + left: 100%; +} +.flex { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -webkit-flex-flow: row wrap; + -ms-flex-flow: row wrap; + flex-flow: row wrap; +} +.flex-start { + -webkit-box-pack: start; + -webkit-justify-content: flex-start; + -ms-flex-pack: start; + justify-content: flex-start; +} +.flex-center { + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} +.flex-end { + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} +.flex-space-between { + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} +.flex-space-around { + -webkit-justify-content: space-around; + -ms-flex-pack: distribute; + justify-content: space-around; +} +.flex-top { + -webkit-box-align: start; + -webkit-align-items: flex-start; + -ms-flex-align: start; + align-items: flex-start; +} +.flex-middle { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; +} +.flex-bottom { + -webkit-box-align: end; + -webkit-align-items: flex-end; + -ms-flex-align: end; + align-items: flex-end; +} diff --git a/packages/omim/src/row/index.scss b/packages/omim/src/row/index.scss index 14ac60de4..8bc4ae8df 100644 --- a/packages/omim/src/row/index.scss +++ b/packages/omim/src/row/index.scss @@ -1,3 +1,7 @@ +:host { + display: block; +} + .col{ position: relative; display: block; diff --git a/packages/omim/src/select/index.scss b/packages/omim/src/select/index.scss index 9cd8e4f69..f86b323f9 100644 --- a/packages/omim/src/select/index.scss +++ b/packages/omim/src/select/index.scss @@ -1,6 +1,10 @@ @import "../theme"; @import "@material/select/mdc-select"; +:host { + display: inline-block; +} + select { appearance: none; -webkit-appearance: none; diff --git a/packages/omim/src/simple-card/index.scss b/packages/omim/src/simple-card/index.scss index d35350249..9ee5aee75 100644 --- a/packages/omim/src/simple-card/index.scss +++ b/packages/omim/src/simple-card/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: inline-block; +} + .card{ display: inline-block; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); diff --git a/packages/omim/src/slider/index.scss b/packages/omim/src/slider/index.scss index b53354901..1dca27663 100644 --- a/packages/omim/src/slider/index.scss +++ b/packages/omim/src/slider/index.scss @@ -1,2 +1,6 @@ @import "../theme"; -@import "@material/slider/mdc-slider"; \ No newline at end of file +@import "@material/slider/mdc-slider"; + +:host { + display: inline-block; +} diff --git a/packages/omim/src/spreadsheet/index.scss b/packages/omim/src/spreadsheet/index.scss index 7704d8e63..f79172a9b 100644 --- a/packages/omim/src/spreadsheet/index.scss +++ b/packages/omim/src/spreadsheet/index.scss @@ -3,6 +3,10 @@ @import "@material/button/mdc-button"; @import "@material/icon-button/mdc-icon-button"; +:host { + display: block; +} + .mdc-snackbar__action:not(:disabled){ color: $mdc-theme-secondary!important; } diff --git a/packages/omim/src/step/index.scss b/packages/omim/src/step/index.scss index 6f6ee0ce3..c0f6491d9 100644 --- a/packages/omim/src/step/index.scss +++ b/packages/omim/src/step/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + .m-step { width: 100%; display: inline-block; diff --git a/packages/omim/src/switch/index.scss b/packages/omim/src/switch/index.scss index 87e1ae301..f8f510b48 100644 --- a/packages/omim/src/switch/index.scss +++ b/packages/omim/src/switch/index.scss @@ -1,2 +1,6 @@ @import "../theme"; -@import "@material/switch/mdc-switch"; \ No newline at end of file +@import "@material/switch/mdc-switch"; + +:host { + display: inline-block; +} \ No newline at end of file diff --git a/packages/omim/src/tab/index.scss b/packages/omim/src/tab/index.scss index 16bf32b79..9216cb776 100644 --- a/packages/omim/src/tab/index.scss +++ b/packages/omim/src/tab/index.scss @@ -4,6 +4,10 @@ @import "@material/tab-indicator/mdc-tab-indicator"; @import "@material/tab/mdc-tab"; +:host { + display: block; +} + .material-icons { font-family: 'Material Icons'; font-weight: normal; diff --git a/packages/omim/src/table/index.scss b/packages/omim/src/table/index.scss index 5b1b34202..aba84e64c 100644 --- a/packages/omim/src/table/index.scss +++ b/packages/omim/src/table/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + .m-table { background: white; margin: auto; diff --git a/packages/omim/src/tag/index.scss b/packages/omim/src/tag/index.scss index cd4703c92..a120b62ad 100644 --- a/packages/omim/src/tag/index.scss +++ b/packages/omim/src/tag/index.scss @@ -1,5 +1,9 @@ @import '../theme'; +:host { + display: inline-block; +} + .m-icon { margin-left: 0.6em; text-align: center; diff --git a/packages/omim/src/text-field/index.scss b/packages/omim/src/text-field/index.scss index 58996ace5..423de441a 100644 --- a/packages/omim/src/text-field/index.scss +++ b/packages/omim/src/text-field/index.scss @@ -1,6 +1,10 @@ @import "../theme"; @import "@material/textfield/mdc-text-field"; +:host { + display: inline-block; +} + .icon{ cursor: default; pointer-events: none; diff --git a/packages/omim/src/transfer-list/index.scss b/packages/omim/src/transfer-list/index.scss index 4ece37634..052f35b3d 100644 --- a/packages/omim/src/transfer-list/index.scss +++ b/packages/omim/src/transfer-list/index.scss @@ -1,5 +1,9 @@ @import '../theme'; +:host { + display: block; +} + m-list, .btns{ display: inline-block; vertical-align: middle; diff --git a/packages/omim/src/tree/index.scss b/packages/omim/src/tree/index.scss index 0badd3693..91f582a3e 100644 --- a/packages/omim/src/tree/index.scss +++ b/packages/omim/src/tree/index.scss @@ -1,5 +1,9 @@ @import "../theme"; +:host { + display: block; +} + .material-icons { font-family: 'Material Icons'; font-weight: normal;