{"version":3,"file":"vendors-node_modules_estee_elc-base-theme_src_ContentSpacing_ts-node_modules_estee_elc-button-172c1c.15a05a01c2652f239c8c.bundle.js","mappings":"oSAIO,MAEMA,EAA4B,CACrCC,QAAS,IACTC,YAAa,KACbC,iBAAkB,MAGTC,EAAcC,GAAgB,CACvCC,KAEGC,KAGH,IAAIC,EAASD,EAAaE,QAAO,CAACC,EAAKC,EAAQC,IAAQ,GAAGF,IAAMJ,EAAKM,KAAOD,KAAU,IAKtF,OAFAH,EAAS,GAAGA,IAASF,EAAKA,EAAKO,OAAS,KAEjC,qBAAqBb,EAAYK,UAAYG,IAAS,C,+JCW1D,MAAMM,EAAkB,CAC3BC,MAAO,UACPC,MAAO,UACPC,UAAW,UACXC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,WAAY,UACZC,UAAW,UACXC,OAAQ,UACRC,KAAM,UACNC,QAAS,UACTC,QAAS,UACTC,cAAe,UACfC,YAAa,UACbC,kBAAmB,iBAAiB,kBACpCC,oBAAqB,iBAAiB,oBACtCC,mBAAoB,iBAAiB,mBACrCC,sBAAuB,iBAAiB,sBACxCC,kBAAmB,iBAAiB,kBACpCC,kBAAmB,uBAAuB,kBAC1CC,oBAAqB,uBAAuB,oBAC5CC,sBAAuB,uBAAuB,sBAC9CC,iBAAkB,oBAAoB,kBACtCC,gBAAiB,qBAAqB,kBACtCC,gBAAiB,sBAAsB,kBACvCC,oBAAqB,qBAAqB,kBAC1CC,oBAAqB,sBAAsB,kB,uGClExC,MAAMC,EAAiB,CAC1BC,OAAQ,MACRC,OAAQ,MACRC,OAAQ,MACRC,OAAQ,MACRC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,QAAS,OACTC,SAAU,Q,iG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W,CAAC,GAEjBzL,EACH,MAAM,IAAIG,MAAM,oBAGlB,OAA8C,IAA1CyW,EAAQ1b,KAAK8E,EAAM0W,IAIhBkE,EAA+BnP,EAASzL,EACjD,EAEIob,EAA4C3E,EAAmBrW,OAAO,UAAUjF,KAAK,KAErF0C,EAAc,SAAqBmC,EAAMyL,GAG3C,GAFAA,EAAUA,GAAW,CAAC,GAEjBzL,EACH,MAAM,IAAIG,MAAM,oBAGlB,OAAuD,IAAnDyW,EAAQ1b,KAAK8E,EAAMob,IAIhBzB,EAAgClO,EAASzL,EAClD,C","sources":["webpack://pg-service-cart/./node_modules/@estee/elc-base-theme/src/Breakpoints.ts","webpack://pg-service-cart/./node_modules/@estee/elc-base-theme/src/Colors.ts","webpack://pg-service-cart/./node_modules/@estee/elc-base-theme/src/ContentSpacing.ts","webpack://pg-service-cart/./node_modules/@estee/elc-base-theme/src/Emphasis.ts","webpack://pg-service-cart/./node_modules/@estee/elc-buttons/node_modules/@estee/elc-base-theme/src/Fonts.ts","webpack://pg-service-cart/./node_modules/@estee/elc-buttons/node_modules/@estee/elc-base-theme/src/Emphasis.ts","webpack://pg-service-cart/./node_modules/@estee/elc-buttons/node_modules/@estee/elc-base-theme/src/Colors.ts","webpack://pg-service-cart/./node_modules/@estee/elc-buttons/src/theme/default-theme.ts","webpack://pg-service-cart/./node_modules/@estee/elc-buttons/src/views/Button.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-icons/node_modules/@estee/elc-base-theme/src/Emphasis.ts","webpack://pg-service-cart/./node_modules/@estee/elc-icons/node_modules/@estee/elc-base-theme/src/Colors.ts","webpack://pg-service-cart/./node_modules/@estee/elc-icons/src/views/Icon.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-icons/src/views/MinusIcon.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-icons/src/views/MoreInfoIcon.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-icons/src/views/PlusIcon.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-icons/src/views/RemoveIcon.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-icons/src/views/SpinnerIcon.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-responsive-modal/node_modules/@estee/elc-layouts/src/constants/LayoutPosition.ts","webpack://pg-service-cart/./node_modules/@estee/elc-responsive-modal/src/views/ResponsiveModal.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-responsive-modal/src/theme/default-theme.ts","webpack://pg-service-cart/./node_modules/@estee/elc-service/src/decorators/TranslateDecorator.tsx","webpack://pg-service-cart/./node_modules/@estee/elc-typography/node_modules/@estee/elc-base-theme/src/Emphasis.ts","webpack://pg-service-cart/./node_modules/@estee/elc-typography/node_modules/@estee/elc-base-theme/src/Colors.ts","webpack://pg-service-cart/./node_modules/@estee/elc-typography/node_modules/@estee/elc-base-theme/src/Fonts.ts","webpack://pg-service-cart/./node_modules/@estee/elc-typography/node_modules/@estee/elc-base-theme/src/Breakpoints.ts","webpack://pg-service-cart/./node_modules/@estee/elc-typography/src/theme/default-theme.ts","webpack://pg-service-cart/./node_modules/@estee/elc-typography/src/views/Typography.tsx","webpack://pg-service-cart/./node_modules/classnames/index.js","webpack://pg-service-cart/./node_modules/focus-trap-react/dist/focus-trap-react.js","webpack://pg-service-cart/./node_modules/focus-trap/dist/focus-trap.esm.js","webpack://pg-service-cart/./node_modules/mobx-react-lite/dist/index.module.js","webpack://pg-service-cart/./node_modules/no-scroll/index.js","webpack://pg-service-cart/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://pg-service-cart/./node_modules/prop-types/index.js","webpack://pg-service-cart/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://pg-service-cart/./node_modules/react-aria-modal/dist/react-aria-modal.js","webpack://pg-service-cart/./node_modules/react-displace/dist/displace.js","webpack://pg-service-cart/./node_modules/tabbable/dist/index.esm.js"],"sourcesContent":["export interface IBreakpoints {\n [key: string]: number;\n}\n\nexport const layoutPageContentWidth: number = 1260;\n\nexport const Breakpoints: IBreakpoints = {\n desktop: 768,\n largeScreen: 1024,\n extraLargeScreen: 1200\n};\n\nexport const breakpoint = (brp: string) => (\n code: TemplateStringsArray,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ...placeholders: any[]\n) => {\n // interleave the code with the placeholders\n let result = placeholders.reduce((acc, holder, idx) => `${acc}${code[idx]}${holder}`, '');\n\n // add the code literal\n result = `${result}${code[code.length - 1]}`;\n\n return `@media(min-width: ${Breakpoints[brp]}px) {${result}}`;\n};\n","import { Emphasis } from './Emphasis';\n\nexport interface IColors {\n black: string;\n white: string;\n whiteDove: string;\n primary900: string;\n primary800: string;\n primary700: string;\n primary600: string;\n primary500: string;\n primary400: string;\n primary300: string;\n primary200: string;\n primary100: string;\n primary50: string;\n danger: string;\n info: string;\n success: string;\n warning: string;\n unvisitedLink: string;\n visitedLink: string;\n blackHighEmphasis: string;\n blackMediumEmphasis: string;\n blackLightEmphasis: string;\n blackDisabledEmphasis: string;\n whiteHighEmphasis: string;\n whiteMediumEmphasis: string;\n whiteDisabledEmphasis: string;\n redLightEmphasis: string;\n\n [key: string]: string;\n}\n\nexport const Colors: IColors = {\n black: '#000000',\n white: '#FFFFFF',\n whiteDove: '#FBFBFB',\n primary900: '#212121',\n primary800: '#424242',\n primary700: '#616161',\n primary600: '#757575',\n primary500: '#9E9E9E',\n primary400: '#BDBDBD',\n primary300: '#E0E0E0',\n primary200: '#EEEEEE',\n primary100: '#F5F5F5',\n primary50: '#FAFAFA',\n danger: '#B00020',\n info: '#54A6D7',\n success: '#70B000',\n warning: '#EE9F57',\n unvisitedLink: '#0000EE',\n visitedLink: '#551A8B',\n blackHighEmphasis: `rgba(0, 0, 0, ${Emphasis.high.value})`,\n blackMediumEmphasis: `rgba(0, 0, 0, ${Emphasis.medium.value})`,\n blackLightEmphasis: `rgba(0, 0, 0, ${Emphasis.light.value})`,\n blackDisabledEmphasis: `rgba(0, 0, 0, ${Emphasis.disabled.value})`,\n blackPaleEmphasis: `rgba(0, 0, 0, ${Emphasis.pale.value})`,\n whiteHighEmphasis: `rgba(255, 255, 255, ${Emphasis.high.value})`,\n whiteMediumEmphasis: `rgba(255, 255, 255, ${Emphasis.medium.value})`,\n whiteDisabledEmphasis: `rgba(255, 255, 255, ${Emphasis.disabled.value})`,\n redLightEmphasis: `rgba(176, 0, 32, ${Emphasis.pale.value})`,\n successEmphasis: `rgba(112, 176, 0, ${Emphasis.pale.value})`,\n warningEmphasis: `rgba(238, 159, 87, ${Emphasis.pale.value})`,\n successHalfEmphasis: `rgba(112, 176, 0, ${Emphasis.half.value})`,\n warningHalfEmphasis: `rgba(238, 159, 87, ${Emphasis.half.value})`\n};\n","export const ContentSpacing = {\n space2: '2px',\n space4: '4px',\n space6: '6px',\n space8: '8px',\n space10: '10px',\n space12: '12px',\n space16: '16px',\n space20: '20px',\n space24: '24px',\n space28: '28px',\n space32: '32px',\n space36: '36px',\n space40: '40px',\n space44: '44px',\n space48: '48px',\n space60: '60px',\n space80: '80px',\n space100: '100px'\n};\n","export interface IEmphasisProps {\n [key: string]: number | string;\n}\n\nexport interface IEmphasis {\n [key: string]: IEmphasisProps;\n}\n\nexport const Emphasis: IEmphasis = {\n high: { value: 0.88, className: '' }, // No className because it has emphasis High by default\n medium: { value: 0.64, className: 'elc-medium-emphasis' },\n half: { value: 0.5, className: 'elc-half-emphasis' },\n light: { value: 0.12, className: 'elc-light-emphasis' },\n pale: { value: 0.02, className: 'elc-pale-emphasis' },\n disabled: { value: 0.4, className: 'elc-disabled-emphasis' }\n};\n","export const Fonts = {\n roboto: 'Roboto Regular',\n robotoLight: 'Roboto Light',\n robotoMedium: 'Roboto Medium'\n};\n","export interface IEmphasisProps {\n [key: string]: number | string;\n}\n\nexport interface IEmphasis {\n [key: string]: IEmphasisProps;\n}\n\nexport const Emphasis: IEmphasis = {\n high: { value: 0.88, className: '' }, // No className because it has emphasis High by default\n medium: { value: 0.64, className: 'elc-medium-emphasis' },\n light: { value: 0.12, className: 'elc-light-emphasis' },\n pale: { value: 0.02, className: 'elc-pale-emphasis' },\n disabled: { value: 0.4, className: 'elc-disabled-emphasis' }\n};\n","import { Emphasis } from './Emphasis';\n\nexport interface IColors {\n black: string;\n white: string;\n whiteDove: string;\n primary900: string;\n primary800: string;\n primary700: string;\n primary600: string;\n primary500: string;\n primary400: string;\n primary300: string;\n primary200: string;\n primary100: string;\n primary50: string;\n danger: string;\n info: string;\n success: string;\n warning: string;\n unvisitedLink: string;\n visitedLink: string;\n blackHighEmphasis: string;\n blackMediumEmphasis: string;\n blackLightEmphasis: string;\n blackDisabledEmphasis: string;\n whiteHighEmphasis: string;\n whiteMediumEmphasis: string;\n whiteDisabledEmphasis: string;\n redLightEmphasis: string;\n\n [key: string]: string;\n}\n\nexport const Colors: IColors = {\n black: '#000000',\n white: '#FFFFFF',\n whiteDove: '#FBFBFB',\n primary900: '#212121',\n primary800: '#424242',\n primary700: '#616161',\n primary600: '#757575',\n primary500: '#9E9E9E',\n primary400: '#BDBDBD',\n primary300: '#E0E0E0',\n primary200: '#EEEEEE',\n primary100: '#F5F5F5',\n primary50: '#FAFAFA',\n danger: '#B00020',\n info: '#54A6D7',\n success: '#70B000',\n warning: '#EE9F57',\n unvisitedLink: '#0000EE',\n visitedLink: '#551A8B',\n blackHighEmphasis: `rgba(0, 0, 0, ${Emphasis.high.value})`,\n blackMediumEmphasis: `rgba(0, 0, 0, ${Emphasis.medium.value})`,\n blackLightEmphasis: `rgba(0, 0, 0, ${Emphasis.light.value})`,\n blackDisabledEmphasis: `rgba(0, 0, 0, ${Emphasis.disabled.value})`,\n blackPaleEmphasis: `rgba(0, 0, 0, ${Emphasis.pale.value})`,\n whiteHighEmphasis: `rgba(255, 255, 255, ${Emphasis.high.value})`,\n whiteMediumEmphasis: `rgba(255, 255, 255, ${Emphasis.medium.value})`,\n whiteDisabledEmphasis: `rgba(255, 255, 255, ${Emphasis.disabled.value})`,\n redLightEmphasis: `rgba(176, 0, 32, ${Emphasis.pale.value})`,\n successEmphasis: `rgba(112, 176, 0, ${Emphasis.pale.value})`,\n warningEmphasis: `rgba(238, 159, 87, ${Emphasis.pale.value})`\n};\n","import { Colors, Fonts } from '@estee/elc-base-theme';\n\nexport const typographyButtonsTheme = `\n border-radius: 4px;\n font-family: ${Fonts.roboto};\n font-weight: 500px;\n text-transform: uppercase;\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const buttonTheme = `\n background-color: ${Colors.primary900};\n color: ${Colors.white};\n ${typographyButtonsTheme};\n\n &:hover {\n background-color: ${Colors.primary800};\n }\n\n &:active {\n background-color: ${Colors.primary700};\n }\n\n &:disabled {\n background-color: ${Colors.primary300};\n color: ${Colors.primary600};\n }\n \n`;\n\nexport const buttonTextTheme = `\n background-color: ${Colors.white};\n color: ${Colors.primary900};\n text-decoration: underline;\n ${typographyButtonsTheme};\n\n &:hover {\n background-color: ${Colors.primary100};\n }\n\n &:active {\n background-color: ${Colors.primary200};\n }\n\n &:disabled {\n background-color: ${Colors.primary300};\n color: ${Colors.primary600};\n }\n`;\n\nexport const buttonOutlinedTheme = ` \n border-color: ${Colors.primary900};\n background-color: ${Colors.white};\n color: ${Colors.primary900};\n ${typographyButtonsTheme};\n\n &:hover {\n background-color: ${Colors.primary100};\n }\n\n &:active {\n background-color: ${Colors.primary200};\n }\n\n &:disabled {\n border-color: ${Colors.primary400};\n background-color: ${Colors.white};\n color: ${Colors.primary400};\n }\n`;\n\nexport const stickyButtonContainerTheme = `\n background-color: ${Colors.white};\n box-shadow: 0 -3px 3px ${Colors.primary400};\n`;\n\nexport const stickyButtonTheme = buttonTheme;\n","import * as React from 'react';\nimport * as classnames from 'classnames';\nimport { SpinnerIcon } from '@estee/elc-icons';\nimport styled from 'styled-components';\nimport { buttonOutlinedTheme, buttonTextTheme, buttonTheme } from '../theme/default-theme';\n\nexport type ButtonSize =\n /**\n * Small\n */\n | 'sm'\n /**\n * Large\n */\n | 'lg'\n /**\n * Custom sizes\n */\n | string;\n\nexport interface IButtonDisplayProps extends React.ButtonHTMLAttributes {\n /**\n * If set to true then the component will span the width of the container\n */\n block?: boolean;\n /**\n * Based on button size a class name will be appended to the class list\n */\n size?: ButtonSize;\n /**\n * @inheritDoc\n */\n className?: string;\n}\n\nexport type IButton = React.ComponentType<\n React.ButtonHTMLAttributes & IButtonDisplayProps\n>;\n\nconst buttonSizeClass = (sz: string | undefined) => {\n return sz ? `elc-button--${sz}` : '';\n};\n\nconst getButtonClassNames = (props: IButtonDisplayProps) => {\n return classnames(['elc-button', 'js-button', buttonSizeClass(props.size), props.className]);\n};\n\nconst Btn = styled.button`\n border: none;\n cursor: pointer;\n letter-spacing: 1.25px;\n font-size: 14px;\n padding: 10px 20px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ${(props: IButtonDisplayProps) =>\n props.block\n ? `\n display: block;\n width: 100%;\n `\n : ''};\n ${buttonTheme};\n &.${buttonSizeClass('sm')} {\n padding: 4px 8px;\n font-size: 12px;\n }\n /* stylelint-disable */\n &.${buttonSizeClass('lg')} {\n padding: 16px 32px;\n }\n /* stylelint-enable */\n`;\n\nexport const Button: React.SFC = props => {\n const className = getButtonClassNames(props);\n\n return (\n \n {props.children}\n \n );\n};\n\nexport const StyledTextButton = (props: IButtonDisplayProps) => {\n const StyledButton = styled(Btn)`\n ${buttonTextTheme};\n `;\n const className = getButtonClassNames(props);\n\n return ;\n};\n\nexport const TextButton: React.SFC = props => {\n const { className, ...restOfProps } = props;\n const textButtonClassNames = `${className} elc-button--text`;\n\n return (\n \n {props.children}\n \n );\n};\n\nexport const StyledOutlinedButton = (props: IButtonDisplayProps) => {\n const StyledButton = styled(Btn)`\n border-style: solid;\n border-width: 1px;\n ${buttonOutlinedTheme};\n `;\n const className = getButtonClassNames(props);\n\n return ;\n};\n\nexport const OutlinedButton: React.SFC = props => {\n const { className, ...restOfProps } = props;\n const outlinedButtonClassNames = `${className} elc-button--outlined`;\n\n return (\n \n {props.children}\n \n );\n};\n\nexport const LoadingButton: IButton = styled(Button).attrs({\n className: 'elc-button-spinner'\n})`\n position: relative;\n overflow: hidden;\n`;\nLoadingButton.displayName = 'LoadingButton';\n\nconst SpinnerContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n`;\n\nexport interface IButtonProps\n extends React.ButtonHTMLAttributes,\n IButtonDisplayProps {\n isLoading?: boolean;\n}\n\nconst LoadableButton: React.SFC = props => (\n \n {props.isLoading && (\n \n \n \n )}\n {props.children}\n \n);\n\nexport { LoadableButton };\n","export interface IEmphasisProps {\n [key: string]: number | string;\n}\n\nexport interface IEmphasis {\n [key: string]: IEmphasisProps;\n}\n\nexport const Emphasis: IEmphasis = {\n high: { value: 0.88, className: '' }, // No className because it has emphasis High by default\n medium: { value: 0.64, className: 'elc-medium-emphasis' },\n half: { value: 0.5, className: 'elc-half-emphasis' },\n light: { value: 0.12, className: 'elc-light-emphasis' },\n pale: { value: 0.02, className: 'elc-pale-emphasis' },\n disabled: { value: 0.4, className: 'elc-disabled-emphasis' }\n};\n","import { Emphasis } from './Emphasis';\n\nexport interface IColors {\n black: string;\n white: string;\n whiteDove: string;\n primary900: string;\n primary800: string;\n primary700: string;\n primary600: string;\n primary500: string;\n primary400: string;\n primary300: string;\n primary200: string;\n primary100: string;\n primary50: string;\n danger: string;\n info: string;\n success: string;\n warning: string;\n unvisitedLink: string;\n visitedLink: string;\n blackHighEmphasis: string;\n blackMediumEmphasis: string;\n blackLightEmphasis: string;\n blackDisabledEmphasis: string;\n whiteHighEmphasis: string;\n whiteMediumEmphasis: string;\n whiteDisabledEmphasis: string;\n redLightEmphasis: string;\n\n [key: string]: string;\n}\n\nexport const Colors: IColors = {\n black: '#000000',\n white: '#FFFFFF',\n whiteDove: '#FBFBFB',\n primary900: '#212121',\n primary800: '#424242',\n primary700: '#616161',\n primary600: '#757575',\n primary500: '#9E9E9E',\n primary400: '#BDBDBD',\n primary300: '#E0E0E0',\n primary200: '#EEEEEE',\n primary100: '#F5F5F5',\n primary50: '#FAFAFA',\n danger: '#B00020',\n info: '#54A6D7',\n success: '#70B000',\n warning: '#EE9F57',\n unvisitedLink: '#0000EE',\n visitedLink: '#551A8B',\n blackHighEmphasis: `rgba(0, 0, 0, ${Emphasis.high.value})`,\n blackMediumEmphasis: `rgba(0, 0, 0, ${Emphasis.medium.value})`,\n blackLightEmphasis: `rgba(0, 0, 0, ${Emphasis.light.value})`,\n blackDisabledEmphasis: `rgba(0, 0, 0, ${Emphasis.disabled.value})`,\n blackPaleEmphasis: `rgba(0, 0, 0, ${Emphasis.pale.value})`,\n whiteHighEmphasis: `rgba(255, 255, 255, ${Emphasis.high.value})`,\n whiteMediumEmphasis: `rgba(255, 255, 255, ${Emphasis.medium.value})`,\n whiteDisabledEmphasis: `rgba(255, 255, 255, ${Emphasis.disabled.value})`,\n redLightEmphasis: `rgba(176, 0, 32, ${Emphasis.pale.value})`,\n successEmphasis: `rgba(112, 176, 0, ${Emphasis.pale.value})`,\n warningEmphasis: `rgba(238, 159, 87, ${Emphasis.pale.value})`,\n successHalfEmphasis: `rgba(112, 176, 0, ${Emphasis.half.value})`,\n warningHalfEmphasis: `rgba(238, 159, 87, ${Emphasis.half.value})`\n};\n","import * as React from 'react';\nimport { Colors } from '@estee/elc-base-theme';\nimport styled from 'styled-components';\nimport * as classnames from 'classnames';\n\nexport interface IIconProps {\n className: string;\n size: string;\n width?: number;\n height?: number;\n image?: string;\n color?: string;\n background?: string;\n transform?: string;\n 'aria-label'?: string;\n}\n\ninterface ISizes {\n [key: string]: number;\n}\n\nexport const SIZES: ISizes = {\n xsmall: 10,\n small: 16,\n medium: 20,\n large: 24,\n xlarge: 60,\n xxlarge: 90\n};\n\nconst IconPlaceholder = styled.div`\n cursor: pointer;\n width: ${props =>\n props.theme.size !== 'custom' ? SIZES[props.theme.size] : props.theme.width}px;\n height: ${props =>\n props.theme.size !== 'custom' ? SIZES[props.theme.size] : props.theme.height}px;\n transform: ${props => (props.theme.transform ? props.theme.transform : '')};\n`;\n\nconst MaskIconPlaceholder = styled(IconPlaceholder)`\n background-color: ${props => (props.theme.color ? props.theme.color : Colors.black)};\n mask: ${props => props.theme.image && props.theme.image} no-repeat center;\n`;\n\nconst BackgroundIconPlaceholder = styled(IconPlaceholder)`\n background: ${props => props.theme.background && props.theme.background} no-repeat center;\n`;\n\nconst Icon = (props: IIconProps) => {\n const { className, 'aria-label': ariaLabel, ...theme } = props;\n const genericIconClassname = 'elc-icon js-icon';\n\n return theme.image ? (\n \n ) : (\n \n );\n};\n\nexport { Icon };\n","import * as React from 'react';\nimport * as classNames from 'classnames';\nimport { Icon } from './Icon';\n\nexport interface IMinusIconProps {\n className?: string;\n}\n\nconst MinusIcon = (props: IMinusIconProps) => {\n const className = classNames('elc-minus-icon', props.className);\n const image = `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' preserveAspectRatio='none' fill='transparent' stroke='%23000000' stroke-width='1px' %3E%3Cpath d='M0,10 L20,10' /%3E%3C/svg%3E\")`;\n\n return ;\n};\n\nexport { MinusIcon };\n","import * as React from 'react';\nimport * as classNames from 'classnames';\nimport { Icon } from './Icon';\n\nexport interface IMoreInfoIconProps {\n className?: string;\n size?: string;\n isBold?: boolean;\n}\n\nconst MoreInfoIcon = (props: IMoreInfoIconProps) => {\n const size = props.size || 'large';\n const className = classNames('elc-more-info-icon', props.className);\n const image = `url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22Layer_1%22%20data-name%3D%22Layer%201%22%20viewBox%3D%220%200%2077.58%2077.58%22%3E%3Cdefs%3E%3Cstyle%3E.cls-2%7Bfill%3A%236b6b6b%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2238.79%22%20cy%3D%2238.79%22%20r%3D%2237.29%22%20style%3D%22fill%3Anone%3Bstroke%3A%236b6b6b%3Bstroke-miterlimit%3A10%3Bstroke-width%3A3px%22%2F%3E%3Cpath%20d%3D%22M35.85%2026.41h5.88v39.5h-5.88z%22%20class%3D%22cls-2%22%2F%3E%3Ccircle%20cx%3D%2238.79%22%20cy%3D%2216.26%22%20r%3D%224.59%22%20class%3D%22cls-2%22%2F%3E%3C%2Fsvg%3E\")`;\n const boldImage = `url(\"data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z' fill='black'/%3E%3C/svg%3E\")`;\n\n return ;\n};\n\nexport { MoreInfoIcon };\n","import * as React from 'react';\nimport * as classNames from 'classnames';\nimport { Icon } from './Icon';\n\nexport interface IPlusIconProps {\n className?: string;\n}\n\nconst PlusIcon = (props: IPlusIconProps) => {\n const className = classNames('elc-plus-icon', props.className);\n const image = `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' preserveAspectRatio='none' fill='transparent' stroke='%23000000' stroke-width='1px' %3E%3Cpath d='M0,10 L20,10' /%3E%3Cpath d='M10,0 L10,20' /%3E%3C/svg%3E\")`;\n\n return ;\n};\n\nexport { PlusIcon };\n","import * as React from 'react';\nimport * as classNames from 'classnames';\nimport { Icon } from './Icon';\n\nexport interface IRemoveIconProps {\n className?: string;\n}\n\nconst RemoveIcon = (props: IRemoveIconProps) => {\n const className = classNames('elc-remove-icon', props.className);\n const image = `url(\"data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' preserveAspectRatio='none' fill='transparent' stroke='%23000000' stroke-width='1.5px' %3E%3Cpath d='M1,1 L19,19' /%3E%3Cpath d='M19,1 L1,19' /%3E%3C/svg%3E \")`;\n\n return (\n \n \n \n );\n};\n\nexport { RemoveIcon };\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { Colors } from '@estee/elc-base-theme';\n\nexport interface ISpinnerIconProps {\n className?: string;\n color?: string;\n}\n\nconst Svg = styled.svg`\n animation: rotate 2s linear infinite;\n transform-origin: center center;\n width: 36px;\n height: 36px;\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n`;\n\nconst Circle = styled.circle`\n stroke-dasharray: 150, 200;\n stroke-dashoffset: -10;\n animation: dash 1.5s ease-in-out infinite;\n stroke-linecap: round;\n\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124;\n }\n }\n`;\n\nconst SpinnerIcon = (props: ISpinnerIconProps) => {\n return (\n \n \n \n );\n};\n\nexport { SpinnerIcon };\n","export enum LayoutPosition {\n TOP = 'top',\n MIDDLE = 'middle',\n BOTTOM = 'bottom'\n}\n","import * as classnames from 'classnames';\nimport * as React from 'react';\nimport * as AriaModal from 'react-aria-modal';\nimport styled from 'styled-components';\nimport { breakpoint } from '@estee/elc-base-theme';\nimport { responsiveModalTheme, responsiveModalMaskTheme } from '../theme/default-theme';\nimport { LayoutPosition } from '@estee/elc-layouts';\n\ninterface IMaskProps {\n isOpen: boolean;\n position?: LayoutPosition;\n}\n\nconst Mask = styled.div`\n position: fixed;\n z-index: 99999;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n overflow: scroll;\n display: ${(props: { isOpen: boolean }) => (props.isOpen ? 'flex' : 'hidden')};\n ${responsiveModalMaskTheme};\n flex-direction: column;\n justify-content: flex-end;\n ${({ position }) => position === LayoutPosition.TOP && `justify-content: flex-start;`}\n ${({ position }) => position === LayoutPosition.MIDDLE && `justify-content: center;`}\n ${({ position }) => position === LayoutPosition.BOTTOM && `justify-content: flex-end;`}\n`;\n\nconst Modal = styled.div`\n position: absolute;\n top: 22%;\n left: 50%;\n padding: 20px;\n transform: translateX(-50%) translateY(-20%);\n width: 100%;\n ${responsiveModalTheme};\n ${breakpoint('desktop')`\n width: auto; \n `};\n\n &.full-width {\n width: 100%;\n }\n`;\nexport interface IResponsiveModalProps {\n isOpen: boolean;\n title?: string;\n className?: string;\n deactivateModal?(): void;\n maskClassName?: string;\n onMaskClick?(event: React.MouseEvent): void;\n underlayClickExits?: boolean;\n underlayStyle?: object;\n position?: LayoutPosition;\n underlayClassName?: string;\n}\n\nexport interface IResponsiveModalState {\n isOpen: boolean;\n}\n\nexport interface IReactMouseEvent extends React.MouseEvent {\n target: HTMLElement & EventTarget;\n}\n\nconst RESPONSIVE_MODAL_CLASSNAME = 'elc-responsive-modal-mask';\n\nexport class ResponsiveModal extends React.Component {\n public ariaModalDefaultTitle: IResponsiveModalProps['title'] = 'modal';\n\n private handleMaskClick = (event: IReactMouseEvent) => {\n this.handleEventPropagation(event);\n const { onMaskClick } = this.props;\n if (onMaskClick && event.target.classList.contains(RESPONSIVE_MODAL_CLASSNAME)) {\n onMaskClick(event);\n }\n };\n\n private handleEventPropagation(e: IReactMouseEvent) {\n e.stopPropagation();\n }\n\n public render() {\n if (!this.props.isOpen) {\n return null;\n }\n\n const {\n title,\n deactivateModal,\n underlayStyle,\n position,\n underlayClickExits = true\n } = this.props;\n\n const modalClassNames = classnames(\n this.props.className,\n 'elc-responsive-modal',\n 'js-responsive-modal'\n );\n\n const maskClassNames = classnames(\n this.props.maskClassName,\n RESPONSIVE_MODAL_CLASSNAME,\n 'js-responsive-modal-mask',\n // https://jira.esteeonline.com/browse/SDGLTMPL-1472\n 'isOpen'\n );\n\n const underlayClassNames = classnames(\n this.props.underlayClassName,\n `${RESPONSIVE_MODAL_CLASSNAME}-underlay`\n );\n\n return (\n \n \n {this.props.children}\n \n \n );\n }\n}\n","import { Colors } from '@estee/elc-base-theme';\n\nexport const responsiveModalTheme = () => `\n background-color: ${Colors.white};\n`;\n\nexport const responsiveModalMaskTheme = () => `\n background-color: ${Colors.blackDisabledEmphasis};\n`;\n","import * as React from 'react';\nimport { root } from '@estee/elc-universal-utils';\n\nexport interface IState {\n translations: object;\n}\n\nexport interface ITranslationUrl {\n url: string;\n title: string;\n options: { absolute: boolean; new_window: boolean };\n}\n\nexport interface IProps {\n translations: { [k: string]: string };\n}\n\nexport interface ITranslationsCollection {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n}\n\nexport interface ITranslationsCollections {\n [key: string]: ITranslationsCollection;\n}\n\nexport function translate(translationFields: string[]) {\n if (root.registerTranslationFieldsToPreload) {\n root.registerTranslationFieldsToPreload(translationFields);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (WrappedComponent: any): any => {\n return class extends React.Component {\n static displayName = 'translate';\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n constructor(props: any) {\n super(props);\n\n const translationsFromCache = root.getPreloadedTranslations\n ? root.getPreloadedTranslations(translationFields)\n : null;\n\n const translations: ITranslationsCollection = props.translations\n ? props.translations\n : translationsFromCache;\n\n this.state = {\n translations\n };\n }\n\n public async componentDidMount() {\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const componentRenderer = root.ComponentRenderer as any;\n // App could not be using component renderer\n const preloader = componentRenderer ? componentRenderer.preloader : null;\n\n if (!this.state.translations) {\n let translations = null;\n\n if (preloader && preloader.preload) {\n await preloader.preload();\n translations = preloader.getPreloadedTranslations(translationFields);\n } else {\n const { GlobalServiceBus, ServiceBusTopics, addTranslations } = root;\n\n translations = await GlobalServiceBus.query(\n ServiceBusTopics.queries.GET_TRANSLATIONS,\n translationFields\n );\n\n if (addTranslations) {\n addTranslations(translations);\n }\n }\n if (translations) {\n this.setState({\n translations\n });\n }\n }\n }\n\n public render() {\n if (!this.state.translations) {\n return null;\n }\n\n return ;\n }\n };\n };\n}\n\nexport function mockTranslate(translationFields: string[]) {\n const translations: ITranslationsCollection = {};\n\n translationFields.forEach(field => {\n translations[field] = field;\n });\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (WrappedComponent: any): any => {\n return class extends React.Component {\n public render() {\n return ;\n }\n };\n };\n}\n","export interface IEmphasisProps {\n [key: string]: number | string;\n}\n\nexport interface IEmphasis {\n [key: string]: IEmphasisProps;\n}\n\nexport const Emphasis: IEmphasis = {\n high: { value: 0.88, className: '' }, // No className because it has emphasis High by default\n medium: { value: 0.64, className: 'elc-medium-emphasis' },\n light: { value: 0.12, className: 'elc-light-emphasis' },\n pale: { value: 0.02, className: 'elc-pale-emphasis' },\n disabled: { value: 0.4, className: 'elc-disabled-emphasis' }\n};\n","import { Emphasis } from './Emphasis';\n\nexport interface IColors {\n black: string;\n white: string;\n whiteDove: string;\n primary900: string;\n primary800: string;\n primary700: string;\n primary600: string;\n primary500: string;\n primary400: string;\n primary300: string;\n primary200: string;\n primary100: string;\n primary50: string;\n danger: string;\n info: string;\n success: string;\n warning: string;\n unvisitedLink: string;\n visitedLink: string;\n blackHighEmphasis: string;\n blackMediumEmphasis: string;\n blackLightEmphasis: string;\n blackDisabledEmphasis: string;\n whiteHighEmphasis: string;\n whiteMediumEmphasis: string;\n whiteDisabledEmphasis: string;\n redLightEmphasis: string;\n\n [key: string]: string;\n}\n\nexport const Colors: IColors = {\n black: '#000000',\n white: '#FFFFFF',\n whiteDove: '#FBFBFB',\n primary900: '#212121',\n primary800: '#424242',\n primary700: '#616161',\n primary600: '#757575',\n primary500: '#9E9E9E',\n primary400: '#BDBDBD',\n primary300: '#E0E0E0',\n primary200: '#EEEEEE',\n primary100: '#F5F5F5',\n primary50: '#FAFAFA',\n danger: '#B00020',\n info: '#54A6D7',\n success: '#70B000',\n warning: '#EE9F57',\n unvisitedLink: '#0000EE',\n visitedLink: '#551A8B',\n blackHighEmphasis: `rgba(0, 0, 0, ${Emphasis.high.value})`,\n blackMediumEmphasis: `rgba(0, 0, 0, ${Emphasis.medium.value})`,\n blackLightEmphasis: `rgba(0, 0, 0, ${Emphasis.light.value})`,\n blackDisabledEmphasis: `rgba(0, 0, 0, ${Emphasis.disabled.value})`,\n blackPaleEmphasis: `rgba(0, 0, 0, ${Emphasis.pale.value})`,\n whiteHighEmphasis: `rgba(255, 255, 255, ${Emphasis.high.value})`,\n whiteMediumEmphasis: `rgba(255, 255, 255, ${Emphasis.medium.value})`,\n whiteDisabledEmphasis: `rgba(255, 255, 255, ${Emphasis.disabled.value})`,\n redLightEmphasis: `rgba(176, 0, 32, ${Emphasis.pale.value})`,\n successEmphasis: `rgba(112, 176, 0, ${Emphasis.pale.value})`,\n warningEmphasis: `rgba(238, 159, 87, ${Emphasis.pale.value})`\n};\n","export const Fonts = {\n roboto: 'Roboto Regular',\n robotoLight: 'Roboto Light',\n robotoMedium: 'Roboto Medium'\n};\n","export interface IBreakpoints {\n [key: string]: number;\n}\n\nexport const layoutPageContentWidth: number = 1260;\n\nexport const Breakpoints: IBreakpoints = {\n desktop: 768,\n largeScreen: 1024,\n extraLargeScreen: 1200\n};\n\nexport const breakpoint = (brp: string) => (\n code: TemplateStringsArray,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ...placeholders: any[]\n) => {\n // interleave the code with the placeholders\n let result = placeholders.reduce((acc, holder, idx) => `${acc}${code[idx]}${holder}`, '');\n\n // add the code literal\n result = `${result}${code[code.length - 1]}`;\n\n return `@media(min-width: ${Breakpoints[brp]}px) {${result}}`;\n};\n","import { Colors, Fonts, breakpoint, Emphasis } from '@estee/elc-base-theme';\n\nexport const DarkClassName = 'elc-dark-theme';\n\nconst commonCss = `\n margin: 0;\n color: rgba(0, 0, 0, ${Emphasis.high.value});\n\n &.${Emphasis.medium.className} {\n color: rgba(0, 0, 0, ${Emphasis.medium.value});\n }\n\n &.${Emphasis.disabled.className} {\n color: rgba(0, 0, 0, ${Emphasis.disabled.value});\n }\n\n &.${DarkClassName} {\n color: ${Colors.white};\n\n &.${Emphasis.medium.className} {\n color: rgba(255, 255, 255, ${Emphasis.medium.value});\n }\n\n &.${Emphasis.disabled.className} {\n color: rgba(255, 255, 255, ${Emphasis.disabled.value});\n }\n }\n`;\n\nexport const heading1Theme = () => `\n font-family: ${Fonts.robotoLight};\n font-size: 28px;\n font-weight: 300;\n letter-spacing: -0.23px;\n line-height: 36px;\n ${commonCss}\n\n ${breakpoint('desktop')`\n font-size: 48px;\n letter-spacing: -0.4px;\n line-height: 60px;\n `}\n\n`;\n\nexport const heading2Theme = () => `\n font-family: ${Fonts.robotoMedium};\n font-size: 24px;\n font-weight: 500;\n line-height: 32px;\n ${commonCss}\n \n ${breakpoint('desktop')`\n font-family: ${Fonts.roboto};\n font-size: 36px;\n font-weight: normal;\n `}\n`;\n\nexport const heading3Theme = () => `\n font-family: ${Fonts.roboto};\n font-size: 20px;\n font-weight: normal;\n letter-spacing: 0.15px;\n line-height: 24px;\n ${commonCss}\n\n ${breakpoint('desktop')`\n font-size: 28px;\n letter-spacing: 0.21px;\n line-height: 32px;\n `}\n`;\n\nexport const heading4Theme = () => `\n font-family: ${Fonts.roboto};\n font-size: 18px;\n font-weight: normal;\n letter-spacing: 0.16px;\n line-height: 24px;\n ${commonCss}\n\n ${breakpoint('desktop')`\n font-size: 24px;\n letter-spacing: 0.21px;\n line-height: 32px;\n `}\n`;\n\nexport const heading5Theme = () => `\n font-family: ${Fonts.roboto};\n font-size: 16px;\n letter-spacing: 0.17px;\n line-height: 20px;\n ${commonCss}\n\n ${breakpoint('desktop')`\n font-size: 20px;\n letter-spacing: 0.21px;\n line-height: 24px;\n `}\n`;\n\nexport const heading6Theme = () => `\n font-family: ${Fonts.robotoMedium};\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.18px;\n line-height: 20px;\n ${commonCss}\n\n ${breakpoint('desktop')`\n font-size: 18px;\n letter-spacing: 0.23px;\n line-height: 24px;\n `}\n`;\n\nexport const body1Theme = () => `\n font-family: ${Fonts.roboto};\n font-size: 16px;\n letter-spacing: 0.5px;\n line-height: 28px;\n ${commonCss}\n`;\n\nexport const body2Theme = () => `\n font-family: ${Fonts.roboto};\n font-size: 14px;\n letter-spacing: 0.25px;\n line-height: 20px;\n ${commonCss}\n`;\n\nexport const subtitle1Theme = () => `\n font-family: ${Fonts.robotoMedium};\n font-size: 16px;\n font-weight: 500;\n letter-spacing: 0.15px;\n line-height: 16px;\n ${commonCss}\n\n ${breakpoint('desktop')`\n line-height: 20px;\n `}\n`;\n\nexport const subtitle2Theme = () => `\n font-family: ${Fonts.robotoMedium};\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.1px;\n line-height: 16px;\n ${commonCss}\n`;\n\nexport const subtitle3Theme = () => `\n font-family: ${Fonts.robotoLight};\n font-size: 14px;\n letter-spacing: 0.1px;\n line-height: 16px;\n font-weight: 500;\n ${commonCss}\n`;\n\nexport const captionTheme = () => `\n font-family: ${Fonts.roboto};\n font-size: 12px;\n letter-spacing: 0.4px;\n line-height: 16px;\n ${commonCss}\n`;\n\nexport const overlineTheme = () => `\n font-family: ${Fonts.robotoMedium};\n font-size: 10px;\n font-weight: 500;\n letter-spacing: 1.67px;\n line-height: 16px;\n ${commonCss}\n`;\n","import styled from 'styled-components';\nimport {\n heading1Theme,\n heading2Theme,\n heading3Theme,\n heading4Theme,\n heading5Theme,\n heading6Theme,\n body1Theme,\n body2Theme,\n subtitle1Theme,\n subtitle2Theme,\n subtitle3Theme,\n captionTheme,\n overlineTheme,\n DarkClassName\n} from '../theme/default-theme';\nimport { Emphasis, IEmphasisProps } from '@estee/elc-base-theme';\n\ninterface ITextProps {\n emphasis?: IEmphasisProps;\n darkTheme?: boolean;\n}\n\nconst classes = (cls: string, props: ITextProps) =>\n `${cls} ${props.emphasis ? props.emphasis.className : Emphasis.high.className} ${\n props.darkTheme ? DarkClassName : ''\n }`.trim();\n\nexport const Heading1 = styled.h1.attrs(props => ({\n className: classes('elc-heading--1', props)\n}))`\n ${heading1Theme};\n`;\n\nexport const Heading2 = styled.h2.attrs(props => ({\n className: classes('elc-heading--2', props)\n}))`\n ${heading2Theme};\n`;\n\nexport const Heading3 = styled.h3.attrs(props => ({\n className: classes('elc-heading--3', props)\n}))`\n ${heading3Theme};\n`;\n\nexport const Heading4 = styled.h4.attrs(props => ({\n className: classes('elc-heading--4', props)\n}))`\n ${heading4Theme};\n`;\n\nexport const Heading5 = styled.h5.attrs(props => ({\n className: classes('elc-heading--5', props)\n}))`\n ${heading5Theme};\n`;\n\nexport const Heading6 = styled.h6.attrs(props => ({\n className: classes('elc-heading--6', props)\n}))`\n ${heading6Theme};\n`;\n\nexport const Body1 = styled.p.attrs(props => ({\n className: classes('elc-body--1', props)\n}))`\n ${body1Theme};\n`;\n\nexport const Body2 = styled.p.attrs(props => ({\n className: classes('elc-body--2', props)\n}))`\n ${body2Theme};\n`;\n\nexport const Subtitle1 = styled.p.attrs(props => ({\n className: classes('elc-subtitle--1', props)\n}))`\n ${subtitle1Theme};\n`;\n\nexport const Subtitle2 = styled.p.attrs(props => ({\n className: classes('elc-subtitle--2', props)\n}))`\n ${subtitle2Theme};\n`;\n\nexport const Subtitle3 = styled.p.attrs(props => ({\n className: classes('elc-subtitle--3', props)\n}))`\n ${subtitle3Theme};\n`;\n\nexport const Caption = styled.p.attrs(props => ({\n className: classes('elc-caption', props)\n}))`\n ${captionTheme};\n`;\n\nexport const Overline = styled.p.attrs(props => ({\n className: classes('elc-overline', props)\n}))`\n ${overlineTheme};\n`;\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar React = require('react');\n\nvar ReactDOM = require('react-dom');\n\nvar PropTypes = require('prop-types');\n\nvar _require = require('focus-trap'),\n createFocusTrap = _require.createFocusTrap;\n\nvar _require2 = require('tabbable'),\n isFocusable = _require2.isFocusable; // TODO: These issues are related to older React features which we'll likely need\n// to fix in order to move the code forward to the next major version of React.\n// @see https://github.com/davidtheclark/focus-trap-react/issues/77\n\n/* eslint-disable react/no-find-dom-node */\n\n\nvar FocusTrap = /*#__PURE__*/function (_React$Component) {\n _inherits(FocusTrap, _React$Component);\n\n var _super = _createSuper(FocusTrap);\n\n function FocusTrap(props) {\n var _this;\n\n _classCallCheck(this, FocusTrap);\n\n _this = _super.call(this, props);\n _this.handleDeactivate = _this.handleDeactivate.bind(_assertThisInitialized(_this));\n _this.handlePostDeactivate = _this.handlePostDeactivate.bind(_assertThisInitialized(_this));\n _this.handleClickOutsideDeactivates = _this.handleClickOutsideDeactivates.bind(_assertThisInitialized(_this)); // focus-trap options used internally when creating the trap\n\n _this.internalOptions = {\n // We need to hijack the returnFocusOnDeactivate option,\n // because React can move focus into the element before we arrived at\n // this lifecycle hook (e.g. with autoFocus inputs). So the component\n // captures the previouslyFocusedElement in componentWillMount,\n // then (optionally) returns focus to it in componentWillUnmount.\n returnFocusOnDeactivate: false,\n // the rest of these are also related to deactivation of the trap, and we\n // need to use them and control them as well\n checkCanReturnFocus: null,\n onDeactivate: _this.handleDeactivate,\n onPostDeactivate: _this.handlePostDeactivate,\n // we need to special-case this setting as well so that we can know if we should\n // NOT return focus if the trap gets auto-deactivated as the result of an\n // outside click (otherwise, we'll always think we should return focus because\n // of how we manage that flag internally here)\n clickOutsideDeactivates: _this.handleClickOutsideDeactivates\n }; // original options provided by the consumer\n\n _this.originalOptions = {\n // because of the above `tailoredFocusTrapOptions`, we maintain our own flag for\n // this option, and default it to `true` because that's focus-trap's default\n returnFocusOnDeactivate: true,\n // because of the above `tailoredFocusTrapOptions`, we keep these separate since\n // they're part of the deactivation process which we configure (internally) to\n // be shared between focus-trap and focus-trap-react\n onDeactivate: null,\n onPostDeactivate: null,\n checkCanReturnFocus: null,\n // the user's setting, defaulted to false since focus-trap defaults this to false\n clickOutsideDeactivates: false\n };\n var focusTrapOptions = props.focusTrapOptions;\n\n for (var optionName in focusTrapOptions) {\n if (!Object.prototype.hasOwnProperty.call(focusTrapOptions, optionName)) {\n continue;\n }\n\n if (optionName === 'returnFocusOnDeactivate' || optionName === 'onDeactivate' || optionName === 'onPostDeactivate' || optionName === 'checkCanReturnFocus' || optionName === 'clickOutsideDeactivates') {\n _this.originalOptions[optionName] = focusTrapOptions[optionName];\n continue; // exclude from tailoredFocusTrapOptions\n }\n\n _this.internalOptions[optionName] = focusTrapOptions[optionName];\n } // if set, `{ target: Node, allowDeactivation: boolean }` where `target` is the outside\n // node that was clicked, and `allowDeactivation` is the result of the consumer's\n // option (stored in `this.originalOptions.clickOutsideDeactivates`, which may be a\n // function) whether to allow or deny auto-deactivation on click on this outside node\n\n\n _this.outsideClick = null; // elements from which to create the focus trap on mount; if a child is used\n // instead of the `containerElements` prop, we'll get the child's related\n // element when the trap renders and then is declared 'mounted'\n\n _this.focusTrapElements = props.containerElements || []; // now we remember what the currently focused element is, not relying on focus-trap\n\n _this.updatePreviousElement();\n\n return _this;\n }\n /**\n * Gets the configured document.\n * @returns {Document|undefined} Configured document, falling back to the main\n * document, if it exists. During SSR, `undefined` is returned since the\n * document doesn't exist.\n */\n\n\n _createClass(FocusTrap, [{\n key: \"getDocument\",\n value: function getDocument() {\n // SSR: careful to check if `document` exists before accessing it as a variable\n return this.props.focusTrapOptions.document || (typeof document !== 'undefined' ? document : undefined);\n } // TODO: Need more test coverage for this function\n\n }, {\n key: \"getNodeForOption\",\n value: function getNodeForOption(optionName) {\n var optionValue = this.internalOptions[optionName];\n\n if (!optionValue) {\n return null;\n }\n\n var node = optionValue;\n\n if (typeof optionValue === 'string') {\n var _this$getDocument;\n\n node = (_this$getDocument = this.getDocument()) === null || _this$getDocument === void 0 ? void 0 : _this$getDocument.querySelector(optionValue);\n\n if (!node) {\n throw new Error(\"`\".concat(optionName, \"` refers to no known node\"));\n }\n }\n\n if (typeof optionValue === 'function') {\n node = optionValue();\n\n if (!node) {\n throw new Error(\"`\".concat(optionName, \"` did not return a node\"));\n }\n }\n\n return node;\n }\n }, {\n key: \"getReturnFocusNode\",\n value: function getReturnFocusNode() {\n var node = this.getNodeForOption('setReturnFocus');\n return node ? node : this.previouslyFocusedElement;\n }\n /** Update the previously focused element with the currently focused element. */\n\n }, {\n key: \"updatePreviousElement\",\n value: function updatePreviousElement() {\n var currentDocument = this.getDocument();\n\n if (currentDocument) {\n this.previouslyFocusedElement = currentDocument.activeElement;\n }\n }\n }, {\n key: \"deactivateTrap\",\n value: function deactivateTrap() {\n // NOTE: it's possible the focus trap has already been deactivated without our knowing it,\n // especially if the user set the `clickOutsideDeactivates: true` option on the trap,\n // and the mouse was clicked on some element outside the trap; at that point, focus-trap\n // will initiate its auto-deactivation process, which will call our own\n // handleDeactivate(), which will call into this method\n if (!this.focusTrap || !this.focusTrap.active) {\n return;\n }\n\n this.focusTrap.deactivate({\n // NOTE: we never let the trap return the focus since we do that ourselves\n returnFocus: false,\n // we'll call this in our own post deactivate handler so make sure the trap doesn't\n // do it prematurely\n checkCanReturnFocus: null,\n // let it call the user's original deactivate handler, if any, instead of\n // our own which calls back into this function\n onDeactivate: this.originalOptions.onDeactivate // NOTE: for post deactivate, don't specify anything so that it calls the\n // onPostDeactivate handler specified on `this.internalOptions`\n // which will always be our own `handlePostDeactivate()` handler, which\n // will finish things off by calling the user's provided onPostDeactivate\n // handler, if any, at the right time\n // onPostDeactivate: NOTHING\n\n });\n }\n }, {\n key: \"handleClickOutsideDeactivates\",\n value: function handleClickOutsideDeactivates(event) {\n // use consumer's option (or call their handler) as the permission or denial\n var allowDeactivation = typeof this.originalOptions.clickOutsideDeactivates === 'function' ? this.originalOptions.clickOutsideDeactivates.call(null, event) // call out of context\n : this.originalOptions.clickOutsideDeactivates; // boolean\n\n if (allowDeactivation) {\n // capture the outside target that was clicked so we can use it in the deactivation\n // process since the consumer allowed it to cause auto-deactivation\n this.outsideClick = {\n target: event.target,\n allowDeactivation: allowDeactivation\n };\n }\n\n return allowDeactivation;\n }\n }, {\n key: \"handleDeactivate\",\n value: function handleDeactivate() {\n if (this.originalOptions.onDeactivate) {\n this.originalOptions.onDeactivate.call(null); // call user's handler out of context\n }\n\n this.deactivateTrap();\n }\n }, {\n key: \"handlePostDeactivate\",\n value: function handlePostDeactivate() {\n var _this2 = this;\n\n var finishDeactivation = function finishDeactivation() {\n var returnFocusNode = _this2.getReturnFocusNode();\n\n var canReturnFocus = !!( // did the consumer allow it?\n _this2.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?\n returnFocusNode !== null && returnFocusNode !== void 0 && returnFocusNode.focus && ( // was there an outside click that allowed deactivation?\n !_this2.outsideClick || // did the consumer allow deactivation when the outside node was clicked?\n _this2.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus\n // as a result of the click-through) -- in which case do NOT restore focus\n // to `returnFocusNode` because focus should remain on the outside node\n !isFocusable(_this2.outsideClick.target, _this2.internalOptions.tabbableOptions)) // if no, the restore focus to `returnFocusNode` at this point\n );\n var _this2$internalOption = _this2.internalOptions.preventScroll,\n preventScroll = _this2$internalOption === void 0 ? false : _this2$internalOption;\n\n if (canReturnFocus) {\n // return focus to the element that had focus when the trap was activated\n returnFocusNode.focus({\n preventScroll: preventScroll\n });\n }\n\n if (_this2.originalOptions.onPostDeactivate) {\n _this2.originalOptions.onPostDeactivate.call(null); // don't call it in context of \"this\"\n\n }\n\n _this2.outsideClick = null; // reset: no longer needed\n };\n\n if (this.originalOptions.checkCanReturnFocus) {\n this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()) // call out of context\n .then(finishDeactivation, finishDeactivation);\n } else {\n finishDeactivation();\n }\n }\n }, {\n key: \"setupFocusTrap\",\n value: function setupFocusTrap() {\n if (!this.focusTrap) {\n var focusTrapElementDOMNodes = this.focusTrapElements.map( // NOTE: `findDOMNode()` does not support CSS selectors; it'll just return\n // a new text node with the text wrapped in it instead of treating the\n // string as a selector and resolving it to a node in the DOM\n ReactDOM.findDOMNode);\n var nodesExist = focusTrapElementDOMNodes.some(Boolean);\n\n if (nodesExist) {\n // eslint-disable-next-line react/prop-types -- _createFocusTrap is an internal prop\n this.focusTrap = this.props._createFocusTrap(focusTrapElementDOMNodes, this.internalOptions);\n\n if (this.props.active) {\n this.focusTrap.activate();\n }\n\n if (this.props.paused) {\n this.focusTrap.pause();\n }\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.active) {\n this.setupFocusTrap();\n } // else, wait for later activation in case the `focusTrapOptions` will be updated\n // again before the trap is activated (e.g. if waiting to know what the document\n // object will be, so the Trap must be rendered, but the consumer is waiting to\n // activate until they have obtained the document from a ref)\n // @see https://github.com/focus-trap/focus-trap-react/issues/539\n\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (this.focusTrap) {\n if (prevProps.containerElements !== this.props.containerElements) {\n this.focusTrap.updateContainerElements(this.props.containerElements);\n }\n\n var hasActivated = !prevProps.active && this.props.active;\n var hasDeactivated = prevProps.active && !this.props.active;\n var hasPaused = !prevProps.paused && this.props.paused;\n var hasUnpaused = prevProps.paused && !this.props.paused;\n\n if (hasActivated) {\n this.updatePreviousElement();\n this.focusTrap.activate();\n }\n\n if (hasDeactivated) {\n this.deactivateTrap();\n return; // un/pause does nothing on an inactive trap\n }\n\n if (hasPaused) {\n this.focusTrap.pause();\n }\n\n if (hasUnpaused) {\n this.focusTrap.unpause();\n }\n } else {\n // NOTE: if we're in `componentDidUpdate` and we don't have a trap yet,\n // it either means it shouldn't be active, or it should be but none of\n // of given `containerElements` were present in the DOM the last time\n // we tried to create the trap\n if (prevProps.containerElements !== this.props.containerElements) {\n this.focusTrapElements = this.props.containerElements;\n } // don't create the trap unless it should be active in case the consumer\n // is still updating `focusTrapOptions`\n // @see https://github.com/focus-trap/focus-trap-react/issues/539\n\n\n if (this.props.active) {\n this.updatePreviousElement();\n this.setupFocusTrap();\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.deactivateTrap();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var child = this.props.children ? React.Children.only(this.props.children) : undefined;\n\n if (child) {\n if (child.type && child.type === React.Fragment) {\n throw new Error('A focus-trap cannot use a Fragment as its child container. Try replacing it with a
element.');\n }\n\n var composedRefCallback = function composedRefCallback(element) {\n var containerElements = _this3.props.containerElements;\n\n if (child) {\n if (typeof child.ref === 'function') {\n child.ref(element);\n } else if (child.ref) {\n child.ref.current = element;\n }\n }\n\n _this3.focusTrapElements = containerElements ? containerElements : [element];\n };\n\n var childWithRef = React.cloneElement(child, {\n ref: composedRefCallback\n });\n return childWithRef;\n }\n\n return null;\n }\n }]);\n\n return FocusTrap;\n}(React.Component); // support server-side rendering where `Element` will not be defined\n\n\nvar ElementType = typeof Element === 'undefined' ? Function : Element;\nFocusTrap.propTypes = {\n active: PropTypes.bool,\n paused: PropTypes.bool,\n focusTrapOptions: PropTypes.shape({\n document: PropTypes.object,\n onActivate: PropTypes.func,\n onPostActivate: PropTypes.func,\n checkCanFocusTrap: PropTypes.func,\n onDeactivate: PropTypes.func,\n onPostDeactivate: PropTypes.func,\n checkCanReturnFocus: PropTypes.func,\n initialFocus: PropTypes.oneOfType([PropTypes.instanceOf(ElementType), PropTypes.string, PropTypes.func, PropTypes.bool]),\n fallbackFocus: PropTypes.oneOfType([PropTypes.instanceOf(ElementType), PropTypes.string, PropTypes.func]),\n escapeDeactivates: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),\n clickOutsideDeactivates: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),\n returnFocusOnDeactivate: PropTypes.bool,\n setReturnFocus: PropTypes.oneOfType([PropTypes.instanceOf(ElementType), PropTypes.string, PropTypes.func]),\n allowOutsideClick: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),\n preventScroll: PropTypes.bool,\n tabbableOptions: PropTypes.shape({\n displayCheck: PropTypes.oneOf(['full', 'non-zero-area', 'none']),\n getShadowRoot: PropTypes.oneOfType([PropTypes.bool, PropTypes.func])\n })\n }),\n containerElements: PropTypes.arrayOf(PropTypes.instanceOf(ElementType)),\n children: PropTypes.oneOfType([PropTypes.element, // React element\n PropTypes.instanceOf(ElementType) // DOM element\n ]) // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't\n // specify it here. It's expected to be set to the function returned from\n // require('focus-trap'), or one with a compatible interface.\n\n};\nFocusTrap.defaultProps = {\n active: true,\n paused: false,\n focusTrapOptions: {},\n _createFocusTrap: createFocusTrap\n};\nmodule.exports = FocusTrap;","/*!\n* focus-trap 6.9.2\n* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE\n*/\nimport { tabbable, focusable, isTabbable, isFocusable } from 'tabbable';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nvar activeFocusTraps = function () {\n var trapQueue = [];\n return {\n activateTrap: function activateTrap(trap) {\n if (trapQueue.length > 0) {\n var activeTrap = trapQueue[trapQueue.length - 1];\n\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n\n var trapIndex = trapQueue.indexOf(trap);\n\n if (trapIndex === -1) {\n trapQueue.push(trap);\n } else {\n // move this existing trap to the front of the queue\n trapQueue.splice(trapIndex, 1);\n trapQueue.push(trap);\n }\n },\n deactivateTrap: function deactivateTrap(trap) {\n var trapIndex = trapQueue.indexOf(trap);\n\n if (trapIndex !== -1) {\n trapQueue.splice(trapIndex, 1);\n }\n\n if (trapQueue.length > 0) {\n trapQueue[trapQueue.length - 1].unpause();\n }\n }\n };\n}();\n\nvar isSelectableInput = function isSelectableInput(node) {\n return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';\n};\n\nvar isEscapeEvent = function isEscapeEvent(e) {\n return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;\n};\n\nvar isTabEvent = function isTabEvent(e) {\n return e.key === 'Tab' || e.keyCode === 9;\n};\n\nvar delay = function delay(fn) {\n return setTimeout(fn, 0);\n}; // Array.find/findIndex() are not supported on IE; this replicates enough\n// of Array.findIndex() for our needs\n\n\nvar findIndex = function findIndex(arr, fn) {\n var idx = -1;\n arr.every(function (value, i) {\n if (fn(value)) {\n idx = i;\n return false; // break\n }\n\n return true; // next\n });\n return idx;\n};\n/**\n * Get an option's value when it could be a plain value, or a handler that provides\n * the value.\n * @param {*} value Option's value to check.\n * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.\n * @returns {*} The `value`, or the handler's returned value.\n */\n\n\nvar valueOrHandler = function valueOrHandler(value) {\n for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n params[_key - 1] = arguments[_key];\n }\n\n return typeof value === 'function' ? value.apply(void 0, params) : value;\n};\n\nvar getActualTarget = function getActualTarget(event) {\n // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the\n // shadow host. However, event.target.composedPath() will be an array of\n // nodes \"clicked\" from inner-most (the actual element inside the shadow) to\n // outer-most (the host HTML document). If we have access to composedPath(),\n // then use its first element; otherwise, fall back to event.target (and\n // this only works for an _open_ shadow DOM; otherwise,\n // composedPath()[0] === event.target always).\n return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;\n};\n\nvar createFocusTrap = function createFocusTrap(elements, userOptions) {\n // SSR: a live trap shouldn't be created in this type of environment so this\n // should be safe code to execute if the `document` option isn't specified\n var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;\n\n var config = _objectSpread2({\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true\n }, userOptions);\n\n var state = {\n // containers given to createFocusTrap()\n // @type {Array}\n containers: [],\n // list of objects identifying tabbable nodes in `containers` in the trap\n // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap\n // is active, but the trap should never get to a state where there isn't at least one group\n // with at least one tabbable node in it (that would lead to an error condition that would\n // result in an error being thrown)\n // @type {Array<{\n // container: HTMLElement,\n // tabbableNodes: Array, // empty if none\n // focusableNodes: Array, // empty if none\n // firstTabbableNode: HTMLElement|null,\n // lastTabbableNode: HTMLElement|null,\n // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined\n // }>}\n containerGroups: [],\n // same order/length as `containers` list\n // references to objects in `containerGroups`, but only those that actually have\n // tabbable nodes in them\n // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__\n // the same length\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n // timer ID for when delayInitialFocus is true and initial focus in this trap\n // has been delayed during activation\n delayInitialFocusTimer: undefined\n };\n var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later\n\n /**\n * Gets a configuration option value.\n * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,\n * value will be taken from this object. Otherwise, value will be taken from base configuration.\n * @param {string} optionName Name of the option whose value is sought.\n * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`\n * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.\n */\n\n var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {\n return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];\n };\n /**\n * Finds the index of the container that contains the element.\n * @param {HTMLElement} element\n * @returns {number} Index of the container in either `state.containers` or\n * `state.containerGroups` (the order/length of these lists are the same); -1\n * if the element isn't found.\n */\n\n\n var findContainerIndex = function findContainerIndex(element) {\n // NOTE: search `containerGroups` because it's possible a group contains no tabbable\n // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)\n // and we still need to find the element in there\n return state.containerGroups.findIndex(function (_ref) {\n var container = _ref.container,\n tabbableNodes = _ref.tabbableNodes;\n return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any\n // web components if the `tabbableOptions.getShadowRoot` option was used for\n // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't\n // look inside web components even if open)\n tabbableNodes.find(function (node) {\n return node === element;\n });\n });\n };\n /**\n * Gets the node for the given option, which is expected to be an option that\n * can be either a DOM node, a string that is a selector to get a node, `false`\n * (if a node is explicitly NOT given), or a function that returns any of these\n * values.\n * @param {string} optionName\n * @returns {undefined | false | HTMLElement | SVGElement} Returns\n * `undefined` if the option is not specified; `false` if the option\n * resolved to `false` (node explicitly not given); otherwise, the resolved\n * DOM node.\n * @throws {Error} If the option is set, not `false`, and is not, or does not\n * resolve to a node.\n */\n\n\n var getNodeForOption = function getNodeForOption(optionName) {\n var optionValue = config[optionName];\n\n if (typeof optionValue === 'function') {\n for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n params[_key2 - 1] = arguments[_key2];\n }\n\n optionValue = optionValue.apply(void 0, params);\n }\n\n if (optionValue === true) {\n optionValue = undefined; // use default value\n }\n\n if (!optionValue) {\n if (optionValue === undefined || optionValue === false) {\n return optionValue;\n } // else, empty string (invalid), null (invalid), 0 (invalid)\n\n\n throw new Error(\"`\".concat(optionName, \"` was specified but was not a node, or did not return a node\"));\n }\n\n var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point\n\n if (typeof optionValue === 'string') {\n node = doc.querySelector(optionValue); // resolve to node, or null if fails\n\n if (!node) {\n throw new Error(\"`\".concat(optionName, \"` as selector refers to no known node\"));\n }\n }\n\n return node;\n };\n\n var getInitialFocusNode = function getInitialFocusNode() {\n var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all\n\n if (node === false) {\n return false;\n }\n\n if (node === undefined) {\n // option not specified: use fallback options\n if (findContainerIndex(doc.activeElement) >= 0) {\n node = doc.activeElement;\n } else {\n var firstTabbableGroup = state.tabbableGroups[0];\n var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)\n\n node = firstTabbableNode || getNodeForOption('fallbackFocus');\n }\n }\n\n if (!node) {\n throw new Error('Your focus-trap needs to have at least one focusable element');\n }\n\n return node;\n };\n\n var updateTabbableNodes = function updateTabbableNodes() {\n state.containerGroups = state.containers.map(function (container) {\n var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes\n // are a superset of tabbable nodes\n\n var focusableNodes = focusable(container, config.tabbableOptions);\n return {\n container: container,\n tabbableNodes: tabbableNodes,\n focusableNodes: focusableNodes,\n firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,\n lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,\n\n /**\n * Finds the __tabbable__ node that follows the given node in the specified direction,\n * in this container, if any.\n * @param {HTMLElement} node\n * @param {boolean} [forward] True if going in forward tab order; false if going\n * in reverse.\n * @returns {HTMLElement|undefined} The next tabbable node, if any.\n */\n nextTabbableNode: function nextTabbableNode(node) {\n var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // NOTE: If tabindex is positive (in order to manipulate the tab order separate\n // from the DOM order), this __will not work__ because the list of focusableNodes,\n // while it contains tabbable nodes, does not sort its nodes in any order other\n // than DOM order, because it can't: Where would you place focusable (but not\n // tabbable) nodes in that order? They have no order, because they aren't tabbale...\n // Support for positive tabindex is already broken and hard to manage (possibly\n // not supportable, TBD), so this isn't going to make things worse than they\n // already are, and at least makes things better for the majority of cases where\n // tabindex is either 0/unset or negative.\n // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375\n var nodeIdx = focusableNodes.findIndex(function (n) {\n return n === node;\n });\n\n if (nodeIdx < 0) {\n return undefined;\n }\n\n if (forward) {\n return focusableNodes.slice(nodeIdx + 1).find(function (n) {\n return isTabbable(n, config.tabbableOptions);\n });\n }\n\n return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {\n return isTabbable(n, config.tabbableOptions);\n });\n }\n };\n });\n state.tabbableGroups = state.containerGroups.filter(function (group) {\n return group.tabbableNodes.length > 0;\n }); // throw if no groups have tabbable nodes and we don't have a fallback focus node either\n\n if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option\n ) {\n throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');\n }\n };\n\n var tryFocus = function tryFocus(node) {\n if (node === false) {\n return;\n }\n\n if (node === doc.activeElement) {\n return;\n }\n\n if (!node || !node.focus) {\n tryFocus(getInitialFocusNode());\n return;\n }\n\n node.focus({\n preventScroll: !!config.preventScroll\n });\n state.mostRecentlyFocusedNode = node;\n\n if (isSelectableInput(node)) {\n node.select();\n }\n };\n\n var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {\n var node = getNodeForOption('setReturnFocus', previousActiveElement);\n return node ? node : node === false ? false : previousActiveElement;\n }; // This needs to be done on mousedown and touchstart instead of click\n // so that it precedes the focus event.\n\n\n var checkPointerDown = function checkPointerDown(e) {\n var target = getActualTarget(e);\n\n if (findContainerIndex(target) >= 0) {\n // allow the click since it ocurred inside the trap\n return;\n }\n\n if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n // immediately deactivate the trap\n trap.deactivate({\n // if, on deactivation, we should return focus to the node originally-focused\n // when the trap was activated (or the configured `setReturnFocus` node),\n // then assume it's also OK to return focus to the outside node that was\n // just clicked, causing deactivation, as long as that node is focusable;\n // if it isn't focusable, then return focus to the original node focused\n // on activation (or the configured `setReturnFocus` node)\n // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,\n // which will result in the outside click setting focus to the node\n // that was clicked, whether it's focusable or not; by setting\n // `returnFocus: true`, we'll attempt to re-focus the node originally-focused\n // on activation (or the configured `setReturnFocus` node)\n returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)\n });\n return;\n } // This is needed for mobile devices.\n // (If we'll only let `click` events through,\n // then on mobile they will be blocked anyways if `touchstart` is blocked.)\n\n\n if (valueOrHandler(config.allowOutsideClick, e)) {\n // allow the click outside the trap to take place\n return;\n } // otherwise, prevent the click\n\n\n e.preventDefault();\n }; // In case focus escapes the trap for some strange reason, pull it back in.\n\n\n var checkFocusIn = function checkFocusIn(e) {\n var target = getActualTarget(e);\n var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.\n\n if (targetContained || target instanceof Document) {\n if (targetContained) {\n state.mostRecentlyFocusedNode = target;\n }\n } else {\n // escaped! pull it back in to where it just left\n e.stopImmediatePropagation();\n tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n }\n }; // Hijack Tab events on the first and last focusable nodes of the trap,\n // in order to prevent focus from escaping. If it escapes for even a\n // moment it can end up scrolling the page and causing confusion so we\n // kind of need to capture the action at the keydown phase.\n\n\n var checkTab = function checkTab(e) {\n var target = getActualTarget(e);\n updateTabbableNodes();\n var destinationNode = null;\n\n if (state.tabbableGroups.length > 0) {\n // make sure the target is actually contained in a group\n // NOTE: the target may also be the container itself if it's focusable\n // with tabIndex='-1' and was given initial focus\n var containerIndex = findContainerIndex(target);\n var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;\n\n if (containerIndex < 0) {\n // target not found in any group: quite possible focus has escaped the trap,\n // so bring it back in to...\n if (e.shiftKey) {\n // ...the last node in the last group\n destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n // ...the first node in the first group\n destinationNode = state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (e.shiftKey) {\n // REVERSE\n // is the target the first tabbable node in a group?\n var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {\n var firstTabbableNode = _ref2.firstTabbableNode;\n return target === firstTabbableNode;\n });\n\n if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {\n // an exception case where the target is either the container itself, or\n // a non-tabbable node that was given focus (i.e. tabindex is negative\n // and user clicked on it or node was programmatically given focus)\n // and is not followed by any other tabbable node, in which\n // case, we should handle shift+tab as if focus were on the container's\n // first tabbable node, and go to the last tabbable node of the LAST group\n startOfGroupIndex = containerIndex;\n }\n\n if (startOfGroupIndex >= 0) {\n // YES: then shift+tab should go to the last tabbable node in the\n // previous group (and wrap around to the last tabbable node of\n // the LAST group if it's the first tabbable node of the FIRST group)\n var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n var destinationGroup = state.tabbableGroups[destinationGroupIndex];\n destinationNode = destinationGroup.lastTabbableNode;\n }\n } else {\n // FORWARD\n // is the target the last tabbable node in a group?\n var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {\n var lastTabbableNode = _ref3.lastTabbableNode;\n return target === lastTabbableNode;\n });\n\n if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {\n // an exception case where the target is the container itself, or\n // a non-tabbable node that was given focus (i.e. tabindex is negative\n // and user clicked on it or node was programmatically given focus)\n // and is not followed by any other tabbable node, in which\n // case, we should handle tab as if focus were on the container's\n // last tabbable node, and go to the first tabbable node of the FIRST group\n lastOfGroupIndex = containerIndex;\n }\n\n if (lastOfGroupIndex >= 0) {\n // YES: then tab should go to the first tabbable node in the next\n // group (and wrap around to the first tabbable node of the FIRST\n // group if it's the last tabbable node of the LAST group)\n var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n\n var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];\n destinationNode = _destinationGroup.firstTabbableNode;\n }\n }\n } else {\n // NOTE: the fallbackFocus option does not support returning false to opt-out\n destinationNode = getNodeForOption('fallbackFocus');\n }\n\n if (destinationNode) {\n e.preventDefault();\n tryFocus(destinationNode);\n } // else, let the browser take care of [shift+]tab and move the focus\n\n };\n\n var checkKey = function checkKey(e) {\n if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {\n e.preventDefault();\n trap.deactivate();\n return;\n }\n\n if (isTabEvent(e)) {\n checkTab(e);\n return;\n }\n };\n\n var checkClick = function checkClick(e) {\n var target = getActualTarget(e);\n\n if (findContainerIndex(target) >= 0) {\n return;\n }\n\n if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n return;\n }\n\n if (valueOrHandler(config.allowOutsideClick, e)) {\n return;\n }\n\n e.preventDefault();\n e.stopImmediatePropagation();\n }; //\n // EVENT LISTENERS\n //\n\n\n var addListeners = function addListeners() {\n if (!state.active) {\n return;\n } // There can be only one listening focus trap at a time\n\n\n activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event\n // that caused the focus trap activation.\n\n state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {\n tryFocus(getInitialFocusNode());\n }) : tryFocus(getInitialFocusNode());\n doc.addEventListener('focusin', checkFocusIn, true);\n doc.addEventListener('mousedown', checkPointerDown, {\n capture: true,\n passive: false\n });\n doc.addEventListener('touchstart', checkPointerDown, {\n capture: true,\n passive: false\n });\n doc.addEventListener('click', checkClick, {\n capture: true,\n passive: false\n });\n doc.addEventListener('keydown', checkKey, {\n capture: true,\n passive: false\n });\n return trap;\n };\n\n var removeListeners = function removeListeners() {\n if (!state.active) {\n return;\n }\n\n doc.removeEventListener('focusin', checkFocusIn, true);\n doc.removeEventListener('mousedown', checkPointerDown, true);\n doc.removeEventListener('touchstart', checkPointerDown, true);\n doc.removeEventListener('click', checkClick, true);\n doc.removeEventListener('keydown', checkKey, true);\n return trap;\n }; //\n // TRAP DEFINITION\n //\n\n\n trap = {\n get active() {\n return state.active;\n },\n\n get paused() {\n return state.paused;\n },\n\n activate: function activate(activateOptions) {\n if (state.active) {\n return this;\n }\n\n var onActivate = getOption(activateOptions, 'onActivate');\n var onPostActivate = getOption(activateOptions, 'onPostActivate');\n var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');\n\n if (!checkCanFocusTrap) {\n updateTabbableNodes();\n }\n\n state.active = true;\n state.paused = false;\n state.nodeFocusedBeforeActivation = doc.activeElement;\n\n if (onActivate) {\n onActivate();\n }\n\n var finishActivation = function finishActivation() {\n if (checkCanFocusTrap) {\n updateTabbableNodes();\n }\n\n addListeners();\n\n if (onPostActivate) {\n onPostActivate();\n }\n };\n\n if (checkCanFocusTrap) {\n checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n\n finishActivation();\n return this;\n },\n deactivate: function deactivate(deactivateOptions) {\n if (!state.active) {\n return this;\n }\n\n var options = _objectSpread2({\n onDeactivate: config.onDeactivate,\n onPostDeactivate: config.onPostDeactivate,\n checkCanReturnFocus: config.checkCanReturnFocus\n }, deactivateOptions);\n\n clearTimeout(state.delayInitialFocusTimer); // noop if undefined\n\n state.delayInitialFocusTimer = undefined;\n removeListeners();\n state.active = false;\n state.paused = false;\n activeFocusTraps.deactivateTrap(trap);\n var onDeactivate = getOption(options, 'onDeactivate');\n var onPostDeactivate = getOption(options, 'onPostDeactivate');\n var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');\n var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');\n\n if (onDeactivate) {\n onDeactivate();\n }\n\n var finishDeactivation = function finishDeactivation() {\n delay(function () {\n if (returnFocus) {\n tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));\n }\n\n if (onPostDeactivate) {\n onPostDeactivate();\n }\n });\n };\n\n if (returnFocus && checkCanReturnFocus) {\n checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);\n return this;\n }\n\n finishDeactivation();\n return this;\n },\n pause: function pause() {\n if (state.paused || !state.active) {\n return this;\n }\n\n state.paused = true;\n removeListeners();\n return this;\n },\n unpause: function unpause() {\n if (!state.paused || !state.active) {\n return this;\n }\n\n state.paused = false;\n updateTabbableNodes();\n addListeners();\n return this;\n },\n updateContainerElements: function updateContainerElements(containerElements) {\n var elementsAsArray = [].concat(containerElements).filter(Boolean);\n state.containers = elementsAsArray.map(function (element) {\n return typeof element === 'string' ? doc.querySelector(element) : element;\n });\n\n if (state.active) {\n updateTabbableNodes();\n }\n\n return this;\n }\n }; // initialize container elements\n\n trap.updateContainerElements(elements);\n return trap;\n};\n\nexport { createFocusTrap };\n//# sourceMappingURL=focus-trap.esm.js.map\n","import { spy, observable, computed, getDependencyTree, Reaction, runInAction, transaction, configure } from 'mobx';\nimport React, { useState, useRef, useMemo, useEffect, useCallback, useDebugValue, memo, forwardRef } from 'react';\n\nif (!useState) {\r\n throw new Error(\"mobx-react-lite requires React with Hooks support\");\r\n}\r\nif (!spy) {\r\n throw new Error(\"mobx-react-lite requires mobx at least version 4 to be available\");\r\n}\n\nfunction useObservable(initialValue) {\r\n var observableRef = useRef(null);\r\n if (!observableRef.current) {\r\n observableRef.current = observable(initialValue);\r\n }\r\n return observableRef.current;\r\n}\n\nfunction useComputed(func, inputs) {\r\n if (inputs === void 0) { inputs = []; }\r\n var computed$1 = useMemo(function () { return computed(func); }, inputs);\r\n return computed$1.get();\r\n}\n\nvar doNothingDisposer = function () {\r\n // empty\r\n};\r\n/**\r\n * Adds an observable effect (reaction, autorun, or anything else that returns a disposer) that will be registered upon component creation and disposed upon unmounting.\r\n * Returns the generated disposer for early disposal.\r\n *\r\n * @export\r\n * @template D\r\n * @param {() => D} disposerGenerator A function that returns the disposer of the wanted effect.\r\n * @param {ReadonlyArray} [inputs=[]] If you want the effect to be automatically re-created when some variable(s) are changed then pass them in this array.\r\n * @returns {D}\r\n */\r\nfunction useDisposable(disposerGenerator, inputs) {\r\n if (inputs === void 0) { inputs = []; }\r\n var disposerRef = useRef(null);\r\n var earlyDisposedRef = useRef(false);\r\n useEffect(function () {\r\n return lazyCreateDisposer(false);\r\n }, inputs);\r\n function lazyCreateDisposer(earlyDisposal) {\r\n // ensure that we won't create a new disposer if it was early disposed\r\n if (earlyDisposedRef.current) {\r\n return doNothingDisposer;\r\n }\r\n if (!disposerRef.current) {\r\n var newDisposer = disposerGenerator();\r\n if (typeof newDisposer !== \"function\") {\r\n var error = new Error(\"generated disposer must be a function\");\r\n {\r\n // tslint:disable-next-line:no-console\r\n console.error(error);\r\n return doNothingDisposer;\r\n }\r\n }\r\n disposerRef.current = newDisposer;\r\n }\r\n return function () {\r\n if (disposerRef.current) {\r\n disposerRef.current();\r\n disposerRef.current = null;\r\n }\r\n if (earlyDisposal) {\r\n earlyDisposedRef.current = true;\r\n }\r\n };\r\n }\r\n return lazyCreateDisposer(true);\r\n}\n\nvar globalIsUsingStaticRendering = false;\r\nfunction useStaticRendering(enable) {\r\n globalIsUsingStaticRendering = enable;\r\n}\r\nfunction isUsingStaticRendering() {\r\n return globalIsUsingStaticRendering;\r\n}\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\n\nfunction printDebugValue(v) {\r\n if (!v.current) {\r\n return \"\";\r\n }\r\n return getDependencyTree(v.current);\r\n}\n\nvar EMPTY_ARRAY = [];\r\nfunction useUnmount(fn) {\r\n useEffect(function () { return fn; }, EMPTY_ARRAY);\r\n}\r\nfunction useForceUpdate() {\r\n var _a = __read(useState(0), 2), setTick = _a[1];\r\n var update = useCallback(function () {\r\n setTick(function (tick) { return tick + 1; });\r\n }, []);\r\n return update;\r\n}\r\nfunction isPlainObject(value) {\r\n if (!value || typeof value !== \"object\") {\r\n return false;\r\n }\r\n var proto = Object.getPrototypeOf(value);\r\n return !proto || proto === Object.prototype;\r\n}\n\nvar EMPTY_OBJECT = {};\r\nfunction useObserver(fn, baseComponentName, options) {\r\n if (baseComponentName === void 0) { baseComponentName = \"observed\"; }\r\n if (options === void 0) { options = EMPTY_OBJECT; }\r\n if (isUsingStaticRendering()) {\r\n return fn();\r\n }\r\n var wantedForceUpdateHook = options.useForceUpdate || useForceUpdate;\r\n var forceUpdate = wantedForceUpdateHook();\r\n var reaction = useRef(null);\r\n if (!reaction.current) {\r\n reaction.current = new Reaction(\"observer(\" + baseComponentName + \")\", function () {\r\n forceUpdate();\r\n });\r\n }\r\n var dispose = function () {\r\n if (reaction.current && !reaction.current.isDisposed) {\r\n reaction.current.dispose();\r\n reaction.current = null;\r\n }\r\n };\r\n useDebugValue(reaction, printDebugValue);\r\n useUnmount(function () {\r\n dispose();\r\n });\r\n // render the original component, but have the\r\n // reaction track the observables, so that rendering\r\n // can be invalidated (see above) once a dependency changes\r\n var rendering;\r\n var exception;\r\n reaction.current.track(function () {\r\n try {\r\n rendering = fn();\r\n }\r\n catch (e) {\r\n exception = e;\r\n }\r\n });\r\n if (exception) {\r\n dispose();\r\n throw exception; // re-throw any exceptions catched during rendering\r\n }\r\n return rendering;\r\n}\n\n// n.b. base case is not used for actual typings or exported in the typing files\r\nfunction observer(baseComponent, options) {\r\n // The working of observer is explained step by step in this talk: https://www.youtube.com/watch?v=cPF4iBedoF0&feature=youtu.be&t=1307\r\n if (isUsingStaticRendering()) {\r\n return baseComponent;\r\n }\r\n var realOptions = __assign({ forwardRef: false }, options);\r\n var baseComponentName = baseComponent.displayName || baseComponent.name;\r\n var wrappedComponent = function (props, ref) {\r\n return useObserver(function () { return baseComponent(props, ref); }, baseComponentName);\r\n };\r\n wrappedComponent.displayName = baseComponentName;\r\n // memo; we are not intested in deep updates\r\n // in props; we assume that if deep objects are changed,\r\n // this is in observables, which would have been tracked anyway\r\n var memoComponent;\r\n if (realOptions.forwardRef) {\r\n // we have to use forwardRef here because:\r\n // 1. it cannot go before memo, only after it\r\n // 2. forwardRef converts the function into an actual component, so we can't let the baseComponent do it\r\n // since it wouldn't be a callable function anymore\r\n memoComponent = memo(forwardRef(wrappedComponent));\r\n }\r\n else {\r\n memoComponent = memo(wrappedComponent);\r\n }\r\n copyStaticProperties(baseComponent, memoComponent);\r\n memoComponent.displayName = baseComponentName;\r\n return memoComponent;\r\n}\r\n// based on https://github.com/mridgway/hoist-non-react-statics/blob/master/src/index.js\r\nvar hoistBlackList = {\r\n $$typeof: true,\r\n render: true,\r\n compare: true,\r\n type: true\r\n};\r\nfunction copyStaticProperties(base, target) {\r\n Object.keys(base).forEach(function (key) {\r\n if (base.hasOwnProperty(key) && !hoistBlackList[key]) {\r\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(base, key));\r\n }\r\n });\r\n}\n\nfunction ObserverComponent(_a) {\r\n var children = _a.children, render = _a.render;\r\n var component = children || render;\r\n if (typeof component !== \"function\") {\r\n return null;\r\n }\r\n return useObserver(component);\r\n}\r\nObserverComponent.propTypes = {\r\n children: ObserverPropsCheck,\r\n render: ObserverPropsCheck\r\n};\r\nObserverComponent.displayName = \"Observer\";\r\nfunction ObserverPropsCheck(props, key, componentName, location, propFullName) {\r\n var extraKey = key === \"children\" ? \"render\" : \"children\";\r\n var hasProp = typeof props[key] === \"function\";\r\n var hasExtraProp = typeof props[extraKey] === \"function\";\r\n if (hasProp && hasExtraProp) {\r\n return new Error(\"MobX Observer: Do not use children and render in the same time in`\" + componentName);\r\n }\r\n if (hasProp || hasExtraProp) {\r\n return null;\r\n }\r\n return new Error(\"Invalid prop `\" +\r\n propFullName +\r\n \"` of type `\" +\r\n typeof props[key] +\r\n \"` supplied to\" +\r\n \" `\" +\r\n componentName +\r\n \"`, expected `function`.\");\r\n}\n\nfunction useAsObservableSourceInternal(current, usedByLocalStore) {\r\n if (usedByLocalStore && current === undefined) {\r\n return undefined;\r\n }\r\n var _a = __read(React.useState(function () { return observable(current, {}, { deep: false }); }), 1), res = _a[0];\r\n runInAction(function () {\r\n Object.assign(res, current);\r\n });\r\n return res;\r\n}\r\nfunction useAsObservableSource(current) {\r\n return useAsObservableSourceInternal(current, false);\r\n}\n\nfunction useLocalStore(initializer, current) {\r\n var source = useAsObservableSourceInternal(current, true);\r\n return React.useState(function () {\r\n var local = observable(initializer(source));\r\n if (isPlainObject(local)) {\r\n runInAction(function () {\r\n Object.keys(local).forEach(function (key) {\r\n var value = local[key];\r\n if (typeof value === \"function\") {\r\n // @ts-ignore No idea why ts2536 is popping out here\r\n local[key] = wrapInTransaction(value, local);\r\n }\r\n });\r\n });\r\n }\r\n return local;\r\n })[0];\r\n}\r\n// tslint:disable-next-line: ban-types\r\nfunction wrapInTransaction(fn, context) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n return transaction(function () { return fn.apply(context, args); });\r\n };\r\n}\n\nvar optimizeScheduler = function (reactionScheduler) {\r\n if (typeof reactionScheduler === \"function\") {\r\n configure({ reactionScheduler: reactionScheduler });\r\n }\r\n};\n\nexport { ObserverComponent as Observer, isUsingStaticRendering, observer, optimizeScheduler, useAsObservableSource, useComputed, useDisposable, useForceUpdate, useLocalStore, useObservable, useObserver, useStaticRendering };\n","(function(root) {\n var isOn = false;\n var scrollbarSize;\n var scrollTop;\n\n function getScrollbarSize() {\n if (typeof scrollbarSize !== 'undefined') return scrollbarSize;\n\n var doc = document.documentElement;\n var dummyScroller = document.createElement('div');\n dummyScroller.setAttribute('style', 'width:99px;height:99px;' + 'position:absolute;top:-9999px;overflow:scroll;');\n doc.appendChild(dummyScroller);\n scrollbarSize = dummyScroller.offsetWidth - dummyScroller.clientWidth;\n doc.removeChild(dummyScroller);\n return scrollbarSize;\n }\n\n function hasScrollbar() {\n return document.documentElement.scrollHeight > window.innerHeight;\n }\n\n function on(options) {\n if (typeof document === 'undefined' || isOn) return;\n var doc = document.documentElement;\n scrollTop = window.pageYOffset;\n if (hasScrollbar()) {\n doc.style.width = 'calc(100% - '+ getScrollbarSize() +'px)';\n } else {\n doc.style.width = '100%';\n }\n doc.style.position = 'fixed';\n doc.style.top = -scrollTop + 'px';\n doc.style.overflow = 'hidden';\n isOn = true;\n }\n\n function off() {\n if (typeof document === 'undefined' || !isOn) return;\n var doc = document.documentElement;\n doc.style.width = '';\n doc.style.position = '';\n doc.style.top = '';\n doc.style.overflow = '';\n window.scroll(0, scrollTop);\n isOn = false;\n }\n\n function toggle() {\n if (isOn) {\n off();\n return;\n }\n on();\n }\n\n var noScroll = {\n on: on,\n off: off,\n toggle: toggle,\n };\n\n if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\n module.exports = noScroll;\n } else {\n root.noScroll = noScroll;\n }\n})(this);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","\"use strict\";\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper2(Derived) {\n function isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n return function () {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (isNativeReflectConstruct()) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar React = require('react');\n\nvar FocusTrap = require('focus-trap-react');\n\nvar displace = require('react-displace');\n\nvar noScroll = require('no-scroll');\n\nvar Modal =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Modal, _React$Component);\n\n var _super = _createSuper2(Modal);\n\n function Modal(props) {\n var _this;\n\n _classCallCheck(this, Modal);\n\n _this = _super.call(this, props);\n\n _defineProperty(_assertThisInitialized(_this), \"getApplicationNode\", function () {\n if (_this.props.getApplicationNode) return _this.props.getApplicationNode();\n return _this.props.applicationNode;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"checkUnderlayClick\", function (event) {\n if (_this.dialogNode && _this.dialogNode.contains(event.target) || // If the click is on the scrollbar we don't want to close the modal.\n event.pageX > event.target.ownerDocument.documentElement.offsetWidth || event.pageY > event.target.ownerDocument.documentElement.offsetHeight) return;\n\n _this.exit(event);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"checkDocumentKeyDown\", function (event) {\n if (_this.props.escapeExits && (event.key === 'Escape' || event.key === 'Esc' || event.keyCode === 27)) {\n _this.exit(event);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"exit\", function (event) {\n if (_this.props.onExit) {\n _this.props.onExit(event);\n }\n });\n\n if (!props.titleText && !props.titleId) {\n throw new Error('react-aria-modal instances should have a `titleText` or `titleId`');\n }\n\n return _this;\n }\n\n _createClass(Modal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.onEnter) {\n this.props.onEnter();\n } // Timeout to ensure this happens *after* focus has moved\n\n\n var applicationNode = this.getApplicationNode();\n setTimeout(function () {\n if (applicationNode) {\n applicationNode.setAttribute('aria-hidden', 'true');\n }\n }, 0);\n\n if (this.props.escapeExits) {\n this.addKeyDownListener();\n }\n\n if (this.props.scrollDisabled) {\n noScroll.on();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.scrollDisabled && !this.props.scrollDisabled) {\n noScroll.off();\n } else if (!prevProps.scrollDisabled && this.props.scrollDisabled) {\n noScroll.on();\n }\n\n if (this.props.escapeExits && !prevProps.escapeExits) {\n this.addKeyDownListener();\n } else if (!this.props.escapeExits && prevProps.escapeExits) {\n this.removeKeyDownListener();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.scrollDisabled) {\n noScroll.off();\n }\n\n var applicationNode = this.getApplicationNode();\n\n if (applicationNode) {\n applicationNode.setAttribute('aria-hidden', 'false');\n }\n\n this.removeKeyDownListener();\n }\n }, {\n key: \"addKeyDownListener\",\n value: function addKeyDownListener() {\n var _this2 = this;\n\n setTimeout(function () {\n document.addEventListener('keydown', _this2.checkDocumentKeyDown);\n });\n }\n }, {\n key: \"removeKeyDownListener\",\n value: function removeKeyDownListener() {\n var _this3 = this;\n\n setTimeout(function () {\n document.removeEventListener('keydown', _this3.checkDocumentKeyDown);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var props = this.props;\n var style = {};\n\n if (props.includeDefaultStyles) {\n style = {\n position: 'fixed',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n zIndex: 1050,\n overflowX: 'hidden',\n overflowY: 'auto',\n WebkitOverflowScrolling: 'touch',\n textAlign: 'center'\n };\n\n if (props.underlayColor) {\n style.background = props.underlayColor;\n }\n\n if (props.underlayClickExits) {\n style.cursor = 'pointer';\n }\n }\n\n if (props.underlayStyle) {\n for (var key in props.underlayStyle) {\n if (!props.underlayStyle.hasOwnProperty(key)) continue;\n style[key] = props.underlayStyle[key];\n }\n }\n\n var underlayProps = {\n className: props.underlayClass,\n style: style\n };\n\n if (props.underlayClickExits) {\n underlayProps.onMouseDown = this.checkUnderlayClick;\n }\n\n for (var prop in this.props.underlayProps) {\n underlayProps[prop] = this.props.underlayProps[prop];\n }\n\n var verticalCenterStyle = {};\n\n if (props.includeDefaultStyles) {\n verticalCenterStyle = {\n display: 'inline-block',\n height: '100%',\n verticalAlign: 'middle'\n };\n }\n\n var verticalCenterHelperProps = {\n key: 'a',\n style: verticalCenterStyle\n };\n var dialogStyle = {};\n\n if (props.includeDefaultStyles) {\n dialogStyle = {\n display: 'inline-block',\n textAlign: 'left',\n top: 0,\n maxWidth: '100%',\n cursor: 'default',\n outline: props.focusDialog ? 0 : null\n };\n\n if (props.verticallyCenter) {\n dialogStyle.verticalAlign = 'middle';\n dialogStyle.top = 0;\n }\n }\n\n if (props.dialogStyle) {\n for (var _key in props.dialogStyle) {\n if (!props.dialogStyle.hasOwnProperty(_key)) continue;\n dialogStyle[_key] = props.dialogStyle[_key];\n }\n }\n\n var dialogProps = {\n key: 'b',\n ref: function (el) {\n this.dialogNode = el;\n }.bind(this),\n role: props.alert ? 'alertdialog' : 'dialog',\n id: props.dialogId,\n className: props.dialogClass,\n style: dialogStyle\n };\n\n if (props.titleId) {\n dialogProps['aria-labelledby'] = props.titleId;\n } else if (props.titleText) {\n dialogProps['aria-label'] = props.titleText;\n }\n\n if (props.focusDialog) {\n dialogProps.tabIndex = '-1';\n } // Apply data- and aria- attributes passed as props\n\n\n for (var _key2 in props) {\n if (/^(data-|aria-)/.test(_key2)) {\n dialogProps[_key2] = props[_key2];\n }\n }\n\n var childrenArray = [React.createElement('div', dialogProps, props.children)];\n\n if (props.verticallyCenter) {\n childrenArray.unshift(React.createElement('div', verticalCenterHelperProps));\n }\n\n var focusTrapOptions = props.focusTrapOptions || {};\n\n if (props.focusDialog || props.initialFocus) {\n focusTrapOptions.initialFocus = props.focusDialog ? \"#\".concat(this.props.dialogId) : props.initialFocus;\n }\n\n focusTrapOptions.escapeDeactivates = props.escapeExits;\n return React.createElement(FocusTrap, {\n focusTrapOptions: focusTrapOptions,\n paused: props.focusTrapPaused\n }, React.createElement('div', underlayProps, childrenArray));\n }\n }]);\n\n return Modal;\n}(React.Component);\n\n_defineProperty(Modal, \"defaultProps\", {\n underlayProps: {},\n dialogId: 'react-aria-modal-dialog',\n underlayClickExits: true,\n escapeExits: true,\n underlayColor: 'rgba(0,0,0,0.5)',\n includeDefaultStyles: true,\n focusTrapPaused: false,\n scrollDisabled: true\n});\n\nvar DisplacedModal = displace(Modal);\n\nDisplacedModal.renderTo = function (input) {\n return displace(Modal, {\n renderTo: input\n });\n};\n\nmodule.exports = DisplacedModal;","'use strict';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar React = require('react');\nvar ReactDOM = require('react-dom');\n\n// React 16+ supports Portals.\nvar canUsePortals = !!ReactDOM.createPortal;\n\nfunction displace(WrappedComponent, options) {\n if (!global.document) {\n return function (_React$Component) {\n _inherits(EmptyDisplace, _React$Component);\n\n function EmptyDisplace() {\n _classCallCheck(this, EmptyDisplace);\n\n return _possibleConstructorReturn(this, (EmptyDisplace.__proto__ || Object.getPrototypeOf(EmptyDisplace)).apply(this, arguments));\n }\n\n _createClass(EmptyDisplace, [{\n key: 'render',\n value: function render() {\n return false;\n }\n }]);\n\n return EmptyDisplace;\n }(React.Component);\n }\n\n options = options || {};\n\n var Displaced = function (_React$Component2) {\n _inherits(Displaced, _React$Component2);\n\n function Displaced() {\n var _ref;\n\n var _temp, _this2, _ret;\n\n _classCallCheck(this, Displaced);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this2 = _possibleConstructorReturn(this, (_ref = Displaced.__proto__ || Object.getPrototypeOf(Displaced)).call.apply(_ref, [this].concat(args))), _this2), _this2.renderDisplaced = function () {\n ReactDOM.unstable_renderSubtreeIntoContainer(_this2, React.createElement(WrappedComponent, _this2.props, _this2.props.children), _this2.container);\n }, _this2.removeDisplaced = function () {\n ReactDOM.unmountComponentAtNode(_this2.container);\n }, _temp), _possibleConstructorReturn(_this2, _ret);\n }\n\n _createClass(Displaced, [{\n key: 'componentWillMount',\n value: function componentWillMount() {\n this.container = function () {\n if (!options.renderTo) {\n var result = document.createElement('div');\n document.body.appendChild(result);\n return result;\n } else if (typeof options.renderTo === 'string') {\n return document.querySelector(options.renderTo);\n } else {\n return options.renderTo;\n }\n }();\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (canUsePortals) return;\n if (this.props.mounted) {\n this.renderDisplaced();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n if (canUsePortals) return;\n if (prevProps.mounted && !this.props.mounted) {\n ReactDOM.unmountComponentAtNode(this.container);\n } else if (this.props.mounted) {\n this.renderDisplaced();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (!canUsePortals) {\n ReactDOM.unmountComponentAtNode(this.container);\n }\n if (!options.renderTo) {\n this.container.parentNode.removeChild(this.container);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n if (!canUsePortals || this.props.mounted === false) {\n return null;\n }\n return ReactDOM.createPortal(React.createElement(WrappedComponent, this.props, this.props.children), this.container);\n }\n }]);\n\n return Displaced;\n }(React.Component);\n\n Displaced.defaultProps = {\n mounted: true\n };\n Displaced.WrappedComponent = WrappedComponent;\n\n\n return Displaced;\n}\n\nmodule.exports = displace;","/*!\n* tabbable 5.3.2\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\nvar candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])', 'details>summary:first-of-type', 'details'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n return element.getRootNode();\n} : function (element) {\n return element.ownerDocument;\n};\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\n\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n\n candidates = candidates.filter(filter);\n return candidates;\n};\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @typedef {Object} CandidatesScope\n * @property {Element} scope contains inner candidates\n * @property {Element[]} candidates\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.}\n */\n\n\nvar getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = getCandidatesIteratively(content, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n } // iterate over shadow content if possible\n\n\n var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n\n if (shadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n\n return candidates;\n};\n\nvar getTabindex = function getTabindex(node, isScope) {\n if (node.tabIndex < 0) {\n // in Chrome,
,