UNPKG

rmwc

Version:

A thin React wrapper for Material Design (Web) Components

1 lines 152 kB
!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/icon-toggle/dist/mdc.iconToggle"),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/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/icon-toggle/dist/mdc.iconToggle","@material/checkbox/dist/mdc.checkbox","@material/form-field/dist/mdc.formField","@material/drawer/dist/mdc.drawer","@material/dialog/dist/mdc.dialog","@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/icon-toggle/dist/mdc.iconToggle"),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/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/icon-toggle/dist/mdc.iconToggle"],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/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,m,b,h,y,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=17)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(20);n.d(t,"c",function(){return r.a});var o=n(21);n.d(t,"f",function(){return o.a});var i=(n(14),n(23));n.d(t,"a",function(){return i.a});var a=n(8);n.d(t,"b",function(){return a.a});var c=n(4);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 b}),n.d(t,"a",function(){return w});var c=n(0),u=(n.n(c),n(3)),s=n.n(u),l=n(5),d=(n.n(l),n(6)),f=n(1),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}}(),m="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},b=Object(f.c)({displayName:"IconRoot",tag:"i"}),h=function(e){var t=e.content,n=a(e,["content"]);return c.createElement(b,n,t)},y=function(e){var t=(e.content,a(e,["content"]));return c.createElement(b,t)},v=function(e){var t=e.content,n=a(e,["content"]);return c.createElement(b,Object.assign({tag:"img",src:t},n))},_=function(e){var t=e.content,n=a(e,["content"]);return c.createElement(b,n,t)},g={ligature:h,className:y,url:v,component:_,auto:void 0},O=function(e){return"string"===typeof e&&(e.startsWith("/")||e.startsWith("http://")||e.startsWith("https://"))?"url":"object"===("undefined"===typeof e?"undefined":m(e))?"component":"ligature"},j=function(e,t,n){return t=t||n,"auto"===t?O(e):t},w=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(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,p=l.iconStrategy,m=l.iconRender,b=t||n,h=j(b,o||null,p||null),y=i||f,v=void 0===c?d:c,_="className"===h&&"string"===typeof b?""+String(y)+b:null,O="custom"===h?r||m:h&&void 0!==g[h]?g[h]:void 0;return O?O(Object.assign({},u,{content:b,className:s()(v,u.className,_)})):(console.error("Icon: rendering not implemented for "+String(h)+"."),null)}}]),t}(c.PureComponent);w.displayName="Icon",w.defaultProps={use:void 0},w.contextTypes={RMWCOptions:l.object},t.c=w},function(e,n){e.exports=t},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,m=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(m.prototype,t.prototype),m}},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 m}),n.d(t,"a",function(){return b});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}]}})),m=Object(l.c)({displayName:"ButtonIcon",tag:d.a,classNames:"mdc-button__icon"}),b=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);b.defaultProps={dense:!1,raised:!1,unelevated:!1,outlined:!1},b.contextTypes={RMWCOptions:u.object},t.d=b},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(28)),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,"a",function(){return b});var c=n(0),u=(n.n(c),n(22)),s=(n.n(u),n(3)),l=n.n(s),d=n(15),f=(n.n(d),n(4)),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}}(),m=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)},b=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),m(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:{}}));b.displayName="Ripple"},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 m}),n.d(t,"e",function(){return b}),n.d(t,"j",function(){return h}),n.d(t,"i",function(){return y}),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 j}),n.d(t,"a",function(){return w}),n.d(t,"k",function(){return E});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}}(),m=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}]},defaultProps:{selected:!1,activated:!1},consumeProps:["selected","activated","options"]})),b=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(m,Object.assign({ripple:i},o))}}]),t}(c.Component);b.displayName="ListItem",b.contextTypes={RMWCOptions:u.object};var h=Object(l.c)({displayName:"ListItemText",tag:"span",classNames:"mdc-list-item__text"}),y=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"}),j=Object(l.c)({displayName:"ListDivider",classNames:"mdc-list-divider"}),w=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"]})),E=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(b,u,!!o&&c.createElement(v,null,o),c.createElement(h,null,t,!!n&&c.createElement(y,null,n)),!!i&&c.createElement(_,null,i),a)};E.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 i});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),function(e){if(e){return(Array.isArray(e)?e:e.split(" ")).map(function(e){return"mdc-theme--"+e})}return[]})},function(e,t){e.exports=r},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 p}),n.d(t,"a",function(){return m});var c=n(0),u=(n.n(c),n(25)),s=(n.n(u),n(2)),l=n(1),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=Object(l.c)({displayName:"IconToggleRoot",tag:s.a,classNames:"mdc-icon-toggle",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),d(t,[{key:"initialize",value:function(){this.ripple_=this.initRipple_(),f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initialize",this).call(this)}},{key:"syncWithProps",value:function(e){var t=this;Object(l.d)(e.checked,this.on,function(){return t.on=!!e.checked}),Object(l.d)(e.disabled,this.disabled,function(){return t.disabled=!!e.disabled})}},{key:"render",value:function(){var e=this.props,t=e.checked,n=e.on,o=e.off,i=(e.apiRef,r(e,["checked","on","off","apiRef"])),a=void 0!==t&&!!t,u=JSON.stringify(n),s=JSON.stringify(o);return c.createElement(p,Object.assign({},i,{elementRef:this.foundationRefs.root_,"data-toggle-on":u,"data-toggle-off":s,"aria-pressed":a}))}}]),t}(Object(l.e)({constructor:u.MDCIconToggle,adapter:{}}));m.displayName="IconToggle",m.defaultProps={onChange:l.a,on:void 0,off:void 0,checked:void 0}},function(e,t,n){e.exports=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"version",function(){return D});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(24);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(26);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(29);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(32);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(34);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(36);n.d(t,"Elevation",function(){return s.a});var l=n(37);n.d(t,"FabRoot",function(){return l.c}),n.d(t,"FabIcon",function(){return l.b}),n.d(t,"Fab",function(){return l.a});var d=n(12);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(38);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 m=n(39);n.d(t,"GridRoot",function(){return m.d}),n.d(t,"GridCell",function(){return m.b}),n.d(t,"GridInner",function(){return m.c}),n.d(t,"Grid",function(){return m.a});var b=n(2);n.d(t,"IconRoot",function(){return b.b}),n.d(t,"Icon",function(){return b.a});var h=n(16);n.d(t,"IconToggleRoot",function(){return h.b}),n.d(t,"IconToggle",function(){return h.a});var y=n(13);n.d(t,"LineRipple",function(){return y.a});var v=n(40);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(11);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(42);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(44);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 j=n(10);n.d(t,"Ripple",function(){return j.a});var w=n(6);n.d(t,"getProviderOptions",function(){return w.b}),n.d(t,"RMWCProvider",function(){return w.a});var E=n(46);n.d(t,"SelectRoot",function(){return E.d}),n.d(t,"SelectSurface",function(){return E.f}),n.d(t,"SelectSelectedText",function(){return E.e}),n.d(t,"SelectBottomLine",function(){return E.b}),n.d(t,"SelectNativeControl",function(){return E.c}),n.d(t,"Select",function(){return E.a});var C=n(48);n.d(t,"SliderRoot",function(){return C.e}),n.d(t,"SliderTrackContainer",function(){return C.i}),n.d(t,"SliderTrack",function(){return C.h}),n.d(t,"SliderTrackMarkerContainer",function(){return C.j}),n.d(t,"SliderThumbContainer",function(){return C.g}),n.d(t,"SliderPin",function(){return C.c}),n.d(t,"SliderPinValueMarker",function(){return C.d}),n.d(t,"SliderThumb",function(){return C.f}),n.d(t,"SliderFocusRing",function(){return C.b}),n.d(t,"Slider",function(){return C.a});var k=n(50);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 P=n(53);n.d(t,"SwitchRoot",function(){return P.f}),n.d(t,"SwitchNativeControl",function(){return P.e}),n.d(t,"SwitchBackground",function(){return P.b}),n.d(t,"SwitchKnob",function(){return P.c}),n.d(t,"SwitchLabel",function(){return P.d}),n.d(t,"Switch",function(){return P.a});var N=n(54);n.d(t,"TabBarRoot",function(){return N.d}),n.d(t,"TabBarIndicator",function(){return N.c}),n.d(t,"TabBarScrollerRoot",function(){return N.h}),n.d(t,"TabBarScrollerIndicator",function(){return N.f}),n.d(t,"TabBarScrollerIndicatorInner",function(){return N.g}),n.d(t,"TabBarScrollerScrollFrame",function(){return N.i}),n.d(t,"Tab",function(){return N.a}),n.d(t,"TabIcon",function(){return N.j}),n.d(t,"TabIconText",function(){return N.k}),n.d(t,"TabBar",function(){return N.b}),n.d(t,"TabBarScroller",function(){return N.e});var T=n(56);n.d(t,"TextFieldRoot",function(){return T.h}),n.d(t,"TextFieldInput",function(){return T.g}),n.d(t,"TextFieldTextarea",function(){return T.i}),n.d(t,"NotchedOutline",function(){return T.a}),n.d(t,"NotchedOutlinePath",function(){return T.c}),n.d(t,"NotchedOutlineIdle",function(){return T.b}),n.d(t,"TextFieldHelperText",function(){return T.e}),n.d(t,"TextFieldIcon",function(){return T.f}),n.d(t,"TextField",function(){return T.d});var x=n(58);n.d(t,"Theme",function(){return x.a});var S=n(59);n.d(t,"ToolbarRoot",function(){return S.e}),n.d(t,"ToolbarTitle",function(){return S.h}),n.d(t,"ToolbarSection",function(){return S.g}),n.d(t,"ToolbarRow",function(){return S.f}),n.d(t,"ToolbarFixedAdjust",function(){return S.b}),n.d(t,"ToolbarMenuIcon",function(){return S.d}),n.d(t,"ToolbarIcon",function(){return S.c}),n.d(t,"Toolbar",function(){return S.a});var I=n(61);n.d(t,"Typography",function(){return I.a});var R=n(19),D=R.version},function(e,t){e.exports={name:"rmwc",version:"1.7.5",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.36.1","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 && cp docs/index.html docs/404.html","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",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/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.20.1","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.2.2","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(3)),s=n.n(u),l=n(14),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,m=void 0===p?{}:p,b=e.consumeProps,h=void 0===b?[]:b,y=e.tag,v=e.wrap,_=void 0!==v&&v,g=e.classNames,O=y||"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);h.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 m=s()(n,Object(l.a)(u||null),"function"===typeof g?g(d):g);if(i||_){if(!d.children)return null;delete p.children;var b=c.Children.only(d.children);return c.cloneElement(b,Object.assign({},b.props,p,{className:m}))}return c.createElement(f,Object.assign({className:m},p))}}]),t}(c.Component),t.displayName=f,t.defaultProps=Object.assign({},m,{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(10)),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 y}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return _}),n.d(t,"h",function(){return g}),n.d(t,"e",function(){return O}),n.d(t,"c",function(){return j}),n.d(t,"d",function(){return w}),n.d(t,"b",function(){return E});var c=n(0),u=(n.n(c),n(3)),s=n.n(u),l=n(7),d=n(10),f=n(2),p=n(16),m=n(1),b=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)},y=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),b(t,[{key:"render",value:function(){return h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(m.c)({displayName:"Card",classNames:function(e){return["mdc-card",{"mdc-card--outlined":e.outlined}]},consumeProps:["outlined"]})),v=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),b(t,[{key:"render",value:function(){return h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(m.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"]})),_=Object(m.c)({displayName:"CardMediaContent",classNames:"mdc-card__media-content"}),g=Object(m.f)({surface:!1})(Object(m.c)({displayName:"CardPrimaryAction",classNames:"mdc-card__primary-action"})),O=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),b(t,[{key:"render",value:function(){return h(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}}]),t}(Object(m.c)({displayName:"CardActions",tag:"section",classNames:function(e){return["mdc-card__actions",{"mdc-card__actions--full-bleed":e.fullBleed}]},consumeProps:["fullBleed"]})),j=Object(m.c)({displayName:"CardActionButtons",classNames:"mdc-card__action-buttons"}),w=Object(m.c)({displayName:"CardActionIcons",classNames:"mdc-card__action-icons"}),E=function(e){var t=e.icon,n=e.iconToggle,o=e.className,i=r(e,["icon","iconToggle","className"]);if(t)return c.createElement(d.a,{unbounded:!0},c.createElement(f.a,Object.assign({},i,{use:i.use,className:s()(o,"mdc-card__action","mdc-card__action--icon")})));if(n){if(!i.on||!i.off)throw Error("You must specify `on` and `off` when using the IconToggle");return c.createElement(p.a,Object.assign({},i,{on:i.on,off:i.off,className:s()(o,"mdc-card__action","mdc-card__action--icon")}))}return c.createElement(l.a,Object.assign({},i,{className:s()(o,"mdc-card__action","mdc-card__action--button")}))};E.displayName="CardAction"},function(e,t){e.exports=i},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 b}),n.d(t,"g",function(){return h}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return _}),n.d(t,"f",function(){return g}),n.d(t,"e",function(){return O}),n.d(t,"a",function(){return j});var c=n(0),u=(n.n(c),n(27)),s=(n.n(u),n(9)),l=n(1),d=n(4),f=n(8),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}}(),m=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)},b=Object(l.c)({displayName:"CheckboxRoot",classNames:function(e){return["mdc-checkbox",{"mdc-checkbox--disabled":e.disabled}]},consumeProps:["disabled"]}),h=Object(l.c)({displayName:"CheckboxNativeControl",tag:"input",classNames:"mdc-checkbox__native-control",defaultProps:{type:"checkbox"}}),y=Object(l.c)({displayName:"CheckboxBackground",classNames:"mdc-checkbox__background"}),v=Object(l.c)({displayName:"CheckboxCheckmark",tag:"svg",classNames:"mdc-checkbox__checkmark",defaultProps:{viewBox:"0 0 24 24"}}),_=Object(l.c)({displayName:"CheckboxCheckmarkPath",tag:"path",classNames:"mdc-checkbox__checkmark-path",defaultProps:{fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}}),g=Object(l.c)({displayName:"CheckboxMixedmark",classNames:"mdc-checkbox__mixedmark"}),O=Object(l.c)({displayName:"CheckboxLabel",tag:"label"}),j=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.generatedId=Object(f.a)("checkbox"),n}return a(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this;m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this),this.ripple_=this.initRipple_(),this.boundChangeHandler=function(){return e.syncWithProps(e.props)},this.foundation_&&this.foundation_.adapter_.deregisterChangeHandler(this.foundation_.changeHandler_),this.foundation_&&this.foundation_.adapter_.registerChangeHandler(this.boundChangeHandler),this.foundation_&&this.foundation_.adapter_.registerChangeHandler(this.foundation_.changeHandler_)}},{key:"componentWillUnmount",value:function(){this.foundation_&&this.foundation_.adapter_.deregisterChangeHandler(this.boundChangeHandler),m(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this)}},{key:"syncWithProps",value:function(e){var t=this;Object(d.a)(e.checked,this.checked,function(){return t.checked=!!e.checked}),Object(d.a)(e.indeterminate,this.indeterminate,function(){return t.indeterminate=!!e.indeterminate}),Object(d.a)(e.disabled,this.disabled,function(){return t.disabled=!!e.disabled}),Object(d.a)(e.value,this.value,function(){return t.value=e.value})}},{key:"render",value:function(){var e=this.props,t=e.label,n=void 0===t?"":t,o=e.id,i=e.children,a=e.checked,u=(e.indeterminate,e.apiRef,r(e,["label","id","children","checked","indeterminate","apiRef"])),l=this.foundationRefs.root_,d=o||this.generatedId,f=c.createElement(b,{elementRef:l,disabled:u.disabled},c.createElement(h,Object.assign({id:d,checked:a},u)),c.createElement(y,null,c.createElement(v,null,c.createElement(_,null)),c.createElement(g,null)));return n.length||i?c.createElement(s.c,null,f,c.createElement(O,{id:d+"label",htmlFor:d},n,i)):f}}]),t}(Object(d.b)({constructor:u.MDCCheckbox,adapter:{}}));j.displayName="Checkbox"},function(e,t){e.exports=a},function(e,t){e.exports=c},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.set