{ "version": 3, "sources": ["../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js", "../../../../node_modules/use-sync-external-store/shim/index.js", "../../dialogs/prompt.tsx", "../../../../node_modules/mobx-react-lite/src/utils/assertEnvironment.ts", "../../../../node_modules/mobx-react-lite/src/utils/reactBatchedUpdates.ts", "../../../../node_modules/mobx-react-lite/src/utils/observerBatching.ts", "../../../../node_modules/mobx-react-lite/src/useObserver.ts", "../../../../node_modules/mobx-react-lite/src/utils/printDebugValue.ts", "../../../../node_modules/mobx-react-lite/src/staticRendering.ts", "../../../../node_modules/mobx-react-lite/src/utils/UniversalFinalizationRegistry.ts", "../../../../node_modules/mobx-react-lite/src/utils/observerFinalizationRegistry.ts", "../../../../node_modules/mobx-react-lite/src/observer.ts", "../../../../node_modules/mobx-react-lite/src/ObserverComponent.ts", "../../../../node_modules/mobx-react-lite/src/useLocalObservable.ts", "../../../../node_modules/mobx-react-lite/src/useLocalStore.ts", "../../../../node_modules/mobx-react-lite/src/useAsObservableSource.ts", "../../../../node_modules/mobx-react-lite/src/index.ts", "../../../lib.web.mdc/dialog.tsx", "../../../../node_modules/@material/dialog/util.ts", "../../../../node_modules/@material/dialog/node_modules/tslib/tslib.es6.js", "../../../../node_modules/@material/dialog/foundation.ts", "../../../../node_modules/@material/dialog/component.ts"], "sourcesContent": ["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n", "import * as React from \"react\"\nimport {action, observable, runInAction, makeObservable} from \"mobx\"\nimport {observer} from \"mobx-react\"\nimport {Dialog} from \"@cling/lib.web.mdc/dialog\"\n\ninterface PromptDialogProps {\n title: string\n content?: any | (() => any)\n onCancel?: () => void\n onAccept?: () => void\n accept_disabled?: boolean\n button_label_accept?: string\n button_label_cancel?: string\n initial_focus?: boolean\n more_buttons?: Array<{\n label: string\n tooltip?: string\n onClick: () => void\n \"data-test-id\"?: string\n disabled?: boolean\n }>\n desktop_focus: \"first_focusable_element\" | \"accept\" | \"cancel\"\n}\n\nclass PromptState {\n props: PromptDialogProps | undefined = undefined\n show_prompt = (props: PromptDialogProps) => {\n runInAction(() => {\n this.props = {\n ...props,\n onAccept: action(() => {\n this.props = undefined\n if (props.onAccept) {\n props.onAccept()\n }\n }),\n onCancel: action(() => {\n this.props = undefined\n if (props.onCancel) {\n props.onCancel()\n }\n }),\n }\n })\n }\n\n reset = () => {\n runInAction(() => (this.props = undefined))\n }\n\n constructor() {\n makeObservable(this, {\n props: observable.ref,\n })\n }\n}\n\nexport const promp_state = new PromptState()\n\nexport const PromptContainer = observer(() => {\n if (!promp_state.props) {\n return null\n }\n const content = promp_state.props.content\n ? typeof promp_state.props.content === \"function\"\n ? promp_state.props.content()\n : promp_state.props.content\n : \"\"\n return (\n <Dialog {...promp_state.props} className=\"dialog-container__prompt\" data-test-id=\"Prompt\">\n {content}\n </Dialog>\n )\n})\n\nexport default PromptContainer\n", "import { makeObservable } from \"mobx\"\nimport { useState } from \"react\"\n\nif (!useState) {\n throw new Error(\"mobx-react-lite requires React with Hooks support\")\n}\nif (!makeObservable) {\n throw new Error(\"mobx-react-lite@3 requires mobx at least version 6 to be available\")\n}\n", "export { unstable_batchedUpdates } from \"react-dom\"\n", "import { configure } from \"mobx\"\n\nexport function defaultNoopBatch(callback: () => void) {\n callback()\n}\n\nexport function observerBatching(reactionScheduler: any) {\n if (!reactionScheduler) {\n reactionScheduler = defaultNoopBatch\n if (\"production\" !== process.env.NODE_ENV) {\n console.warn(\n \"[MobX] Failed to get unstable_batched updates from react-dom / react-native\"\n )\n }\n }\n configure({ reactionScheduler })\n}\n\nexport const isObserverBatched = () => {\n if (\"production\" !== process.env.NODE_ENV) {\n console.warn(\"[MobX] Deprecated\")\n }\n\n return true\n}\n", "import { Reaction } from \"mobx\"\nimport React from \"react\"\nimport { printDebugValue } from \"./utils/printDebugValue\"\nimport { isUsingStaticRendering } from \"./staticRendering\"\nimport { observerFinalizationRegistry } from \"./utils/observerFinalizationRegistry\"\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\"\n\n// Do not store `admRef` (even as part of a closure!) on this object,\n// otherwise it will prevent GC and therefore reaction disposal via FinalizationRegistry.\ntype ObserverAdministration = {\n reaction: Reaction | null // also serves as disposed flag\n onStoreChange: Function | null // also serves as mounted flag\n // stateVersion that 'ticks' for every time the reaction fires\n // tearing is still present,\n // because there is no cross component synchronization,\n // but we can use `useSyncExternalStore` API.\n // TODO: optimize to use number?\n stateVersion: any\n name: string\n // These don't depend on state/props, therefore we can keep them here instead of `useCallback`\n subscribe: Parameters<typeof React.useSyncExternalStore>[0]\n getSnapshot: Parameters<typeof React.useSyncExternalStore>[1]\n}\n\nfunction createReaction(adm: ObserverAdministration) {\n adm.reaction = new Reaction(`observer${adm.name}`, () => {\n adm.stateVersion = Symbol()\n // onStoreChange won't be available until the component \"mounts\".\n // If state changes in between initial render and mount,\n // `useSyncExternalStore` should handle that by checking the state version and issuing update.\n adm.onStoreChange?.()\n })\n}\n\nexport function useObserver<T>(render: () => T, baseComponentName: string = \"observed\"): T {\n if (isUsingStaticRendering()) {\n return render()\n }\n\n const admRef = React.useRef<ObserverAdministration | null>(null)\n\n if (!admRef.current) {\n // First render\n const adm: ObserverAdministration = {\n reaction: null,\n onStoreChange: null,\n stateVersion: Symbol(),\n name: baseComponentName,\n subscribe(onStoreChange: () => void) {\n // Do NOT access admRef here!\n observerFinalizationRegistry.unregister(adm)\n adm.onStoreChange = onStoreChange\n if (!adm.reaction) {\n // We've lost our reaction and therefore all subscriptions, occurs when:\n // 1. Timer based finalization registry disposed reaction before component mounted.\n // 2. React \"re-mounts\" same component without calling render in between (typically <StrictMode>).\n // We have to recreate reaction and schedule re-render to recreate subscriptions,\n // even if state did not change.\n createReaction(adm)\n // `onStoreChange` won't force update if subsequent `getSnapshot` returns same value.\n // So we make sure that is not the case\n adm.stateVersion = Symbol()\n }\n\n return () => {\n // Do NOT access admRef here!\n adm.onStoreChange = null\n adm.reaction?.dispose()\n adm.reaction = null\n }\n },\n getSnapshot() {\n // Do NOT access admRef here!\n return adm.stateVersion\n }\n }\n\n admRef.current = adm\n }\n\n const adm = admRef.current!\n\n if (!adm.reaction) {\n // First render or reaction was disposed by registry before subscribe\n createReaction(adm)\n // StrictMode/ConcurrentMode/Suspense may mean that our component is\n // rendered and abandoned multiple times, so we need to track leaked\n // Reactions.\n observerFinalizationRegistry.register(admRef, adm, adm)\n }\n\n React.useDebugValue(adm.reaction!, printDebugValue)\n\n useSyncExternalStore(\n // Both of these must be stable, otherwise it would keep resubscribing every render.\n adm.subscribe,\n adm.getSnapshot,\n adm.getSnapshot\n )\n\n // render the original component, but have the\n // reaction track the observables, so that rendering\n // can be invalidated (see above) once a dependency changes\n let renderResult!: T\n let exception\n adm.reaction!.track(() => {\n try {\n renderResult = render()\n } catch (e) {\n exception = e\n }\n })\n\n if (exception) {\n throw exception // re-throw any exceptions caught during rendering\n }\n\n return renderResult\n}\n", "import { getDependencyTree, Reaction } from \"mobx\"\n\nexport function printDebugValue(v: Reaction) {\n return getDependencyTree(v)\n}\n", "let globalIsUsingStaticRendering = false\n\nexport function enableStaticRendering(enable: boolean) {\n globalIsUsingStaticRendering = enable\n}\n\nexport function isUsingStaticRendering(): boolean {\n return globalIsUsingStaticRendering\n}\n", "export declare class FinalizationRegistryType<T> {\n constructor(finalize: (value: T) => void)\n register(target: object, value: T, token?: object): void\n unregister(token: object): void\n}\n\ndeclare const FinalizationRegistry: typeof FinalizationRegistryType | undefined\n\nexport const REGISTRY_FINALIZE_AFTER = 10_000\nexport const REGISTRY_SWEEP_INTERVAL = 10_000\n\nexport class TimerBasedFinalizationRegistry<T> implements FinalizationRegistryType<T> {\n private registrations: Map<unknown, { value: T; registeredAt: number }> = new Map()\n private sweepTimeout: ReturnType<typeof setTimeout> | undefined\n\n constructor(private readonly finalize: (value: T) => void) {}\n\n // Token is actually required with this impl\n register(target: object, value: T, token?: object) {\n this.registrations.set(token, {\n value,\n registeredAt: Date.now()\n })\n this.scheduleSweep()\n }\n\n unregister(token: unknown) {\n this.registrations.delete(token)\n }\n\n // Bound so it can be used directly as setTimeout callback.\n sweep = (maxAge = REGISTRY_FINALIZE_AFTER) => {\n // cancel timeout so we can force sweep anytime\n clearTimeout(this.sweepTimeout)\n this.sweepTimeout = undefined\n\n const now = Date.now()\n this.registrations.forEach((registration, token) => {\n if (now - registration.registeredAt >= maxAge) {\n this.finalize(registration.value)\n this.registrations.delete(token)\n }\n })\n\n if (this.registrations.size > 0) {\n this.scheduleSweep()\n }\n }\n\n // Bound so it can be exported directly as clearTimers test utility.\n finalizeAllImmediately = () => {\n this.sweep(0)\n }\n\n private scheduleSweep() {\n if (this.sweepTimeout === undefined) {\n this.sweepTimeout = setTimeout(this.sweep, REGISTRY_SWEEP_INTERVAL)\n }\n }\n}\n\nexport const UniversalFinalizationRegistry =\n typeof FinalizationRegistry !== \"undefined\"\n ? FinalizationRegistry\n : TimerBasedFinalizationRegistry\n", "import { Reaction } from \"mobx\"\nimport { UniversalFinalizationRegistry } from \"./UniversalFinalizationRegistry\"\n\nexport const observerFinalizationRegistry = new UniversalFinalizationRegistry(\n (adm: { reaction: Reaction | null }) => {\n adm.reaction?.dispose()\n adm.reaction = null\n }\n)\n", "import { forwardRef, memo } from \"react\"\n\nimport { isUsingStaticRendering } from \"./staticRendering\"\nimport { useObserver } from \"./useObserver\"\n\nlet warnObserverOptionsDeprecated = true\nlet warnLegacyContextTypes = true\n\nconst hasSymbol = typeof Symbol === \"function\" && Symbol.for\nconst isFunctionNameConfigurable =\n Object.getOwnPropertyDescriptor(() => {}, \"name\")?.configurable ?? false\n\n// Using react-is had some issues (and operates on elements, not on types), see #608 / #609\nconst ReactForwardRefSymbol = hasSymbol\n ? Symbol.for(\"react.forward_ref\")\n : typeof forwardRef === \"function\" && forwardRef((props: any) => null)[\"$$typeof\"]\n\nconst ReactMemoSymbol = hasSymbol\n ? Symbol.for(\"react.memo\")\n : typeof memo === \"function\" && memo((props: any) => null)[\"$$typeof\"]\n\n/**\n * @deprecated Observer options will be removed in the next major version of mobx-react-lite.\n * Look at the individual properties for alternatives.\n */\nexport interface IObserverOptions {\n /**\n * @deprecated Pass a `React.forwardRef` component to observer instead of using the options object\n * e.g. `observer(React.forwardRef(fn))`\n */\n readonly forwardRef?: boolean\n}\n\nexport function observer<P extends object, TRef = {}>(\n baseComponent: React.ForwardRefRenderFunction<TRef, P>,\n options: IObserverOptions & {\n /**\n * @deprecated Pass a `React.forwardRef` component to observer instead of using the options object\n * e.g. `observer(React.forwardRef(fn))`\n */\n forwardRef: true\n }\n): React.MemoExoticComponent<\n React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<TRef>>\n>\n\nexport function observer<P extends object, TRef = {}>(\n baseComponent: React.ForwardRefExoticComponent<\n React.PropsWithoutRef<P> & React.RefAttributes<TRef>\n >\n): React.MemoExoticComponent<\n React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<TRef>>\n>\n\nexport function observer<P extends object>(\n baseComponent: React.FunctionComponent<P>,\n options?: IObserverOptions\n): React.FunctionComponent<P>\n\nexport function observer<\n C extends React.FunctionComponent<any> | React.ForwardRefRenderFunction<any>,\n Options extends IObserverOptions\n>(\n baseComponent: C,\n options?: Options\n): Options extends { forwardRef: true }\n ? C extends React.ForwardRefRenderFunction<infer TRef, infer P>\n ? C &\n React.MemoExoticComponent<\n React.ForwardRefExoticComponent<\n React.PropsWithoutRef<P> & React.RefAttributes<TRef>\n >\n >\n : never /* forwardRef set for a non forwarding component */\n : C & { displayName: string }\n\n// n.b. base case is not used for actual typings or exported in the typing files\nexport function observer<P extends object, TRef = {}>(\n baseComponent:\n | React.ForwardRefRenderFunction<TRef, P>\n | React.FunctionComponent<P>\n | React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<TRef>>,\n // TODO remove in next major\n options?: IObserverOptions\n) {\n if (process.env.NODE_ENV !== \"production\" && warnObserverOptionsDeprecated && options) {\n warnObserverOptionsDeprecated = false\n console.warn(\n `[mobx-react-lite] \\`observer(fn, { forwardRef: true })\\` is deprecated, use \\`observer(React.forwardRef(fn))\\``\n )\n }\n\n if (ReactMemoSymbol && baseComponent[\"$$typeof\"] === ReactMemoSymbol) {\n throw new Error(\n `[mobx-react-lite] You are trying to use \\`observer\\` on a function component wrapped in either another \\`observer\\` or \\`React.memo\\`. The observer already applies 'React.memo' for you.`\n )\n }\n\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\n if (isUsingStaticRendering()) {\n return baseComponent\n }\n\n let useForwardRef = options?.forwardRef ?? false\n let render = baseComponent\n\n const baseComponentName = baseComponent.displayName || baseComponent.name\n\n // If already wrapped with forwardRef, unwrap,\n // so we can patch render and apply memo\n if (ReactForwardRefSymbol && baseComponent[\"$$typeof\"] === ReactForwardRefSymbol) {\n useForwardRef = true\n render = baseComponent[\"render\"]\n if (typeof render !== \"function\") {\n throw new Error(\n `[mobx-react-lite] \\`render\\` property of ForwardRef was not a function`\n )\n }\n }\n\n let observerComponent = (props: any, ref: React.Ref<TRef>) => {\n return useObserver(() => render(props, ref), baseComponentName)\n }\n\n // Inherit original name and displayName, see #3438\n ;(observerComponent as React.FunctionComponent).displayName = baseComponent.displayName\n\n if (isFunctionNameConfigurable) {\n Object.defineProperty(observerComponent, \"name\", {\n value: baseComponent.name,\n writable: true,\n configurable: true\n })\n }\n\n // Support legacy context: `contextTypes` must be applied before `memo`\n if ((baseComponent as any).contextTypes) {\n ;(observerComponent as React.FunctionComponent).contextTypes = (\n baseComponent as any\n ).contextTypes\n\n if (process.env.NODE_ENV !== \"production\" && warnLegacyContextTypes) {\n warnLegacyContextTypes = false\n console.warn(\n `[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release.`\n )\n }\n }\n\n if (useForwardRef) {\n // `forwardRef` must be applied prior `memo`\n // `forwardRef(observer(cmp))` throws:\n // \"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))\"\n observerComponent = forwardRef(observerComponent)\n }\n\n // memo; we are not interested in deep updates\n // in props; we assume that if deep objects are changed,\n // this is in observables, which would have been tracked anyway\n observerComponent = memo(observerComponent)\n\n copyStaticProperties(baseComponent, observerComponent)\n\n if (\"production\" !== process.env.NODE_ENV) {\n Object.defineProperty(observerComponent, \"contextTypes\", {\n set() {\n throw new Error(\n `[mobx-react-lite] \\`${\n this.displayName || this.type?.displayName || this.type?.name || \"Component\"\n }.contextTypes\\` must be set before applying \\`observer\\`.`\n )\n }\n })\n }\n\n return observerComponent\n}\n\n// based on https://github.com/mridgway/hoist-non-react-statics/blob/master/src/index.js\nconst hoistBlackList: any = {\n $$typeof: true,\n render: true,\n compare: true,\n type: true,\n // Don't redefine `displayName`,\n // it's defined as getter-setter pair on `memo` (see #3192).\n displayName: true\n}\n\nfunction copyStaticProperties(base: any, target: any) {\n Object.keys(base).forEach(key => {\n if (!hoistBlackList[key]) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(base, key)!)\n }\n })\n}\n", "import { useObserver } from \"./useObserver\"\n\n// TODO: this type could be improved in the next major release:\n// type IObserverProps = { children: () => React.ReactNode, render?: never } | { children?: never, render: () => React.ReactNode }\ninterface IObserverProps {\n children?(): React.ReactElement | null\n render?(): React.ReactElement | null\n}\n\nfunction ObserverComponent({ children, render }: IObserverProps) {\n if (children && render) {\n console.error(\n \"MobX Observer: Do not use children and render in the same time in `Observer`\"\n )\n }\n const component = children || render\n if (typeof component !== \"function\") {\n return null\n }\n return useObserver(component)\n}\nif (\"production\" !== process.env.NODE_ENV) {\n ObserverComponent.propTypes = {\n children: ObserverPropsCheck,\n render: ObserverPropsCheck\n }\n}\nObserverComponent.displayName = \"Observer\"\n\nexport { ObserverComponent as Observer }\n\nfunction ObserverPropsCheck(\n props: { [k: string]: any },\n key: string,\n componentName: string,\n location: any,\n propFullName: string\n) {\n const extraKey = key === \"children\" ? \"render\" : \"children\"\n const hasProp = typeof props[key] === \"function\"\n const hasExtraProp = typeof props[extraKey] === \"function\"\n if (hasProp && hasExtraProp) {\n return new Error(\n \"MobX Observer: Do not use children and render in the same time in`\" + componentName\n )\n }\n\n if (hasProp || hasExtraProp) {\n return null\n }\n return new Error(\n \"Invalid prop `\" +\n propFullName +\n \"` of type `\" +\n typeof props[key] +\n \"` supplied to\" +\n \" `\" +\n componentName +\n \"`, expected `function`.\"\n )\n}\n", "import { observable, AnnotationsMap } from \"mobx\"\nimport { useState } from \"react\"\n\nexport function useLocalObservable<TStore extends Record<string, any>>(\n initializer: () => TStore,\n annotations?: AnnotationsMap<TStore, never>\n): TStore {\n return useState(() => observable(initializer(), annotations, { autoBind: true }))[0]\n}\n", "import { observable } from \"mobx\"\nimport { useState } from \"react\"\n\nimport { useDeprecated } from \"./utils/utils\"\nimport { useAsObservableSource } from \"./useAsObservableSource\"\n\nexport function useLocalStore<TStore extends Record<string, any>>(initializer: () => TStore): TStore\nexport function useLocalStore<TStore extends Record<string, any>, TSource extends object>(\n initializer: (source: TSource) => TStore,\n current: TSource\n): TStore\nexport function useLocalStore<TStore extends Record<string, any>, TSource extends object>(\n initializer: (source?: TSource) => TStore,\n current?: TSource\n): TStore {\n if (\"production\" !== process.env.NODE_ENV) {\n useDeprecated(\n \"[mobx-react-lite] 'useLocalStore' is deprecated, use 'useLocalObservable' instead.\"\n )\n }\n const source = current && useAsObservableSource(current)\n return useState(() => observable(initializer(source), undefined, { autoBind: true }))[0]\n}\n", "import { useDeprecated } from \"./utils/utils\"\nimport { observable, runInAction } from \"mobx\"\nimport { useState } from \"react\"\n\nexport function useAsObservableSource<TSource extends object>(current: TSource): TSource {\n if (\"production\" !== process.env.NODE_ENV)\n useDeprecated(\n \"[mobx-react-lite] 'useAsObservableSource' is deprecated, please store the values directly in an observable, for example by using 'useLocalObservable', and sync future updates using 'useEffect' when needed. See the README for examples.\"\n )\n // We're deliberately not using idiomatic destructuring for the hook here.\n // Accessing the state value as an array element prevents TypeScript from generating unnecessary helpers in the resulting code.\n // For further details, please refer to mobxjs/mobx#3842.\n const res = useState(() => observable(current, {}, { deep: false }))[0]\n runInAction(() => {\n Object.assign(res, current)\n })\n return res\n}\n", "import \"./utils/assertEnvironment\"\n\nimport { unstable_batchedUpdates as batch } from \"./utils/reactBatchedUpdates\"\nimport { observerBatching } from \"./utils/observerBatching\"\nimport { useDeprecated } from \"./utils/utils\"\nimport { useObserver as useObserverOriginal } from \"./useObserver\"\nimport { enableStaticRendering } from \"./staticRendering\"\nimport { observerFinalizationRegistry } from \"./utils/observerFinalizationRegistry\"\n\nobserverBatching(batch)\n\nexport { isUsingStaticRendering, enableStaticRendering } from \"./staticRendering\"\nexport { observer, IObserverOptions } from \"./observer\"\nexport { Observer } from \"./ObserverComponent\"\nexport { useLocalObservable } from \"./useLocalObservable\"\nexport { useLocalStore } from \"./useLocalStore\"\nexport { useAsObservableSource } from \"./useAsObservableSource\"\n\nexport { observerFinalizationRegistry as _observerFinalizationRegistry }\nexport const clearTimers = observerFinalizationRegistry[\"finalizeAllImmediately\"] ?? (() => {})\n\nexport function useObserver<T>(fn: () => T, baseComponentName: string = \"observed\"): T {\n if (\"production\" !== process.env.NODE_ENV) {\n useDeprecated(\n \"[mobx-react-lite] 'useObserver(fn)' is deprecated. Use `<Observer>{fn}</Observer>` instead, or wrap the entire component in `observer`.\"\n )\n }\n return useObserverOriginal(fn, baseComponentName)\n}\n\nexport { isObserverBatched, observerBatching } from \"./utils/observerBatching\"\n\nexport function useStaticRendering(enable: boolean) {\n if (\"production\" !== process.env.NODE_ENV) {\n console.warn(\n \"[mobx-react-lite] 'useStaticRendering' is deprecated, use 'enableStaticRendering' instead\"\n )\n }\n enableStaticRendering(enable)\n}\n", "import * as React from \"react\"\nimport {report_info} from \"@cling/lib.shared.debug\"\nimport {MDCDialog} from \"@material/dialog/index\"\nimport {BaseComponent} from \"./base\"\n\nimport {classNames} from \"@cling/lib.web.utils\"\nimport {\n trap_browser_back,\n with_perfect_scrollbar,\n running_on_mobile_device,\n} from \"@cling/lib.web.utils\"\nimport {assert_never, error_to_string} from \"@cling/lib.shared.utils\"\nimport {simple_tooltip_event_handlers} from \"./simple_tooltip\"\n\ninterface Props {\n title: string\n className?: string\n onOpened?: () => void\n onCancel?: () => void\n onAccept?: () => void\n button_label_accept?: string\n button_label_cancel?: string\n /** Make the dialog wider than recommended by Material Design. */\n wide?: boolean\n /** Fit into the available width. */\n fit?: boolean\n no_scroll?: boolean\n accept_disabled?: boolean\n default_button_ref?: React.RefObject<HTMLButtonElement>\n \"data-test-id\"?: string\n more_buttons?: Array<{\n label: string\n tooltip?: string\n onClick: (e: React.MouseEvent) => void\n \"data-test-id\"?: string\n disabled?: boolean\n }>\n handle_browser_back?: boolean\n style?: React.CSSProperties\n content_classname?: string\n content_style?: React.CSSProperties\n /**\n * This applies only to desktop browsers. Mobile browsers never focus anything because it\n * is quite useless and even more so distracting if the keyboard pops up all of a sudden\n * just because a text-field has been focused.\n *\n * Normally, a dialog focuses the first element when opened. This is good design and shold\n * be kept that way.\n * That being said, there are occasions where this is not feasable, mainly if the first\n * element is something like a `SuggestTextField` that has a rather intrusive focus UI.\n *\n * If `first_focusable_element` is used, then either the element that is tagged with\n * `data-dialog-focus` is focused or the first focusable element found in the DOM tree\n * beneath.\n */\n desktop_focus: \"first_focusable_element\" | \"accept\" | \"cancel\"\n}\n\nexport class Dialog extends BaseComponent<Props> {\n private dispose_trap_browser_back?: () => void\n\n on_popstate = () => {\n if (this.mdc_component) {\n this.mdc_component.close(\"cancel\")\n }\n }\n\n componentDidMount() {\n super.componentDidMount()\n const {handle_browser_back, desktop_focus} = this.props\n this.dispose_trap_browser_back =\n typeof handle_browser_back !== \"boolean\" || handle_browser_back\n ? trap_browser_back(\"dialog\", this.on_popstate)\n : () => {\n /* Do nothing ... */\n }\n const {focusTrap_} = this.mdc_component\n const trap_focus = focusTrap_.trapFocus.bind(focusTrap_)\n focusTrap_.trapFocus = () => {\n try {\n trap_focus()\n } catch (error) {\n let m = \"trapFocus() failed -- \"\n try {\n m += `dialog HTML: ${this.mdc_component.root_.innerHTML}`\n } catch (error2) {\n m += error_to_string(error2)\n }\n if (process.env.NODE_ENV !== \"test\") {\n report_info(m, error)\n }\n }\n }\n if (running_on_mobile_device()) {\n // Remove the focus away from the currently active element and don't focus anything\n // on dialog open.\n ;(document.activeElement as HTMLElement | null)?.blur?.()\n focusTrap_.focusInitialElement = () => {\n // Don't focus anything.\n }\n } else {\n if (desktop_focus === \"first_focusable_element\") {\n const x = this.mdc_component_ref?.querySelector(\"[data-dialog-focus]\")\n if (x) {\n focusTrap_.focusInitialElement = () => {\n x.focus()\n }\n }\n } else {\n focusTrap_.focusInitialElement = () => {\n let selector\n if (desktop_focus === \"accept\") {\n selector = \"[data-mdc-dialog-action=accept]\"\n } else if (desktop_focus === \"cancel\") {\n selector = \"[data-mdc-dialog-action=close]\"\n } else {\n assert_never(desktop_focus)\n }\n this.mdc_component_ref?.querySelector(selector)?.focus()\n }\n }\n }\n this.mdc_component.listen(\"MDCDialog:opened\", () => {\n const {onOpened} = this.props\n if (onOpened) {\n onOpened()\n }\n })\n this.mdc_component.listen(\n \"MDCDialog:closed\",\n ({detail: {action}}: {detail: {action: \"close\" | \"accept\"}}) => {\n const {onAccept, onCancel} = this.props\n if (action === \"accept\") {\n if (onAccept) {\n onAccept()\n }\n } else if (onCancel) {\n onCancel()\n } else {\n onAccept!()\n }\n },\n )\n this.mdc_component.open()\n }\n\n componentWillUnmount() {\n super.componentWillUnmount()\n this.dispose_trap_browser_back?.()\n }\n\n render() {\n const {\n title,\n className,\n children,\n button_label_accept,\n button_label_cancel,\n accept_disabled,\n wide,\n fit,\n desktop_focus,\n more_buttons,\n \"data-test-id\": data_test_id,\n no_scroll,\n style,\n content_classname,\n content_style,\n } = this.props\n const content = (\n <div\n className={classNames(\"mdc-dialog__content\", content_classname)}\n style={content_style}\n data-test-id=\"Dialog_content\"\n >\n {children}\n </div>\n )\n return (\n <div\n ref={this.add_mdc(MDCDialog)}\n className={classNames(\"mdc-dialog\", className)}\n data-test-id={data_test_id}\n >\n <div\n className={classNames(\"mdc-dialog__container\", {\n \"mdcx-dialog__container--wide\": wide,\n \"mdcx-dialog__container--fit\": fit,\n \"mdcx-dialog__container--no-scroll\": no_scroll,\n })}\n style={style}\n >\n <div\n className=\"mdc-dialog__surface\"\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-labelledby={title}\n >\n <h2 className=\"mdc-dialog__title\" data-test-id=\"Dialog_title\">\n {title}\n </h2>\n {!no_scroll && with_perfect_scrollbar(content)}\n {no_scroll && content}\n <footer className=\"mdc-dialog__actions\" data-test-id=\"Dialog_actions\">\n {button_label_cancel && (\n <button\n type=\"button\"\n className={classNames(\"mdc-button mdc-dialog__button\", {\n \"mdc-dialog__button--default\": desktop_focus === \"cancel\",\n })}\n data-mdc-dialog-action=\"close\"\n data-test-id=\"Dialog_cancel\"\n >\n <div className=\"mdc-button__ripple\"></div>\n <span className=\"mdc-button__label\">{button_label_cancel}</span>\n </button>\n )}\n {more_buttons &&\n more_buttons.map((x) => (\n <button\n key={x.label}\n type=\"button\"\n aria-label={x.tooltip}\n onClick={x.onClick}\n data-test-id={x[\"data-test-id\"]}\n disabled={x.disabled}\n className=\"mdc-button mdc-dialog__button\"\n {...(x.tooltip ? simple_tooltip_event_handlers : {})}\n >\n <div className=\"mdc-button__ripple\"></div>\n <span className=\"mdc-button__label\">{x.label}</span>\n </button>\n ))}\n {button_label_accept && (\n <button\n type=\"button\"\n className={classNames(\"mdc-button mdc-dialog__button\", {\n \"mdc-dialog__button--default\": desktop_focus === \"accept\",\n })}\n data-mdc-dialog-action=\"accept\"\n data-test-id=\"Dialog_accept\"\n disabled={accept_disabled}\n >\n <div className=\"mdc-button__ripple\"></div>\n <span className=\"mdc-button__label\">{button_label_accept}</span>\n </button>\n )}\n </footer>\n </div>\n </div>\n <div className=\"mdc-dialog__scrim\" />\n </div>\n )\n }\n}\n", null, "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n", null, null], "mappings": "2jBAAA,IAAAA,GAAAC,GAAAC,IAAA,cAWA,IAAIC,EAAQ,YACZ,SAASC,GAAGC,EAAGC,EAAG,CAChB,OAAQD,IAAMC,IAAYD,IAAN,GAAW,EAAIA,IAAM,EAAIC,IAAQD,IAAMA,GAAKC,IAAMA,CACxE,CAFSC,EAAAH,GAAA,MAGT,IAAII,GAA0B,OAAO,OAAO,IAA7B,WAAkC,OAAO,GAA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M,QACtB,GACN,OACII,EAACC,EAAA,CAAQ,GAAGL,EAAY,MAAO,UAAU,2BAA2B,eAAa,UAC5EG,CACL,CAER,CAAC,EAEMG,GAAQL", "names": ["require_use_sync_external_store_shim_production", "__commonJSMin", "exports", "React", "is", "x", "y", "__name", "objectIs", "useState", "useEffect", "useLayoutEffect", "useDebugValue", "useSyncExternalStore$2", "subscribe", "getSnapshot", "value", "_useState", "inst", "forceUpdate", "checkIfSnapshotChanged", "latestGetSnapshot", "nextValue", "useSyncExternalStore$1", "shim", "require_shim", "__commonJSMin", "exports", "module", "init_compat_module", "init_compat_module", "d", "makeObservable", "init_compat_module", "defaultNoopBatch", "callback", "__name", "observerBatching", "reactionScheduler", "configure", "init_compat_module", "printDebugValue", "v", "getDependencyTree", "__name", "globalIsUsingStaticRendering", "isUsingStaticRendering", "globalIsUsingStaticRendering", "__name", "REGISTRY_FINALIZE_AFTER", "REGISTRY_SWEEP_INTERVAL", "TimerBasedFinalizationRegistry", "finalize", "_this", "__name", "maxAge", "now", "registration", "token", "target", "value", "UniversalFinalizationRegistry", "TimerBasedFinalizationRegistry", "observerFinalizationRegistry", "UniversalFinalizationRegistry", "adm", "_a", "import_shim", "createReaction", "adm", "Reaction", "_a", "__name", "useObserver", "render", "baseComponentName", "isUsingStaticRendering", "admRef", "Rn", "adm_1", "onStoreChange", "observerFinalizationRegistry", "printDebugValue", "renderResult", "exception", "e", "init_compat_module", "hasSymbol", "isFunctionNameConfigurable", "_b", "_a", "ReactForwardRefSymbol", "D", "props", "ReactMemoSymbol", "M", "observer", "baseComponent", "options", "isUsingStaticRendering", "useForwardRef", "render", "baseComponentName", "observerComponent", "__name", "ref", "useObserver", "copyStaticProperties", "hoistBlackList", "base", "target", "key", "ObserverComponent", "_a", "children", "render", "component", "useObserver", "__name", "init_compat_module", "init_compat_module", "init_compat_module", "observerBatching", "gn", "clearTimers", "_a", "observerFinalizationRegistry", "shallowEqual", "objA", "objB", "is", "keysA", "Object", "keys", "keysB", "length", "i", "hasOwnProperty", "call", "x", "y", "mobxMixins", "Symbol", "mobxPatchedDefinition", "getMixins", "target", "methodName", "mixins", "methodMixins", "locks", "methods", "wrapper", "realMethod", "args", "Array", "_len", "_key", "arguments", "retVal", "apply", "forEach", "mx", "_this", "wrapFunction", "fn", "__name", "_len2", "_key2", "call", "concat", "patch", "mixinMethod", "indexOf", "push", "oldDefinition", "Object", "getOwnPropertyDescriptor", "originalMethod", "newDefinition", "createDefinition", "enumerable", "undefined", "defineProperty", "wrappedFunc", "_ref", "get", "set", "value", "configurable", "administrationSymbol", "isMobXReactObserverSymbol", "getAdministration", "component", "_component$administra", "administrationSymbol", "reaction", "mounted", "reactionInvalidatedBeforeMount", "forceUpdate", "name", "getDisplayName", "constructor", "state", "undefined", "props", "context", "makeClassComponentObserver", "componentClass", "prototype", "isMobXReactObserverSymbol", "displayName", "Error", "componentWillReact", "PureComponent", "shouldComponentUpdate", "observerSCU", "originalRender", "render", "Object", "defineProperty", "configurable", "writable", "value", "isUsingStaticRendering", "createReactiveRender", "call", "originalComponentDidMount", "componentDidMount", "process", "admin", "observerFinalizationRegistry", "unregister", "_this", "apply", "arguments", "patch", "_admin$reaction", "dispose", "boundOriginalRender", "bind", "reactiveRender", "createReaction", "register", "error", "renderResult", "track", "_allowStateChanges", "e", "Reaction", "_admin$reaction2", "nextProps", "nextState", "console", "warn", "shallowEqual", "observer", "component", "context", "kind", "Error", "console", "warn", "Object", "prototype", "isPrototypeOf", "call", "React", "makeClassComponentObserver", "observerLite", "MobXProviderContext", "createContext", "Provider", "props", "children", "stores", "_objectWithoutPropertiesLoose", "_excluded", "parentValue", "useContext", "mutableProviderRef", "useRef", "_extends", "value", "current", "process", "newValue", "displayName", "reactMajorVersion", "Number", "parseInt", "React", "version", "split", "Component", "Error", "observable", "init_compat_module", "createFocusTrapInstance", "surfaceEl", "focusTrapFactory", "initialFocusEl", "__name", "isScrollable", "el", "areTopsMisaligned", "els", "tops", "extendStatics", "__name", "d", "b", "p", "__extends", "__", "__assign", "s", "i", "n", "__values", "o", "s", "m", "i", "__name", "MDCDialogFoundation", "_super", "__extends", "adapter", "_this", "__assign", "strings", "__name", "cssClasses", "numbers", "action", "autoStack", "evt", "isScrim", "isEnter", "isDefault", "isEscape", "callback", "areButtonsStacked", "MDCFoundation", "strings", "MDCDialogFoundation", "MDCDialog", "_super", "__extends", "__name", "action", "autoStack", "root", "focusTrapFactory", "el", "focusOptions", "FocusTrap", "container", "_b", "__values", "_c", "buttonEl", "MDCRipple", "_this", "createFocusTrapInstance", "LAYOUT_EVENTS", "evtType", "ripple", "adapter", "className", "areTopsMisaligned", "target", "selector", "matches", "evt", "element", "closest", "isScrollable", "button", "MDCComponent", "_Dialog", "BaseComponent", "__publicField", "__name", "handle_browser_back", "desktop_focus", "trap_browser_back", "focusTrap_", "trap_focus", "error", "m", "error2", "error_to_string", "report_info", "running_on_mobile_device", "x", "selector", "assert_never", "onOpened", "action", "onAccept", "onCancel", "title", "className", "children", "button_label_accept", "button_label_cancel", "accept_disabled", "wide", "fit", "more_buttons", "data_test_id", "no_scroll", "style", "content_classname", "content_style", "content", "_", "classNames", "MDCDialog", "with_perfect_scrollbar", "simple_tooltip_event_handlers", "Dialog", "_PromptState", "__publicField", "__name", "props", "runInAction", "action", "makeObservable", "observable", "PromptState", "promp_state", "PromptContainer", "observer", "content", "_", "Dialog", "prompt_default"] }