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-name.js","webpack:///./node_modules/@rmwc/button/next/index.js","webpack:///./node_modules/@material/icon-button/constants.js","webpack:///./node_modules/@material/icon-button/foundation.js","webpack:///./node_modules/@rmwc/icon-button/next/index.js","webpack:///./node_modules/@rmwc/icon-button/next/foundation.js","webpack:///./node_modules/@rmwc/card/next/index.js","webpack:///./node_modules/@rmwc/icon/next/index.js"],"sourcesContent":["export var getDisplayName = function (childInput) {\n var _a, _b, _c;\n var child = Array.isArray(childInput) ? childInput[0] : childInput;\n var displayName = ((_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName) || ((_b = child === null || child === void 0 ? void 0 : child.constructor) === null || _b === void 0 ? void 0 : _b.displayName) || (child === null || child === void 0 ? void 0 : child.displayName) || (child === null || child === void 0 ? void 0 : child.name) || ((_c = child === null || child === void 0 ? void 0 : child.constructor) === null || _c === void 0 ? void 0 : _c.name) ||\n 'Unknown';\n return displayName;\n};\n","import { __assign, __rest } from \"tslib\";\nimport React from 'react';\nimport { withRipple } from '@rmwc/ripple';\nimport { Icon } from '@rmwc/icon';\nimport { Tag, useClassNames, createComponent, createMemoComponent } from '@rmwc/base';\n/**\n * The Button component.\n */\nexport var Button = withRipple({\n surface: false\n})(createComponent(function Button(props, ref) {\n var dense = props.dense, raised = props.raised, unelevated = props.unelevated, outlined = props.outlined, danger = props.danger, icon = props.icon, label = props.label, trailingIcon = props.trailingIcon, children = props.children, rest = __rest(props, [\"dense\", \"raised\", \"unelevated\", \"outlined\", \"danger\", \"icon\", \"label\", \"trailingIcon\", \"children\"]);\n var className = useClassNames(props, [\n 'mdc-button',\n {\n 'mdc-button--dense': dense,\n 'mdc-button--raised': raised,\n 'mdc-button--unelevated': unelevated,\n 'mdc-button--outlined': outlined\n }\n ]);\n if (danger) {\n var existingStyle = rest.style || {};\n var dangerStyle = {\n '--mdc-theme-primary': 'var(--mdc-theme-error)',\n '--mdc-theme-on-primary': 'var(--mdc-theme-on-error)'\n };\n rest.style = __assign(__assign({}, dangerStyle), existingStyle);\n }\n return (React.createElement(Tag, __assign({ tag: \"button\" }, rest, { ref: ref, className: className }),\n React.createElement(ButtonRipple, null),\n !!icon && React.createElement(ButtonIcon, { icon: icon }),\n React.createElement(\"span\", { className: \"mdc-button__label\" },\n label,\n children),\n !!trailingIcon && React.createElement(ButtonIcon, { icon: trailingIcon })));\n}));\n/*********************************************************************\n * Bits\n *********************************************************************/\nvar ButtonRipple = React.memo(function ButtonRipple() {\n return React.createElement(\"div\", { className: \"mdc-button__ripple\" });\n});\n/** An icon that goes inside of buttons. This is an instance of the Icon component. */\nvar ButtonIcon = createMemoComponent(function ButtonIcon(props, ref) {\n var className = useClassNames(props, ['mdc-button__icon']);\n return React.createElement(Icon, __assign({}, props, { className: className, ref: ref }));\n});\n","/**\n * @license\n * Copyright 2018 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport var cssClasses = {\n ICON_BUTTON_ON: 'mdc-icon-button--on',\n ROOT: 'mdc-icon-button',\n};\nexport var strings = {\n ARIA_PRESSED: 'aria-pressed',\n CHANGE_EVENT: 'MDCIconButtonToggle:change',\n};\n//# sourceMappingURL=constants.js.map","/**\n * @license\n * Copyright 2018 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport * as tslib_1 from \"tslib\";\nimport { MDCFoundation } from '@material/base/foundation';\nimport { cssClasses, strings } from './constants';\nvar MDCIconButtonToggleFoundation = /** @class */ (function (_super) {\n tslib_1.__extends(MDCIconButtonToggleFoundation, _super);\n function MDCIconButtonToggleFoundation(adapter) {\n return _super.call(this, tslib_1.__assign({}, MDCIconButtonToggleFoundation.defaultAdapter, adapter)) || this;\n }\n Object.defineProperty(MDCIconButtonToggleFoundation, \"cssClasses\", {\n get: function () {\n return cssClasses;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCIconButtonToggleFoundation, \"strings\", {\n get: function () {\n return strings;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MDCIconButtonToggleFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addClass: function () { return undefined; },\n hasClass: function () { return false; },\n notifyChange: function () { return undefined; },\n removeClass: function () { return undefined; },\n setAttr: function () { return undefined; },\n };\n },\n enumerable: true,\n configurable: true\n });\n MDCIconButtonToggleFoundation.prototype.init = function () {\n this.adapter_.setAttr(strings.ARIA_PRESSED, \"\" + this.isOn());\n };\n MDCIconButtonToggleFoundation.prototype.handleClick = function () {\n this.toggle();\n this.adapter_.notifyChange({ isOn: this.isOn() });\n };\n MDCIconButtonToggleFoundation.prototype.isOn = function () {\n return this.adapter_.hasClass(cssClasses.ICON_BUTTON_ON);\n };\n MDCIconButtonToggleFoundation.prototype.toggle = function (isOn) {\n if (isOn === void 0) { isOn = !this.isOn(); }\n if (isOn) {\n this.adapter_.addClass(cssClasses.ICON_BUTTON_ON);\n }\n else {\n this.adapter_.removeClass(cssClasses.ICON_BUTTON_ON);\n }\n this.adapter_.setAttr(strings.ARIA_PRESSED, \"\" + isOn);\n };\n return MDCIconButtonToggleFoundation;\n}(MDCFoundation));\nexport { MDCIconButtonToggleFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCIconButtonToggleFoundation;\n//# sourceMappingURL=foundation.js.map","import { __assign, __rest } from \"tslib\";\nimport React from 'react';\nimport { Tag, useClassNames, createComponent } from '@rmwc/base';\nimport { Icon } from '@rmwc/icon';\nimport { withRipple } from '@rmwc/ripple';\nimport { useIconButtonFoundation } from './foundation';\n/** An IconButton component that can also be used as a toggle. */\nexport var IconButton = createComponent(function IconButton(_a, ref) {\n var rest = __rest(_a, []);\n if (rest.onIcon) {\n return React.createElement(IconButtonToggle, __assign({}, rest, { ref: ref }));\n }\n return React.createElement(IconButtonRoot, __assign({ tag: \"button\" }, rest, { ref: ref }));\n});\nvar IconButtonToggle = createComponent(function IconButtonToggle(props, ref) {\n var icon = props.icon, onIcon = props.onIcon, foundationRef = props.foundationRef, rest = __rest(props, [\"icon\", \"onIcon\", \"foundationRef\"]);\n var _a = useIconButtonFoundation(props), isOn = _a.isOn, rootEl = _a.rootEl;\n return (React.createElement(IconButtonToggleRoot, __assign({ \"aria-pressed\": isOn }, rootEl.props(rest), { tag: \"button\", ref: ref }),\n React.createElement(IconButtonIcon, { icon: icon }),\n React.createElement(IconButtonIcon, { icon: onIcon, on: true })));\n});\n/*********************************************************************\n * Bits\n *********************************************************************/\nvar IconButtonRoot = withRipple({\n surface: false,\n unbounded: true\n})(createComponent(function IconButtonRoot(props, ref) {\n var checked = props.checked, label = props.label, foundationRef = props.foundationRef, rest = __rest(props, [\"checked\", \"label\", \"foundationRef\"]);\n var className = useClassNames(props, [\n 'mdc-icon-button',\n {\n 'mdc-icon-button--on': checked\n }\n ]);\n return (React.createElement(Icon, __assign({ role: \"button\", tabIndex: 0, \"aria-label\": label }, rest, { className: className, ref: ref })));\n}));\nvar IconButtonToggleRoot = withRipple({\n surface: false,\n unbounded: true\n})(createComponent(function IconButtonToggleRoot(props, ref) {\n var checked = props.checked, rest = __rest(props, [\"checked\"]);\n var className = useClassNames(props, [\n 'mdc-icon-button',\n {\n 'mdc-icon-button--on': checked\n }\n ]);\n return (React.createElement(Tag, __assign({ tag: \"button\", role: \"button\", tabIndex: 0 }, rest, { className: className, ref: ref })));\n}));\nvar IconButtonIcon = React.memo(function IconButtonIcon(props) {\n var on = props.on, rest = __rest(props, [\"on\"]);\n var className = useClassNames(props, [\n 'mdc-icon-button__icon',\n {\n 'mdc-icon-button__icon--on': props.on\n }\n ]);\n return React.createElement(Icon, __assign({}, rest, { className: className }));\n});\n","import { __assign, __rest } from \"tslib\";\nimport { useEffect } from 'react';\nimport { useFoundation } from '@rmwc/base';\nimport { MDCIconButtonToggleFoundation } from '@material/icon-button';\nexport var useIconButtonFoundation = function (props) {\n var _a = useFoundation({\n props: props,\n elements: { rootEl: true },\n foundation: function (_a) {\n var rootEl = _a.rootEl, emit = _a.emit;\n return new MDCIconButtonToggleFoundation({\n addClass: function (className) { return rootEl.addClass(className); },\n removeClass: function (className) { return rootEl.removeClass(className); },\n hasClass: function (className) { return rootEl.hasClass(className); },\n setAttr: function (attrName, attrValue) {\n return rootEl.setProp(attrName, attrValue);\n },\n notifyChange: function (evtData) { return emit('onChange', evtData); }\n });\n }\n }), foundation = _a.foundation, elements = __rest(_a, [\"foundation\"]);\n var rootEl = elements.rootEl;\n var isOn = props.checked !== undefined ? props.checked : foundation.isOn();\n useEffect(function () {\n if (isOn !== foundation.isOn()) {\n foundation.toggle(isOn);\n }\n }, [foundation, isOn]);\n var handleClick = function (evt) {\n var _a;\n (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, evt);\n foundation.handleClick();\n };\n rootEl.setProp('onClick', handleClick, true);\n return __assign({ isOn: isOn, foundation: foundation }, elements);\n};\n","import { __assign, __rest } from \"tslib\";\nimport React from 'react';\nimport { withRipple } from '@rmwc/ripple';\nimport { Button } from '@rmwc/button';\nimport { IconButton } from '@rmwc/icon-button';\nimport { useClassNames, Tag, createComponent } from '@rmwc/base';\n/** A Card Component */\nexport var Card = createComponent(function Card(props, ref) {\n var outlined = props.outlined, rest = __rest(props, [\"outlined\"]);\n var className = useClassNames(props, [\n 'mdc-card',\n {\n 'mdc-card--outlined': outlined\n }\n ]);\n return React.createElement(Tag, __assign({}, rest, { ref: ref, className: className }));\n});\n/** Media area that displays a custom background-image with background-size: cover */\nexport var CardMedia = createComponent(function CardMedia(props, ref) {\n var square = props.square, sixteenByNine = props.sixteenByNine, rest = __rest(props, [\"square\", \"sixteenByNine\"]);\n var className = useClassNames(props, [\n 'mdc-card__media',\n {\n 'mdc-card__media--square': square,\n 'mdc-card__media--16-9': sixteenByNine\n }\n ]);\n return React.createElement(Tag, __assign({ tag: \"section\" }, rest, { ref: ref, className: className }));\n});\n/** An absolutely-positioned box the same size as the media area, for displaying a title or icon on top of the background-image */\nexport var CardMediaContent = createComponent(function CardMediaContent(props, ref) {\n var className = useClassNames(props, ['mdc-card__media-content']);\n return React.createElement(Tag, __assign({}, props, { ref: ref, className: className }));\n});\n/** The main clickable area for the primary content of the card */\nexport var CardPrimaryAction = withRipple({\n surface: false\n})(createComponent(function CardPrimaryAction(props, ref) {\n var className = useClassNames(props, ['mdc-card__primary-action']);\n return React.createElement(Tag, __assign({}, props, { ref: ref, className: className }));\n}));\n/** Row containing action buttons and/or icons */\nexport var CardActions = createComponent(function CardActions(props, ref) {\n var fullBleed = props.fullBleed, rest = __rest(props, [\"fullBleed\"]);\n var className = useClassNames(props, [\n 'mdc-card__actions',\n { 'mdc-card__actions--full-bleed': fullBleed }\n ]);\n return React.createElement(Tag, __assign({ tag: \"section\" }, rest, { ref: ref, className: className }));\n});\n/** A group of action buttons, displayed on the left side of the card (in LTR), adjacent to CardActionIcons */\nexport var CardActionButtons = createComponent(function CardActionButtons(props, ref) {\n var className = useClassNames(props, ['mdc-card__action-buttons']);\n return React.createElement(Tag, __assign({}, props, { ref: ref, className: className }));\n});\n/** A group of supplemental action icons, displayed on the right side of the card (in LTR), adjacent to CardActionButtons */\nexport var CardActionIcons = createComponent(function CardActionIcons(props, ref) {\n var className = useClassNames(props, ['mdc-card__action-icons']);\n return React.createElement(Tag, __assign({}, props, { ref: ref, className: className }));\n});\n/** A card action Icon */\nexport var CardActionIcon = createComponent(function CardActionIcon(props, ref) {\n var className = useClassNames(props, [\n 'mdc-card__action',\n 'mdc-card__action--icon'\n ]);\n return React.createElement(IconButton, __assign({}, props, { ref: ref, className: className }));\n});\n/** A card action Button */\nexport var CardActionButton = createComponent(function CardActionIcon(props, ref) {\n var className = useClassNames(props, [\n 'mdc-card__action',\n 'mdc-card__action--button'\n ]);\n return React.createElement(Button, __assign({}, props, { ref: ref, className: className }));\n});\n","import { __assign, __rest } from \"tslib\";\nimport React from 'react';\nimport { useProviderContext } from '@rmwc/provider';\nimport { classNames, Tag, createComponent, getDisplayName } from '@rmwc/base';\n/**\n * Given content, tries to figure out an appropriate strategy for it\n */\nvar processAutoStrategy = function (content) {\n // check for URLS\n if (typeof content === 'string' && content.includes('/')) {\n return 'url';\n }\n // handle JSX components\n if (React.isValidElement(content)) {\n return 'component';\n }\n // we don't know what it is, default to ligature for compat with material icons\n return 'ligature';\n};\n/**\n * Get the actual icon strategy to use\n */\nexport var getIconStrategy = function (content, strategy, providerStrategy) {\n strategy = strategy || providerStrategy || 'auto';\n if (strategy === 'auto') {\n return processAutoStrategy(content);\n }\n return strategy;\n};\nvar renderLigature = function (_a) {\n var content = _a.content, rest = __rest(_a, [\"content\"]);\n return (React.createElement(IconRoot, __assign({}, rest), content));\n};\nvar renderClassName = function (_a) {\n var content = _a.content, rest = __rest(_a, [\"content\"]);\n return React.createElement(IconRoot, __assign({}, rest));\n};\nvar renderUrl = function (_a) {\n var content = _a.content, rest = __rest(_a, [\"content\"]);\n return (React.createElement(IconRoot, __assign({}, rest, { style: __assign(__assign({}, rest.style), { backgroundImage: \"url(\" + content + \")\" }) })));\n};\nvar renderComponent = function (_a) {\n var content = _a.content, rest = __rest(_a, [\"content\"]);\n if (content.type === 'svg') {\n var _b = content.props, children = _b.children, svgRest = __rest(_b, [\"children\"]);\n return (React.createElement(IconRoot, __assign({}, svgRest, rest, { tag: \"svg\" }), children));\n }\n return React.createElement(IconRoot, __assign({}, rest), content);\n};\nvar iconRenderMap = {\n ligature: renderLigature,\n className: renderClassName,\n url: renderUrl,\n component: renderComponent,\n auto: undefined\n};\nvar buildIconOptions = function (icon) {\n if (React.isValidElement(icon) || (icon && typeof icon !== 'object')) {\n return {\n icon: icon\n };\n }\n return icon;\n};\nvar IconRoot = React.forwardRef(function IconRoot(props, ref) {\n return React.createElement(Tag, __assign({ tag: \"i\" }, props, { ref: ref }));\n});\n/** An Icon component. Most of these options can be set once globally, read the documentation on Provider for more info. */\nexport var Icon = createComponent(function (_a, ref) {\n var _b;\n var icon = _a.icon, rest = __rest(_a, [\"icon\"]);\n var providerContext = useProviderContext();\n // Build icon options object\n var _c = __assign({}, buildIconOptions(icon)), content = _c.icon, strategy = _c.strategy, prefix = _c.prefix, basename = _c.basename, render = _c.render, size = _c.size, optionsRest = __rest(_c, [\"icon\", \"strategy\", \"prefix\", \"basename\", \"render\", \"size\"]);\n // Get provider options\n var _d = providerContext.icon || {}, _e = _d.basename, providerBasename = _e === void 0 ? null : _e, _f = _d.prefix, providerPrefix = _f === void 0 ? null : _f, _g = _d.strategy, providerStrategy = _g === void 0 ? null : _g, _h = _d.render, providerRender = _h === void 0 ? null : _h;\n var contentToUse = content;\n var strategyToUse = getIconStrategy(contentToUse, strategy || null, providerStrategy || null);\n var prefixToUse = prefix || providerPrefix;\n var basenameToUse = basename === undefined ? providerBasename : basename;\n var iconClassName = strategyToUse === 'className' && typeof content === 'string'\n ? \"\" + String(prefixToUse) + content\n : null;\n var rendererFromMap = !!strategyToUse && iconRenderMap[strategyToUse];\n // For some reason TS thinks the render method will return undefined...\n var renderToUse = strategyToUse === 'custom'\n ? render || providerRender\n : rendererFromMap || null;\n if (!renderToUse) {\n console.error(\"Icon: rendering not implemented for \" + String(strategyToUse) + \".\");\n return null;\n }\n var rendered = renderToUse(__assign(__assign(__assign({}, rest), optionsRest), { ref: ref, content: contentToUse, className: classNames('rmwc-icon', \"rmwc-icon--\" + strategyToUse, basenameToUse, rest.className, optionsRest.className, iconClassName, (_b = {},\n _b[\"rmwc-icon--size-\" + (size || '')] = !!size,\n _b)) }));\n var childDisplayName = getDisplayName(rendered.props.children);\n if (childDisplayName.includes('Avatar') ||\n childDisplayName.includes('Icon')) {\n return React.cloneElement(rendered.props.children, __assign(__assign(__assign({}, rendered.props.children.props), rendered.props), { ref: ref, \n // prevents an infinite loop\n children: rendered.props.children.props.children, className: classNames(rendered.props.className, rendered.props.children.props.className) }));\n }\n return rendered;\n});\nIcon.displayName = 'Icon';\n"],"names":["getDisplayName","childInput","_a","_b","_c","child","Array","isArray","type","displayName","constructor","name","Button","surface","props","ref","dense","raised","unelevated","outlined","danger","icon","label","trailingIcon","children","rest","className","existingStyle","style","tag","ButtonRipple","ButtonIcon","cssClasses","ICON_BUTTON_ON","ROOT","strings","ARIA_PRESSED","CHANGE_EVENT","MDCIconButtonToggleFoundation","_super","adapter","call","this","defaultAdapter","Object","defineProperty","get","enumerable","configurable","addClass","hasClass","notifyChange","removeClass","setAttr","prototype","init","adapter_","isOn","handleClick","toggle","IconButton","onIcon","IconButtonToggle","IconButtonRoot","foundationRef","elements","rootEl","foundation","emit","attrName","attrValue","setProp","evtData","undefined","checked","useEffect","evt","onClick","useIconButtonFoundation","IconButtonToggleRoot","IconButtonIcon","on","unbounded","role","tabIndex","Card","CardPrimaryAction","square","sixteenByNine","CardActions","fullBleed","CardActionButtons","CardActionIcons","CardActionIcon","CardActionButton","getIconStrategy","content","strategy","providerStrategy","includes","processAutoStrategy","iconRenderMap","ligature","IconRoot","url","backgroundImage","component","svgRest","auto","Icon","providerContext","buildIconOptions","prefix","basename","render","size","optionsRest","_d","_e","providerBasename","_f","providerPrefix","_g","_h","providerRender","contentToUse","strategyToUse","basenameToUse","iconClassName","String","renderToUse","console","error","rendered","childDisplayName"],"sourceRoot":""}