rmwc
Version:
A thin React wrapper for Material Design (Web) Components
1 lines • 186 kB
JavaScript
!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("react"),require("classnames"),require("prop-types"),require("@material/ripple/dist/mdc.ripple"),require("react-dom"),require("@material/checkbox/dist/mdc.checkbox"),require("@material/form-field/dist/mdc.formField"),require("@material/drawer/dist/mdc.drawer"),require("@material/dialog/dist/mdc.dialog"),require("@material/icon-toggle/dist/mdc.iconToggle"),require("@material/linear-progress/dist/mdc.linearProgress"),require("@material/menu/dist/mdc.menu"),require("@material/radio/dist/mdc.radio"),require("@material/select/dist/mdc.select"),require("@material/slider/dist/mdc.slider"),require("@material/snackbar/dist/mdc.snackbar"),require("@material/animation/dist/mdc.animation"),require("@material/tabs/dist/mdc.tabs"),require("@material/textfield/dist/mdc.textfield"),require("@material/toolbar/dist/mdc.toolbar")):"function"===typeof define&&define.amd?define(["react","classnames","prop-types","@material/ripple/dist/mdc.ripple","react-dom","@material/checkbox/dist/mdc.checkbox","@material/form-field/dist/mdc.formField","@material/drawer/dist/mdc.drawer","@material/dialog/dist/mdc.dialog","@material/icon-toggle/dist/mdc.iconToggle","@material/linear-progress/dist/mdc.linearProgress","@material/menu/dist/mdc.menu","@material/radio/dist/mdc.radio","@material/select/dist/mdc.select","@material/slider/dist/mdc.slider","@material/snackbar/dist/mdc.snackbar","@material/animation/dist/mdc.animation","@material/tabs/dist/mdc.tabs","@material/textfield/dist/mdc.textfield","@material/toolbar/dist/mdc.toolbar"],t):"object"===typeof exports?exports.rmwc=t(require("react"),require("classnames"),require("prop-types"),require("@material/ripple/dist/mdc.ripple"),require("react-dom"),require("@material/checkbox/dist/mdc.checkbox"),require("@material/form-field/dist/mdc.formField"),require("@material/drawer/dist/mdc.drawer"),require("@material/dialog/dist/mdc.dialog"),require("@material/icon-toggle/dist/mdc.iconToggle"),require("@material/linear-progress/dist/mdc.linearProgress"),require("@material/menu/dist/mdc.menu"),require("@material/radio/dist/mdc.radio"),require("@material/select/dist/mdc.select"),require("@material/slider/dist/mdc.slider"),require("@material/snackbar/dist/mdc.snackbar"),require("@material/animation/dist/mdc.animation"),require("@material/tabs/dist/mdc.tabs"),require("@material/textfield/dist/mdc.textfield"),require("@material/toolbar/dist/mdc.toolbar")):e.rmwc=t(e.React,e.classNames,e.PropTypes,e["@material/ripple/dist/mdc.ripple"],e.ReactDOM,e["@material/checkbox/dist/mdc.checkbox"],e["@material/form-field/dist/mdc.formField"],e["@material/drawer/dist/mdc.drawer"],e["@material/dialog/dist/mdc.dialog"],e["@material/icon-toggle/dist/mdc.iconToggle"],e["@material/linear-progress/dist/mdc.linearProgress"],e["@material/menu/dist/mdc.menu"],e["@material/radio/dist/mdc.radio"],e["@material/select/dist/mdc.select"],e["@material/slider/dist/mdc.slider"],e["@material/snackbar/dist/mdc.snackbar"],e["@material/animation/dist/mdc.animation"],e["@material/tabs/dist/mdc.tabs"],e["@material/textfield/dist/mdc.textfield"],e["@material/toolbar/dist/mdc.toolbar"])}(this,function(e,t,n,r,o,i,a,c,u,s,l,d,f,p,h,m,y,b,v,_){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/rmwc/",t(t.s=20)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(23);n.d(t,"c",function(){return r.a});var o=n(24);n.d(t,"f",function(){return o.a});var i=(n(13),n(26));n.d(t,"a",function(){return i.a});var a=n(8);n.d(t,"b",function(){return a.a});var c=n(3);n.d(t,"e",function(){return c.b}),n.d(t,"d",function(){return c.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}n.d(t,"b",function(){return m}),n.d(t,"a",function(){return O});var c=n(0),u=(n.n(c),n(4)),s=n.n(u),l=n(5),d=(n.n(l),n(6)),f=n(1),p=n(17),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=Object(f.c)({displayName:"IconRoot",tag:"i"}),y=function(e){var t=e.content,n=a(e,["content"]);return c.createElement(m,n,t)},b=function(e){var t=(e.content,a(e,["content"]));return c.createElement(m,t)},v=function(e){var t=e.content,n=a(e,["content"]);return c.createElement(m,Object.assign({},n,{tag:"img",src:t}))},_=function(e){var t=e.content,n=a(e,["content"]);return c.createElement(m,n,t)},g={ligature:y,className:b,url:v,component:_,auto:void 0},O=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),h(t,[{key:"componentWillMount",value:function(){this.providerOptions=Object(d.b)(this.context)}},{key:"render",value:function(){var e=this.props,t=e.use,n=e.children,r=e.render,o=e.strategy,i=e.prefix,c=e.basename,u=a(e,["use","children","render","strategy","prefix","basename"]),l=this.providerOptions,d=l.iconClassNameBase,f=l.iconClassNamePrefix,h=l.iconStrategy,m=l.iconRender,y=t||n,b=Object(p.a)(y,o||null,h||null),v=i||f,_=void 0===c?d:c,O="className"===b&&"string"===typeof y?""+String(v)+y:null,w="custom"===b?r||m:b&&void 0!==g[b]?g[b]:void 0;return w?w(Object.assign({},u,{content:y,className:s()(_,u.className,O)})):(console.error("Icon: rendering not implemented for "+String(b)+"."),null)}}]),t}(c.PureComponent);O.displayName="Icon",O.defaultProps={use:void 0},O.contextTypes={RMWCOptions:l.object},t.c=O},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f});var a=n(0),c=(n.n(a),"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<n?window.requestAnimationFrame(function(){return e(t,n,r+1)}):t()},l=function(e,t){Object.getOwnPropertyNames(t).forEach(function(n){if(!String(n).match(/^(?:constructor|prototype|arguments|caller|name|bind|call|apply|toString|length)$/)){var r=Object.getOwnPropertyDescriptor(t,n);void 0!==r&&Object.defineProperty(e,n,r)}})},d=function(e,t,n){void 0!==e&&e!==t&&n()},f=function(e){var t=e.constructor,n=e.adapter,d=void 0===n?{}:n,f=e.refs,p=void 0===f?["root_"]:f,h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.foundationRefs=p.reduce(function(t,r){var o=e.elementRef&&e.elementRef.refName_===r?"elementRef":r;return t[r]=function(t){t&&(n[r]=t,e[o]&&"object"===("undefined"===typeof e?"undefined":c(e))&&e[o](t))},t[r].refName_=r,t},{}),n.syncWithProps=n.syncWithProps.bind(n),n}return i(t,e),u(t,[{key:"componentDidMount",value:function(){this.initFoundation()}},{key:"componentWillReceiveProps",value:function(e){this._safeSyncWithProps(e)}},{key:"componentWillUnmount",value:function(){var e=this;this.destroyComponent(),s(function(){p.forEach(function(t){e[t]&&(e[t]=void 0)})},3)}},{key:"_safeSyncWithProps",value:function(e){this.foundation_&&this.syncWithProps(e)}},{key:"initFoundation",value:function(){this.foundation_=this.getDefaultFoundation();for(var e in d){var t=d[e];this.foundation_.adapter_[e]=t.bind(this)}this.initialize(),this.foundation_&&this.foundation_.init(),this.initialSyncWithDOM(),this._safeSyncWithProps(this.props),"function"===typeof this.props.apiRef&&this.props.apiRef(this)}},{key:"destroyComponent",value:function(){this.destroy(),this.foundation_&&this.foundation_.destroy(),this.foundation_=null}},{key:"syncWithProps",value:function(e){}},{key:"initialize",value:function(){}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){}},{key:"getDefaultFoundation",value:function(){return{adapter_:{},init:function(){},destroy:function(){}}}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=void 0;"function"===typeof CustomEvent?r=new CustomEvent(e,{detail:t,bubbles:n}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n,!1,t));var o=e.split(":").slice(-1).pop()||"",i="on"+o.charAt(0).toUpperCase()+o.slice(1);return this.props[i]&&this.props[i](r),this._safeSyncWithProps(this.props),r}},{key:"listen",value:function(e,t){var n=this.root_;n&&n.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){var n=this.root_;n&&n.removeEventListener(e,t)}}]),t}(a.Component);return l(h.prototype,t.prototype),h}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"b",function(){return l}),n.d(t,"a",function(){return d});var a=n(0),c=(n.n(a),n(5)),u=(n.n(c),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),s={buttonDefaultRipple:!0,listItemDefaultRipple:!0,iconClassNameBase:"material-icons",iconClassNamePrefix:"",iconStrategy:"auto",iconRender:void 0},l=function(e){return e&&e.RMWCOptions?e.RMWCOptions:s},d=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.options=n.buildOptions(e),n}return i(t,e),u(t,[{key:"getChildContext",value:function(){return{RMWCOptions:this.options}}},{key:"componentWillUpdate",value:function(e){this.options=this.buildOptions(e)}},{key:"buildOptions",value:function(e){return Object.assign({},s,e||{})}},{key:"render",value:function(){return this.props.children}}]),t}(a.Component);d.defaultProps=s,d.childContextTypes={RMWCOptions:c.object}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"c",function(){return p}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return m});var c=n(0),u=(n.n(c),n(5)),s=(n.n(u),n(6)),l=n(1),d=n(2),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=Object(l.f)({surface:!1})(Object(l.c)({displayName:"ButtonRoot",tag:"button",defaultProps:{dense:!1,raised:!1,unelevated:!1,outlined:!1},consumeProps:["dense","raised","unelevated","outlined","primary","accent","unbounded"],classNames:function(e){return["mdc-button",{"mdc-button--dense":e.dense,"mdc-button--raised":e.raised,"mdc-button--unelevated":e.unelevated,"mdc-button--outlined":e.outlined}]}})),h=Object(l.c)({displayName:"ButtonIcon",tag:d.a,classNames:"mdc-button__icon"}),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:"componentWillMount",value:function(){this.providerOptions=Object(s.b)(this.context)}},{key:"render",value:function(){var e=this.providerOptions.buttonDefaultRipple,t=this.props,n=t.ripple,o=r(t,["ripple"]),i=void 0===n?e:n;return c.createElement(p,Object.assign({ripple:i},o))}}]),t}(c.Component);m.defaultProps={ripple:!0,raised:!1,unelevated:!1,outlined:!1,dense:!1},m.contextTypes={RMWCOptions:u.object},t.d=m},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e+"-"+(Math.random()+Math.random()+1).toString(36).substring(2)}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"b",function(){return d}),n.d(t,"a",function(){return f});var c=n(0),u=(n.n(c),n(32)),s=(n.n(u),n(1)),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Object(s.c)({displayName:"FormFieldRoot",defaultProps:{alignEnd:void 0},classNames:function(e){return["mdc-form-field",{"mdc-form-field--align-end":e.alignEnd}]},consumeProps:["alignEnd"]}),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=(e.apiRef,r(e,["apiRef"])),n=this.foundationRefs.root_;return c.createElement(d,Object.assign({},t,{elementRef:n}))}}]),t}(Object(s.e)({constructor:u.MDCFormField,adapter:{}}));f.displayName="FormField",t.c=f},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"h",function(){return h}),n.d(t,"e",function(){return m}),n.d(t,"j",function(){return y}),n.d(t,"i",function(){return b}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return _}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return O}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return j}),n.d(t,"k",function(){return C});var c=n(0),u=(n.n(c),n(5)),s=(n.n(u),n(6)),l=n(1),d=n(2),f=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=Object(l.f)()(Object(l.c)({displayName:"ListItemRoot",classNames:function(e){return["mdc-list-item",{"mdc-list-item--selected":e.selected,"mdc-list-item--activated":e.activated}]},consumeProps:["selected","activated","options"]})),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),p(t,[{key:"componentWillMount",value:function(){this.providerOptions=Object(s.b)(this.context)}},{key:"render",value:function(){var e=this.providerOptions.listItemDefaultRipple,t=this.props,n=t.ripple,o=r(t,["ripple"]),i=void 0===n?e:n;return c.createElement(h,Object.assign({ripple:i},o))}}]),t}(c.Component);m.displayName="ListItem",m.defaultProps={ripple:!0},m.contextTypes={RMWCOptions:u.object};var y=Object(l.c)({displayName:"ListItemText",tag:"span",classNames:"mdc-list-item__text"}),b=Object(l.c)({displayName:"ListItemSecondaryText",tag:"span",classNames:"mdc-list-item__secondary-text"}),v=Object(l.c)({displayName:"ListItemGraphic",classNames:"mdc-list-item__graphic",tag:d.a}),_=Object(l.c)({displayName:"ListItemMeta",classNames:"mdc-list-item__meta",tag:d.a}),g=Object(l.c)({displayName:"ListGroup",classNames:"mdc-list-group"}),O=Object(l.c)({displayName:"ListGroupSubheader",classNames:"mdc-list-group__subheader"}),w=Object(l.c)({displayName:"ListDivider",classNames:"mdc-list-divider"}),j=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),p(t,[{key:"render",value:function(){return f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(l.c)({displayName:"List",defaultProps:{dense:void 0,twoLine:void 0,avatarList:void 0,nonInteractive:void 0},classNames:function(e){return["mdc-list",{"mdc-list--dense":e.dense,"mdc-list--two-line":e.twoLine,"mdc-list--avatar-list":e.avatarList,"mdc-list--non-interactive":e.nonInteractive}]},consumeProps:["dense","twoLine","avatarList","nonInteractive"]})),C=function(e){var t=e.text,n=e.secondaryText,o=e.graphic,i=e.meta,a=e.children,u=r(e,["text","secondaryText","graphic","meta","children"]);return c.createElement(m,u,void 0!==o&&c.createElement(v,null,o),c.createElement(y,null,t,void 0!==n&&c.createElement(b,null,n)),void 0!==i&&c.createElement(_,null,i),a)};C.displayName="SimpleListItem"},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=(n.n(r),n(1)),i=Object(o.c)({displayName:"FloatingLabel",tag:"label",classNames:"mdc-floating-label"})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=(n.n(r),n(1)),i=Object(o.c)({displayName:"LineRipple",classNames:"mdc-line-ripple"})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=(n.n(r),n(4)),i=(n.n(o),n(14)),a=function(e){if(e){return(Array.isArray(e)?e:e.split(" ")).map(function(e){return"mdc-theme--"+Object(i.a)(e)})}return[]}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return m});var c=n(0),u=(n.n(c),n(25)),s=(n.n(u),n(4)),l=n.n(s),d=n(16),f=(n.n(d),n(3)),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),p(t,[{key:"componentDidMount",value:function(){this.root_=u.findDOMNode(this),h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this)}},{key:"syncWithProps",value:function(e){var t=this;this.root_=u.findDOMNode(this),Object(f.a)(e.unbounded,this.unbounded,function(){return t.unbounded=!!e.unbounded}),Object(f.a)(e.disabled,this.disabled,function(){return t.disabled=!!e.disabled})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.className,e.primary),o=e.accent,i=e.unbounded,a=e.surface,u=(e.apiRef,r(e,["children","className","primary","accent","unbounded","surface","apiRef"])),s=c.Children.only(t),d=i?{"data-mdc-ripple-is-unbounded":!0}:{};return c.cloneElement(s,Object.assign({},s.props,u,d,{className:l()(s.props.className,{"mdc-ripple-surface":void 0===a||a,"mdc-ripple-surface--primary":n,"mdc-ripple-surface--accent":o})}))}}]),t}(Object(f.b)({constructor:d.MDCRipple,adapter:{}}));m.displayName="Ripple"},function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=(n.n(r),"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),i=function(e){return"string"===typeof e&&(e.startsWith("/")||e.startsWith("http://")||e.startsWith("https://"))?"url":"object"===("undefined"===typeof e?"undefined":o(e))?"component":"ligature"},a=function(e,t,n){return t=t||n,"auto"===t?i(e):t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var o=n(0),i=(n.n(o),function(){return o.createElement("div",{className:"mdc-notched-outline"},o.createElement("svg",null,o.createElement("path",{className:"mdc-notched-outline__path"})))}),a=function(e){var t=r(e,[]);return o.createElement("div",Object.assign({},t,{className:"mdc-notched-outline__idle"}))}},function(e,t,n){e.exports=n(21)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"version",function(){return x});var r=n(7);n.d(t,"ButtonRoot",function(){return r.c}),n.d(t,"ButtonIcon",function(){return r.b}),n.d(t,"Button",function(){return r.a});var o=n(27);n.d(t,"Card",function(){return o.a}),n.d(t,"CardMedia",function(){return o.f}),n.d(t,"CardMediaContent",function(){return o.g}),n.d(t,"CardPrimaryAction",function(){return o.h}),n.d(t,"CardActions",function(){return o.e}),n.d(t,"CardActionButtons",function(){return o.c}),n.d(t,"CardActionIcons",function(){return o.d}),n.d(t,"CardAction",function(){return o.b});var i=n(30);n.d(t,"CheckboxRoot",function(){return i.h}),n.d(t,"CheckboxNativeControl",function(){return i.g}),n.d(t,"CheckboxBackground",function(){return i.b}),n.d(t,"CheckboxCheckmark",function(){return i.c}),n.d(t,"CheckboxCheckmarkPath",function(){return i.d}),n.d(t,"CheckboxMixedmark",function(){return i.f}),n.d(t,"CheckboxLabel",function(){return i.e}),n.d(t,"Checkbox",function(){return i.a});var a=n(33);n.d(t,"ChipRoot",function(){return a.e}),n.d(t,"Chip",function(){return a.a}),n.d(t,"ChipCheckmark",function(){return a.b}),n.d(t,"ChipText",function(){return a.h}),n.d(t,"ChipIconRoot",function(){return a.d}),n.d(t,"ChipIcon",function(){return a.c}),n.d(t,"ChipSetRoot",function(){return a.g}),n.d(t,"ChipSet",function(){return a.f}),n.d(t,"SimpleChip",function(){return a.i});var c=n(35);n.d(t,"DrawerHeaderRoot",function(){return c.f}),n.d(t,"DrawerHeaderContent",function(){return c.e}),n.d(t,"DrawerHeader",function(){return c.d}),n.d(t,"DrawerToolbarSpacer",function(){return c.h}),n.d(t,"DrawerContent",function(){return c.b}),n.d(t,"DrawerRoot",function(){return c.g}),n.d(t,"DrawerDrawer",function(){return c.c}),n.d(t,"Drawer",function(){return c.a});var u=n(37);n.d(t,"DialogRoot",function(){return u.h}),n.d(t,"DialogBackdrop",function(){return u.b}),n.d(t,"DialogSurface",function(){return u.i}),n.d(t,"DialogHeader",function(){return u.f}),n.d(t,"DialogHeaderTitle",function(){return u.g}),n.d(t,"DialogBody",function(){return u.c}),n.d(t,"DialogFooter",function(){return u.d}),n.d(t,"DialogFooterButton",function(){return u.e}),n.d(t,"Dialog",function(){return u.a}),n.d(t,"SimpleDialog",function(){return u.j});var s=n(39);n.d(t,"Elevation",function(){return s.a});var l=n(40);n.d(t,"FabRoot",function(){return l.d}),n.d(t,"FabIcon",function(){return l.b}),n.d(t,"FabLabel",function(){return l.c}),n.d(t,"Fab",function(){return l.a});var d=n(11);n.d(t,"FloatingLabel",function(){return d.a});var f=n(9);n.d(t,"FormFieldRoot",function(){return f.b}),n.d(t,"FormField",function(){return f.a});var p=n(41);n.d(t,"GridListRoot",function(){return p.b}),n.d(t,"GridListTiles",function(){return p.c}),n.d(t,"GridTilePrimary",function(){return p.f}),n.d(t,"GridTilePrimaryContent",function(){return p.g}),n.d(t,"GridTile",function(){return p.d}),n.d(t,"GridTileSecondary",function(){return p.h}),n.d(t,"GridTileIcon",function(){return p.e}),n.d(t,"GridTileTitle",function(){return p.i}),n.d(t,"GridTileTitleSupportText",function(){return p.j}),n.d(t,"GridList",function(){return p.a});var h=n(42);n.d(t,"GridRoot",function(){return h.d}),n.d(t,"GridCell",function(){return h.b}),n.d(t,"GridInner",function(){return h.c}),n.d(t,"Grid",function(){return h.a});var m=n(2);n.d(t,"IconRoot",function(){return m.b}),n.d(t,"Icon",function(){return m.a});var y=n(43);n.d(t,"IconToggleRoot",function(){return y.b}),n.d(t,"IconToggle",function(){return y.a});var b=n(12);n.d(t,"LineRipple",function(){return b.a});var v=n(45);n.d(t,"LinearProgressRoot",function(){return v.f}),n.d(t,"LinearProgressBufferingDots",function(){return v.d}),n.d(t,"LinearProgressBuffer",function(){return v.c}),n.d(t,"LinearProgressPrimaryBar",function(){return v.e}),n.d(t,"LinearProgressSecondaryBar",function(){return v.g}),n.d(t,"LinearProgressBarInner",function(){return v.b}),n.d(t,"LinearProgress",function(){return v.a});var _=n(10);n.d(t,"ListItemRoot",function(){return _.h}),n.d(t,"ListItem",function(){return _.e}),n.d(t,"ListItemText",function(){return _.j}),n.d(t,"ListItemSecondaryText",function(){return _.i}),n.d(t,"ListItemGraphic",function(){return _.f}),n.d(t,"ListItemMeta",function(){return _.g}),n.d(t,"ListGroup",function(){return _.c}),n.d(t,"ListGroupSubheader",function(){return _.d}),n.d(t,"ListDivider",function(){return _.b}),n.d(t,"List",function(){return _.a}),n.d(t,"SimpleListItem",function(){return _.k});var g=n(47);n.d(t,"MenuRoot",function(){return g.e}),n.d(t,"MenuItems",function(){return g.d}),n.d(t,"MenuItem",function(){return g.c}),n.d(t,"MenuAnchor",function(){return g.b}),n.d(t,"Menu",function(){return g.a}),n.d(t,"SimpleMenu",function(){return g.f});var O=n(49);n.d(t,"RadioRoot",function(){return O.g}),n.d(t,"RadioNativeControl",function(){return O.e}),n.d(t,"RadioBackground",function(){return O.b}),n.d(t,"RadioOuterCircle",function(){return O.f}),n.d(t,"RadioInnerCircle",function(){return O.c}),n.d(t,"RadioLabel",function(){return O.d}),n.d(t,"Radio",function(){return O.a});var w=n(15);n.d(t,"Ripple",function(){return w.a});var j=n(6);n.d(t,"getProviderOptions",function(){return j.b}),n.d(t,"RMWCProvider",function(){return j.a});var C=n(51);n.d(t,"SelectRoot",function(){return C.d}),n.d(t,"SelectSurface",function(){return C.f}),n.d(t,"SelectSelectedText",function(){return C.e}),n.d(t,"SelectBottomLine",function(){return C.b}),n.d(t,"SelectNativeControl",function(){return C.c}),n.d(t,"Select",function(){return C.a});var E=n(53);n.d(t,"SliderRoot",function(){return E.e}),n.d(t,"SliderTrackContainer",function(){return E.i}),n.d(t,"SliderTrack",function(){return E.h}),n.d(t,"SliderTrackMarkerContainer",function(){return E.j}),n.d(t,"SliderThumbContainer",function(){return E.g}),n.d(t,"SliderPin",function(){return E.c}),n.d(t,"SliderPinValueMarker",function(){return E.d}),n.d(t,"SliderThumb",function(){return E.f}),n.d(t,"SliderFocusRing",function(){return E.b}),n.d(t,"Slider",function(){return E.a});var k=n(55);n.d(t,"SnackbarRoot",function(){return k.d}),n.d(t,"SnackbarText",function(){return k.e}),n.d(t,"SnackbarActionWrapper",function(){return k.c}),n.d(t,"SnackbarActionButton",function(){return k.b}),n.d(t,"Snackbar",function(){return k.a});var T=n(58);n.d(t,"SwitchRoot",function(){return T.f}),n.d(t,"SwitchNativeControl",function(){return T.e}),n.d(t,"SwitchBackground",function(){return T.b}),n.d(t,"SwitchKnob",function(){return T.c}),n.d(t,"SwitchLabel",function(){return T.d}),n.d(t,"Switch",function(){return T.a});var P=n(59);n.d(t,"TabBarRoot",function(){return P.d}),n.d(t,"TabBarIndicator",function(){return P.c}),n.d(t,"TabBarScrollerRoot",function(){return P.h}),n.d(t,"TabBarScrollerIndicator",function(){return P.f}),n.d(t,"TabBarScrollerIndicatorInner",function(){return P.g}),n.d(t,"TabBarScrollerScrollFrame",function(){return P.i}),n.d(t,"Tab",function(){return P.a}),n.d(t,"TabIcon",function(){return P.j}),n.d(t,"TabIconText",function(){return P.k}),n.d(t,"TabBar",function(){return P.b}),n.d(t,"TabBarScroller",function(){return P.e});var N=n(61);n.d(t,"TextFieldRoot",function(){return N.e}),n.d(t,"TextFieldInput",function(){return N.d}),n.d(t,"TextFieldTextarea",function(){return N.f}),n.d(t,"TextFieldHelperText",function(){return N.b}),n.d(t,"TextFieldIcon",function(){return N.c}),n.d(t,"TextField",function(){return N.a});var S=n(63);n.d(t,"Theme",function(){return S.a}),n.d(t,"ThemeProvider",function(){return S.b});var I=n(64);n.d(t,"ToolbarRoot",function(){return I.e}),n.d(t,"ToolbarTitle",function(){return I.h}),n.d(t,"ToolbarSection",function(){return I.g}),n.d(t,"ToolbarRow",function(){return I.f}),n.d(t,"ToolbarFixedAdjust",function(){return I.b}),n.d(t,"ToolbarMenuIcon",function(){return I.d}),n.d(t,"ToolbarIcon",function(){return I.c}),n.d(t,"Toolbar",function(){return I.a});var R=n(66);n.d(t,"Typography",function(){return R.a});var A=n(22),x=A.version},function(e,t){e.exports={name:"rmwc",version:"1.8.1",author:"James Friedman",private:!1,description:"A thin React wrapper for Material Design (Web) Components",homepage:"https://jamesmfriedman.github.io/rmwc/",repository:{type:"git",url:"https://github.com/jamesmfriedman/rmwc.git"},keywords:["rmwc","react","react-material","material-design","react-mdc","react-material-design"],bugs:{url:"https://github.com/jamesmfriedman/rmwc/issues",email:"me@jamesmfriedman.com"},license:"MIT",main:"index.js",types:"index.d.ts",peerDependencies:{react:"^15.x.x || ^16.x.x","react-dom":"^15.x.x || ^16.x.x"},dependencies:{classnames:"^2.2.5",hyperform:"^0.9.9","material-components-web":"^0.37.0","mutation-observer":"^1.0.3","prop-types":"^15.6.1"},scripts:{start:"react-app-rewired start","build:docs":"npm run docgen && react-app-rewired build && rm -R docs && mv build docs","build:code":"node scripts/build-code.js","build:lib":"node scripts/build-lib.js",build:"npm run build:code && npm run build:lib && npm run build:docs",pretest:"node scripts/pretest.js",test:"flow && npm run build:code && node scripts/test.js","test:watch":"react-app-rewired test --env=jsdom","test:coverage":"react-app-rewired test --env=jsdom --coverage",clean:"node scripts/clean.js",prepublishOnly:"npm run build",postpublish:"npm run clean",docgen:"export NODE_ENV=development && react-docgen ./src --exclude=/\\.\\(story\\|docs\\|spec\\)\\.js/ --pretty --resolver ./scripts/docgen-resolver.js -o ./src/docs/docgen.json","deploy:docs":"npm run build:docs && git add docs -f && git commit -m 'Deploying docs' && git push --force && npm run clean",changelog:"changelog",storybook:"start-storybook -p 6006",preversion:"npm test -- --coverage",version:"npm run changelog && git add CHANGELOG.md && npm run build:lib && git add -A lib && npm run build && git add docs -f",postversion:"git push && git push --tags",flow:"flow"},devDependencies:{"@storybook/addon-actions":"^3.3.15","@storybook/addon-knobs":"^3.3.15","@storybook/react":"^3.3.15","@types/classnames":"^2.2.4","@types/material-components-web":"^0.35.0","@types/prop-types":"^15.5.3","@types/react":"^16.4.1","@types/react-dom":"^16.0.6","babel-cli":"^6.26.0","babel-eslint":"^8.2.3","babel-preset-es2015":"^6.24.1","css-to-string-loader":"^0.1.3",enzyme:"^3.3.0","enzyme-adapter-react-15":"^1.0.5","enzyme-adapter-react-16":"^1.1.1",eslint:"^4.19.1","eslint-config-react-app":"^2.1.0","eslint-plugin-flowtype":"^2.46.3","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^5.1.1","eslint-plugin-react":"^7.7.0","flow-bin":"^0.74.0","generate-changelog":"^1.7.0","normalize.css":"^7.0.0","prettier-eslint":"^8.8.1",prismjs:"^1.9.0",react:"^16.2.0","react-app-rewired":"^1.5.2","react-docgen":"^2.21.0","react-dom":"^16.2.0","react-hot-loader":"^4.0.1","react-markdown-loader":"git+https://github.com/jamesmfriedman/react-markdown-loader.git#master","react-router-dom":"^4.3.1","react-scripts":"^1.1.4",storybook:"^1.0.0",typescript:"^2.9.2"},jest:{resolver:"./scripts/jest-resolver.js",collectCoverageFrom:["src/**/*.{js}","!src/**/*.flow.js","!src/**/*.story.js","!src/index.js","!src/rmwc.js","!src/Base/utils/DocumentComponent.js","!src/Base/utils/story-with-state.js","!src/docs/*","!<rootDir>/node_modules/"]}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return f});var c=n(0),u=(n.n(c),n(4)),s=n.n(u),l=n(13),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){var t,n,u=e.displayName,f=void 0===u?"SimpleTag":u,p=e.defaultProps,h=void 0===p?{}:p,m=e.consumeProps,y=void 0===m?[]:m,b=e.tag,v=e.wrap,_=void 0!==v&&v,g=e.classNames,O=b||"div";return n=t=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.tag,n=e.className,o=e.wrap,i=void 0!==o&&o,a=e.elementRef,u=e.theme,d=r(e,["tag","className","wrap","elementRef","theme"]),f="function"===typeof O&&"string"===typeof t?O:t||O,p=Object.assign({},d);y.forEach(function(e){delete p[e]}),"function"===typeof O&&"string"===typeof t&&(p.tag=t),a&&("string"===typeof f?p.ref=a:p.elementRef=a);var h=s()(n,Object(l.a)(u||null),"function"===typeof g?g(d):g);if(i||_){if(!d.children)return null;delete p.children;var m=c.Children.only(d.children);return c.cloneElement(m,Object.assign({},m.props,p,{className:h}))}return c.createElement(f,Object.assign({className:h},p))}}]),t}(c.Component),t.displayName=f,t.defaultProps=Object.assign({},h,{tag:O}),t.isSimpleTag=!0,n}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return l});var c=n(0),u=(n.n(c),n(15)),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.unbounded,n=e.surface,l=void 0===n||n;return function(e){var n,d;return d=n=function(n){function d(){return o(this,d),i(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return a(d,n),s(d,[{key:"render",value:function(){var n=this.props,o=n.ripple,i=r(n,["ripple"]);return o&&!i.cssOnly?c.createElement(u.a,Object.assign({},i,{unbounded:i.unbounded||t,surface:i.surface||l}),c.createElement(e,i)):c.createElement(e,i)}}]),d}(c.Component),n.displayName="withRipple("+(e.displayName||"Unknown")+")",n.defaultProps={ripple:!0},d}}},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return p}),n.d(t,"f",function(){return h}),n.d(t,"g",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"e",function(){return b}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return _}),n.d(t,"b",function(){return w});var c=n(0),u=(n.n(c),n(7)),s=n(1),l=n(28),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){return f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(s.c)({displayName:"Card",classNames:function(e){return["mdc-card",{"mdc-card--outlined":e.outlined}]},consumeProps:["outlined"]})),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){return f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(s.c)({displayName:"CardMedia",tag:"section",classNames:function(e){return["mdc-card__media",{"mdc-card__media--square":e.square,"mdc-card__media--16-9":e.sixteenByNine}]},consumeProps:["square","sixteenByNine"]})),m=Object(s.c)({displayName:"CardMediaContent",classNames:"mdc-card__media-content"}),y=Object(s.f)({surface:!1})(Object(s.c)({displayName:"CardPrimaryAction",classNames:"mdc-card__primary-action"})),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){return f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(s.c)({displayName:"CardActions",tag:"section",classNames:function(e){return["mdc-card__actions",{"mdc-card__actions--full-bleed":e.fullBleed}]},consumeProps:["fullBleed"]})),v=Object(s.c)({displayName:"CardActionButtons",classNames:"mdc-card__action-buttons"}),_=Object(s.c)({displayName:"CardActionIcons",classNames:"mdc-card__action-icons"}),g=Object(s.c)({tag:l.a,classNames:["mdc-card__action","mdc-card__action--icon"]}),O=Object(s.c)({tag:u.a,classNames:["mdc-card__action","mdc-card__action--button"]}),w=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.isIcon,n=r(e,["isIcon"]),o=this.props,i=o.onContent,a=o.offContent,u=o.use;return t||i||a||u?c.createElement(g,n):c.createElement(O,n)}}]),t}(c.Component);w.displayName="CardAction",w.displayName="CardAction"},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return m});var c=n(0),u=(n.n(c),n(29)),s=(n.n(u),n(2)),l=n(17),d=n(1),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},h=Object(d.c)({displayName:"IconButtonRoot",tag:s.a,classNames:"mdc-icon-button",defaultProps:{role:"button",tabIndex:"0"}}),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:"isOn",value:function(){return void 0!==this.props.checked?this.props.checked:this.foundation_&&this.on}},{key:"initialize",value:function(){this.ripple_=this.initRipple_(),p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initialize",this).call(this)}},{key:"syncWithProps",value:function(e){var t=this;Object(d.d)(e.checked,this.on,function(){t.on=!!e.checked,t.foundation_&&t.foundation_.refreshToggleData()})}},{key:"renderIcon",value:function(){var e=this.props,t=e.use,n=e.children,o=e.onContent,i=e.offContent,a=(e.onLabel,e.offLabel,e.checked,r(e,["use","children","onContent","offContent","onLabel","offLabel","checked"])),u=this.isOn()&&o?o:i||t||n;return-1!==["url","component"].indexOf(Object(l.a)(u,"auto",null)||"")?c.createElement(s.a,Object.assign({},a,{use:u})):u}},{key:"render",value:function(){var e=this.props,t=(e.checked,e.onContent),n=e.offContent,o=e.onLabel,i=e.offLabel,a=e.label,u=(e.apiRef,e.use,r(e,["checked","onContent","offContent","onLabel","offLabel","label","apiRef","use"])),s=this.isOn(),l=a||i;return c.createElement(h,Object.assign({tag:"button"},u,{use:this.renderIcon(),elementRef:this.foundationRefs.root_,"aria-label":l,"aria-pressed":s,"aria-hidden":"true","data-toggle-on-content":t,"data-toggle-on-label":o,"data-toggle-off-content":n,"data-toggle-off-label":i}))}}]),t}(Object(d.e)({constructor:u.MDCIconButtonToggle,adapter:{setText:function(){this.forceUpdate()}}}));m.displayName="IconButton"},function(e,t,n){(function(e){var n,r,o,i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a,c){"object"===i(t)&&"object"===i(e)?e.exports=c():(r=[],n=c,void 0!==(o="function"===typeof n?n.apply(t,r):n)&&(e.exports=o))}(0,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=76)}({0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.adapter_=t}return o(e,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),o(e,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),e}();t.a=i},1:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(0),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r(this,e),this.root_=t;for(var o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];this.initialize.apply(this,i),this.foundation_=void 0===n?this.getDefaultFoundation():n,this.foundation_.init(),this.initialSyncWithDOM()}return i(e,null,[{key:"attachTo",value:function(t){return new e(t,new o.a)}}]),i(e,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=void 0;"function"===typeof CustomEvent?r=new CustomEvent(e,{detail:t,bubbles:n}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n,!1,t)),this.root_.dispatchEvent(r)}}]),e}();t.a=a},2:function(e,t,n){"use strict";function r(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);var r=e.getComputedStyle(n),o=null!==r&&"solid"===r.borderTopStyle;return n.remove(),o}function o(e){var t=arguments.length>1&&void 0!=