@cloudscape-design/components 3.0.975 → 3.0.976

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/code-editor/index.d.ts.map +1 -1
  2. package/code-editor/index.js +3 -0
  3. package/code-editor/index.js.map +1 -1
  4. package/code-editor/interfaces.d.ts +1 -0
  5. package/code-editor/interfaces.d.ts.map +1 -1
  6. package/code-editor/interfaces.js.map +1 -1
  7. package/code-editor/preferences-modal.d.ts +1 -0
  8. package/code-editor/preferences-modal.d.ts.map +1 -1
  9. package/code-editor/preferences-modal.js +1 -1
  10. package/code-editor/preferences-modal.js.map +1 -1
  11. package/collection-preferences/index.d.ts +1 -1
  12. package/collection-preferences/index.d.ts.map +1 -1
  13. package/collection-preferences/index.js +2 -2
  14. package/collection-preferences/index.js.map +1 -1
  15. package/collection-preferences/interfaces.d.ts +5 -0
  16. package/collection-preferences/interfaces.d.ts.map +1 -1
  17. package/collection-preferences/interfaces.js.map +1 -1
  18. package/internal/environment.js +1 -1
  19. package/internal/environment.json +1 -1
  20. package/internal/manifest.json +1 -1
  21. package/package.json +1 -1
  22. package/split-panel/implementation.d.ts.map +1 -1
  23. package/split-panel/implementation.js +1 -0
  24. package/split-panel/implementation.js.map +1 -1
  25. package/split-panel/index.d.ts.map +1 -1
  26. package/split-panel/index.js +2 -1
  27. package/split-panel/index.js.map +1 -1
  28. package/split-panel/interfaces.d.ts +1 -0
  29. package/split-panel/interfaces.d.ts.map +1 -1
  30. package/split-panel/interfaces.js.map +1 -1
  31. package/split-panel/preferences-modal.d.ts +1 -0
  32. package/split-panel/preferences-modal.d.ts.map +1 -1
  33. package/split-panel/preferences-modal.js +1 -1
  34. package/split-panel/preferences-modal.js.map +1 -1
  35. package/test-utils/tsconfig.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code-editor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAqB7F,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAqB/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FA2Qd,CAAC;AAGH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code-editor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAqB7F,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAqB/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FA+Qd,CAAC;AAGH,eAAe,UAAU,CAAC"}
@@ -43,6 +43,7 @@ const CodeEditor = forwardRef((props, ref) => {
43
43
  const isRefresh = useVisualRefresh();
44
44
  const baseProps = getBaseProps(rest);
45
45
  const i18n = useInternalI18n('code-editor');
46
+ const i18nModal = useInternalI18n('modal');
46
47
  const errorsTabRef = useRef(null);
47
48
  const warningsTabRef = useRef(null);
48
49
  const [codeEditorWidth, codeEditorMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);
@@ -144,6 +145,8 @@ const CodeEditor = forwardRef((props, ref) => {
144
145
  header: i18n('i18nStrings.preferencesModalHeader', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalHeader),
145
146
  cancel: i18n('i18nStrings.preferencesModalCancel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalCancel),
146
147
  confirm: i18n('i18nStrings.preferencesModalConfirm', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalConfirm),
148
+ close: i18nModal('closeAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalCloseAriaLabel) ||
149
+ (i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalCancel),
147
150
  wrapLines: i18n('i18nStrings.preferencesModalWrapLines', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalWrapLines),
148
151
  theme: i18n('i18nStrings.preferencesModalTheme', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalTheme),
149
152
  lightThemes: i18n('i18nStrings.preferencesModalLightThemes', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesModalLightThemes),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code-editor/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,kBA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EAAE,YAAY,EAC1B,WAAW,EAAE;oBACX,MAAM,EAAE,IAAI,CAAC,oCAAoC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,sBAAsB,CAAC;oBACvF,MAAM,EAAE,IAAI,CAAC,oCAAoC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,sBAAsB,CAAC;oBACvF,OAAO,EAAE,IAAI,CAAC,qCAAqC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,uBAAuB,CAAC;oBAC1F,SAAS,EAAE,IAAI,CAAC,uCAAuC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,yBAAyB,CAAC;oBAChG,KAAK,EAAE,IAAI,CAAC,mCAAmC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,qBAAqB,CAAC;oBACpF,WAAW,EAAE,IAAI,CAAC,yCAAyC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,2BAA2B,CAAC;oBACtG,UAAU,EAAE,IAAI,CAAC,wCAAwC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,0BAA0B,CAAC;oBACnG,uBAAuB,EAAE,IAAI,CAC3B,qDAAqD,EACrD,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,uCAAuC,CACrD;oBACD,yBAAyB,EAAE,IAAI,CAC7B,uDAAuD,EACvD,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,yCAAyC,CACvD;oBACD,4BAA4B,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,4CAA4C;iBACxF,GACD,CACH,CACA,CACJ,CACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAC3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Ace } from 'ace-builds';\nimport clsx from 'clsx';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\nimport { useCurrentMode } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { KeyCode } from '../internal/keycode';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalLiveRegion from '../live-region/internal';\nimport ErrorScreen from './error-screen';\nimport { CodeEditorProps } from './interfaces';\nimport { useChangeEffect } from './listeners';\nimport LoadingScreen from './loading-screen';\nimport { Pane } from './pane';\nimport PreferencesModal from './preferences-modal';\nimport { ResizableBox } from './resizable-box';\nimport { setupEditor } from './setup-editor';\nimport { StatusBar } from './status-bar';\nimport {\n useEditor,\n useSyncEditorLabels,\n useSyncEditorLanguage,\n useSyncEditorSize,\n useSyncEditorTheme,\n useSyncEditorValue,\n useSyncEditorWrapLines,\n} from './use-editor';\nimport { DEFAULT_AVAILABLE_THEMES, getDefaultTheme, getLanguageLabel, PaneStatus } from './util';\n\nimport styles from './styles.css.js';\n\nexport { CodeEditorProps };\n\nconst CodeEditor = forwardRef((props: CodeEditorProps, ref: React.Ref<CodeEditorProps.Ref>) => {\n const {\n ace,\n value,\n language,\n i18nStrings,\n editorContentHeight,\n onEditorContentResize,\n ariaLabel,\n languageLabel: customLanguageLabel,\n preferences,\n loading,\n themes,\n getModalRoot,\n removeModalRoot,\n ...rest\n } = props;\n const { __internalRootRef } = useBaseComponent('CodeEditor', { props: { language } });\n const { controlId, ariaLabelledby, ariaDescribedby } = useFormFieldContext(props);\n const [editorHeight = 480, setEditorHeight] = useControllable(editorContentHeight, onEditorContentResize, 480, {\n componentName: 'code-editor',\n changeHandler: 'onEditorContentResize',\n controlledProp: 'editorContentHeight',\n });\n const mode = useCurrentMode(__internalRootRef);\n const isRefresh = useVisualRefresh();\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('code-editor');\n\n const errorsTabRef = useRef<HTMLButtonElement>(null);\n const warningsTabRef = useRef<HTMLButtonElement>(null);\n const [codeEditorWidth, codeEditorMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);\n const mergedRef = useMergeRefs(codeEditorMeasureRef, __internalRootRef);\n\n const paneId = useUniqueId('code-editor-pane');\n\n const [paneStatus, setPaneStatus] = useState<PaneStatus>('hidden');\n const [annotations, setAnnotations] = useState<Ace.Annotation[]>([]);\n const [highlightedAnnotation, setHighlightedAnnotation] = useState<Ace.Annotation>();\n const [cursorPosition, setCursorPosition] = useState<Ace.Point>({ row: 0, column: 0 });\n const [isTabFocused, setTabFocused] = useState<boolean>(false);\n\n const { editorRef, editor } = useEditor(ace, themes, loading);\n\n useForwardFocus(ref, editorRef);\n\n useEffect(() => {\n if (!ace || !editor) {\n return;\n }\n\n setupEditor(ace, editor, setAnnotations, setCursorPosition, setHighlightedAnnotation, setPaneStatus);\n\n return () => {\n editor?.destroy();\n };\n }, [ace, editor]);\n\n useSyncEditorLabels(editor, { controlId, ariaLabel, ariaLabelledby, ariaDescribedby });\n\n const { onResize } = useSyncEditorSize(editor, { width: codeEditorWidth, height: editorContentHeight });\n\n useSyncEditorValue(editor, value);\n\n useSyncEditorLanguage(editor, language);\n\n useSyncEditorWrapLines(editor, preferences?.wrapLines);\n\n const defaultTheme = getDefaultTheme(mode, themes);\n useSyncEditorTheme(editor, preferences?.theme ?? defaultTheme);\n\n // Change listeners\n useChangeEffect(editor, props.onChange, props.onDelayedChange);\n\n // Hide error panel when there are no errors to show.\n useEffect(() => {\n if (annotations.length === 0) {\n setPaneStatus('hidden');\n }\n\n if (props.onValidate) {\n fireNonCancelableEvent(props.onValidate, { annotations });\n }\n }, [annotations, props.onValidate]);\n\n const languageLabel = customLanguageLabel ?? getLanguageLabel(language);\n\n const errorCount = annotations.filter(a => a.type === 'error').length;\n const warningCount = annotations.filter(a => a.type === 'warning').length;\n const currentAnnotations = useMemo(() => annotations.filter(a => a.type === paneStatus), [annotations, paneStatus]);\n\n /*\n * Callbacks\n */\n\n const onEditorKeydown = useCallback(\n (e: React.KeyboardEvent) => {\n if (editor && e.target === editor.container && e.keyCode === KeyCode.enter) {\n e.stopPropagation();\n e.preventDefault();\n editor.focus();\n }\n },\n [editor]\n );\n\n const onTabFocus = useCallback(() => setTabFocused(true), []);\n const onTabBlur = useCallback(() => setTabFocused(false), []);\n\n const onErrorPaneToggle = useCallback(() => {\n setPaneStatus(paneStatus !== 'error' ? 'error' : 'hidden');\n }, [paneStatus]);\n\n const onWarningPaneToggle = useCallback(() => {\n setPaneStatus(paneStatus !== 'warning' ? 'warning' : 'hidden');\n }, [paneStatus]);\n\n const onPaneClose = () => {\n setPaneStatus('hidden');\n };\n\n const onAnnotationClick = ({ row = 0, column = 0 }: Ace.Annotation) => {\n if (!editor) {\n return;\n }\n editor.focus();\n editor.gotoLine(row + 1, column, false);\n setHighlightedAnnotation(undefined);\n };\n\n const onAnnotationClear = useCallback(() => {\n setHighlightedAnnotation(undefined);\n }, []);\n\n const [isPreferencesModalVisible, setPreferencesModalVisible] = useState(false);\n const onPreferencesOpen = () => setPreferencesModalVisible(true);\n const onPreferencesConfirm = (p: CodeEditorProps.Preferences) => {\n fireNonCancelableEvent(props.onPreferencesChange, p);\n setPreferencesModalVisible(false);\n };\n const onPreferencesDismiss = () => setPreferencesModalVisible(false);\n\n const isPaneVisible = paneStatus !== 'hidden';\n\n return (\n <div\n {...baseProps}\n className={clsx(styles['code-editor'], baseProps.className, { [styles['code-editor-refresh']]: isRefresh })}\n ref={mergedRef}\n >\n {loading && (\n <LoadingScreen>\n <InternalLiveRegion tagName=\"span\">\n {i18n('i18nStrings.loadingState', i18nStrings?.loadingState)}\n </InternalLiveRegion>\n </LoadingScreen>\n )}\n\n {!ace && !loading && (\n <ErrorScreen\n recoveryText={i18n('i18nStrings.errorStateRecovery', i18nStrings?.errorStateRecovery)}\n onRecoveryClick={props.onRecoveryClick}\n >\n {i18n('i18nStrings.errorState', i18nStrings?.errorState)}\n </ErrorScreen>\n )}\n\n {ace && !loading && (\n <>\n <ResizableBox\n height={Math.max(editorHeight, 20)}\n minHeight={20}\n onResize={height => {\n setEditorHeight(height);\n onResize();\n fireNonCancelableEvent(onEditorContentResize, { height });\n }}\n handleAriaLabel={i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings?.resizeHandleAriaLabel)}\n handleTooltipText={i18n('i18nStrings.resizeHandleTooltipText', i18nStrings?.resizeHandleTooltipText)}\n >\n <div\n ref={editorRef}\n className={clsx(styles.editor, styles.ace, isRefresh && styles['editor-refresh'])}\n onKeyDown={onEditorKeydown}\n tabIndex={0}\n role=\"group\"\n aria-label={i18n('i18nStrings.editorGroupAriaLabel', i18nStrings?.editorGroupAriaLabel)}\n />\n </ResizableBox>\n <div\n role=\"group\"\n aria-label={i18n('i18nStrings.statusBarGroupAriaLabel', i18nStrings?.statusBarGroupAriaLabel)}\n >\n <StatusBar\n languageLabel={languageLabel}\n cursorPosition={i18n(\n 'i18nStrings.cursorPosition',\n i18nStrings?.cursorPosition?.(cursorPosition.row + 1, cursorPosition.column + 1),\n format => format({ row: cursorPosition.row + 1, column: cursorPosition.column + 1 })\n )}\n errorCount={errorCount}\n warningCount={warningCount}\n paneStatus={paneStatus}\n onErrorPaneToggle={onErrorPaneToggle}\n onWarningPaneToggle={onWarningPaneToggle}\n onTabFocus={onTabFocus}\n onTabBlur={onTabBlur}\n errorsTabRef={errorsTabRef}\n warningsTabRef={warningsTabRef}\n i18nStrings={i18nStrings}\n isTabFocused={isTabFocused}\n paneId={isPaneVisible ? paneId : undefined}\n onPreferencesOpen={onPreferencesOpen}\n isRefresh={isRefresh}\n />\n <Pane\n id={paneId}\n paneStatus={paneStatus}\n visible={isPaneVisible}\n annotations={currentAnnotations}\n highlighted={highlightedAnnotation}\n onAnnotationClick={onAnnotationClick}\n onAnnotationClear={onAnnotationClear}\n onClose={onPaneClose}\n cursorPositionLabel={i18n(\n 'i18nStrings.cursorPosition',\n i18nStrings?.cursorPosition,\n format => (row, column) => format({ row, column })\n )}\n closeButtonAriaLabel={i18n('i18nStrings.paneCloseButtonAriaLabel', i18nStrings?.paneCloseButtonAriaLabel)}\n handleAriaLabel={i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings?.resizeHandleAriaLabel)}\n handleTooltipText={i18n('i18nStrings.resizeHandleTooltipText', i18nStrings?.resizeHandleTooltipText)}\n />\n </div>\n {isPreferencesModalVisible && (\n <PreferencesModal\n getModalRoot={getModalRoot}\n removeModalRoot={removeModalRoot}\n onConfirm={onPreferencesConfirm}\n onDismiss={onPreferencesDismiss}\n themes={themes ?? DEFAULT_AVAILABLE_THEMES}\n preferences={preferences}\n defaultTheme={defaultTheme}\n i18nStrings={{\n header: i18n('i18nStrings.preferencesModalHeader', i18nStrings?.preferencesModalHeader),\n cancel: i18n('i18nStrings.preferencesModalCancel', i18nStrings?.preferencesModalCancel),\n confirm: i18n('i18nStrings.preferencesModalConfirm', i18nStrings?.preferencesModalConfirm),\n wrapLines: i18n('i18nStrings.preferencesModalWrapLines', i18nStrings?.preferencesModalWrapLines),\n theme: i18n('i18nStrings.preferencesModalTheme', i18nStrings?.preferencesModalTheme),\n lightThemes: i18n('i18nStrings.preferencesModalLightThemes', i18nStrings?.preferencesModalLightThemes),\n darkThemes: i18n('i18nStrings.preferencesModalDarkThemes', i18nStrings?.preferencesModalDarkThemes),\n themeFilteringAriaLabel: i18n(\n 'i18nStrings.preferencesModalThemeFilteringAriaLabel',\n i18nStrings?.preferencesModalThemeFilteringAriaLabel\n ),\n themeFilteringPlaceholder: i18n(\n 'i18nStrings.preferencesModalThemeFilteringPlaceholder',\n i18nStrings?.preferencesModalThemeFilteringPlaceholder\n ),\n themeFilteringClearAriaLabel: i18nStrings?.preferencesModalThemeFilteringClearAriaLabel,\n }}\n />\n )}\n </>\n )}\n </div>\n );\n});\n\napplyDisplayName(CodeEditor, 'CodeEditor');\nexport default CodeEditor;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code-editor/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,kBAAkB,MAAM,yBAAyB,CA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AAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAC3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Ace } from 'ace-builds';\nimport clsx from 'clsx';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\nimport { useCurrentMode } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { KeyCode } from '../internal/keycode';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalLiveRegion from '../live-region/internal';\nimport ErrorScreen from './error-screen';\nimport { CodeEditorProps } from './interfaces';\nimport { useChangeEffect } from './listeners';\nimport LoadingScreen from './loading-screen';\nimport { Pane } from './pane';\nimport PreferencesModal from './preferences-modal';\nimport { ResizableBox } from './resizable-box';\nimport { setupEditor } from './setup-editor';\nimport { StatusBar } from './status-bar';\nimport {\n useEditor,\n useSyncEditorLabels,\n useSyncEditorLanguage,\n useSyncEditorSize,\n useSyncEditorTheme,\n useSyncEditorValue,\n useSyncEditorWrapLines,\n} from './use-editor';\nimport { DEFAULT_AVAILABLE_THEMES, getDefaultTheme, getLanguageLabel, PaneStatus } from './util';\n\nimport styles from './styles.css.js';\n\nexport { CodeEditorProps };\n\nconst CodeEditor = forwardRef((props: CodeEditorProps, ref: React.Ref<CodeEditorProps.Ref>) => {\n const {\n ace,\n value,\n language,\n i18nStrings,\n editorContentHeight,\n onEditorContentResize,\n ariaLabel,\n languageLabel: customLanguageLabel,\n preferences,\n loading,\n themes,\n getModalRoot,\n removeModalRoot,\n ...rest\n } = props;\n const { __internalRootRef } = useBaseComponent('CodeEditor', { props: { language } });\n const { controlId, ariaLabelledby, ariaDescribedby } = useFormFieldContext(props);\n const [editorHeight = 480, setEditorHeight] = useControllable(editorContentHeight, onEditorContentResize, 480, {\n componentName: 'code-editor',\n changeHandler: 'onEditorContentResize',\n controlledProp: 'editorContentHeight',\n });\n const mode = useCurrentMode(__internalRootRef);\n const isRefresh = useVisualRefresh();\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('code-editor');\n const i18nModal = useInternalI18n('modal');\n\n const errorsTabRef = useRef<HTMLButtonElement>(null);\n const warningsTabRef = useRef<HTMLButtonElement>(null);\n const [codeEditorWidth, codeEditorMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);\n const mergedRef = useMergeRefs(codeEditorMeasureRef, __internalRootRef);\n\n const paneId = useUniqueId('code-editor-pane');\n\n const [paneStatus, setPaneStatus] = useState<PaneStatus>('hidden');\n const [annotations, setAnnotations] = useState<Ace.Annotation[]>([]);\n const [highlightedAnnotation, setHighlightedAnnotation] = useState<Ace.Annotation>();\n const [cursorPosition, setCursorPosition] = useState<Ace.Point>({ row: 0, column: 0 });\n const [isTabFocused, setTabFocused] = useState<boolean>(false);\n\n const { editorRef, editor } = useEditor(ace, themes, loading);\n\n useForwardFocus(ref, editorRef);\n\n useEffect(() => {\n if (!ace || !editor) {\n return;\n }\n\n setupEditor(ace, editor, setAnnotations, setCursorPosition, setHighlightedAnnotation, setPaneStatus);\n\n return () => {\n editor?.destroy();\n };\n }, [ace, editor]);\n\n useSyncEditorLabels(editor, { controlId, ariaLabel, ariaLabelledby, ariaDescribedby });\n\n const { onResize } = useSyncEditorSize(editor, { width: codeEditorWidth, height: editorContentHeight });\n\n useSyncEditorValue(editor, value);\n\n useSyncEditorLanguage(editor, language);\n\n useSyncEditorWrapLines(editor, preferences?.wrapLines);\n\n const defaultTheme = getDefaultTheme(mode, themes);\n useSyncEditorTheme(editor, preferences?.theme ?? defaultTheme);\n\n // Change listeners\n useChangeEffect(editor, props.onChange, props.onDelayedChange);\n\n // Hide error panel when there are no errors to show.\n useEffect(() => {\n if (annotations.length === 0) {\n setPaneStatus('hidden');\n }\n\n if (props.onValidate) {\n fireNonCancelableEvent(props.onValidate, { annotations });\n }\n }, [annotations, props.onValidate]);\n\n const languageLabel = customLanguageLabel ?? getLanguageLabel(language);\n\n const errorCount = annotations.filter(a => a.type === 'error').length;\n const warningCount = annotations.filter(a => a.type === 'warning').length;\n const currentAnnotations = useMemo(() => annotations.filter(a => a.type === paneStatus), [annotations, paneStatus]);\n\n /*\n * Callbacks\n */\n\n const onEditorKeydown = useCallback(\n (e: React.KeyboardEvent) => {\n if (editor && e.target === editor.container && e.keyCode === KeyCode.enter) {\n e.stopPropagation();\n e.preventDefault();\n editor.focus();\n }\n },\n [editor]\n );\n\n const onTabFocus = useCallback(() => setTabFocused(true), []);\n const onTabBlur = useCallback(() => setTabFocused(false), []);\n\n const onErrorPaneToggle = useCallback(() => {\n setPaneStatus(paneStatus !== 'error' ? 'error' : 'hidden');\n }, [paneStatus]);\n\n const onWarningPaneToggle = useCallback(() => {\n setPaneStatus(paneStatus !== 'warning' ? 'warning' : 'hidden');\n }, [paneStatus]);\n\n const onPaneClose = () => {\n setPaneStatus('hidden');\n };\n\n const onAnnotationClick = ({ row = 0, column = 0 }: Ace.Annotation) => {\n if (!editor) {\n return;\n }\n editor.focus();\n editor.gotoLine(row + 1, column, false);\n setHighlightedAnnotation(undefined);\n };\n\n const onAnnotationClear = useCallback(() => {\n setHighlightedAnnotation(undefined);\n }, []);\n\n const [isPreferencesModalVisible, setPreferencesModalVisible] = useState(false);\n const onPreferencesOpen = () => setPreferencesModalVisible(true);\n const onPreferencesConfirm = (p: CodeEditorProps.Preferences) => {\n fireNonCancelableEvent(props.onPreferencesChange, p);\n setPreferencesModalVisible(false);\n };\n const onPreferencesDismiss = () => setPreferencesModalVisible(false);\n\n const isPaneVisible = paneStatus !== 'hidden';\n\n return (\n <div\n {...baseProps}\n className={clsx(styles['code-editor'], baseProps.className, { [styles['code-editor-refresh']]: isRefresh })}\n ref={mergedRef}\n >\n {loading && (\n <LoadingScreen>\n <InternalLiveRegion tagName=\"span\">\n {i18n('i18nStrings.loadingState', i18nStrings?.loadingState)}\n </InternalLiveRegion>\n </LoadingScreen>\n )}\n\n {!ace && !loading && (\n <ErrorScreen\n recoveryText={i18n('i18nStrings.errorStateRecovery', i18nStrings?.errorStateRecovery)}\n onRecoveryClick={props.onRecoveryClick}\n >\n {i18n('i18nStrings.errorState', i18nStrings?.errorState)}\n </ErrorScreen>\n )}\n\n {ace && !loading && (\n <>\n <ResizableBox\n height={Math.max(editorHeight, 20)}\n minHeight={20}\n onResize={height => {\n setEditorHeight(height);\n onResize();\n fireNonCancelableEvent(onEditorContentResize, { height });\n }}\n handleAriaLabel={i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings?.resizeHandleAriaLabel)}\n handleTooltipText={i18n('i18nStrings.resizeHandleTooltipText', i18nStrings?.resizeHandleTooltipText)}\n >\n <div\n ref={editorRef}\n className={clsx(styles.editor, styles.ace, isRefresh && styles['editor-refresh'])}\n onKeyDown={onEditorKeydown}\n tabIndex={0}\n role=\"group\"\n aria-label={i18n('i18nStrings.editorGroupAriaLabel', i18nStrings?.editorGroupAriaLabel)}\n />\n </ResizableBox>\n <div\n role=\"group\"\n aria-label={i18n('i18nStrings.statusBarGroupAriaLabel', i18nStrings?.statusBarGroupAriaLabel)}\n >\n <StatusBar\n languageLabel={languageLabel}\n cursorPosition={i18n(\n 'i18nStrings.cursorPosition',\n i18nStrings?.cursorPosition?.(cursorPosition.row + 1, cursorPosition.column + 1),\n format => format({ row: cursorPosition.row + 1, column: cursorPosition.column + 1 })\n )}\n errorCount={errorCount}\n warningCount={warningCount}\n paneStatus={paneStatus}\n onErrorPaneToggle={onErrorPaneToggle}\n onWarningPaneToggle={onWarningPaneToggle}\n onTabFocus={onTabFocus}\n onTabBlur={onTabBlur}\n errorsTabRef={errorsTabRef}\n warningsTabRef={warningsTabRef}\n i18nStrings={i18nStrings}\n isTabFocused={isTabFocused}\n paneId={isPaneVisible ? paneId : undefined}\n onPreferencesOpen={onPreferencesOpen}\n isRefresh={isRefresh}\n />\n <Pane\n id={paneId}\n paneStatus={paneStatus}\n visible={isPaneVisible}\n annotations={currentAnnotations}\n highlighted={highlightedAnnotation}\n onAnnotationClick={onAnnotationClick}\n onAnnotationClear={onAnnotationClear}\n onClose={onPaneClose}\n cursorPositionLabel={i18n(\n 'i18nStrings.cursorPosition',\n i18nStrings?.cursorPosition,\n format => (row, column) => format({ row, column })\n )}\n closeButtonAriaLabel={i18n('i18nStrings.paneCloseButtonAriaLabel', i18nStrings?.paneCloseButtonAriaLabel)}\n handleAriaLabel={i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings?.resizeHandleAriaLabel)}\n handleTooltipText={i18n('i18nStrings.resizeHandleTooltipText', i18nStrings?.resizeHandleTooltipText)}\n />\n </div>\n {isPreferencesModalVisible && (\n <PreferencesModal\n getModalRoot={getModalRoot}\n removeModalRoot={removeModalRoot}\n onConfirm={onPreferencesConfirm}\n onDismiss={onPreferencesDismiss}\n themes={themes ?? DEFAULT_AVAILABLE_THEMES}\n preferences={preferences}\n defaultTheme={defaultTheme}\n i18nStrings={{\n header: i18n('i18nStrings.preferencesModalHeader', i18nStrings?.preferencesModalHeader),\n cancel: i18n('i18nStrings.preferencesModalCancel', i18nStrings?.preferencesModalCancel),\n confirm: i18n('i18nStrings.preferencesModalConfirm', i18nStrings?.preferencesModalConfirm),\n close:\n i18nModal('closeAriaLabel', i18nStrings?.preferencesModalCloseAriaLabel) ||\n i18nStrings?.preferencesModalCancel,\n wrapLines: i18n('i18nStrings.preferencesModalWrapLines', i18nStrings?.preferencesModalWrapLines),\n theme: i18n('i18nStrings.preferencesModalTheme', i18nStrings?.preferencesModalTheme),\n lightThemes: i18n('i18nStrings.preferencesModalLightThemes', i18nStrings?.preferencesModalLightThemes),\n darkThemes: i18n('i18nStrings.preferencesModalDarkThemes', i18nStrings?.preferencesModalDarkThemes),\n themeFilteringAriaLabel: i18n(\n 'i18nStrings.preferencesModalThemeFilteringAriaLabel',\n i18nStrings?.preferencesModalThemeFilteringAriaLabel\n ),\n themeFilteringPlaceholder: i18n(\n 'i18nStrings.preferencesModalThemeFilteringPlaceholder',\n i18nStrings?.preferencesModalThemeFilteringPlaceholder\n ),\n themeFilteringClearAriaLabel: i18nStrings?.preferencesModalThemeFilteringClearAriaLabel,\n }}\n />\n )}\n </>\n )}\n </div>\n );\n});\n\napplyDisplayName(CodeEditor, 'CodeEditor');\nexport default CodeEditor;\n"]}
@@ -130,6 +130,7 @@ export declare namespace CodeEditorProps {
130
130
  preferencesModalHeader?: string;
131
131
  preferencesModalCancel?: string;
132
132
  preferencesModalConfirm?: string;
133
+ preferencesModalCloseAriaLabel?: string;
133
134
  preferencesModalWrapLines?: string;
134
135
  preferencesModalTheme?: string;
135
136
  preferencesModalLightThemes?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,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E,MAAM,CAAC;QAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;KAClC;IACD,UAAiB,YAAY;QAC3B,MAAM,EAAE,MAAM,CAAC;KAChB;IACD,UAAiB,YAAY;QAC3B,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,cAAc;QAC7B,WAAW,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC;KAC/B;IAED,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { BaseModalProps } from '../modal/interfaces';\nimport { AceModes } from './ace-modes';\nimport { DarkThemes, LightThemes } from './ace-themes';\n\nexport interface CodeEditorProps extends BaseComponentProps, FormFieldControlProps, BaseModalProps {\n /**\n * The ace object.\n */\n ace: any;\n\n /**\n * Specifies the content that's displayed in the code editor.\n */\n value: string;\n\n /**\n * Specifies the programming language. You can use any of the programming languages supported by the `ace` object that you provide.\n * Alternatively, this can be used to set a language that is not supported by the default `language` list. Make sure you've added the highlighting support for this language to the Ace instance.\n * For more info on custom languages, see the [Code editor API](/components/code-editor?tabId=api) page.\n */\n language: CodeEditorProps.Language;\n\n /**\n * Specifies a custom label language. If set, it overrides the default language label.\n */\n languageLabel?: string;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * **Deprecated** Replaced by `onDelayedChange`.\n */\n onChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * A user interaction can cause multiple change events to be emitted by the Ace editor. They are batched together into a single `onDelayedChange` event to avoid bugs when controlling the `value` field.\n */\n onDelayedChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * Annotations returned from Ace syntax checker after code validation.\n */\n onValidate?: NonCancelableEventHandler<CodeEditorProps.ValidateDetail>;\n\n /**\n * Specifies the component preferences.\n *\n * If set to `undefined`, the component uses the following default value:\n *\n * ```\n * {\n * wrapLines: true,\n * theme: 'dawn'\n * }\n * ```\n *\n * You can use any theme provided by Ace.\n */\n preferences?: Partial<CodeEditorProps.Preferences>;\n\n /**\n * List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at\n * least one dark theme. If not set explicitly, it will render all Ace themes available for selection, except\n * \"cloud_editor\" and \"cloud_editor_dark\".\n */\n themes?: CodeEditorProps.AvailableThemes;\n\n /**\n * Called when any of the preferences change.\n * The event `detail` contains the value of all the preferences as submitted by the user.\n *\n */\n onPreferencesChange: NonCancelableEventHandler<CodeEditorProps.Preferences>;\n\n /**\n * Renders the code editor in a loading state.\n */\n loading?: boolean;\n\n /**\n * Called when the user clicks the recovery button in the error state.\n * Use this to retry loading the code editor or to provide another option for the user to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler<void>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * The object should contain, among others:\n *\n * * `loadingState` - Specifies the text to display while the component is loading.\n * * `errorState` - Specifies the text to display if there is an error loading Ace.\n * * `errorStateRecovery`: Specifies the text for the recovery button that's displayed next to the error text.\n * Use the `recoveryClick` event to do a recovery action (for example, retrying the request).\n * @i18n\n */\n i18nStrings?: CodeEditorProps.I18nStrings;\n\n /**\n * Specifies the height of the code editor document.\n */\n editorContentHeight?: number;\n\n /**\n * Called when the user resizes the editor by dragging the resize icon.\n * The event `detail` contains the new height of the editor in pixels.\n */\n onEditorContentResize?: NonCancelableEventHandler<CodeEditorProps.ResizeDetail>;\n\n /**\n * Adds `aria-label` to the code editor's textarea element.\n */\n ariaLabel?: string;\n}\n\n// Prevents typescript from collapsing a string union type into a string type while still allowing any string.\n// This leads to more helpful editor suggestions for known values.\n// See: https://github.com/microsoft/TypeScript/issues/29729\ntype LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & { _?: never });\n\ntype BuiltInLanguage = (typeof AceModes)[number]['value'];\n\nexport namespace CodeEditorProps {\n export type Language = LiteralUnion<BuiltInLanguage, string>;\n export type Theme = (typeof LightThemes)[number]['value'] | (typeof DarkThemes)[number]['value'];\n\n export interface AvailableThemes {\n light: ReadonlyArray<string>;\n dark: ReadonlyArray<string>;\n }\n\n export interface Preferences {\n wrapLines: boolean;\n theme: Theme;\n }\n\n export interface I18nStrings {\n loadingState?: string;\n errorState?: string;\n errorStateRecovery?: string;\n\n editorGroupAriaLabel?: string;\n statusBarGroupAriaLabel?: string;\n\n cursorPosition?: (row: number, column: number) => string;\n errorsTab?: string;\n warningsTab?: string;\n preferencesButtonAriaLabel?: string;\n paneCloseButtonAriaLabel?: string;\n\n preferencesModalHeader?: string;\n preferencesModalCancel?: string;\n preferencesModalConfirm?: string;\n preferencesModalWrapLines?: string;\n preferencesModalTheme?: string;\n preferencesModalLightThemes?: string;\n preferencesModalDarkThemes?: string;\n\n preferencesModalThemeFilteringPlaceholder?: string;\n preferencesModalThemeFilteringAriaLabel?: string;\n preferencesModalThemeFilteringClearAriaLabel?: string;\n\n resizeHandleAriaLabel?: string;\n resizeHandleTooltipText?: string;\n }\n export interface ResizeDetail {\n height: number;\n }\n export interface ChangeDetail {\n value: string;\n }\n\n export interface ValidateDetail {\n annotations: Ace.Annotation[];\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the code editor control.\n */\n focus(): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { BaseModalProps } from '../modal/interfaces';\nimport { AceModes } from './ace-modes';\nimport { DarkThemes, LightThemes } from './ace-themes';\n\nexport interface CodeEditorProps extends BaseComponentProps, FormFieldControlProps, BaseModalProps {\n /**\n * The ace object.\n */\n ace: any;\n\n /**\n * Specifies the content that's displayed in the code editor.\n */\n value: string;\n\n /**\n * Specifies the programming language. You can use any of the programming languages supported by the `ace` object that you provide.\n * Alternatively, this can be used to set a language that is not supported by the default `language` list. Make sure you've added the highlighting support for this language to the Ace instance.\n * For more info on custom languages, see the [Code editor API](/components/code-editor?tabId=api) page.\n */\n language: CodeEditorProps.Language;\n\n /**\n * Specifies a custom label language. If set, it overrides the default language label.\n */\n languageLabel?: string;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * **Deprecated** Replaced by `onDelayedChange`.\n */\n onChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * A user interaction can cause multiple change events to be emitted by the Ace editor. They are batched together into a single `onDelayedChange` event to avoid bugs when controlling the `value` field.\n */\n onDelayedChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * Annotations returned from Ace syntax checker after code validation.\n */\n onValidate?: NonCancelableEventHandler<CodeEditorProps.ValidateDetail>;\n\n /**\n * Specifies the component preferences.\n *\n * If set to `undefined`, the component uses the following default value:\n *\n * ```\n * {\n * wrapLines: true,\n * theme: 'dawn'\n * }\n * ```\n *\n * You can use any theme provided by Ace.\n */\n preferences?: Partial<CodeEditorProps.Preferences>;\n\n /**\n * List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at\n * least one dark theme. If not set explicitly, it will render all Ace themes available for selection, except\n * \"cloud_editor\" and \"cloud_editor_dark\".\n */\n themes?: CodeEditorProps.AvailableThemes;\n\n /**\n * Called when any of the preferences change.\n * The event `detail` contains the value of all the preferences as submitted by the user.\n *\n */\n onPreferencesChange: NonCancelableEventHandler<CodeEditorProps.Preferences>;\n\n /**\n * Renders the code editor in a loading state.\n */\n loading?: boolean;\n\n /**\n * Called when the user clicks the recovery button in the error state.\n * Use this to retry loading the code editor or to provide another option for the user to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler<void>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * The object should contain, among others:\n *\n * * `loadingState` - Specifies the text to display while the component is loading.\n * * `errorState` - Specifies the text to display if there is an error loading Ace.\n * * `errorStateRecovery`: Specifies the text for the recovery button that's displayed next to the error text.\n * Use the `recoveryClick` event to do a recovery action (for example, retrying the request).\n * @i18n\n */\n i18nStrings?: CodeEditorProps.I18nStrings;\n\n /**\n * Specifies the height of the code editor document.\n */\n editorContentHeight?: number;\n\n /**\n * Called when the user resizes the editor by dragging the resize icon.\n * The event `detail` contains the new height of the editor in pixels.\n */\n onEditorContentResize?: NonCancelableEventHandler<CodeEditorProps.ResizeDetail>;\n\n /**\n * Adds `aria-label` to the code editor's textarea element.\n */\n ariaLabel?: string;\n}\n\n// Prevents typescript from collapsing a string union type into a string type while still allowing any string.\n// This leads to more helpful editor suggestions for known values.\n// See: https://github.com/microsoft/TypeScript/issues/29729\ntype LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & { _?: never });\n\ntype BuiltInLanguage = (typeof AceModes)[number]['value'];\n\nexport namespace CodeEditorProps {\n export type Language = LiteralUnion<BuiltInLanguage, string>;\n export type Theme = (typeof LightThemes)[number]['value'] | (typeof DarkThemes)[number]['value'];\n\n export interface AvailableThemes {\n light: ReadonlyArray<string>;\n dark: ReadonlyArray<string>;\n }\n\n export interface Preferences {\n wrapLines: boolean;\n theme: Theme;\n }\n\n export interface I18nStrings {\n loadingState?: string;\n errorState?: string;\n errorStateRecovery?: string;\n\n editorGroupAriaLabel?: string;\n statusBarGroupAriaLabel?: string;\n\n cursorPosition?: (row: number, column: number) => string;\n errorsTab?: string;\n warningsTab?: string;\n preferencesButtonAriaLabel?: string;\n paneCloseButtonAriaLabel?: string;\n\n preferencesModalHeader?: string;\n preferencesModalCancel?: string;\n preferencesModalConfirm?: string;\n preferencesModalCloseAriaLabel?: string;\n preferencesModalWrapLines?: string;\n preferencesModalTheme?: string;\n preferencesModalLightThemes?: string;\n preferencesModalDarkThemes?: string;\n\n preferencesModalThemeFilteringPlaceholder?: string;\n preferencesModalThemeFilteringAriaLabel?: string;\n preferencesModalThemeFilteringClearAriaLabel?: string;\n\n resizeHandleAriaLabel?: string;\n resizeHandleTooltipText?: string;\n }\n export interface ResizeDetail {\n height: number;\n }\n export interface ChangeDetail {\n value: string;\n }\n\n export interface ValidateDetail {\n annotations: Ace.Annotation[];\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the code editor control.\n */\n focus(): void;\n }\n}\n"]}
@@ -4,6 +4,7 @@ interface PreferencesModali18nStrings {
4
4
  header?: string;
5
5
  cancel?: string;
6
6
  confirm?: string;
7
+ close?: string;
7
8
  wrapLines?: string;
8
9
  theme?: string;
9
10
  lightThemes?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"preferences-modal.d.ts","sourceRoot":"","sources":["../../../src/code-editor/preferences-modal.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,UAAU,2BAA2B;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,4BAA4B,CA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AC;IAEpD,WAAW,EAAE,2BAA2B,CAAC;IAEzC,MAAM,EAAE,eAAe,CAAC,eAAe,CAAC;IACxC,YAAY,EAAE,eAAe,CAAC,KAAK,CAAC;IAEpC,SAAS,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC,WAAW,KAAK,IAAI,CAAC;IAC9D,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;gCAMsB,qBAAqB;AAA5C,wBAgEE"}
@@ -32,7 +32,7 @@ export default (props) => {
32
32
  setTheme(e.detail.selectedOption.value);
33
33
  setSelectedThemeOption(e.detail.selectedOption);
34
34
  };
35
- return (React.createElement(InternalModal, { size: "medium", visible: true, getModalRoot: props.getModalRoot, removeModalRoot: props.removeModalRoot, onDismiss: props.onDismiss, header: props.i18nStrings.header, closeAriaLabel: props.i18nStrings.cancel, footer: React.createElement(InternalBox, { float: "right" },
35
+ return (React.createElement(InternalModal, { size: "medium", visible: true, getModalRoot: props.getModalRoot, removeModalRoot: props.removeModalRoot, onDismiss: props.onDismiss, header: props.i18nStrings.header, closeAriaLabel: props.i18nStrings.close, footer: React.createElement(InternalBox, { float: "right" },
36
36
  React.createElement(InternalSpaceBetween, { direction: "horizontal", size: "xs" },
37
37
  React.createElement(InternalButton, { onClick: props.onDismiss }, props.i18nStrings.cancel),
38
38
  React.createElement(InternalButton, { onClick: () => props.onConfirm({ wrapLines, theme }), variant: "primary" }, props.i18nStrings.confirm))) },
@@ -1 +1 @@
1
- {"version":3,"file":"preferences-modal.js","sourceRoot":"","sources":["../../../src/code-editor/preferences-modal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2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AAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK;oBAC/C,oBAAC,cAAc,IACb,cAAc,EAAE,mBAAmB,EACnC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,YAAY,EACrB,aAAa,EAAC,MAAM,EACpB,kBAAkB,EAAE,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAC7D,uBAAuB,EAAE,KAAK,CAAC,WAAW,CAAC,4BAA4B,EACvE,oBAAoB,EAAE,KAAK,CAAC,WAAW,CAAC,yBAAyB,GACjE,CACgB,CAChB,CACe,CACT,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport InternalBox from '../box/internal';\nimport { InternalButton } from '../button/internal';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport { NonCancelableCustomEvent } from '../internal/events';\nimport InternalModal from '../modal/internal';\nimport { SelectProps } from '../select/interfaces';\nimport InternalSelect from '../select/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { DarkThemes, LightThemes } from './ace-themes';\nimport { CodeEditorProps } from './interfaces';\n\ninterface PreferencesModali18nStrings {\n header?: string;\n cancel?: string;\n confirm?: string;\n wrapLines?: string;\n theme?: string;\n lightThemes?: string;\n darkThemes?: string;\n themeFilteringPlaceholder?: string;\n themeFilteringAriaLabel?: string;\n themeFilteringClearAriaLabel?: string;\n}\n\ninterface PreferencesModalProps {\n preferences?: Partial<CodeEditorProps.Preferences>;\n getModalRoot: CodeEditorProps['getModalRoot'];\n removeModalRoot: CodeEditorProps['removeModalRoot'];\n\n i18nStrings: PreferencesModali18nStrings;\n\n themes: CodeEditorProps.AvailableThemes;\n defaultTheme: CodeEditorProps.Theme;\n\n onConfirm: (preferences: CodeEditorProps.Preferences) => void;\n onDismiss: () => void;\n}\n\nfunction filterThemes(allThemes: ReadonlyArray<SelectProps.Option>, available: ReadonlyArray<string>) {\n return allThemes.filter(theme => available.indexOf(theme.value!) > -1);\n}\n\nexport default (props: PreferencesModalProps) => {\n const [wrapLines, setWrapLines] = useState<boolean>(props.preferences?.wrapLines ?? true);\n const [theme, setTheme] = useState<CodeEditorProps.Theme>(props.preferences?.theme ?? props.defaultTheme);\n const themeOptions = [\n {\n label: props.i18nStrings.lightThemes,\n options: filterThemes(LightThemes, props.themes.light),\n },\n {\n label: props.i18nStrings.darkThemes,\n options: filterThemes(DarkThemes, props.themes.dark),\n },\n ];\n const [selectedThemeOption, setSelectedThemeOption] = useState<SelectProps.Option>(\n () => [...LightThemes, ...DarkThemes].filter(t => t.value === theme)[0]\n );\n\n const onThemeSelected = (e: NonCancelableCustomEvent<SelectProps.ChangeDetail>) => {\n setTheme(e.detail.selectedOption.value as CodeEditorProps.Theme);\n setSelectedThemeOption(e.detail.selectedOption);\n };\n\n return (\n <InternalModal\n size=\"medium\"\n visible={true}\n getModalRoot={props.getModalRoot}\n removeModalRoot={props.removeModalRoot}\n onDismiss={props.onDismiss}\n header={props.i18nStrings.header}\n closeAriaLabel={props.i18nStrings.cancel}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton onClick={props.onDismiss}>{props.i18nStrings.cancel}</InternalButton>\n <InternalButton onClick={() => props.onConfirm({ wrapLines, theme })} variant=\"primary\">\n {props.i18nStrings.confirm}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n >\n <InternalColumnLayout columns={2} variant=\"text-grid\">\n <div>\n <InternalCheckbox checked={wrapLines} onChange={e => setWrapLines(e.detail.checked)}>\n {props.i18nStrings.wrapLines}\n </InternalCheckbox>\n </div>\n <div>\n <InternalFormField label={props.i18nStrings.theme}>\n <InternalSelect\n selectedOption={selectedThemeOption}\n onChange={onThemeSelected}\n options={themeOptions}\n filteringType=\"auto\"\n filteringAriaLabel={props.i18nStrings.themeFilteringAriaLabel}\n filteringClearAriaLabel={props.i18nStrings.themeFilteringClearAriaLabel}\n filteringPlaceholder={props.i18nStrings.themeFilteringPlaceholder}\n />\n </InternalFormField>\n </div>\n </InternalColumnLayout>\n </InternalModal>\n );\n};\n"]}
1
+ {"version":3,"file":"preferences-modal.js","sourceRoot":"","sources":["../../../src/code-editor/preferences-modal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAEvD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AA+BvD,SAAS,YAAY,CAAC,SAA4C,EAAE,SAAgC;IAClG,OAAO,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,eAAe,CAAC,KAA4B,EAAE,EAAE;;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAU,MAAA,MAAA,KAAK,CAAC,WAAW,0CAAE,SAAS,mCAAI,IAAI,CAAC,CAAC;IAC1F,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAwB,MAAA,MAAA,KAAK,CAAC,WAAW,0CAAE,KAAK,mCAAI,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AAC,SAAS,IAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAkB;gBACrF,oBAAC,cAAc,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAC,SAAS,IACpF,KAAK,CAAC,WAAW,CAAC,OAAO,CACX,CACI,CACX;QAGhB,oBAAC,oBAAoB,IAAC,OAAO,EAAE,CAAC,EAAE,OAAO,EAAC,WAAW;YACnD;gBACE,oBAAC,gBAAgB,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAChF,KAAK,CAAC,WAAW,CAAC,SAAS,CACX,CACf;YACN;gBACE,oBAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK;oBAC/C,oBAAC,cAAc,IACb,cAAc,EAAE,mBAAmB,EACnC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,YAAY,EACrB,aAAa,EAAC,MAAM,EACpB,kBAAkB,EAAE,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAC7D,uBAAuB,EAAE,KAAK,CAAC,WAAW,CAAC,4BAA4B,EACvE,oBAAoB,EAAE,KAAK,CAAC,WAAW,CAAC,yBAAyB,GACjE,CACgB,CAChB,CACe,CACT,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport InternalBox from '../box/internal';\nimport { InternalButton } from '../button/internal';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport { NonCancelableCustomEvent } from '../internal/events';\nimport InternalModal from '../modal/internal';\nimport { SelectProps } from '../select/interfaces';\nimport InternalSelect from '../select/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { DarkThemes, LightThemes } from './ace-themes';\nimport { CodeEditorProps } from './interfaces';\n\ninterface PreferencesModali18nStrings {\n header?: string;\n cancel?: string;\n confirm?: string;\n close?: string;\n wrapLines?: string;\n theme?: string;\n lightThemes?: string;\n darkThemes?: string;\n themeFilteringPlaceholder?: string;\n themeFilteringAriaLabel?: string;\n themeFilteringClearAriaLabel?: string;\n}\n\ninterface PreferencesModalProps {\n preferences?: Partial<CodeEditorProps.Preferences>;\n getModalRoot: CodeEditorProps['getModalRoot'];\n removeModalRoot: CodeEditorProps['removeModalRoot'];\n\n i18nStrings: PreferencesModali18nStrings;\n\n themes: CodeEditorProps.AvailableThemes;\n defaultTheme: CodeEditorProps.Theme;\n\n onConfirm: (preferences: CodeEditorProps.Preferences) => void;\n onDismiss: () => void;\n}\n\nfunction filterThemes(allThemes: ReadonlyArray<SelectProps.Option>, available: ReadonlyArray<string>) {\n return allThemes.filter(theme => available.indexOf(theme.value!) > -1);\n}\n\nexport default (props: PreferencesModalProps) => {\n const [wrapLines, setWrapLines] = useState<boolean>(props.preferences?.wrapLines ?? true);\n const [theme, setTheme] = useState<CodeEditorProps.Theme>(props.preferences?.theme ?? props.defaultTheme);\n const themeOptions = [\n {\n label: props.i18nStrings.lightThemes,\n options: filterThemes(LightThemes, props.themes.light),\n },\n {\n label: props.i18nStrings.darkThemes,\n options: filterThemes(DarkThemes, props.themes.dark),\n },\n ];\n const [selectedThemeOption, setSelectedThemeOption] = useState<SelectProps.Option>(\n () => [...LightThemes, ...DarkThemes].filter(t => t.value === theme)[0]\n );\n\n const onThemeSelected = (e: NonCancelableCustomEvent<SelectProps.ChangeDetail>) => {\n setTheme(e.detail.selectedOption.value as CodeEditorProps.Theme);\n setSelectedThemeOption(e.detail.selectedOption);\n };\n\n return (\n <InternalModal\n size=\"medium\"\n visible={true}\n getModalRoot={props.getModalRoot}\n removeModalRoot={props.removeModalRoot}\n onDismiss={props.onDismiss}\n header={props.i18nStrings.header}\n closeAriaLabel={props.i18nStrings.close}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton onClick={props.onDismiss}>{props.i18nStrings.cancel}</InternalButton>\n <InternalButton onClick={() => props.onConfirm({ wrapLines, theme })} variant=\"primary\">\n {props.i18nStrings.confirm}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n >\n <InternalColumnLayout columns={2} variant=\"text-grid\">\n <div>\n <InternalCheckbox checked={wrapLines} onChange={e => setWrapLines(e.detail.checked)}>\n {props.i18nStrings.wrapLines}\n </InternalCheckbox>\n </div>\n <div>\n <InternalFormField label={props.i18nStrings.theme}>\n <InternalSelect\n selectedOption={selectedThemeOption}\n onChange={onThemeSelected}\n options={themeOptions}\n filteringType=\"auto\"\n filteringAriaLabel={props.i18nStrings.themeFilteringAriaLabel}\n filteringClearAriaLabel={props.i18nStrings.themeFilteringClearAriaLabel}\n filteringPlaceholder={props.i18nStrings.themeFilteringPlaceholder}\n />\n </InternalFormField>\n </div>\n </InternalColumnLayout>\n </InternalModal>\n );\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { CollectionPreferencesProps } from './interfaces';
3
3
  export { CollectionPreferencesProps };
4
- export default function CollectionPreferences({ title, confirmLabel, cancelLabel, disabled, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference, stickyColumnsPreference, preferences, customPreference, getModalRoot, removeModalRoot, contentBefore, ...rest }: CollectionPreferencesProps): JSX.Element;
4
+ export default function CollectionPreferences({ title, confirmLabel, cancelLabel, closeAriaLabel, disabled, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference, stickyColumnsPreference, preferences, customPreference, getModalRoot, removeModalRoot, contentBefore, ...rest }: CollectionPreferencesProps): JSX.Element;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAiB1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,0BAA0B,eA+N5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAiB1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,0BAA0B,eA+N5B"}
@@ -27,7 +27,7 @@ import styles from './styles.css.js';
27
27
  const componentName = 'CollectionPreferences';
28
28
  export default function CollectionPreferences(_a) {
29
29
  var _b;
30
- var { title, confirmLabel, cancelLabel, disabled = false, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference, stickyColumnsPreference, preferences, customPreference, getModalRoot, removeModalRoot, contentBefore } = _a, rest = __rest(_a, ["title", "confirmLabel", "cancelLabel", "disabled", "onConfirm", "onCancel", "visibleContentPreference", "contentDisplayPreference", "pageSizePreference", "wrapLinesPreference", "stripedRowsPreference", "contentDensityPreference", "stickyColumnsPreference", "preferences", "customPreference", "getModalRoot", "removeModalRoot", "contentBefore"]);
30
+ var { title, confirmLabel, cancelLabel, closeAriaLabel, disabled = false, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference, stickyColumnsPreference, preferences, customPreference, getModalRoot, removeModalRoot, contentBefore } = _a, rest = __rest(_a, ["title", "confirmLabel", "cancelLabel", "closeAriaLabel", "disabled", "onConfirm", "onCancel", "visibleContentPreference", "contentDisplayPreference", "pageSizePreference", "wrapLinesPreference", "stripedRowsPreference", "contentDensityPreference", "stickyColumnsPreference", "preferences", "customPreference", "getModalRoot", "removeModalRoot", "contentBefore"]);
31
31
  const parentMetadata = useContext(CollectionPreferencesMetadata);
32
32
  const { __internalRootRef } = useBaseComponent('CollectionPreferences', {
33
33
  props: {},
@@ -102,7 +102,7 @@ export default function CollectionPreferences(_a) {
102
102
  !disabled && modalVisible && (React.createElement(InternalModal, { className: styles['modal-root'], visible: true, getModalRoot: getModalRoot, removeModalRoot: removeModalRoot, header: i18n('title', title), referrerId: referrerId, footer: React.createElement(InternalBox, { float: "right" },
103
103
  React.createElement(InternalSpaceBetween, { direction: "horizontal", size: "xs" },
104
104
  React.createElement(InternalButton, { className: styles['cancel-button'], variant: "link", formAction: "none", onClick: onCancelListener, analyticsAction: "cancel" }, i18n('cancelLabel', cancelLabel)),
105
- React.createElement(InternalButton, { className: styles['confirm-button'], variant: "primary", formAction: "none", onClick: onConfirmListener, analyticsAction: "confirm" }, i18n('confirmLabel', confirmLabel)))), closeAriaLabel: cancelLabel, size: hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium', onDismiss: onCancelListener },
105
+ React.createElement(InternalButton, { className: styles['confirm-button'], variant: "primary", formAction: "none", onClick: onConfirmListener, analyticsAction: "confirm" }, i18n('confirmLabel', confirmLabel)))), closeAriaLabel: closeAriaLabel || cancelLabel, size: hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium', onDismiss: onCancelListener },
106
106
  React.createElement("div", { className: styles['content-before'] }, contentBefore),
107
107
  React.createElement(ModalContentLayout, { left: hasContentOnTheLeft && (React.createElement(InternalSpaceBetween, { size: "l" },
108
108
  pageSizePreference && (React.createElement(PageSizePreference, Object.assign({ value: temporaryPreferences.pageSize }, pageSizePreference, { onChange: pageSize => onChange({ pageSize }) }))),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAC5G,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,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AAC,CAAC,CACzB,oBAAC,wBAAwB,oBACnB,wBAAwB,IAC5B,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAC1C,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH,CAAC,CAAC,CAAC,CACF,wBAAwB,IAAI,CAC1B,oBAAC,wBAAwB,kBACvB,KAAK,EAAE,oBAAoB,CAAC,cAAc,IACtC,wBAAwB,IAC5B,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACF,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { CollectionPreferencesMetadata } from '../internal/context/collection-preferences-metadata-context';\nimport { useTableComponentsContext } from '../internal/context/table-component-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { getComponentAnalyticsMetadata } from './analytics-metadata/utils';\nimport ContentDisplayPreference from './content-display';\nimport { CollectionPreferencesProps } from './interfaces';\nimport {\n ContentDensityPreference,\n copyPreferences,\n CustomPreference,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n StickyColumnsPreference,\n StripedRowsPreference,\n WrapLinesPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n preferences,\n customPreference,\n getModalRoot,\n removeModalRoot,\n contentBefore,\n ...rest\n}: CollectionPreferencesProps) {\n const parentMetadata = useContext(CollectionPreferencesMetadata);\n const { __internalRootRef } = useBaseComponent('CollectionPreferences', {\n props: {},\n metadata: {\n ...parentMetadata,\n hasStripedRowsPreference: !!stripedRowsPreference,\n hasVisibleContentPreference: !!visibleContentPreference,\n hasContentDisplayPreference: !!contentDisplayPreference,\n hasContentDensityPreference: !!contentDensityPreference,\n hasStickyColumnsPreference: !!stickyColumnsPreference,\n hasContentDisplayColumnFiltering: !!contentDisplayPreference?.enableColumnFiltering,\n visibleContentOptionsCount: visibleContentPreference?.options?.length,\n },\n });\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n\n const i18n = useInternalI18n('collection-preferences');\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n const referrerId = useUniqueId();\n const tableComponentContext = useTableComponentsContext();\n\n useEffect(() => {\n if (tableComponentContext?.preferencesRef?.current) {\n tableComponentContext.preferencesRef.current.pageSize = preferences?.pageSize;\n\n // When both are used contentDisplayPreference takes preference and so we always prefer to use this as our visible columns if available\n if (preferences?.contentDisplay) {\n tableComponentContext.preferencesRef.current.visibleColumns = preferences?.contentDisplay\n .filter(column => column.visible)\n .map(column => column.id);\n } else if (preferences?.visibleContent) {\n tableComponentContext.preferencesRef.current.visibleColumns = [...preferences.visibleContent];\n }\n\n return () => {\n delete tableComponentContext.preferencesRef.current?.pageSize;\n delete tableComponentContext.preferencesRef.current?.visibleColumns;\n };\n }\n }, [\n tableComponentContext?.preferencesRef,\n preferences?.contentDisplay,\n preferences?.visibleContent,\n preferences?.pageSize,\n ]);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <div\n id={referrerId}\n {...getAnalyticsMetadataAttribute({ component: getComponentAnalyticsMetadata(disabled, preferences) })}\n >\n <InternalButton\n ref={triggerRef}\n className={clsx(styles['trigger-button'], analyticsSelectors['trigger-button'])}\n disabled={disabled}\n ariaLabel={i18n('title', title)}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n analyticsAction=\"open\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n getModalRoot={getModalRoot}\n removeModalRoot={removeModalRoot}\n header={i18n('title', title)}\n referrerId={referrerId}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n analyticsAction=\"cancel\"\n >\n {i18n('cancelLabel', cancelLabel)}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n analyticsAction=\"confirm\"\n >\n {i18n('confirmLabel', confirmLabel)}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n {/* Content before */}\n <div className={styles['content-before']}>{contentBefore}</div>\n\n {/* Preferences content */}\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collection-preferences/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAC5G,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE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gBAAgB,EAClC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,GACxC,CACH,CACoB,CACxB,EAEH,KAAK,EACH,wBAAwB,CAAC,CAAC,CAAC,CACzB,oBAAC,wBAAwB,oBACnB,wBAAwB,IAC5B,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAC1C,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH,CAAC,CAAC,CAAC,CACF,wBAAwB,IAAI,CAC1B,oBAAC,wBAAwB,kBACvB,KAAK,EAAE,oBAAoB,CAAC,cAAc,IACtC,wBAAwB,IAC5B,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACF,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { CollectionPreferencesMetadata } from '../internal/context/collection-preferences-metadata-context';\nimport { useTableComponentsContext } from '../internal/context/table-component-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { getComponentAnalyticsMetadata } from './analytics-metadata/utils';\nimport ContentDisplayPreference from './content-display';\nimport { CollectionPreferencesProps } from './interfaces';\nimport {\n ContentDensityPreference,\n copyPreferences,\n CustomPreference,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n StickyColumnsPreference,\n StripedRowsPreference,\n WrapLinesPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n closeAriaLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n preferences,\n customPreference,\n getModalRoot,\n removeModalRoot,\n contentBefore,\n ...rest\n}: CollectionPreferencesProps) {\n const parentMetadata = useContext(CollectionPreferencesMetadata);\n const { __internalRootRef } = useBaseComponent('CollectionPreferences', {\n props: {},\n metadata: {\n ...parentMetadata,\n hasStripedRowsPreference: !!stripedRowsPreference,\n hasVisibleContentPreference: !!visibleContentPreference,\n hasContentDisplayPreference: !!contentDisplayPreference,\n hasContentDensityPreference: !!contentDensityPreference,\n hasStickyColumnsPreference: !!stickyColumnsPreference,\n hasContentDisplayColumnFiltering: !!contentDisplayPreference?.enableColumnFiltering,\n visibleContentOptionsCount: visibleContentPreference?.options?.length,\n },\n });\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n\n const i18n = useInternalI18n('collection-preferences');\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n const referrerId = useUniqueId();\n const tableComponentContext = useTableComponentsContext();\n\n useEffect(() => {\n if (tableComponentContext?.preferencesRef?.current) {\n tableComponentContext.preferencesRef.current.pageSize = preferences?.pageSize;\n\n // When both are used contentDisplayPreference takes preference and so we always prefer to use this as our visible columns if available\n if (preferences?.contentDisplay) {\n tableComponentContext.preferencesRef.current.visibleColumns = preferences?.contentDisplay\n .filter(column => column.visible)\n .map(column => column.id);\n } else if (preferences?.visibleContent) {\n tableComponentContext.preferencesRef.current.visibleColumns = [...preferences.visibleContent];\n }\n\n return () => {\n delete tableComponentContext.preferencesRef.current?.pageSize;\n delete tableComponentContext.preferencesRef.current?.visibleColumns;\n };\n }\n }, [\n tableComponentContext?.preferencesRef,\n preferences?.contentDisplay,\n preferences?.visibleContent,\n preferences?.pageSize,\n ]);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <div\n id={referrerId}\n {...getAnalyticsMetadataAttribute({ component: getComponentAnalyticsMetadata(disabled, preferences) })}\n >\n <InternalButton\n ref={triggerRef}\n className={clsx(styles['trigger-button'], analyticsSelectors['trigger-button'])}\n disabled={disabled}\n ariaLabel={i18n('title', title)}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n analyticsAction=\"open\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n getModalRoot={getModalRoot}\n removeModalRoot={removeModalRoot}\n header={i18n('title', title)}\n referrerId={referrerId}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n analyticsAction=\"cancel\"\n >\n {i18n('cancelLabel', cancelLabel)}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n analyticsAction=\"confirm\"\n >\n {i18n('confirmLabel', confirmLabel)}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={closeAriaLabel || cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n {/* Content before */}\n <div className={styles['content-before']}>{contentBefore}</div>\n\n {/* Preferences content */}\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
@@ -18,6 +18,11 @@ export interface CollectionPreferencesProps<CustomPreferenceType = any> extends
18
18
  * @i18n
19
19
  */
20
20
  cancelLabel?: string;
21
+ /**
22
+ * Adds an aria-label to the close button, for accessibility.
23
+ * @i18n
24
+ */
25
+ closeAriaLabel?: string;
21
26
  /**
22
27
  * Determines whether the preferences trigger button is disabled.
23
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,W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U,sBAAsB;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,aAAa,CAAC;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ;IACD,MAAM,WAAW,uBAAuB;QACtC,YAAY,CAAC,EAAE,sBAAsB,CAAC;QACtC,WAAW,CAAC,EAAE,sBAAsB,CAAC;KACtC;IAED,MAAM,WAAW,mCAAmC;QAClD;;;WAGG;QACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;QAEpC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAElC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;QAErD;;;WAGG;QACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;QAEpC;;;WAGG;QACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;KACzC;;CACF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,0BAA0B,CAAC,oBAAoB,GAAG,GAAG,CAAE,SAAQ,kBAAkB,EAAE,cAAc;IAChH;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;;OAaG;IACH,kBAAk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,mCAAmC;QAClD;;;WAGG;QACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;QAEpC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAElC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;QAErD;;;WAGG;QACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;QAEpC;;;WAGG;QACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;KACzC;;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { BaseModalProps } from '../modal/interfaces';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps, BaseModalProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n * @i18n\n */\n title?: string;\n /**\n * Label of the confirm button in the modal footer.\n * @i18n\n */\n confirmLabel?: string;\n /**\n * Label of the cancel button in the modal footer.\n * @i18n\n */\n cancelLabel?: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n * @i18n\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n * @i18n\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n * @i18n\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n * @i18n\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the sticky columns preference that can be set for both left and right columns.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for each radio group.\n * - `description` (string) - Specifies the text displayed below each radio group label.\n *\n * You must set the current value in the `preferences.stickyColumns` property.\n */\n stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;\n /**\n * Configures the built-in content display preference for order and visibility of the table columns.\n *\n * Recommended for table and not applicable for cards.\n *\n * Cannot be used together with `visibleContentPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `description` (string) - Specifies the description displayed below the title.\n * - `options` - Specifies an array of options for reordering and visible content selection.\n * - `enableColumnFiltering` (boolean) - Adds a columns filter.\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an option is picked.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * Each option contains the following:\n * - `id` (string) - Corresponds to a table column `id`.\n * - `label` (string) - Specifies a short description of the content.\n * - `alwaysVisible` (boolean) - (Optional) Determines whether the visibility is always on and therefore cannot be toggled. This is set to `false` by default.\n *\n * You must provide an ordered list of the items to display in the `preferences.contentDisplay` property.\n * @i18n\n */\n contentDisplayPreference?: CollectionPreferencesProps.ContentDisplayPreference;\n /**\n * Configures the built-in visible sections preference for cards or visible columns for table.\n *\n * Recommended for cards. For table use `contentDisplayPreference` instead.\n *\n * Cannot be used together with `contentDisplayPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an array of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n *\n * **Deprecated** in table, replaced by `contentDisplayPreference`.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) Specifies the list of content and their visibility. The order of the elements influences the display.\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display. If the `contentDisplay` property is set, this property is ignored.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `contentDensity` (boolean) - (Optional) The current content density preference value. Available only if you specify the `contentDensityPreference` property.\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) The ordered list of table columns and their visibility. Available only if you specify the `contentDisplayPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `stickyColumns` (CollectionPreferencesProps.StickyColumns) - (Optional) The current sticky columns preference value. Available only if you specify the `stickyColumnsPreference` property.\n * - `stripedRows` (boolean) - (Optional) The current striped rows preference value. Available only if you specify the `stripedRowsPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n /**\n * Content displayed before the preferences. Use it to display additional information relating to the preferences.\n */\n contentBefore?: React.ReactNode;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n stickyColumns?: StickyColumns;\n contentDisplay?: ReadonlyArray<ContentDisplayItem>;\n custom?: CustomPreferenceType;\n }\n\n export interface ContentDisplayPreference {\n title?: string;\n description?: string;\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n enableColumnFiltering?: boolean;\n i18nStrings?: ContentDisplayPreferenceI18nStrings;\n }\n\n export interface ContentDisplayOption {\n id: string;\n label: string;\n alwaysVisible?: boolean;\n }\n\n export interface ContentDisplayItem {\n id: string;\n visible: boolean;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title?: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label?: string;\n }\n\n export interface WrapLinesPreference {\n label?: string;\n description?: string;\n }\n\n export interface StripedRowsPreference {\n label?: string;\n description?: string;\n }\n\n export interface ContentDensityPreference {\n label?: string;\n description?: string;\n }\n\n interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n interface StickyColumnPreference {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n }\n export interface StickyColumnsPreference {\n firstColumns?: StickyColumnPreference;\n lastColumns?: StickyColumnPreference;\n }\n\n export interface ContentDisplayPreferenceI18nStrings {\n /**\n * Specifies a `placeholder` for the filtering input.\n * @i18n\n */\n columnFilteringPlaceholder?: string;\n\n /**\n * Specifies an `aria-label` for the filtering input.\n * @i18n\n */\n columnFilteringAriaLabel?: string;\n\n /**\n * Specifies the `count text` for the filtering input to reflect matches found.\n * @i18n\n */\n columnFilteringCountText?: (count: number) => string;\n\n /**\n * Specifies the `no match` text for when there are no matching options in the filtering.\n * @i18n\n */\n columnFilteringNoMatchText?: string;\n\n /**\n * Specifies both an `aria-label` for the clear filtering input action and the `clear filter button` text for the no match button.\n * @i18n\n */\n columnFilteringClearFilterText?: string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { BaseModalProps } from '../modal/interfaces';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps, BaseModalProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n * @i18n\n */\n title?: string;\n /**\n * Label of the confirm button in the modal footer.\n * @i18n\n */\n confirmLabel?: string;\n /**\n * Label of the cancel button in the modal footer.\n * @i18n\n */\n cancelLabel?: string;\n /**\n * Adds an aria-label to the close button, for accessibility.\n * @i18n\n */\n closeAriaLabel?: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n * @i18n\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n * @i18n\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n * @i18n\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n * @i18n\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the sticky columns preference that can be set for both left and right columns.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for each radio group.\n * - `description` (string) - Specifies the text displayed below each radio group label.\n *\n * You must set the current value in the `preferences.stickyColumns` property.\n */\n stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;\n /**\n * Configures the built-in content display preference for order and visibility of the table columns.\n *\n * Recommended for table and not applicable for cards.\n *\n * Cannot be used together with `visibleContentPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `description` (string) - Specifies the description displayed below the title.\n * - `options` - Specifies an array of options for reordering and visible content selection.\n * - `enableColumnFiltering` (boolean) - Adds a columns filter.\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an option is picked.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * Each option contains the following:\n * - `id` (string) - Corresponds to a table column `id`.\n * - `label` (string) - Specifies a short description of the content.\n * - `alwaysVisible` (boolean) - (Optional) Determines whether the visibility is always on and therefore cannot be toggled. This is set to `false` by default.\n *\n * You must provide an ordered list of the items to display in the `preferences.contentDisplay` property.\n * @i18n\n */\n contentDisplayPreference?: CollectionPreferencesProps.ContentDisplayPreference;\n /**\n * Configures the built-in visible sections preference for cards or visible columns for table.\n *\n * Recommended for cards. For table use `contentDisplayPreference` instead.\n *\n * Cannot be used together with `contentDisplayPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an array of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n *\n * **Deprecated** in table, replaced by `contentDisplayPreference`.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) Specifies the list of content and their visibility. The order of the elements influences the display.\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display. If the `contentDisplay` property is set, this property is ignored.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `contentDensity` (boolean) - (Optional) The current content density preference value. Available only if you specify the `contentDensityPreference` property.\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) The ordered list of table columns and their visibility. Available only if you specify the `contentDisplayPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `stickyColumns` (CollectionPreferencesProps.StickyColumns) - (Optional) The current sticky columns preference value. Available only if you specify the `stickyColumnsPreference` property.\n * - `stripedRows` (boolean) - (Optional) The current striped rows preference value. Available only if you specify the `stripedRowsPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n /**\n * Content displayed before the preferences. Use it to display additional information relating to the preferences.\n */\n contentBefore?: React.ReactNode;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n stickyColumns?: StickyColumns;\n contentDisplay?: ReadonlyArray<ContentDisplayItem>;\n custom?: CustomPreferenceType;\n }\n\n export interface ContentDisplayPreference {\n title?: string;\n description?: string;\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n enableColumnFiltering?: boolean;\n i18nStrings?: ContentDisplayPreferenceI18nStrings;\n }\n\n export interface ContentDisplayOption {\n id: string;\n label: string;\n alwaysVisible?: boolean;\n }\n\n export interface ContentDisplayItem {\n id: string;\n visible: boolean;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title?: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label?: string;\n }\n\n export interface WrapLinesPreference {\n label?: string;\n description?: string;\n }\n\n export interface StripedRowsPreference {\n label?: string;\n description?: string;\n }\n\n export interface ContentDensityPreference {\n label?: string;\n description?: string;\n }\n\n interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n interface StickyColumnPreference {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n }\n export interface StickyColumnsPreference {\n firstColumns?: StickyColumnPreference;\n lastColumns?: StickyColumnPreference;\n }\n\n export interface ContentDisplayPreferenceI18nStrings {\n /**\n * Specifies a `placeholder` for the filtering input.\n * @i18n\n */\n columnFilteringPlaceholder?: string;\n\n /**\n * Specifies an `aria-label` for the filtering input.\n * @i18n\n */\n columnFilteringAriaLabel?: string;\n\n /**\n * Specifies the `count text` for the filtering input to reflect matches found.\n * @i18n\n */\n columnFilteringCountText?: (count: number) => string;\n\n /**\n * Specifies the `no match` text for when there are no matching options in the filtering.\n * @i18n\n */\n columnFilteringNoMatchText?: string;\n\n /**\n * Specifies both an `aria-label` for the clear filtering input action and the `clear filter button` text for the no match button.\n * @i18n\n */\n columnFilteringClearFilterText?: string;\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (727c496d)";
2
+ export var PACKAGE_VERSION = "3.0.0 (894b79b9)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (727c496d)",
3
+ "PACKAGE_VERSION": "3.0.0 (894b79b9)",
4
4
  "THEME": "open-source-visual-refresh",
5
5
  "ALWAYS_VISUAL_REFRESH": true
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "727c496d5df702d063f05f28aae92cc763d7c723"
2
+ "commit": "894b79b980721dfe473688157944b6e94b6428ee"
3
3
  }
package/package.json CHANGED
@@ -149,7 +149,7 @@
149
149
  "./internal/base-component/index.js",
150
150
  "./internal/base-component/styles.css.js"
151
151
  ],
152
- "version": "3.0.975",
152
+ "version": "3.0.976",
153
153
  "repository": {
154
154
  "type": "git",
155
155
  "url": "https://github.com/cloudscape-design/components.git"
@@ -1 +1 @@
1
- {"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/split-panel/implementation.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAKlF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC,eAAe,EAAE,uBAAuB,GAAG,eAAe,CAAC,GAClH,0BAA0B,CAAC;AAE7B,wBAAgB,wBAAwB,CAAC,EACvC,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,qBAAqB,EACrB,aAAa,EACb,WAAgB,EAChB,GAAG,SAAS,EACb,EAAE,6BAA6B,eA+N/B;AAED,eAAO,MAAM,0BAA0B,2FAAsD,CAAC"}
1
+ {"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/split-panel/implementation.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAKlF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC,eAAe,EAAE,uBAAuB,GAAG,eAAe,CAAC,GAClH,0BAA0B,CAAC;AAE7B,wBAAgB,wBAAwB,CAAC,EACvC,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,qBAAqB,EACrB,aAAa,EACb,WAAgB,EAChB,GAAG,SAAS,EACb,EAAE,6BAA6B,eAgO/B;AAED,eAAO,MAAM,0BAA0B,2FAAsD,CAAC"}
@@ -101,6 +101,7 @@ export function SplitPanelImplementation(_a) {
101
101
  header: i18nStrings.preferencesTitle,
102
102
  confirm: i18nStrings.preferencesConfirm,
103
103
  cancel: i18nStrings.preferencesCancel,
104
+ close: i18nStrings.preferencesCloseAriaLabel,
104
105
  positionLabel: i18nStrings.preferencesPositionLabel,
105
106
  positionDescription: i18nStrings.preferencesPositionDescription,
106
107
  positionBottom: i18nStrings.preferencesPositionBottom,
@@ -1 +1 @@
1
- {"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/split-panel/implementation.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAE,MAA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EACpB,WAAW,EAAE;gBACX,MAAM,EAAE,WAAW,CAAC,gBAAgB;gBACpC,OAAO,EAAE,WAAW,CAAC,kBAAkB;gBACvC,MAAM,EAAE,WAAW,CAAC,iBAAiB;gBACrC,aAAa,EAAE,WAAW,CAAC,wBAAwB;gBACnD,mBAAmB,EAAE,WAAW,CAAC,8BAA8B;gBAC/D,cAAc,EAAE,WAAW,CAAC,yBAAyB;gBACrD,YAAY,EAAE,WAAW,CAAC,uBAAuB;aAClD,EACD,SAAS,EAAE,WAAW,CAAC,EAAE;gBACvB,mBAAmB,mBAAM,WAAW,EAAG,CAAC;gBACxC,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,EACD,SAAS,EAAE,GAAG,EAAE;gBACd,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,GACD,CACH,CACA,CACJ,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC,wBAAwB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useAppLayoutToolbarDesignEnabled } from '../app-layout/utils/feature-flags';\nimport { SizeControlProps } from '../app-layout/utils/interfaces';\nimport { useKeyboardEvents } from '../app-layout/utils/use-keyboard-events';\nimport { usePointerEvents } from '../app-layout/utils/use-pointer-events';\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport PanelResizeHandle from '../internal/components/panel-resize-handle';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport globalVars from '../internal/styles/global-vars';\nimport { SomeRequired } from '../internal/types';\nimport { createWidgetizedComponent } from '../internal/widgets';\nimport { SplitPanelContentBottom } from './bottom';\nimport { SplitPanelProps } from './interfaces';\nimport PreferencesModal from './preferences-modal';\nimport { SplitPanelContentSide } from './side';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport type SplitPanelImplementationProps = SomeRequired<SplitPanelProps, 'hidePreferencesButton' | 'closeBehavior'> &\n InternalBaseComponentProps;\n\nexport function SplitPanelImplementation({\n __internalRootRef,\n header,\n children,\n hidePreferencesButton,\n closeBehavior,\n i18nStrings = {},\n ...restProps\n}: SplitPanelImplementationProps) {\n const isRefresh = useVisualRefresh();\n const isToolbar = useAppLayoutToolbarDesignEnabled();\n\n const {\n position,\n topOffset,\n bottomOffset,\n rightOffset,\n contentWidthStyles,\n isOpen,\n isForcedPosition,\n onPreferencesChange,\n onResize,\n onToggle,\n size,\n relativeSize,\n setSplitPanelToggle,\n refs,\n animationDisabled,\n } = useSplitPanelContext();\n const baseProps = getBaseProps(restProps);\n const [isPreferencesOpen, setPreferencesOpen] = useState<boolean>(false);\n\n const appLayoutMaxWidth = isRefresh && position === 'bottom' ? contentWidthStyles : undefined;\n\n const openButtonAriaLabel = i18nStrings.openButtonAriaLabel;\n useEffect(() => {\n setSplitPanelToggle({ displayed: closeBehavior === 'collapse', ariaLabel: openButtonAriaLabel });\n\n return () => {\n setSplitPanelToggle({ displayed: false, ariaLabel: undefined });\n };\n }, [setSplitPanelToggle, openButtonAriaLabel, closeBehavior]);\n\n const splitPanelRefObject = useRef<HTMLDivElement>(null);\n\n const sizeControlProps: SizeControlProps = {\n position,\n panelRef: splitPanelRefObject,\n handleRef: refs.slider,\n onResize,\n };\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const { onKeyDown, onDirectionClick } = useKeyboardEvents(sizeControlProps);\n\n const contentStyle = {\n [globalVars.stickyVerticalTopOffset]: topOffset,\n [globalVars.stickyVerticalBottomOffset]: bottomOffset,\n };\n\n const panelHeaderId = useUniqueId('split-panel-header');\n\n const wrappedHeader = (\n <div className={clsx(styles.header, isToolbar && styles['with-toolbar'])} style={appLayoutMaxWidth}>\n <h2 className={clsx(styles['header-text'], testUtilStyles['header-text'])} id={panelHeaderId}>\n {header}\n </h2>\n <div className={styles['header-actions']}>\n {!hidePreferencesButton && isOpen && (\n <>\n <InternalButton\n className={testUtilStyles['preferences-button']}\n iconName=\"settings\"\n variant=\"icon\"\n onClick={() => setPreferencesOpen(true)}\n formAction=\"none\"\n ariaLabel={i18nStrings.preferencesTitle}\n ref={refs.preferences}\n />\n <span className={styles.divider} />\n </>\n )}\n\n {isOpen ? (\n <InternalButton\n className={testUtilStyles['close-button']}\n iconName={\n isRefresh && closeBehavior === 'collapse' ? (position === 'side' ? 'angle-right' : 'angle-down') : 'close'\n }\n variant=\"icon\"\n onClick={onToggle}\n formAction=\"none\"\n ariaLabel={i18nStrings.closeButtonAriaLabel}\n ariaExpanded={isOpen}\n />\n ) : position === 'side' || closeBehavior === 'hide' ? null : (\n <InternalButton\n className={testUtilStyles['open-button']}\n iconName=\"angle-up\"\n variant=\"icon\"\n formAction=\"none\"\n ariaLabel={i18nStrings.openButtonAriaLabel}\n ref={refs.toggle}\n ariaExpanded={isOpen}\n />\n )}\n </div>\n </div>\n );\n\n const resizeHandle = (\n <PanelResizeHandle\n ref={refs.slider}\n className={testUtilStyles.slider}\n tooltipText={i18nStrings.resizeHandleTooltipText}\n ariaLabel={i18nStrings.resizeHandleAriaLabel}\n // Allows us to use the logical left/right keys to move the slider left/right,\n // but match aria keyboard behavior of using left/right to decrease/increase\n // the slider value.\n ariaValuenow={position === 'bottom' ? relativeSize : 100 - relativeSize}\n position={position}\n onKeyDown={onKeyDown}\n onPointerDown={onSliderPointerDown}\n onDirectionClick={onDirectionClick}\n />\n );\n\n /*\n This effect forces the browser to recalculate the layout\n whenever the split panel might have moved.\n\n This is needed as a workaround for a bug in Safari, which does\n not automatically calculate the new position of the split panel\n _content_ when the split panel moves.\n */\n useLayoutEffect(() => {\n const root = splitPanelRefObject.current;\n\n if (root) {\n const property = 'transform';\n const temporaryValue = 'translateZ(0)';\n\n const valueBefore = root.style[property];\n root.style[property] = temporaryValue;\n\n // This line forces the browser to recalculate the layout\n void root.offsetHeight;\n\n root.style[property] = valueBefore;\n }\n }, [rightOffset, __internalRootRef]);\n\n const mergedRef = useMergeRefs(splitPanelRefObject, __internalRootRef);\n\n if (closeBehavior === 'hide' && !isOpen && (animationDisabled || !isRefresh)) {\n return <></>;\n }\n\n /**\n * The AppLayout factor moved the circular buttons out of the\n * SplitPanel and into the Tools component. This conditional\n * is still needed for the early return to prevent execution\n * of the following code.\n */\n if (isRefresh && !isToolbar && !isOpen && position === 'side') {\n return <></>;\n }\n\n return (\n <>\n {position === 'side' && (\n <SplitPanelContentSide\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n openButtonAriaLabel={openButtonAriaLabel}\n toggleRef={refs.toggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n closeBehavior={closeBehavior}\n >\n {children}\n </SplitPanelContentSide>\n )}\n\n {position === 'bottom' && (\n <SplitPanelContentBottom\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n appLayoutMaxWidth={appLayoutMaxWidth}\n closeBehavior={closeBehavior}\n >\n {children}\n </SplitPanelContentBottom>\n )}\n {isPreferencesOpen && (\n <PreferencesModal\n visible={true}\n preferences={{ position }}\n disabledSidePosition={position === 'bottom' && isForcedPosition}\n isRefresh={isRefresh}\n i18nStrings={{\n header: i18nStrings.preferencesTitle,\n confirm: i18nStrings.preferencesConfirm,\n cancel: i18nStrings.preferencesCancel,\n positionLabel: i18nStrings.preferencesPositionLabel,\n positionDescription: i18nStrings.preferencesPositionDescription,\n positionBottom: i18nStrings.preferencesPositionBottom,\n positionSide: i18nStrings.preferencesPositionSide,\n }}\n onConfirm={preferences => {\n onPreferencesChange({ ...preferences });\n setPreferencesOpen(false);\n }}\n onDismiss={() => {\n setPreferencesOpen(false);\n }}\n />\n )}\n </>\n );\n}\n\nexport const createWidgetizedSplitPanel = createWidgetizedComponent(SplitPanelImplementation);\n"]}
1
+ {"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/split-panel/implementation.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,UAAU,MAAM,gCAAgC,CAAC;AAExD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,M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,wBAAwB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useAppLayoutToolbarDesignEnabled } from '../app-layout/utils/feature-flags';\nimport { SizeControlProps } from '../app-layout/utils/interfaces';\nimport { useKeyboardEvents } from '../app-layout/utils/use-keyboard-events';\nimport { usePointerEvents } from '../app-layout/utils/use-pointer-events';\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport PanelResizeHandle from '../internal/components/panel-resize-handle';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport globalVars from '../internal/styles/global-vars';\nimport { SomeRequired } from '../internal/types';\nimport { createWidgetizedComponent } from '../internal/widgets';\nimport { SplitPanelContentBottom } from './bottom';\nimport { SplitPanelProps } from './interfaces';\nimport PreferencesModal from './preferences-modal';\nimport { SplitPanelContentSide } from './side';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport type SplitPanelImplementationProps = SomeRequired<SplitPanelProps, 'hidePreferencesButton' | 'closeBehavior'> &\n InternalBaseComponentProps;\n\nexport function SplitPanelImplementation({\n __internalRootRef,\n header,\n children,\n hidePreferencesButton,\n closeBehavior,\n i18nStrings = {},\n ...restProps\n}: SplitPanelImplementationProps) {\n const isRefresh = useVisualRefresh();\n const isToolbar = useAppLayoutToolbarDesignEnabled();\n\n const {\n position,\n topOffset,\n bottomOffset,\n rightOffset,\n contentWidthStyles,\n isOpen,\n isForcedPosition,\n onPreferencesChange,\n onResize,\n onToggle,\n size,\n relativeSize,\n setSplitPanelToggle,\n refs,\n animationDisabled,\n } = useSplitPanelContext();\n const baseProps = getBaseProps(restProps);\n const [isPreferencesOpen, setPreferencesOpen] = useState<boolean>(false);\n\n const appLayoutMaxWidth = isRefresh && position === 'bottom' ? contentWidthStyles : undefined;\n\n const openButtonAriaLabel = i18nStrings.openButtonAriaLabel;\n useEffect(() => {\n setSplitPanelToggle({ displayed: closeBehavior === 'collapse', ariaLabel: openButtonAriaLabel });\n\n return () => {\n setSplitPanelToggle({ displayed: false, ariaLabel: undefined });\n };\n }, [setSplitPanelToggle, openButtonAriaLabel, closeBehavior]);\n\n const splitPanelRefObject = useRef<HTMLDivElement>(null);\n\n const sizeControlProps: SizeControlProps = {\n position,\n panelRef: splitPanelRefObject,\n handleRef: refs.slider,\n onResize,\n };\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const { onKeyDown, onDirectionClick } = useKeyboardEvents(sizeControlProps);\n\n const contentStyle = {\n [globalVars.stickyVerticalTopOffset]: topOffset,\n [globalVars.stickyVerticalBottomOffset]: bottomOffset,\n };\n\n const panelHeaderId = useUniqueId('split-panel-header');\n\n const wrappedHeader = (\n <div className={clsx(styles.header, isToolbar && styles['with-toolbar'])} style={appLayoutMaxWidth}>\n <h2 className={clsx(styles['header-text'], testUtilStyles['header-text'])} id={panelHeaderId}>\n {header}\n </h2>\n <div className={styles['header-actions']}>\n {!hidePreferencesButton && isOpen && (\n <>\n <InternalButton\n className={testUtilStyles['preferences-button']}\n iconName=\"settings\"\n variant=\"icon\"\n onClick={() => setPreferencesOpen(true)}\n formAction=\"none\"\n ariaLabel={i18nStrings.preferencesTitle}\n ref={refs.preferences}\n />\n <span className={styles.divider} />\n </>\n )}\n\n {isOpen ? (\n <InternalButton\n className={testUtilStyles['close-button']}\n iconName={\n isRefresh && closeBehavior === 'collapse' ? (position === 'side' ? 'angle-right' : 'angle-down') : 'close'\n }\n variant=\"icon\"\n onClick={onToggle}\n formAction=\"none\"\n ariaLabel={i18nStrings.closeButtonAriaLabel}\n ariaExpanded={isOpen}\n />\n ) : position === 'side' || closeBehavior === 'hide' ? null : (\n <InternalButton\n className={testUtilStyles['open-button']}\n iconName=\"angle-up\"\n variant=\"icon\"\n formAction=\"none\"\n ariaLabel={i18nStrings.openButtonAriaLabel}\n ref={refs.toggle}\n ariaExpanded={isOpen}\n />\n )}\n </div>\n </div>\n );\n\n const resizeHandle = (\n <PanelResizeHandle\n ref={refs.slider}\n className={testUtilStyles.slider}\n tooltipText={i18nStrings.resizeHandleTooltipText}\n ariaLabel={i18nStrings.resizeHandleAriaLabel}\n // Allows us to use the logical left/right keys to move the slider left/right,\n // but match aria keyboard behavior of using left/right to decrease/increase\n // the slider value.\n ariaValuenow={position === 'bottom' ? relativeSize : 100 - relativeSize}\n position={position}\n onKeyDown={onKeyDown}\n onPointerDown={onSliderPointerDown}\n onDirectionClick={onDirectionClick}\n />\n );\n\n /*\n This effect forces the browser to recalculate the layout\n whenever the split panel might have moved.\n\n This is needed as a workaround for a bug in Safari, which does\n not automatically calculate the new position of the split panel\n _content_ when the split panel moves.\n */\n useLayoutEffect(() => {\n const root = splitPanelRefObject.current;\n\n if (root) {\n const property = 'transform';\n const temporaryValue = 'translateZ(0)';\n\n const valueBefore = root.style[property];\n root.style[property] = temporaryValue;\n\n // This line forces the browser to recalculate the layout\n void root.offsetHeight;\n\n root.style[property] = valueBefore;\n }\n }, [rightOffset, __internalRootRef]);\n\n const mergedRef = useMergeRefs(splitPanelRefObject, __internalRootRef);\n\n if (closeBehavior === 'hide' && !isOpen && (animationDisabled || !isRefresh)) {\n return <></>;\n }\n\n /**\n * The AppLayout factor moved the circular buttons out of the\n * SplitPanel and into the Tools component. This conditional\n * is still needed for the early return to prevent execution\n * of the following code.\n */\n if (isRefresh && !isToolbar && !isOpen && position === 'side') {\n return <></>;\n }\n\n return (\n <>\n {position === 'side' && (\n <SplitPanelContentSide\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n openButtonAriaLabel={openButtonAriaLabel}\n toggleRef={refs.toggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n closeBehavior={closeBehavior}\n >\n {children}\n </SplitPanelContentSide>\n )}\n\n {position === 'bottom' && (\n <SplitPanelContentBottom\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n appLayoutMaxWidth={appLayoutMaxWidth}\n closeBehavior={closeBehavior}\n >\n {children}\n </SplitPanelContentBottom>\n )}\n {isPreferencesOpen && (\n <PreferencesModal\n visible={true}\n preferences={{ position }}\n disabledSidePosition={position === 'bottom' && isForcedPosition}\n isRefresh={isRefresh}\n i18nStrings={{\n header: i18nStrings.preferencesTitle,\n confirm: i18nStrings.preferencesConfirm,\n cancel: i18nStrings.preferencesCancel,\n close: i18nStrings.preferencesCloseAriaLabel,\n positionLabel: i18nStrings.preferencesPositionLabel,\n positionDescription: i18nStrings.preferencesPositionDescription,\n positionBottom: i18nStrings.preferencesPositionBottom,\n positionSide: i18nStrings.preferencesPositionSide,\n }}\n onConfirm={preferences => {\n onPreferencesChange({ ...preferences });\n setPreferencesOpen(false);\n }}\n onDismiss={() => {\n setPreferencesOpen(false);\n }}\n />\n )}\n </>\n );\n}\n\nexport const createWidgetizedSplitPanel = createWidgetizedComponent(SplitPanelImplementation);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/split-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,qBAA6B,EAC7B,aAA0B,EAC1B,WAAgB,EAChB,GAAG,SAAS,EACb,EAAE,eAAe,eAiCjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/split-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,qBAA6B,EAC7B,aAA0B,EAC1B,WAAgB,EAChB,GAAG,SAAS,EACb,EAAE,eAAe,eAqCjB"}
@@ -12,7 +12,8 @@ export default function SplitPanel(_a) {
12
12
  props: { closeBehavior, hidePreferencesButton },
13
13
  });
14
14
  const i18n = useInternalI18n('split-panel');
15
- return (React.createElement(SplitPanelInternal, Object.assign({}, restProps, { __internalRootRef: __internalRootRef, hidePreferencesButton: hidePreferencesButton, closeBehavior: closeBehavior, i18nStrings: Object.assign(Object.assign({}, i18nStrings), { closeButtonAriaLabel: i18n('i18nStrings.closeButtonAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.closeButtonAriaLabel), openButtonAriaLabel: i18n('i18nStrings.openButtonAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.openButtonAriaLabel), resizeHandleAriaLabel: i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.resizeHandleAriaLabel), resizeHandleTooltipText: i18n('i18nStrings.resizeHandleTooltipText', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.resizeHandleTooltipText), preferencesTitle: i18n('i18nStrings.preferencesTitle', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesTitle), preferencesConfirm: i18n('i18nStrings.preferencesConfirm', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesConfirm), preferencesCancel: i18n('i18nStrings.preferencesCancel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesCancel), preferencesPositionLabel: i18n('i18nStrings.preferencesPositionLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionLabel), preferencesPositionDescription: i18n('i18nStrings.preferencesPositionDescription', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionDescription), preferencesPositionBottom: i18n('i18nStrings.preferencesPositionBottom', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionBottom), preferencesPositionSide: i18n('i18nStrings.preferencesPositionSide', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionSide) }) })));
15
+ const i18nModal = useInternalI18n('modal');
16
+ return (React.createElement(SplitPanelInternal, Object.assign({}, restProps, { __internalRootRef: __internalRootRef, hidePreferencesButton: hidePreferencesButton, closeBehavior: closeBehavior, i18nStrings: Object.assign(Object.assign({}, i18nStrings), { closeButtonAriaLabel: i18n('i18nStrings.closeButtonAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.closeButtonAriaLabel), openButtonAriaLabel: i18n('i18nStrings.openButtonAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.openButtonAriaLabel), resizeHandleAriaLabel: i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.resizeHandleAriaLabel), resizeHandleTooltipText: i18n('i18nStrings.resizeHandleTooltipText', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.resizeHandleTooltipText), preferencesTitle: i18n('i18nStrings.preferencesTitle', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesTitle), preferencesConfirm: i18n('i18nStrings.preferencesConfirm', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesConfirm), preferencesCancel: i18n('i18nStrings.preferencesCancel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesCancel), preferencesCloseAriaLabel: i18nModal('closeAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesCloseAriaLabel) || (i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesCancel), preferencesPositionLabel: i18n('i18nStrings.preferencesPositionLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionLabel), preferencesPositionDescription: i18n('i18nStrings.preferencesPositionDescription', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionDescription), preferencesPositionBottom: i18n('i18nStrings.preferencesPositionBottom', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionBottom), preferencesPositionSide: i18n('i18nStrings.preferencesPositionSide', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.preferencesPositionSide) }) })));
16
17
  }
17
18
  applyDisplayName(SplitPanel, 'SplitPanel');
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/split-panel/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAKjB;QALiB,EACjC,qBAAqB,GAAG,KAAK,EAC7B,aAAa,GAAG,UAAU,EAC1B,WAAW,GAAG,EAAE,OAEA,EADb,SAAS,cAJqB,yDAKlC,CADa;IAEZ,MAAM,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,CAAC,YAAY,EAAE;QAC3D,KAAK,EAAE,EAAE,aAAa,EAAE,qBAAqB,EAAE;KAChD,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IAC5C,OAAO,CACL,oBAAC,kBAAkB,oBACb,SA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AED,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useInternalI18n } from '../i18n/context';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { SplitPanelProps } from './interfaces';\nimport { SplitPanelInternal } from './internal';\n\nexport { SplitPanelProps };\n\nexport default function SplitPanel({\n hidePreferencesButton = false,\n closeBehavior = 'collapse',\n i18nStrings = {},\n ...restProps\n}: SplitPanelProps) {\n const { __internalRootRef } = useBaseComponent('SplitPanel', {\n props: { closeBehavior, hidePreferencesButton },\n });\n const i18n = useInternalI18n('split-panel');\n return (\n <SplitPanelInternal\n {...restProps}\n __internalRootRef={__internalRootRef}\n hidePreferencesButton={hidePreferencesButton}\n closeBehavior={closeBehavior}\n i18nStrings={{\n ...i18nStrings,\n closeButtonAriaLabel: i18n('i18nStrings.closeButtonAriaLabel', i18nStrings?.closeButtonAriaLabel),\n openButtonAriaLabel: i18n('i18nStrings.openButtonAriaLabel', i18nStrings?.openButtonAriaLabel),\n resizeHandleAriaLabel: i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings?.resizeHandleAriaLabel),\n resizeHandleTooltipText: i18n('i18nStrings.resizeHandleTooltipText', i18nStrings?.resizeHandleTooltipText),\n preferencesTitle: i18n('i18nStrings.preferencesTitle', i18nStrings?.preferencesTitle),\n preferencesConfirm: i18n('i18nStrings.preferencesConfirm', i18nStrings?.preferencesConfirm),\n preferencesCancel: i18n('i18nStrings.preferencesCancel', i18nStrings?.preferencesCancel),\n preferencesPositionLabel: i18n('i18nStrings.preferencesPositionLabel', i18nStrings?.preferencesPositionLabel),\n preferencesPositionDescription: i18n(\n 'i18nStrings.preferencesPositionDescription',\n i18nStrings?.preferencesPositionDescription\n ),\n preferencesPositionBottom: i18n(\n 'i18nStrings.preferencesPositionBottom',\n i18nStrings?.preferencesPositionBottom\n ),\n preferencesPositionSide: i18n('i18nStrings.preferencesPositionSide', i18nStrings?.preferencesPositionSide),\n }}\n />\n );\n}\n\napplyDisplayName(SplitPanel, 'SplitPanel');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/split-panel/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAKjB;QALiB,EACjC,qBAAqB,GAAG,KAAK,EAC7B,aAAa,GAAG,UAAU,EAC1B,WAAW,GAAG,EAAE,OAEA,EADb,SAAS,cAJqB,yDAKlC,CADa;IAEZ,MAAM,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,CAAC,YAAY,EAAE;QAC3D,KAAK,EAAE,EAAE,aAAa,EAAE,qBAAqB,EAAE;KAChD,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAE3C,OAAO,CACL,oBAAC,kBAAkB,oBACb,SAAS,IACb,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,qBAAqB,EAC5C,aAAa,EAAE,aAAa,EAC5B,WAAW,kCACN,WAAW,KACd,oBAAoB,EAAE,IAAI,CAAC,kCAAkC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,oBAAoB,CAAC,EACjG,mBAAmB,EAAE,IAAI,CAAC,iCAAiC,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,mBAAm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{ useInternalI18n } from '../i18n/context';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { SplitPanelProps } from './interfaces';\nimport { SplitPanelInternal } from './internal';\n\nexport { SplitPanelProps };\n\nexport default function SplitPanel({\n hidePreferencesButton = false,\n closeBehavior = 'collapse',\n i18nStrings = {},\n ...restProps\n}: SplitPanelProps) {\n const { __internalRootRef } = useBaseComponent('SplitPanel', {\n props: { closeBehavior, hidePreferencesButton },\n });\n const i18n = useInternalI18n('split-panel');\n const i18nModal = useInternalI18n('modal');\n\n return (\n <SplitPanelInternal\n {...restProps}\n __internalRootRef={__internalRootRef}\n hidePreferencesButton={hidePreferencesButton}\n closeBehavior={closeBehavior}\n i18nStrings={{\n ...i18nStrings,\n closeButtonAriaLabel: i18n('i18nStrings.closeButtonAriaLabel', i18nStrings?.closeButtonAriaLabel),\n openButtonAriaLabel: i18n('i18nStrings.openButtonAriaLabel', i18nStrings?.openButtonAriaLabel),\n resizeHandleAriaLabel: i18n('i18nStrings.resizeHandleAriaLabel', i18nStrings?.resizeHandleAriaLabel),\n resizeHandleTooltipText: i18n('i18nStrings.resizeHandleTooltipText', i18nStrings?.resizeHandleTooltipText),\n preferencesTitle: i18n('i18nStrings.preferencesTitle', i18nStrings?.preferencesTitle),\n preferencesConfirm: i18n('i18nStrings.preferencesConfirm', i18nStrings?.preferencesConfirm),\n preferencesCancel: i18n('i18nStrings.preferencesCancel', i18nStrings?.preferencesCancel),\n preferencesCloseAriaLabel:\n i18nModal('closeAriaLabel', i18nStrings?.preferencesCloseAriaLabel) || i18nStrings?.preferencesCancel,\n preferencesPositionLabel: i18n('i18nStrings.preferencesPositionLabel', i18nStrings?.preferencesPositionLabel),\n preferencesPositionDescription: i18n(\n 'i18nStrings.preferencesPositionDescription',\n i18nStrings?.preferencesPositionDescription\n ),\n preferencesPositionBottom: i18n(\n 'i18nStrings.preferencesPositionBottom',\n i18nStrings?.preferencesPositionBottom\n ),\n preferencesPositionSide: i18n('i18nStrings.preferencesPositionSide', i18nStrings?.preferencesPositionSide),\n }}\n />\n );\n}\n\napplyDisplayName(SplitPanel, 'SplitPanel');\n"]}
@@ -41,6 +41,7 @@ export declare namespace SplitPanelProps {
41
41
  preferencesPositionBottom?: string;
42
42
  preferencesConfirm?: string;
43
43
  preferencesCancel?: string;
44
+ preferencesCloseAriaLabel?: string;
44
45
  resizeHandleAriaLabel?: string;
45
46
  resizeHandleTooltipText?: string;
46
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/split-panel/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC;CAC3C;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,WAAW;QAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,8BAA8B,CAAC,EAAE,MAAM,CAAC;QACxC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,qBAAqB,CAAC,EA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M,CAAC;QACxC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,yBAAyB,CAAC,EAAE,MAAM,CAAC;QACnC,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;KAClC;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/split-panel/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface SplitPanelProps extends BaseComponentProps {\n /**\n * Header of the split panel.\n */\n header: string;\n children: React.ReactNode;\n /**\n * Determines whether the split panel collapses or hides completely when closed.\n */\n closeBehavior?: 'collapse' | 'hide';\n /**\n * When set to `true`, the preferences button is not displayed.\n */\n hidePreferencesButton?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n * - `closeButtonAriaLabel` - The text of the panel close button aria label.\n * - `openButtonAriaLabel` - The text of the panel open button aria label.\n * - `preferencesTitle` - The text of the preferences modal header.\n * - `preferencesPositionLabel` - The text of the position preference label.\n * - `preferencesPositionDescription` - The text of the position preference description.\n * - `preferencesPositionSide` - The text of the side position preference label.\n * - `preferencesPositionBottom` - The text of the bottom position preference label.\n * - `preferencesConfirm` - The text of the preference modal confirm button.\n * - `preferencesCancel` - The text of the preference modal cancel button.\n * - `resizeHandleAriaLabel` - The label of the resize handle aria label.\n * @i18n\n */\n i18nStrings?: SplitPanelProps.I18nStrings;\n}\n\nexport namespace SplitPanelProps {\n export interface I18nStrings {\n closeButtonAriaLabel?: string;\n openButtonAriaLabel?: string;\n preferencesTitle?: string;\n preferencesPositionLabel?: string;\n preferencesPositionDescription?: string;\n preferencesPositionSide?: string;\n preferencesPositionBottom?: string;\n preferencesConfirm?: string;\n preferencesCancel?: string;\n resizeHandleAriaLabel?: string;\n resizeHandleTooltipText?: string;\n }\n}\n\nexport interface SplitPanelContentProps {\n style: React.CSSProperties;\n baseProps: BaseComponentProps;\n isOpen?: boolean;\n splitPanelRef?: React.Ref<any>;\n cappedSize: number;\n panelHeaderId: string;\n resizeHandle: React.ReactNode;\n header: React.ReactNode;\n children: React.ReactNode;\n onToggle: () => void;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/split-panel/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface SplitPanelProps extends BaseComponentProps {\n /**\n * Header of the split panel.\n */\n header: string;\n children: React.ReactNode;\n /**\n * Determines whether the split panel collapses or hides completely when closed.\n */\n closeBehavior?: 'collapse' | 'hide';\n /**\n * When set to `true`, the preferences button is not displayed.\n */\n hidePreferencesButton?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n * - `closeButtonAriaLabel` - The text of the panel close button aria label.\n * - `openButtonAriaLabel` - The text of the panel open button aria label.\n * - `preferencesTitle` - The text of the preferences modal header.\n * - `preferencesPositionLabel` - The text of the position preference label.\n * - `preferencesPositionDescription` - The text of the position preference description.\n * - `preferencesPositionSide` - The text of the side position preference label.\n * - `preferencesPositionBottom` - The text of the bottom position preference label.\n * - `preferencesConfirm` - The text of the preference modal confirm button.\n * - `preferencesCancel` - The text of the preference modal cancel button.\n * - `resizeHandleAriaLabel` - The label of the resize handle aria label.\n * @i18n\n */\n i18nStrings?: SplitPanelProps.I18nStrings;\n}\n\nexport namespace SplitPanelProps {\n export interface I18nStrings {\n closeButtonAriaLabel?: string;\n openButtonAriaLabel?: string;\n preferencesTitle?: string;\n preferencesPositionLabel?: string;\n preferencesPositionDescription?: string;\n preferencesPositionSide?: string;\n preferencesPositionBottom?: string;\n preferencesConfirm?: string;\n preferencesCancel?: string;\n preferencesCloseAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n resizeHandleTooltipText?: string;\n }\n}\n\nexport interface SplitPanelContentProps {\n style: React.CSSProperties;\n baseProps: BaseComponentProps;\n isOpen?: boolean;\n splitPanelRef?: React.Ref<any>;\n cappedSize: number;\n panelHeaderId: string;\n resizeHandle: React.ReactNode;\n header: React.ReactNode;\n children: React.ReactNode;\n onToggle: () => void;\n}\n"]}
@@ -3,6 +3,7 @@ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component
3
3
  interface PreferencesModali18nStrings {
4
4
  header?: string;
5
5
  cancel?: string;
6
+ close?: string;
6
7
  confirm?: string;
7
8
  positionLabel?: string;
8
9
  positionDescription?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"preferences-modal.d.ts","sourceRoot":"","sources":["../../../src/split-panel/preferences-modal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AASlF,UAAU,2BAA2B;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC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;IAEzC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IAEnB,SAAS,EAAE,CAAC,WAAW,EAAE;QAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAC;IAClE,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;gCAEsB,qBAAqB;AAA5C,wBAuDE"}
@@ -20,7 +20,7 @@ export default (props) => {
20
20
  const onConfirm = () => {
21
21
  props.onConfirm({ position });
22
22
  };
23
- return (React.createElement(InternalModal, { size: "medium", visible: props.visible, onDismiss: props.onDismiss, header: props.i18nStrings.header, closeAriaLabel: props.i18nStrings.cancel, footer: React.createElement(InternalBox, { float: "right" },
23
+ return (React.createElement(InternalModal, { size: "medium", visible: props.visible, onDismiss: props.onDismiss, header: props.i18nStrings.header, closeAriaLabel: props.i18nStrings.close, footer: React.createElement(InternalBox, { float: "right" },
24
24
  React.createElement(InternalSpaceBetween, { direction: "horizontal", size: "xs" },
25
25
  React.createElement(InternalButton, { onClick: onCancel, formAction: "none", variant: "link" }, props.i18nStrings.cancel),
26
26
  React.createElement(InternalButton, { onClick: onConfirm, variant: "primary" }, props.i18nStrings.confirm))), __internalRootRef: props.__internalRootRef },
@@ -1 +1 @@
1
- {"version":3,"file":"preferences-modal.js","sourceRoot":"","sources":["../../../src/split-panel/preferences-modal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAEvD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO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BAAiB,IAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB;YAC3G,oBAAC,aAAa,IACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAY,CAAC,EACjD,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,CAAC,EACV,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc;wBACvC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,yBAAyB;wBAC9E,KAAK,EAAE,QAAQ;qBAChB;oBACD;wBACE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY;wBACrC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,uBAAuB;wBAC1E,KAAK,EAAE,MAAM;wBACb,QAAQ,EAAE,KAAK,CAAC,oBAAoB;qBACrC;iBACF,GACD,CACgB,CACN,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport InternalBox from '../box/internal';\nimport { InternalButton } from '../button/internal';\nimport InternalFormField from '../form-field/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport InternalTiles from '../tiles/internal';\nimport bottomPositionIconClassic from './icons/bottom-icon';\nimport bottomPositionIconRefresh from './icons/bottom-icon-refresh';\nimport sidePositionIconClassic from './icons/side-position';\nimport sidePositionIconRefresh from './icons/side-position-refresh';\n\ninterface PreferencesModali18nStrings {\n header?: string;\n cancel?: string;\n confirm?: string;\n positionLabel?: string;\n positionDescription?: string;\n positionBottom?: string;\n positionSide?: string;\n}\n\ninterface PreferencesModalProps extends InternalBaseComponentProps {\n visible: boolean;\n\n preferences: { position: 'side' | 'bottom' };\n\n i18nStrings: PreferencesModali18nStrings;\n\n disabledSidePosition?: boolean;\n isRefresh: boolean;\n\n onConfirm: (preferences: { position: 'side' | 'bottom' }) => void;\n onDismiss: () => void;\n}\n\nexport default (props: PreferencesModalProps) => {\n const [position, setPosition] = useState<'side' | 'bottom'>(props.preferences.position);\n\n const onCancel = () => {\n setPosition(props.preferences.position);\n props.onDismiss();\n };\n\n const onConfirm = () => {\n props.onConfirm({ position });\n };\n\n return (\n <InternalModal\n size=\"medium\"\n visible={props.visible}\n onDismiss={props.onDismiss}\n header={props.i18nStrings.header}\n closeAriaLabel={props.i18nStrings.cancel!}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton onClick={onCancel} formAction=\"none\" variant=\"link\">\n {props.i18nStrings.cancel}\n </InternalButton>\n <InternalButton onClick={onConfirm} variant=\"primary\">\n {props.i18nStrings.confirm}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n __internalRootRef={props.__internalRootRef}\n >\n <InternalFormField label={props.i18nStrings.positionLabel} description={props.i18nStrings.positionDescription}>\n <InternalTiles\n onChange={e => setPosition(e.detail.value as any)}\n value={position}\n columns={2}\n items={[\n {\n label: props.i18nStrings.positionBottom,\n image: props.isRefresh ? bottomPositionIconRefresh : bottomPositionIconClassic,\n value: 'bottom',\n },\n {\n label: props.i18nStrings.positionSide,\n image: props.isRefresh ? sidePositionIconRefresh : sidePositionIconClassic,\n value: 'side',\n disabled: props.disabledSidePosition,\n },\n ]}\n />\n </InternalFormField>\n </InternalModal>\n );\n};\n"]}
1
+ {"version":3,"file":"preferences-modal.js","sourceRoot":"","sources":["../../../src/split-panel/preferences-modal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ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AAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,EAAC,OAAO,EAAC,MAAM,IAChE,KAAK,CAAC,WAAW,CAAC,MAAM,CACV;gBACjB,oBAAC,cAAc,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,SAAS,IAClD,KAAK,CAAC,WAAW,CAAC,OAAO,CACX,CACI,CACX,EAEhB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;QAE1C,oBAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB;YAC3G,oBAAC,aAAa,IACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAY,CAAC,EACjD,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,CAAC,EACV,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc;wBACvC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,yBAAyB;wBAC9E,KAAK,EAAE,QAAQ;qBAChB;oBACD;wBACE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,YAAY;wBACrC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,uBAAuB;wBAC1E,KAAK,EAAE,MAAM;wBACb,QAAQ,EAAE,KAAK,CAAC,oBAAoB;qBACrC;iBACF,GACD,CACgB,CACN,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport InternalBox from '../box/internal';\nimport { InternalButton } from '../button/internal';\nimport InternalFormField from '../form-field/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport InternalTiles from '../tiles/internal';\nimport bottomPositionIconClassic from './icons/bottom-icon';\nimport bottomPositionIconRefresh from './icons/bottom-icon-refresh';\nimport sidePositionIconClassic from './icons/side-position';\nimport sidePositionIconRefresh from './icons/side-position-refresh';\n\ninterface PreferencesModali18nStrings {\n header?: string;\n cancel?: string;\n close?: string;\n confirm?: string;\n positionLabel?: string;\n positionDescription?: string;\n positionBottom?: string;\n positionSide?: string;\n}\n\ninterface PreferencesModalProps extends InternalBaseComponentProps {\n visible: boolean;\n\n preferences: { position: 'side' | 'bottom' };\n\n i18nStrings: PreferencesModali18nStrings;\n\n disabledSidePosition?: boolean;\n isRefresh: boolean;\n\n onConfirm: (preferences: { position: 'side' | 'bottom' }) => void;\n onDismiss: () => void;\n}\n\nexport default (props: PreferencesModalProps) => {\n const [position, setPosition] = useState<'side' | 'bottom'>(props.preferences.position);\n\n const onCancel = () => {\n setPosition(props.preferences.position);\n props.onDismiss();\n };\n\n const onConfirm = () => {\n props.onConfirm({ position });\n };\n\n return (\n <InternalModal\n size=\"medium\"\n visible={props.visible}\n onDismiss={props.onDismiss}\n header={props.i18nStrings.header}\n closeAriaLabel={props.i18nStrings.close}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton onClick={onCancel} formAction=\"none\" variant=\"link\">\n {props.i18nStrings.cancel}\n </InternalButton>\n <InternalButton onClick={onConfirm} variant=\"primary\">\n {props.i18nStrings.confirm}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n __internalRootRef={props.__internalRootRef}\n >\n <InternalFormField label={props.i18nStrings.positionLabel} description={props.i18nStrings.positionDescription}>\n <InternalTiles\n onChange={e => setPosition(e.detail.value as any)}\n value={position}\n columns={2}\n items={[\n {\n label: props.i18nStrings.positionBottom,\n image: props.isRefresh ? bottomPositionIconRefresh : bottomPositionIconClassic,\n value: 'bottom',\n },\n {\n label: props.i18nStrings.positionSide,\n image: props.isRefresh ? sidePositionIconRefresh : sidePositionIconClassic,\n value: 'side',\n disabled: props.disabledSidePosition,\n },\n ]}\n />\n </InternalFormField>\n </InternalModal>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/dist/interfaces.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/dist/utils.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/dist/dom.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/dom.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/utils.d.ts","../../../src/test-utils/dom/button/index.ts","../../../src/test-utils/dom/alert/index.ts","../../../src/test-utils/dom/anchor-navigation/index.ts","../../../src/test-utils/dom/annotation/index.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react-dom/test-utils/index.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/dist/utils-dom.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/utils-dom.d.ts","../../../src/test-utils/dom/button-dropdown/index.ts","../../../src/test-utils/dom/split-panel/index.ts","../../../src/test-utils/dom/app-layout/index.ts","../../../src/test-utils/dom/app-layout-toolbar/index.ts","../../../src/test-utils/dom/internal/dropdown.ts","../../../src/test-utils/dom/internal/option.ts","../../../src/test-utils/dom/internal/options-list.ts","../../../src/test-utils/dom/internal/dropdown-host.ts","../../../src/test-utils/dom/internal/chart-filter.ts","../../../src/test-utils/dom/internal/chart-legend.ts","../../../src/test-utils/dom/internal/chart-popover.ts","../../../src/test-utils/dom/internal/charts.ts","../../../src/test-utils/dom/mixed-line-bar-chart/index.ts","../../../src/test-utils/dom/area-chart/index.ts","../../../src/test-utils/dom/form-field/index.ts","../../../src/test-utils/dom/attribute-editor/index.ts","../../../src/test-utils/dom/input/base-input.ts","../../../src/test-utils/dom/input/index.ts","../../../src/test-utils/dom/autosuggest/index.ts","../../../src/test-utils/dom/badge/index.ts","../../../src/test-utils/dom/bar-chart/index.ts","../../../src/test-utils/dom/box/index.ts","../../../src/test-utils/dom/breadcrumb-group/index.ts","../../../src/test-utils/dom/file-input/index.ts","../../../src/test-utils/dom/toggle-button/index.ts","../../../src/test-utils/dom/button-group/index.ts","../../../src/test-utils/dom/calendar/index.ts","../../../src/test-utils/dom/internal/abstract-switch.ts","../../../src/test-utils/dom/checkbox/index.ts","../../../src/test-utils/dom/modal/index.ts","../../../src/test-utils/dom/text-filter/index.ts","../../../src/test-utils/dom/toggle/index.ts","../../../src/test-utils/dom/collection-preferences/content-display-preference.ts","../../../src/test-utils/dom/radio-group/radio-button.ts","../../../src/test-utils/dom/radio-group/index.ts","../../../src/test-utils/dom/collection-preferences/page-size-preference.ts","../../../src/test-utils/dom/collection-preferences/sticky-columns-preference.ts","../../../src/test-utils/dom/collection-preferences/visible-content-preference.ts","../../../src/test-utils/dom/collection-preferences/index.ts","../../../src/test-utils/dom/container/index.ts","../../../src/test-utils/dom/pagination/index.ts","../../../src/test-utils/dom/cards/index.ts","../../../src/test-utils/dom/code-editor/index.ts","../../../src/test-utils/dom/grid/index.ts","../../../src/test-utils/dom/column-layout/index.ts","../../../src/test-utils/dom/content-layout/index.ts","../../../src/test-utils/dom/popover/index.ts","../../../src/test-utils/dom/copy-to-clipboard/index.ts","../../../src/test-utils/dom/date-input/index.ts","../../../src/test-utils/dom/date-picker/index.ts","../../../src/test-utils/dom/segmented-control/index.ts","../../../src/test-utils/dom/select/index.ts","../../../src/test-utils/dom/date-range-picker/index.ts","../../../src/test-utils/dom/drawer/index.ts","../../../src/test-utils/dom/expandable-section/index.ts","../../../src/test-utils/dom/file-dropzone/index.ts","../../../src/test-utils/dom/file-token-group/index.ts","../../../src/test-utils/dom/file-upload/index.ts","../../../src/test-utils/dom/flashbar/flash.ts","../../../src/test-utils/dom/flashbar/index.ts","../../../src/test-utils/dom/form/index.ts","../../../src/test-utils/dom/header/index.ts","../../../src/test-utils/dom/help-panel/index.ts","../../../src/test-utils/dom/hotspot/index.ts","../../../src/test-utils/dom/icon/index.ts","../../../src/test-utils/dom/key-value-pairs/index.ts","../../../src/test-utils/dom/line-chart/index.ts","../../../src/test-utils/dom/link/index.ts","../../../src/test-utils/dom/live-region/index.ts","../../../src/test-utils/dom/token-group/token.ts","../../../src/test-utils/dom/token-group/index.ts","../../../src/test-utils/dom/multiselect/index.ts","../../../src/test-utils/dom/pie-chart/index.ts","../../../src/test-utils/dom/progress-bar/index.ts","../../../src/test-utils/dom/prompt-input/index.ts","../../../src/test-utils/dom/property-filter/index.ts","../../../src/test-utils/dom/table/index.ts","../../../src/test-utils/dom/s3-resource-selector/index.ts","../../../src/test-utils/dom/side-navigation/index.ts","../../../src/test-utils/dom/slider/index.ts","../../../src/test-utils/dom/space-between/index.ts","../../../src/test-utils/dom/spinner/index.ts","../../../src/test-utils/dom/status-indicator/index.ts","../../../src/test-utils/dom/steps/index.ts","../../../src/test-utils/dom/tabs/index.ts","../../../src/test-utils/dom/tag-editor/index.ts","../../../src/test-utils/dom/text-content/index.ts","../../../src/test-utils/dom/textarea/index.ts","../../../src/test-utils/dom/tiles/tile.ts","../../../src/test-utils/dom/tiles/index.ts","../../../src/test-utils/dom/time-input/index.ts","../../../src/test-utils/dom/top-navigation/index.ts","../../../src/test-utils/dom/tutorial-panel/tutorial.ts","../../../src/test-utils/dom/tutorial-panel/index.ts","../../../src/test-utils/dom/wizard/index.ts","../../../src/test-utils/dom/index.ts","../../../src/test-utils/dom/internal/autosuggest-input.ts","../../../src/test-utils/dom/internal/chart-tooltip.ts","../../../src/test-utils/dom/internal/drag-handle.ts","../../../src/test-utils/dom/internal/tooltip.ts","../../../src/test-utils/dom/top-navigation/1.0-beta/index.ts","../../../node_modules/@cloudscape-design/test-utils-core/dist/selectors.d.ts","../../../node_modules/@cloudscape-design/test-utils-core/selectors.d.ts","../../../src/test-utils/selectors/button/index.ts","../../../src/test-utils/selectors/alert/index.ts","../../../src/test-utils/selectors/anchor-navigation/index.ts","../../../src/test-utils/selectors/annotation/index.ts","../../../src/test-utils/selectors/button-dropdown/index.ts","../../../src/test-utils/selectors/split-panel/index.ts","../../../src/test-utils/selectors/app-layout/index.ts","../../../src/test-utils/selectors/app-layout-toolbar/index.ts","../../../src/test-utils/selectors/internal/dropdown.ts","../../../src/test-utils/selectors/internal/option.ts","../../../src/test-utils/selectors/internal/options-list.ts","../../../src/test-utils/selectors/internal/dropdown-host.ts","../../../src/test-utils/selectors/internal/chart-filter.ts","../../../src/test-utils/selectors/internal/chart-legend.ts","../../../src/test-utils/selectors/internal/chart-popover.ts","../../../src/test-utils/selectors/internal/charts.ts","../../../src/test-utils/selectors/mixed-line-bar-chart/index.ts","../../../src/test-utils/selectors/area-chart/index.ts","../../../src/test-utils/selectors/form-field/index.ts","../../../src/test-utils/selectors/attribute-editor/index.ts","../../../src/test-utils/selectors/input/base-input.ts","../../../src/test-utils/selectors/input/index.ts","../../../src/test-utils/selectors/autosuggest/index.ts","../../../src/test-utils/selectors/badge/index.ts","../../../src/test-utils/selectors/bar-chart/index.ts","../../../src/test-utils/selectors/box/index.ts","../../../src/test-utils/selectors/breadcrumb-group/index.ts","../../../src/test-utils/selectors/file-input/index.ts","../../../src/test-utils/selectors/toggle-button/index.ts","../../../src/test-utils/selectors/button-group/index.ts","../../../src/test-utils/selectors/calendar/index.ts","../../../src/test-utils/selectors/internal/abstract-switch.ts","../../../src/test-utils/selectors/checkbox/index.ts","../../../src/test-utils/selectors/modal/index.ts","../../../src/test-utils/selectors/text-filter/index.ts","../../../src/test-utils/selectors/toggle/index.ts","../../../src/test-utils/selectors/collection-preferences/content-display-preference.ts","../../../src/test-utils/selectors/radio-group/radio-button.ts","../../../src/test-utils/selectors/radio-group/index.ts","../../../src/test-utils/selectors/collection-preferences/page-size-preference.ts","../../../src/test-utils/selectors/collection-preferences/sticky-columns-preference.ts","../../../src/test-utils/selectors/collection-preferences/visible-content-preference.ts","../../../src/test-utils/selectors/collection-preferences/index.ts","../../../src/test-utils/selectors/container/index.ts","../../../src/test-utils/selectors/pagination/index.ts","../../../src/test-utils/selectors/cards/index.ts","../../../src/test-utils/selectors/code-editor/index.ts","../../../src/test-utils/selectors/grid/index.ts","../../../src/test-utils/selectors/column-layout/index.ts","../../../src/test-utils/selectors/content-layout/index.ts","../../../src/test-utils/selectors/popover/index.ts","../../../src/test-utils/selectors/copy-to-clipboard/index.ts","../../../src/test-utils/selectors/date-input/index.ts","../../../src/test-utils/selectors/date-picker/index.ts","../../../src/test-utils/selectors/segmented-control/index.ts","../../../src/test-utils/selectors/select/index.ts","../../../src/test-utils/selectors/date-range-picker/index.ts","../../../src/test-utils/selectors/drawer/index.ts","../../../src/test-utils/selectors/expandable-section/index.ts","../../../src/test-utils/selectors/file-dropzone/index.ts","../../../src/test-utils/selectors/file-token-group/index.ts","../../../src/test-utils/selectors/file-upload/index.ts","../../../src/test-utils/selectors/flashbar/flash.ts","../../../src/test-utils/selectors/flashbar/index.ts","../../../src/test-utils/selectors/form/index.ts","../../../src/test-utils/selectors/header/index.ts","../../../src/test-utils/selectors/help-panel/index.ts","../../../src/test-utils/selectors/hotspot/index.ts","../../../src/test-utils/selectors/icon/index.ts","../../../src/test-utils/selectors/key-value-pairs/index.ts","../../../src/test-utils/selectors/line-chart/index.ts","../../../src/test-utils/selectors/link/index.ts","../../../src/test-utils/selectors/live-region/index.ts","../../../src/test-utils/selectors/token-group/token.ts","../../../src/test-utils/selectors/token-group/index.ts","../../../src/test-utils/selectors/multiselect/index.ts","../../../src/test-utils/selectors/pie-chart/index.ts","../../../src/test-utils/selectors/progress-bar/index.ts","../../../src/test-utils/selectors/prompt-input/index.ts","../../../src/test-utils/selectors/property-filter/index.ts","../../../src/test-utils/selectors/table/index.ts","../../../src/test-utils/selectors/s3-resource-selector/index.ts","../../../src/test-utils/selectors/side-navigation/index.ts","../../../src/test-utils/selectors/slider/index.ts","../../../src/test-utils/selectors/space-between/index.ts","../../../src/test-utils/selectors/spinner/index.ts","../../../src/test-utils/selectors/status-indicator/index.ts","../../../src/test-utils/selectors/steps/index.ts","../../../src/test-utils/selectors/tabs/index.ts","../../../src/test-utils/selectors/tag-editor/index.ts","../../../src/test-utils/selectors/text-content/index.ts","../../../src/test-utils/selectors/textarea/index.ts","../../../src/test-utils/selectors/tiles/tile.ts","../../../src/test-utils/selectors/tiles/index.ts","../../../src/test-utils/selectors/time-input/index.ts","../../../src/test-utils/selectors/top-navigation/index.ts","../../../src/test-utils/selectors/tutorial-panel/tutorial.ts","../../../src/test-utils/selectors/tutorial-panel/index.ts","../../../src/test-utils/selectors/wizard/index.ts","../../../src/test-utils/selectors/index.ts","../../../src/test-utils/selectors/internal/autosuggest-input.ts","../../../src/test-utils/selectors/internal/chart-tooltip.ts","../../../src/test-utils/selectors/internal/drag-handle.ts","../../../src/test-utils/selectors/internal/tooltip.ts","../../../src/test-utils/selectors/top-navigation/1.0-beta/index.ts","../../../types/custom-css-properties.d.ts","../../../types/global.d.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/balanced-match/index.d.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../../../node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/ts5.6/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/bonjour/index.d.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/connect-history-api-fallback/index.d.ts","../../../node_modules/@types/d3-path/index.d.ts","../../../node_modules/@types/d3-time/index.d.ts","../../../node_modules/@types/d3-scale/index.d.ts","../../../node_modules/@types/d3-shape/index.d.ts","../../../node_modules/@types/eslint/helpers.d.ts","../../../node_modules/@types/estree/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/eslint/index.d.ts","../../../node_modules/@types/mime/Mime.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/express/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/history/DOMUtils.d.ts","../../../node_modules/@types/history/createBrowserHistory.d.ts","../../../node_modules/@types/history/createHashHistory.d.ts","../../../node_modules/@types/history/createMemoryHistory.d.ts","../../../node_modules/@types/history/LocationUtils.d.ts","../../../node_modules/@types/history/PathUtils.d.ts","../../../node_modules/@types/history/index.d.ts","../../../node_modules/@types/html-minifier-terser/index.d.ts","../../../node_modules/@types/http-proxy/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/jest-diff/node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/parse5/dist/common/html.d.ts","../../../node_modules/parse5/dist/common/token.d.ts","../../../node_modules/parse5/dist/common/error-codes.d.ts","../../../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../../../node_modules/parse5/dist/tokenizer/index.d.ts","../../../node_modules/parse5/dist/tree-adapters/interface.d.ts","../../../node_modules/parse5/dist/parser/open-element-stack.d.ts","../../../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../../../node_modules/parse5/dist/parser/index.d.ts","../../../node_modules/parse5/dist/tree-adapters/default.d.ts","../../../node_modules/parse5/dist/serializer/index.d.ts","../../../node_modules/parse5/dist/common/foreign-content.d.ts","../../../node_modules/parse5/dist/index.d.ts","../../../node_modules/@types/tough-cookie/index.d.ts","../../../node_modules/@types/jsdom/base.d.ts","../../../node_modules/@types/jsdom/index.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/pngjs/index.d.ts","../../../node_modules/@types/react-dom/index.d.ts","../../../node_modules/@types/react-router/index.d.ts","../../../node_modules/@types/react-router-dom/index.d.ts","../../../node_modules/@types/react-test-renderer/index.d.ts","../../../node_modules/@types/react-transition-group/Transition.d.ts","../../../node_modules/@types/react-transition-group/CSSTransition.d.ts","../../../node_modules/@types/react-transition-group/TransitionGroup.d.ts","../../../node_modules/@types/react-transition-group/SwitchTransition.d.ts","../../../node_modules/@types/react-transition-group/config.d.ts","../../../node_modules/@types/react-transition-group/index.d.ts","../../../node_modules/@types/resolve/index.d.ts","../../../node_modules/@types/retry/index.d.ts","../../../node_modules/@types/scheduler/index.d.ts","../../../node_modules/@types/serve-index/index.d.ts","../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../node_modules/@types/sockjs/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/testing-library__jest-dom/matchers.d.ts","../../../node_modules/@types/testing-library__jest-dom/index.d.ts","../../../node_modules/@types/webpack-env/index.d.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},"8251ac345d9812c07bb7a6eb44a65ffbbe8d7349541930e699265c2f854d357e","3fd7ee53c862baf814e20248d4ee0ca8595d4f86c25d8d573c05f5ce4a697e0f",{"version":"8fc1589d043caa93ca47673112ea682bc2ec3396059bc34def9ce74bce6e5e75","affectsGlobalScope":true},"5d00cdbda764acae6d011b5fe3c3bba1c352c21fea5c2f754df1c8f1c41dd656","9feb5e894f78f71994e0810c9cdf224dc88425676d8b6bdd2d096561c8f8a445",{"version":"845a108a44c1c59b31069e23ba609d5a41bd213003f27c77e035ed20990f81ca","signature":"13f70fb8f289571d3f0b689d0cfeec16724a445633dc2a8608bd5809a81d3423"},{"version":"5dbc1d325605e02971a47672f7e0248661f1b02d4269bee97e8e187ed2eab09b","signature":"fe456635f45778fb214c50ea9b5372df73c2df7193aefd9d5eb2b0ae3bc2efa8"},{"version":"05df3fcfd7267446b52b183254696de6a378c4e2d13140133e82972adc004463","signature":"2acdcf12764662fa7a6a396a58b905042e81c4203b5033ae8856ad78c2f18dc7"},{"version":"647f57c804b9da9b2006a31a3a78a9357de987b29c0fc3fbfd4afa5d65748850","signature":"f041fc6a98ff966885f4cf44ade0f9413d16fc26a6078bf951cae11e4d2c350f"},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"7a9ff1f35fffd0d9f3d0e981439099330c618069f7c4762d74249d1a33362aa1","affectsGlobalScope":true},"b72fe4260471b06163a05df5228c09b76472b09ea315b7a2df52343181fe906f","51f8311b15224e8a9f21a8ad21cd286716bacfaedc16bda9892172abe5a8deb3","436b19903a197de4b952e9719dbb1c9b4d06b1b424d425408e4448d81034a488",{"version":"0776488753518a8054a4199f149b045c2b8fff2383958816e8eaa3adfdf8bb66","signature":"001dc237d6aeaca60059dbd025d41d6dfb0b56c7f50bf02f33d2fd0850712134"},{"version":"4e9508d92fd0b132161b295e7e313858751dccb3ab7912a00941af03e75a00ce","signature":"56f8b1d94b6393674f9449b838239dbf709505a1219b6ed098c7f2f656b7be35"},{"version":"8bda730e221627247ddaac7303d98f0bc0d216f8a42895705fae307fcefd1b8a","signature":"a1bd4091844e47d7bd231e4eb35a735e3741931c5e8ca15bb0f05bd6472d6255"},{"version":"0a77ef8865d22e5684c5bcf8f9e516ff41553410a987f669bd650e216483789c","signature":"8fe47ac4aac3a1418d7948a178d59c748edf3a9d05e66d80f9e85528101ef007"},{"version":"ff5dc6f4efbcf7a3318733b6fdec4aa76aac8d1e0ec329e1d7955f1529bf313f","signature":"17ebe5c6e468e10eeae2fe6040df1eacad5abe3d615f615fe9137691c66a19fa"},{"version":"4d28e0d4f2627a3e06ee3ab2f75aab88a4c01eb40c1af968c858f5d180118d22","signature":"8e1e1bfed34fa19649fc7934ff753ee9431774941c52b3fcd274bde28e4ee80b"},{"version":"cb10743d63869b7185c7864d1f94d0bcc4bf1ef66eba5b488cbcf58ffe9a4fc1","signature":"794d0df8d7f04771c2c23c7dd41c83d127f78ae2cae9cfb2c9c0984b390b281c"},{"version":"1386b488da62ed751b1d1846a37e5ac5a95f343e5479e0db034de333c79ef933","signature":"bf7052a7e596e5946f151c3ba5b6813a3dc0d00a828aa1408a71b7614d75ddb1"},{"version":"2e4984bedcaccd821c5f9fd35a0ab1e827831e5aa2b431f56519dfb7bb86d663","signature":"7b2b8e71e41c7cb1644b5b30532d448a1792ead3dcf66e79c1d9182c21a5409a"},{"version":"be4cf2f2796a48b0d235de2752ae87a1bd75ba9411fd945a3c03bab38349ba04","signature":"b3cf1903795c59c74f9e7cc5ede7ccc764b19dd6065d7092c70caffc37852538"},{"version":"0831fcc44eefbd41cf6e431b184cecef302862210cfaba65845259da2c80b13a","signature":"80ae80c84553954c4b064db1ac20d0bb37b2bfeeccfd9b1eb47b9176d175efc9"},{"version":"8f088c76afe6fdae66f3bbaca4d7c68097df767fa9935cf95a430df6887af9c9","signature":"da63aa4d2cf0b705ab4555081b8b320b44d6db60137294fb2ca98708c85cffbc"},{"version":"171e272adc0d63723f701c84dc3849fdb6c7176c04e7667aa6ae8983c5d1f7dc","signature":"84eba041eb14211e247840dbc8d12be69019a442ab87cf7af85571b8f9558f94"},{"version":"af15b145645dbab3c0e047c8c8444c650e93e7c1084f8477a5a17df0370022e1","signature":"c96e8b3d7057b2270ce216d02d885cb4fc8587faa4915a59a8c34717d1fb832f"},{"version":"a00a937845274bd52b4e7186a6d48e2c618f2dc6cce2680aff636877f708ad28","signature":"73079225d794387d2a92e305e4a18a9e271c7693d4662e84678310086fcda35e"},{"version":"e17ac29744be8fa32726edd6ddb17a0dcb4cc8340fc67680a75e556ffaa511eb","signature":"0c5b488b2b093fc8b05e601b01c816ce3f08aa937a537864d15caae12380d408"},{"version":"cafe40a6df2ffb004c3081cc0ab713c4102bf7100a0e0a2062efc2cec7e9f8eb","signature":"a9ce8b430b47e833924ae9c4465d3ea736d792208a6ca3b7b23834a1bff7c1a0"},{"version":"f1ce10f5cecb33904d4453ddfe510eecd2990f3a34d37bc0d3526e0ed25a4a6b","signature":"865aea0759b8ce5c2181f6216c67d30b8f944bdaf009c69313da1be03139fa14"},{"version":"bc1369924eff0893a2e96ab53df415316dbc13f7eff476dd9ea88de9134ade09","signature":"ab95448942bbe369e15c1011dfab8a1bd601c154d907dc0dcf1103d223f2ae2d"},{"version":"7ba31f10d91e31b725941e6753b6be9363c21d432ffdb963f09feb7017f88f77","signature":"ab4f3c5978be2c9a0da1d60617b126d7715fcb0a02f9662e1d5f7c56ee4e1d08"},{"version":"14450609e95f49bea1d5819b212e0e847d1462411ebc7cb103c23c262890ee14","signature":"dd222cdaf215ee58e4b189d7c47691ca4b6e5852455ed138180d12edcd1245f8"},{"version":"87ac0662acb3f9ba34a2c28e8fdf432132cfdee45457bbadac813e366f1520c6","signature":"99ac0bde36194a456668b7c6de4b8b0a85e2516ab7d9b866f35e733cf8da815d"},{"version":"6559911af091f7ca1e36ed28bb09aae7c79a2338185005b525df10b319265afe","signature":"0b84ea8230370282190ac40e027e1aa1a9a323449423afa0634e325e418bc21d"},{"version":"ea70275929b37529ba96c4d6410b5277d40296e60884ad90525eecceadabf89f","signature":"01823a65946bfc11bc2d566a9b1bf7a1e2344a15fd9db5cafc6086cafbc9a3b7"},{"version":"8c1e310d487aa7e135dbf8cbc1494cd7167a9d93be2ce8e541fe596aa6cfd893","signature":"33afb41a5799ae8379ca78de85852a4f4e2fb78e3bbfdcbb2c0ebc6803b80410"},{"version":"4d19fd8b1b78f545207300e60cc20f050d4df3f54bcbaf895904ece7cd79f8b8","signature":"da65a9709e0118d83166a331943986e2e148bad653f814a3ef35e46cb0bf0379"},{"version":"489151937110c31f931a2f5722165c589ca2a9b3f872b4a14b381484d4d0d194","signature":"741fa0662d61b31906a3f5d2ad3fd9a170491bcc3a799ffc0eed6a73048367f2"},{"version":"74769b22970c33fc967fa1460988db46b88cdf682ff1a90b8ea0035324d5a354","signature":"ccb10d967bb310a9bb3d0e16bfbdf3a05afd234a13a721759658a9d4cc5e5a3a"},{"version":"c0f3210190ab900eba3c0c53a0438d01fdafd5fb81d065fbad719f761cc63c1f","signature":"6372e6898c133e6aac5755a3174222193606093a13278cdb73e58c2ca2baedcf"},{"version":"8e9a28a356056ee944e72c621e015d920ae24c7de757b9862cc1f32e797dd664","signature":"b4b97825a09033a0db6fce5fe3550d8f9ff6f52dc5917b4cb7b20178e3282b51"},{"version":"19adbb2ad348c03246f2dae45c567a1551ef25fe1261210a1387bc3488eb16ba","signature":"63f83a25e0578fe173fa5a0a11aa285bfdcd8b55bf7e0953c5b74acb2e1ea46b"},{"version":"a8152495cdd7135c392f7d73a965f2d368488ebfa68475973bd68f26b80a4fcc","signature":"0a25043ca34dad3cc11567cf2fcad84b8454f56b3bcf2308c2b83c32284e4c7c"},{"version":"0cb592ab55010851562b1036cc566f3de10892365ac5489002eb0e85ab3a495f","signature":"f7785a182e1117cf7f19315b0d7a90b0e93e5521979e49bf49b1a7458f334ffe"},{"version":"c6d35c3aa38a987fe0ab60feccbf30213f487645ab6da3c789d15ccba7cb52d8","signature":"a59b3bf43aba147077bc946e956aca5fc7f507c4d31cc0693f97782200155694"},{"version":"ead8e94269ad8d300ec9f32091fec6ac76ad51f09b1f4bd2dacf73fd0f8674c0","signature":"d25304ed83d22ae01207e97abb58dc456718745c8289bd65e342cf0858ea8a67"},{"version":"54de66ea8de99e469db2c5e81d78b04ff593d24e26efd539d60837539f98ee58","signature":"e55d909a3dfb6ac2c7bd8ed0549e6a1cab6242fde9910cd275eee3b57ee11fd4"},{"version":"0de526d9fb64980b8c49203f3e0e8bec70073294ec6e2371c240d11f8f6c8878","signature":"0c21c98bdad8ecd49328ad0693285178aea3a2922345cf1f6934bb131b7015fa"},{"version":"f49b8d8ea0a4863ed23299f700cc2bc820aae8e7e11ebba5509c7029e5726d8e","signature":"b2edad0071a15e17b8167c10473aa2b850817dd5553458e01e92def18ec6bea8"},{"version":"8a6b1f4ca65e8f8d458b6f6cd69d744d2946adebdabdfe5885d8910f14e4db11","signature":"8c2ac081b94eeb45750b5ab79328b4799dba579cdd0d9ad223c58dc13831ba3a"},{"version":"43af19c2df35af11806593c0b71edbff8199ff9171c0ebca5d9117ae15c97501","signature":"73f6da99875307d4d60c802c60785bf431049961ce83c1a43cab9c2b186dc991"},{"version":"a306b2be9304fb02a3ebcfa2c7f7abbc454a9a5a8775dbf4b272a28de3003d52","signature":"3d3e673b25bc03cafde640a062ced1b371b54dd1ee888294b463145e554d863e"},{"version":"9a8159db212d8aa098ddb218abe715d11dcbb69ff2fe78637f7cce7131f5be82","signature":"5b189b801348b984c1999a387326242773d92cae87d59ea73f8b7d8e4c72dc50"},{"version":"40efd8670bd1728b33d6ac0c6e66f56010a043ea1961606838b02b0b8dae10a7","signature":"63fc1a15e513663f4a56faa46c488f090d340c1582c02bf9b4aa7515fb843bcc"},{"version":"7980cc264acd08293a867bf402e2035d46488d16bcabfb6a29fe8fa1ce2ab788","signature":"dd848dbad806f34841a9516480a000bc26acc8e912295b712276644544ae9f0f"},{"version":"8017ce1942d74d98aeeda66cbf5a797e57caec4cedac11f6b5a87ea5472132af","signature":"1cb7c85cc67b740e4804edf1aea824183c0ccbd0829fbd1881677cee14e2f13e"},{"version":"18e9d4d4c4d42ebf953667c0553491b9dc5d426ced59cbde5395ec49b003b824","signature":"d81251557440bc8717ed790ba6a7035f2c1b98402da86ac53e7ae7127777b0b6"},{"version":"ae22db7da4341b14d0ccc2180627570dd4e1ddeae7aa1f4cbb5c91565b5c6135","signature":"7920ae0f4bd5bdb7033271e4f1f573e28a9ce695a6dafd6ff81b4e2b644f1516"},{"version":"75689430c9b0bd9cef73fb10e7815db0bbf1997da8c47262852618a1b9ac033e","signature":"9b4f8aa7da9ecf46beb74aa372e4393a8cec38a02f96bc8c0068c5de51124f4d"},{"version":"65f5bf17031fcc96c32ccf8cf174dd1d3813069d6066f0dc7efa1c4fc7ada0b8","signature":"4b67dc3b34a88ce221c2b3646f8571254cc5c428263a62f1d1759292c00810e2"},{"version":"5292b17af4e6b773a00edb0858206bf2ab7b205aeca97e8d5dfa86b77cdf7b93","signature":"8b767a893fba7aa3ab898c1031f64323ce34e0f565ff0cf69be218b46778c95b"},{"version":"c3de785414d065ff5611d815f24ee9015c4ba756bbe30fdc0543143b6ec20e05","signature":"bbb6a4e6dd46476dde860df85a28cb24a893ed18e88faba6c0675d93c9591d9f"},{"version":"7f092a4a7856826ad9b66032393ca3e19e4690ddd9659a3c149c0667ca98e634","signature":"c4fc9f9a153746ac0987e68a4ced9ead7fe3a5f873053bf95846958c146696fb"},{"version":"0bef54f3405a6174eb2bb28c731f829ca974960c889f003809360dc71fbc9c18","signature":"377a5357bbed4caf91bd48ed3b8c884fb7464ccb72f9e1d9d8e0d121905dade3"},{"version":"b742491790385f8523b60421bbfe426401d48f04ee638480a12046f05e46de26","signature":"52726257b18b8f2d8ab0c094e8d5d6df9af4ac3a5fe35245afe736eb1d6d9140"},{"version":"660b033255e4f6978669bfb9168e269522f9fad93b6c7509166f5911b662dcb4","signature":"f8613b0dc35fe7d590710313f669a7430c7206acf8a0b52aa1a0fb04856551c9"},{"version":"4969d5f8aaf99b9946f591c8ac57ebabb23697e291d7df923d31b75cbde94a10","signature":"520b6fb0f6ca163ea3b74a23ab35ce1de576ed3c25e2b808ffd8eafadddbc8d8"},{"version":"6cbb961516e8421d35914be32d973b260464a2846cd1e973d6e88e6841197e7e","signature":"e9d38410e2ca409f1a63e6ba80efd2a31ee0354e40d63bb48ab1ee45044081cd"},{"version":"e942bb3e51145ae7b148903b50298ffcc8077f18035281c190eea38b1757c9df","signature":"5d86fc5a0884e28f73514c8cc00914fd9f8fe00853cdf91b09d81c26b1dbfbf4"},{"version":"1558f10e460a2bf562857510c855c8ca85724add5b3b08e67bd998db5de80f65","signature":"69615a96a070e75c25ecefcfc1e527288fa5b23b603a45ce25af56d82ca088ba"},{"version":"e7dc24762262bbaa7feab1aad7a2322c2873523e599668b83b82f3dc4a6da161","signature":"29a00c5c0909cd59c9070f3ce019d440dba01b243e924f38625d8afc0ac8a95e"},{"version":"a12db64168c2f8550df460b0f9715f810eb542512ee496fd65f42c54ef68edfd","signature":"17d2c4211d9366e3dfb6bef73689bb45f278b920475893cf0fe2941524a79bb9"},{"version":"46a68d3c45cfc4a606333d73564a1c27a835a4e6ab89472163f4dbbfe394f88f","signature":"aa2e0477758b3b497cf0fcb96ac5b97fad3007251ce54cd28c157aa193796b8d"},{"version":"8f450e30c9c14ac3f7e77cd5c11c5bb716c78078bb6f81d0778417ebe951d467","signature":"9fe818ca8fcc3718affc621cfd4b3feae95d0fb5bc969238e69b2d3363421fd9"},{"version":"643e59f0e01cf878b6c960d3cc45575b64280bbe1bdef5bd71dbaa2d4b717d1a","signature":"d767d02b185e5414d1a64acd09c9a258dda6463cc454e109a91e945219085dc5"},{"version":"5290567ed360f82e59b435403cc32027bcf796d6ad4c7e82c3cf9f8221d6b033","signature":"add9e36a1a77407ad9bca7769e3e8a3a41d6785db00ad60446cff7ae8744bd04"},{"version":"3ab5e29192f17d3b304afae2f2c48eb3a3ad614d3938969c02bf71be330a2fbe","signature":"7375434b0afb0841eb9cd46c19a79c4b394d8a127d1b7c3e29964405d20c6b15"},{"version":"29b8a7bb3fc6458fa35bc0ac76d8321d486c22e9bcaa7014ae3e0f8753834e0f","signature":"48be07172c2c9e000bd8bb75c4e200cde83fb1d9d01ddad2fbc06c6ab8fd0ce1"},{"version":"a37df55bec1cbfc0ae401afd64d48a3bc0049d59299649a78880289c2c7504a4","signature":"7c0b122c4ae5811c15931a84fac6df1df5caac49e1b8123d9208483d6fc63ba8"},{"version":"62bcda7e7f516c9ad453adeb0d8083d0245a182352eaa203151c74e69a58d242","signature":"428824eefcd9f4bd999710550ef599748dff9e5ddf3c94138cd61686d7bd758e"},{"version":"4c238c134fe1751b0a753564b1e2944a45b2b92eb642992eca9a97912acc0ad2","signature":"4e3ed6a72c1a8562bb7293b1ad47ac8e55249d740e1ae65f27aaa46ec13482c2"},{"version":"7957ce259494e1da6e844750d8bb48d3908f9d4327a19d3d7a4048f69c0c004a","signature":"93aec76e54008dba7002e57d06e8918cf7fc4496e92a685ac7e781547a41dd4b"},{"version":"fbdcfa8933104ba1c59e07189fd31cac22a2da0a3ec8523f67320152a79016c7","signature":"f2ae3c48e45553c78fb980d2952ed6114b5523977ddd0605eb5b2cfa715bd03d"},{"version":"0a719cd1330170a4e988d266461822390ec55e77313f8663d7ab1ccdc08f60e6","signature":"10c182cf1ad31052cc020247c4d236488738fb571642c40814e5e5ebeba78ca5"},{"version":"0b45b1d3b2fcf0d5e3434c565d9f2725d2bb1ef4a80cf69655687c9088bb5fcc","signature":"abf0bca365957caf10df068c8f583657e41ca987324e82320ebcc08e0ed67d02"},{"version":"54045d825ce8cbdb36d4b8f1c41225344c1d2b9e63b887c9ef0607d53bf3e303","signature":"65e7f4988a0f6be0341a740dd75764f24d2a06acb9d067a9d6a7b4a3ec4187f5"},{"version":"26ea0468792bd2be5d0712f053a7d42d26653eda6889716806cdc422cfbcaf69","signature":"e827f902985f85f57aa18082d2b2f8bcd1087aedcf8832035eac897aa08c14d0"},{"version":"367339476bb71c9fc24331d7285340aaf54408d7d4cd4443745c4f5f08741d43","signature":"accf2673a53db25e6b49c4df0947cfabf3de01c919cb2ee3ae545693fc4ef6b8"},{"version":"62997c32ae87b32ccf9156093b904e39f0d93d2f5ed1979931a7a637843f211f","signature":"cb52dc8d5e531ea30d06e61bb702b0a0b649863421ff24ba7310c7d262f27441"},{"version":"6139e39ce4d0747f8f18b639694142d61dccb6a6ff861b2807eafacd0a392c5b","signature":"9d34c5a714a3aed42567cc25246eae51fc8f7ffe5044492722eee69a495fa505"},{"version":"366fcf1b1c30e5cb1dd61ecc033b057479f6d776e1ec9fd33a1edc70f3703e5b","signature":"825fd18342558da925497fbd8df1fd112fa4d218d25a16d8ca3cfef570c0e57c"},{"version":"4b20b81cf589afa8a026710de0489b1298c9d839638d7fcf480e10f1b06b499c","signature":"3a78aa3c20762414780be366927c7f7d02d1a5a5c4f1a01e9a91063cb42eff28"},{"version":"0435f040ec0932806071c817b562d9530792f26777637035d2a322389cc1cef4","signature":"af4c8f046892db2956868f52d1f1a27b23de5945eacaebc05cf3144f94fbea59"},{"version":"4fd9a5e18d89fd342a7785a01c88e82c828291ba067a735a7565540d41a3ab2d","signature":"f64c808e10a6045b77cb2858d88c51d5c03acb0db3705a99415788e913776a1e"},{"version":"e050c237b27c9e1b9e9765d284153b3be257a248f879a4457b39d78dcc9525c7","signature":"20a6ccab8917c241b2c446fedfc0e15867d789a514dc65e291f6dc055771a58a"},{"version":"036a373c127e8a317961c60d1b9b05d0007eb8adf9e3e3ef1a7a346dddce7a2e","signature":"d59422e92eb87a723ae6701c60a9d27da495a26d46f004ecf5facc0337067c52"},{"version":"d5eb94c071ead2fbd6ac53b1e2bd662b59006922bc34b789e612929df06b7d3a","signature":"e2596605a5a5de84b92cf2c3fad1676d3500275f4e69a518a57cfa5d528867a9"},{"version":"002fc7901acb081ad94560494677b1e24c8f0116123d1fdf0f634d89029eafd6","signature":"bfe81e127678e4299681c191d2d6d41ac0f8eec3fbaf4ee37780cbbed4d0b0fb"},{"version":"0705a261f63e25f644a2da2a86a70f02fa3fa16d2bdd4758e9c02b1415a72d70","signature":"d1842aa82a99259b3c0b18c45380d8997bfef58ddfdf4d89b47a44f308a3cfd6"},{"version":"8a5d501b3c0220550be0942377246a1be4bc939f48d912cf6554944a4edb5ebe","signature":"a260c41801a1cb101d565efc17af24ef5bac9ebfcd5c15cc0926d62b7821858e"},{"version":"0846c8744f86acdb7382f1e3f731a9a5612f4493638f4be1d54de5620fa42558","signature":"768019cca3f6e5611bc4d337e60ea94d73eb512a78bfef5eb0d7205fdb453302"},{"version":"061bc490e5346bda13b757edf18f193b916bcec4794f2f3f8d73151933d80fec","signature":"3d96593d77180b7926c13513571d481a4fd9b2b05ca03cdb09d27de65722e4e4"},{"version":"4e5c74140fb5a23020136de9040a4639773112e3f3f9f73a951167fc5afd0e19","signature":"ba5c1bc449077b683a3508ef0b1379ab588fcc46e261f6f28dd20da6adea9776"},{"version":"4a98be6baa4f93e8ed393fbd039fed4396d1cbebd508a9cf97990bfce2c8175b","signature":"7459b9f7d96fd7a1f488db36ce44a58dca2c44078a507cd35af041249299ec92"},{"version":"6f1cef2629a3232eb467c2a318b419381923564c0dc1bbf3e53358d420588f08","signature":"11d36db292220287ea868ffeaae424992a6a8d09c33d56133dd048d9d2eb3b81"},{"version":"71dc037c1fc59196541ad703040644892e27e50f1d119eb7bb1f335489b51745","signature":"7b7ddc4feef14f84c33a5d93fdf27106a25be684b0622998f6d5b8a0c213cc75"},{"version":"99790717a9e41a2736a7a443bc6efc34fe3b51df52079f1d3c3bb234192fe46b","signature":"40948660cc109b9cfe0dab31c4cf94e4fd2f60494b31495d09e040bd7dbe35cc"},{"version":"4a6c18259bb4ff93ad506cfe9cbbefc2a03eaa92784527c1ea0f05b1a9b6c9f6","signature":"08d2982e2e7b490f7d85757a70e2cabcfcc914651c4ab2ba1296642115817e0e"},{"version":"37db743ae63ff1c35a4061e5a701ab835b040df965fdca971884a4fe8fd9387a","signature":"c8cac70dd17392d7e5d476f357a079e138fc384f28e31c846e8794527e277e3f"},{"version":"e7301c4ed216aa3d720d9767f00cfcfafcb263cd2b5958c49b25f198be4b64ec","signature":"0065e28c7bccdc3d1c86f7b70f7278434c7446a4cc90ebb8ba365dee5e8e9abe"},{"version":"30fafc3515562722c952b00818691ba6654daea65e5f2e43a97216c9498c766a","signature":"8ece1eee258d581f8a20e730324d2acc78a486e9d1484428a0e279af2d3b360b"},{"version":"49d1ecd4d63dbe2dae1a7c0aefb39ec3fb02fb16d7455df763152210d0848e34","signature":"5d2d8ce34e86c69adf39cbcbd707a5c7e90621c076fb5f9ffdca1e9f44abd0bc"},"02235c3d7ce00bab607009e86fb1233d4c3d195d61e7797683d2dc22fc724611","b9dc2e81efbd77e159e47364e674026c974bb2be86336a09fdd4b591ebb1a01e",{"version":"2b0e5a70a8eed417317ca166d20268df4e497872eff757045b5718faf37ffb27","signature":"b3536b926e4b79057a5bd78ef0f0c6d1b9ce6ccf182d0441fc830948fc2c1ea3"},{"version":"8f59e5fa2b5d239fa7bc2a87b196979657a497066d99094420b86aadddf13aa0","signature":"248a551621c9c9cd2b0aafb33c161b122f3d764b797352eb1ff49e78f92aa740"},{"version":"84aaf5fb899c6ffa87bfa632d42557c39a002bdf994a29e0a57cad9639da7ad3","signature":"ccd9da923673778a4a0424e870609619e282aae5f7d1735a87932412f1e13b3d"},{"version":"13a29cf292ed7e0c010ac3b31a98036e52a39aa7bd043eaa51a6e1616d2733a0","signature":"1b04c581cc92e085c15ca296fcb16ddd60eddcdee4132b0466a3841fd9cd69b5"},{"version":"ac1fc7ea410dfeda06c28141536ddf56a111b5cebf171f6286d1ae28f0134cb7","signature":"9a87b2ea30664beb2a36f29649727e4cac251b5d0494252979908b0e05115eb3"},{"version":"0f16701b3a0ca916ed8ea78e1fea55f553a9b4118f8ceb70512d4893a3f0be24","signature":"7891e0e52695421ce7c8753419f950472fb8765af9414ebf3fae697bb81da40c"},{"version":"5d5a5098700c7ad28c0d4c27fa07ef53825d269ec92881dafe1a270162ac95f5","signature":"bd3a39348c4635d684757bc14a8ec9dc9b187e29904d29822739c632f5e6feb4"},{"version":"0db45c2c8e64b69f0b8646e9630b8fd88aa41bc4ac7bfeda96d78222da348b3e","signature":"8fe47ac4aac3a1418d7948a178d59c748edf3a9d05e66d80f9e85528101ef007"},{"version":"2e2219df99023766c78f40c5835ec7ca7e7fc5a521c71cc075be62ecfb2d7521","signature":"c3a2f0cbf28041ae8b7a1e95d645616121ead1f0a7590879d7db95ed6ad7e2d7"},{"version":"5e16bbd31656f557d0638d064c2c37db584a7d0a4f473d9a727dbda74454b4fa","signature":"ec482c0fad016cc2b752bc1870976824712ee252ef1f8817eed28fd09019b2d7"},{"version":"c8158be241e783e4f59d10d233722e9c30f34ba87814833f62d3ffd96dd744fd","signature":"e7fa5a15e82fd7ea9515ea925628a4b0894367a9d0b44c6f05d018c50f080b54"},{"version":"cc9b96cd8c8be79066934fd8cdf0efb1aaee3bfdc837fbae6e71422160040e98","signature":"17c78b498af5b09c46cdf31d4755a0bae6225a81c0cb4b0ccd88d5bc752624a0"},{"version":"06453b080da80f9c8096a6199bd956597cfda2d84fa89ecdcaed8a086fbae358","signature":"4a224257471894eae71bc3acee2788ca3b80ca3568c0fdcad9f7d0792ff7d6e8"},{"version":"8b592e307be784a34bf4d8c8a759027b42f67a2fe9ea1ac53a6be0cfdd7d35e2","signature":"60cbdf5583678ca8d07cb7860f46f44a38b61b3302630e89d18fa4b8ccf9f6b7"},{"version":"2d920790f66893152abd410ac1958d9bbac35c5a9cee4c3625ef04eb5bb42073","signature":"7f0a091b71330343f4c253ab2208859d0c10a61ab558a7dd2a007eadc08faac2"},{"version":"acdcb245b642a2186ec2cfc3475005be4406808df20584b71179c2bfc4743c16","signature":"51d8c93cea8293e1a25f871af6b1590fb3c266fde03fc2c88e3fa419718f02f3"},{"version":"40ea3e30da7e4b5d1cdad856e9b4fb93768937d8527653be07241a2cb28f85cc","signature":"ef8e37b7f06f3eac3869fef45745f6fdb8e285df808c103e5d603bd437058548"},{"version":"3e469522277d71a14f8339210445f16b663fe56ce34ec540cb62a2e7dc0d7b59","signature":"1c08516516fbaddd4b680f8b716bc90c3ca11945025b2604121f7d3ffd7dc016"},{"version":"220e1849a60f8f8e08481af8d08a50d435cc36a872c62b674d57ffc08f9f723c","signature":"84bff4dc722f38d47aa71e92ac80328714da0d4f4ef5cd103dc7f1c140565afb"},{"version":"31b85901568386ee64cf3f102ad6fdb6e840238843652feee9b183ab1048e9f5","signature":"759726acb645bacaa77db49e44ea4cc593eda59d9dc627c95e9f9680cb21c7e8"},{"version":"4e7630e8f2b802bfa5dd2f90bda07ba6da6776d78673c2943c37a53463f66082","signature":"8b46752ee87a9b90402b3af60dec76718a30dbf2a3382b287955dde1974077f6"},{"version":"28837c2bf6f18abca415c034d67aa29b8a55d9b273e787bbf813ba1bd34c9764","signature":"1d2ed8826b5ffacea5f3966a94103bc99acf81fd0b37a35626270a31b5e234cc"},{"version":"5264e962c16fc536229dc1917a64f084c6ebff16265df612004b4c71cb7f00c1","signature":"7b812de452f602b442ee853bee69f6cc2b0803d86e4b5ac568f05702209d4ed2"},{"version":"b4d72f3af42e95fd0b45c30e2d65bc06f0d28f6891a752516ca24dff429356e7","signature":"b2d62b8d0727e4dad8349e8295512c88e1f4cf5acfea7df4a5b07fab4ba34d89"},{"version":"dd0fdde4e142c9e854d8d41ccaf03a36571f2b3afd29e73f3fa621b145d1b53c","signature":"dd222cdaf215ee58e4b189d7c47691ca4b6e5852455ed138180d12edcd1245f8"},{"version":"68d42f29e18311e938d613c8b9cd5deb1850c009e9428848bc802f90269caac6","signature":"7ebbd3b6ec178c58bd655851d02a7a39976ab042618912498a3ccc3c3a10ae19"},{"version":"8569e2037c7b75fac792a3d4e9f774ee2934e5ec301cec90dc7d34f83c40315d","signature":"7450383afa81bbb1a0c30b7871cf1080cf7520a0f2234b8212d59a6cd066b2c1"},{"version":"6ea62e55484fd1663befddbf37847e62572c07ee048f9fd8b8431bab255762ec","signature":"7ce6bbc7ee31392ad4f50b02fe43cd0651ae3f9f962b69f3960767cc1ff0aa7a"},{"version":"587f2f6b3c14e439b1d77f0faae973a2fa97b96e67a902625d8614e806774d91","signature":"45d8d6c52a5b250c606a7180516efcb1c40d77d846ccbcdf3fabd30c26e79f33"},{"version":"f0f73fd4846d4641f995c995a05e2d46d44392cb97cd9528ea27f06aca2ece89","signature":"79061ada6c348464aa9d2126908a6a858a7d00483666cbe53e52e7169e184a19"},{"version":"afdb15f662d421c84ec5434bcd8f58ffeb9276c2ae64c6bceeb0da4c5fd2d211","signature":"91ad4edfe41b7ecf3759f356d8e7fd2548842c6ff7580bf4eca4191b60326fe9"},{"version":"32b85eb54219fca4fb294b53e915fc3da5e874251f7e7095cfc60177441ac0ef","signature":"450edcd2cef3787f70ad9e9dd8b9a75a357577ef13f66278ad01589f9f5d47e3"},{"version":"de10bd615e3a7546a30ad29a82df20ff50606481fe875bce2ed35eaee0cd71e4","signature":"4280075aac761f3ecf9666549e1d4d8d0f6801ec58b971a89784886dc296568c"},{"version":"7d58b6a221eb478144f1a6994f7a52b15539e21a09c90993368ec43d36827c51","signature":"cc1f007eddecc27cbd6ade3acc5cbaa3a003254ca811ccb844e6ac5f004283e6"},{"version":"bc22f583c0378504f328f4edced455b90525eba03642a36b07d4dea46013cb91","signature":"629e3dbe7bf7067c4548f94941e408eb1864f24d884d7c9a3506bcbc0347fd44"},{"version":"0e2f873e62f20db45408d23e94014bdadb0c5265fdf914744d22e10125dd8f6b","signature":"c98db769a5ea73f2c36f434e38dabfedd9c50970bfce4c575386350fb784b4f3"},{"version":"6b1a0681f3fa701b06a2f90896c46562395351f90601fbba28e325924227cdd3","signature":"4f61d4f231207ac221364cf474262d752d13dbf072c588ef40e8fd157199d726"},{"version":"6109618142eb67d8691e8b5f4382d9a096ac407cea4d16c5f42e356370f9c094","signature":"aec892edb5606abf246af3dcda219335022dba18c638976f022eb1cf06133380"},{"version":"e6994d65fbb7064b046c14af5436bf1db12451d57d0c0a045f285c5748ccfd52","signature":"be76549fd1339b7931d9835c2097586be8aee17f0d38a2034955074201b61b9f"},{"version":"98b8cfd04d4c3eb92e409d785c03d39eea9bda6b5580a4e05d84f9cab2898fb8","signature":"0c1eb0cb8803f17be6999d39d90660f08d5a32a136209b7b6937f42f5a23853e"},{"version":"3a1cb40b9117d6c80e086dc734387a7f354175d23b6b604a1a71410fb4ca5bc0","signature":"e0b436e8846bd16a4a1052399155655395a202d9d5911874abfb18c967f5da6e"},{"version":"3d513360e8c84f561bc5edb7e720eca3de381df50fc1266e384c3ce921ec14ed","signature":"e255a91b5cc850f16961fb25af064a4ced6eb7312878517f380b9fdf301c7dea"},{"version":"08c59fb1e931d59c5061044c2ebb1333e60c469ef4b5be1a577998ad57bfc9de","signature":"3eefdcbe95cb70d5d6f2be02bf0fb6ed1eb6d15623f37b5befb468d2bc46caf6"},{"version":"5901bd0d098672604750f50a5467febe92168e2f7f100200fd456ac8c88138e6","signature":"1bd64d36c9edf7054554c192172c04bf9fc94e3a5b227d752eb1f6460cd191ea"},{"version":"c628a8f95135fe2f30f0185185ced7e137339a69dcee272669c159daf78b02ad","signature":"6dbb96ea5a56ffbe98c4734d781a54d46e9a131d79459fe904226c3940049c36"},{"version":"ec32241801c63dfdc7a91e7f151cf8b1e9d4da7e73708bcc37eca2ab51d47783","signature":"7d6513515568922edd398eeb3dbeecc4f2316d4c1adbaf328e6118c2dab1daf8"},{"version":"d6ba95d9f23b73a30e8cac5099de7c90c4437c56f75e1fa999abe7100c22b85c","signature":"b81ef31a6d511ec88725b311135efcf077bdce9ee8e906f69eef8fb2a5e9e520"},{"version":"2e67338f19ae5a26a4302a8ef31d81b7aeab58203ae40ecce502544111b1a9eb","signature":"e7022f55c2a5d5100093b6f5ca0b2fefdd33bc1fd06d6b890ccd1c6a8d390b6b"},{"version":"65a496fd403a098cb3588860b4bdaed636cfad8645ebb6b8efa37868f195803b","signature":"1cb7c85cc67b740e4804edf1aea824183c0ccbd0829fbd1881677cee14e2f13e"},{"version":"7e8ce684eb7384641c26105b35bba14d0610abf3f845d647158a0a8242917a93","signature":"1ad0134b6e5e33dc074bec4c9515bbe3e65e158c4abce06ae42d5ecf7628de8a"},{"version":"02b10e9f6de582ada668bc50e8c6979e6583fdf711d0775f37ac5f40af7beffb","signature":"b76a8ff3c341c09d704e4940737c0ab6ac8e088b60d651a4c41f4d6c574e3162"},{"version":"f590d0f0aee5b9dc28cd6de07c25ccd9527d3c702d3b737550df633cbac17313","signature":"7c749d20b2281d3ab91ec9beaedcfdd24ccecd29dce4d7818b54b9cbf91f7077"},{"version":"a8582fe2efd4ecfbf2cb09cfaa4873b96f17ddc51789a5ac59664f39560c8ad9","signature":"4b67dc3b34a88ce221c2b3646f8571254cc5c428263a62f1d1759292c00810e2"},{"version":"1e1f132f4817967a788bc2f7d55a148603b8e5e706b91ea5146f368f8b0a53bc","signature":"b96522c45913eb27711e4862ab056fbae69766092122330fa4ac09baaf567581"},{"version":"5abf0aae590917b88bc68421e59c3a4adfe77a16ceeea40ece97a8ca5984d2f0","signature":"c49a02f98d2e3f498adfcceada2567edfff4a9059bd7d83c07dccf41a1963301"},{"version":"92918a42ea743faa202e65585a89451a09210f45ab2723506642bb780d42e40e","signature":"7d11c56874a0a6048f5b09575cd9b37a839cb2fef27761eed1a3fa44ef1a82e2"},{"version":"23affec9f99ed46d6eb9b02ae67e18ed50a5f363effaeb1b00577109cdcc7ade","signature":"17a9e1d006fe379b2bed256e1f04fc48426789836e850399454b4380fa7c7e6b"},{"version":"2e5b68c105529b5b2775ea505dd7d5ef5ad30cac8d9addbaa63b473545e278b2","signature":"bf3771ad595ac1178813f8124f189f5429eff2aa1a8016a638839985ebe44993"},{"version":"7d5caa590d7228b5218cd21f04409048cbcc79257c3acfbb5c0287defc4fc7e2","signature":"ba159fc169c1a256526bc54b9a95659878f5187eb4e6d667f792ace4e776325e"},{"version":"5333560977223ca6684a251398d53cf61506501353328cc2d83b2f7506c66d37","signature":"5b3496386ab12f177252ef6c7f7ac91b245a5644c0a73016a20826e3cdbb8da0"},{"version":"af9233bfa42803ce83205c72b77ab64cf564fcccce222aceb28cff3e3c4f64f6","signature":"db2e086d8bb5c5b0e7b34ad0b2c757006454f42c15a320b3bb6df513b90bbd40"},{"version":"2a7f7f8f31327c64001553de1a04b2cde728e226419e37f1dec52e5c83c5ae5e","signature":"fd2db49c11d6e6e1f13e06cb9d2a91e4f5298e0177a1cad85b8449b17bc8891f"},{"version":"dd93177bd97a59321ece466e75e85442950d94969359ac9b4f7de582d71c6cce","signature":"76bd669a6f58f1adc9c09f85176a7a9cc3005af2b92b3c5613a6ab1107455479"},{"version":"40f58e951722aad568d7b55cd0d4d4834f106ef10f49385fe34cc64a1569dba9","signature":"765af0c0ecd74000ba04d7fc34f2840b447eeb421a25aab405d656a343751c42"},{"version":"d8ac4713f665a2e9d54394693e2f3f46934fe5535eff07fc481a4338f5894425","signature":"eb03ca38d161b8234567c1bfb0293d78dfa8022486e1e2486da001063698660f"},{"version":"cf5aa12fd028c82df1c466db4a461092e36420e8edabe12243b2227bb4dc202c","signature":"b322e4b2a8453568a8c011c8e2376d9912321dc20c19588a8474b74dc89ed2d2"},{"version":"44bfe6e607bc0384a0739f3613ebaea9860746856e34066d18a4a0c139d196f3","signature":"6ccb6019130b91b3ed77f380d22dd6be6d8f99b7450176ee99099e00a26c0c7b"},{"version":"563d31834a0fa3bd72027a34711f12d3405040b81b99ac563e3264d1a930f2a0","signature":"ccbe8efd172e48aae5fa7442d729ff8811578c7cde9567876e0fdbc3b6d9d2fc"},{"version":"cd955c011bdb7f9e06f5e5ef79fc218b087881778f9ced7c5136e4e0285f5a83","signature":"0df35c2a72dacdd94825685ab1296ec5cb00b848e3a2b3e5e915266a013a5a4f"},{"version":"0ed38bf08403ce5997f887a02756e2e5af5da0a1e08961448a1c4406df941407","signature":"4b42e1be3185e38b899f567f545cefa4576bbc264c25bddb72df636682426c6f"},{"version":"41a85e7c0a1ecd983043fe77d36e4ca2dadc3ee0b784c1b73891a63f54771544","signature":"48be07172c2c9e000bd8bb75c4e200cde83fb1d9d01ddad2fbc06c6ab8fd0ce1"},{"version":"348319904f379263ebb88b70b23bcda518dec0c1bdff3abbf266b0fbbd5e5544","signature":"77494eafb0d1854777bca9c59b4dde3d5e23cd8cbd67024561829ad10be93c35"},{"version":"244f0c72ac87148b79100191a099d612b2231e48d5aee68104dfd40d1e1d8a0a","signature":"befa1c307aa8c095788717964089f1fa91dc36d1d1bdc452a5814e18f747a4d9"},{"version":"9791a1f48942d57f8c90efdd01ece2f69fd856edb8cc0bf26abc635e4674ac44","signature":"d42f4508f69b5b402927a61b798335e3f534bc3aa1ad2e4b0fedd2f3eb5371b5"},{"version":"3383ccbfe775ba21d832df9d779599cefa5e84d76e6fbd702491bf9928ad5990","signature":"db79107ef62ecefe1b266acd0c21438f3fb2e73e551cf322a271574dfa1730ef"},{"version":"9a91b7a6a23fcf18316ae4a31e3923c051f6ba1332e64e1ec866fb2ac1e989c2","signature":"6fc6df52c242a373c137cf0e8eb67ebb4211558946f0389b3cc8b5494177ae07"},{"version":"016eb5b8d0391f091d443f38ca3e88677e293f9a99a04c156e05bd0ac010161b","signature":"3bdde647d8121cf55ea87b5a8356013f255d77567cdf1941139e4cd74f0c679c"},{"version":"20ed9a77eab8108e07fda2cef45aa4112608d459b646b84c155b5ec7b344a220","signature":"83faba5a30bb25ca094a72065bf29b08db24e62942faa44b64916f7ed52cf530"},{"version":"6d8072f61267c5c7ea2c8fa34ba15995927d7893b1ef9405eecf8417108f36c4","signature":"97b7770bcdf42e6e28a20fb940101f09281f3c85e9bc2b3c7cdeaf0382924409"},{"version":"db00ed40a947822f4fbaae1249fd532c74e049b34ad5fd27c741f5f194fcb688","signature":"94cbee6f0dffadd4f59d1dfa42a0ee3846d895b389578b51a103b74115882251"},{"version":"a56252d3814631458f3586feaf7abb0225e3c876a619e03888aa55ef13fe2d04","signature":"a751d5607d51e6f2286e1c2dba7df52b2045ce88a4af8cc1b764c870c2339011"},{"version":"a3c99479bf2265039fee271f17259718ab2827b1b254f4dba161094dbc911d19","signature":"7c74bdb8d053faefff320e1370b1a9cb795fd2b57d209cc5afe1f763838d626b"},{"version":"fb80d5308cb150216126a35e6f425aa09eab113ab2827daf78001a8a4a88f2eb","signature":"c8ea1d29f39e21ac3164ab57dff1413fa9d5f523c6ffa049c078e2df42b4cec8"},{"version":"c9b207a6dff51ab39a88272390c77320930ace77b1caa6a9361e07ccbc268a32","signature":"64dfd236a61233c8d0f9c4850536a4cc40f755880917c1a3c88abf6f1cfab966"},{"version":"5c85a830a6c397cfb85def8d948e6bfb6cdc5ce8f3814ac5f7ba1fa58ae0194c","signature":"365d30e5e099749ce1dcd77cf95aff5345932920ff13b04a5780d33c272b6f4c"},{"version":"a77928ff98b0b6ade4476f918c83af3c042f2b71eea71fa52190818009a850df","signature":"87f523cd4dfe13fc59b13c03c597e022ad941c434b5ce40f9eadbda4f6b38a25"},{"version":"360ab7633a980a3db9eaa706ab0c75a3ad32e2d9892c707f82b4398b4668f8b2","signature":"c070748816f1caceb825c2b7fb39601b94e1d656d580dad180ac43ce2b12d675"},{"version":"c8d167471756cb3d60b9fdf4bbc140c15a1961d6e75d2b3be8db935754efc13e","signature":"35bc4afa3aa75229a9ecd34239a5c399edb8df15a0b235e47091bbc3c84d99fe"},{"version":"a1fd3dd0d3e81dbdcab7093f11e82a305bdbeb83c7037443d2046aed827ff179","signature":"21086148f18154e39101916cb45512113b0cc8bd58d42787b06965b585a9975b"},{"version":"d3d3a8149a84fca2c7213a957be093ff7b22df9181a670164228e5d464218fc6","signature":"eebf1063f367236e86c222a3fbdb7bcde380311ab9bce3705e7bd851099b4060"},{"version":"99e7b614a4bf6c64a45d4abdf83206b67c361fc102c2b61f1cb7aa6e6673c909","signature":"4a788893ebff146747910d2de43522dcb378ef9d3385be68b840aaa50779f41d"},{"version":"8da95c5bfa383a25ae46e5d0b75944af34c2b6c24b012d144df2defee4d441a4","signature":"d7bf61f36ad5502e236757402b955d07b2b01339f7e4bed63d6715780d176d6e"},{"version":"ebbb820f6f7e9fdeb8ffeffbbed1f698952611ec3140b4f024d32123902057ad","signature":"0a4ddcdea131bb7bc01d3797f8e5a8acf6d6c1fc9cb30faec3adbcbede4f8c27"},{"version":"57a383ef687b4683ff74ce08c5ec11d40f4fdb31693a1007f1710de8e5e2f1b6","signature":"bb04d888c12aa7a76a32b35124ee6e6450594de643e71cea08df7ecc67a15ba4"},{"version":"b0e6d2e8c9930b791833ce3443bdd456143e5cb5efff275104b15e4d2a29111b","signature":"3d96593d77180b7926c13513571d481a4fd9b2b05ca03cdb09d27de65722e4e4"},{"version":"0765855c0ccf1dce5c1fbb33d5d3812c20449d6f7f96cdda66ad373fe5cf45b1","signature":"ec2a6818e245fa1f0134bfc415d84bec458f9f4bd25079356ee8a739684976ce"},{"version":"b59bea0bd86781be55ed558808f5fcae687bbe3f59d6c6b9118fa9a57108f441","signature":"1c433923fbaab3feac5ec58eb5ddb496bb7d36c8145de492df9a9cbc28521874"},{"version":"2abae19c8480949991cf6f2f94de47eb2de8e6507c33cd4751df2b2842bcf0d3","signature":"52b27ade51a9eec2eb6065f05d3f271cabc522ecd022af39db99260a11abf4cc"},{"version":"19c7626558cd50a2f4f0cc852fca13bfcc6ef496daeb9db02b3dbd022ea6fa7b","signature":"b75c5611b115aeb3304d5a9e56430ecd4f2d3a2bef8e8946a4d5b1ec9656791c"},{"version":"9e9fa174a832e87acf83d2d5282a61097e61572e5bdf3b75de546eb0b21f993c","signature":"e7e317f8dab4cc2e6ca6c8155bd6b0e8d03c60837bb83e975fce041505d7e621"},{"version":"c9a6ebb311dd1988b733df21128777d51e3e201cfbff5350012a170faad8191d","signature":"6fa239b2f06a4a7dff6fc7225b0d4cabb85a46b6a73afe49d60737261ca6811c"},{"version":"85e062009100f12a35a81d9d65cb237fb24107d7285aae872b2bb9c199dfc9ca","signature":"6f3e29ca056176b01a08f4d079fbb604f6bd54d0f2cdf84bc0ddd494d947fa8c"},{"version":"6a29bdb46ac9dcf70f65a6977fc1ab9fc9e8a48bda0eba586520a37673563047","signature":"77d3fedc9aa7eacd54752a13cbc8f79ed373d98f12f404ce5820da649f8ff474"},{"version":"710592a3018d84ef85f9cbc68ff13fa32378739e0d5aa1ef5d8ce22204cd6dad","signature":"922b80d8f95706b83626882baee8fc79a12930f5285fae09246aae8d597f667f"},{"version":"1e9e19d94e9647a52b4300aa1da555c67854d58c0a760d1dc9e0efcd06b2d871","signature":"5a78d0ae8f2774c3a16ca3ca16b27f4ba6905df76d61a5acecad72fd66e39f13"},"e57bfabb27835e11b2829a54c09c10a0a63c1fe82df8d246b619eac82e0f5d2a","67f178773cb4a9713beb4ecfff306cfe25f9afe9dd746eb1ddedb797b965ac6d","e74998d5cefc2f29d583c10b99c1478fb810f1e46fbb06535bfb0bbba3c84aa5","2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050","43d058146b002d075f5d0033a6870321048297f1658eb0db559ba028383803a6","670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","9e0cf651e8e2c5b9bebbabdff2f7c6f8cedd91b1d9afcc0a854cdff053a88f1b","069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9","beeddf9260f885975c879dc1690cd577b630cee0a38817094379e0a90ad49202",{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true},"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a",{"version":"613b21ccdf3be6329d56e6caa13b258c842edf8377be7bc9f014ed14cdcfc308","affectsGlobalScope":true},{"version":"2d1319e6b5d0efd8c5eae07eb864a00102151e8b9afddd2d45db52e9aae002c4","affectsGlobalScope":true},"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"ca6d304b929748ea15c33f28c1f159df18a94470b424ab78c52d68d40a41e1e9","affectsGlobalScope":true},"a72ffc815104fb5c075106ebca459b2d55d07862a773768fce89efc621b3964b","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","3d77c73be94570813f8cadd1f05ebc3dc5e2e4fdefe4d340ca20cd018724ee36",{"version":"d674383111e06b6741c4ad2db962131b5b0fa4d0294b998566c635e86195a453","affectsGlobalScope":true},"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","a3e8bafb2af8e850c644f4be7f5156cf7d23b7bfdc3b786bd4d10ed40329649c",{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"f77d9188e41291acf14f476e931972460a303e1952538f9546e7b370cb8d0d20","affectsGlobalScope":true},"b0c0d1d13be149f790a75b381b413490f98558649428bb916fd2d71a3f47a134","3c884d9d9ec454bdf0d5a0b8465bf8297d2caa4d853851d92cc417ac6f30b969","5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"0ada07543808f3b967624645a8e1ccd446f8b01ade47842acf1328aec899fed0","affectsGlobalScope":true},"c4a806152acbef81593f96cae6f2b04784d776457d97adbe2694478b243fcf03","ad23fd126ff06e72728dd7bfc84326a8ca8cec2b9d2dac0193d42a777df0e7d8","c60db41f7bee80fb80c0b12819f5e465c8c8b465578da43e36d04f4a4646f57d","93bd413918fa921c8729cef45302b24d8b6c7855d72d5bf82d3972595ae8dcbf","4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","dccdf1677e531e33f8ac961a68bc537418c9a414797c1ea7e91307501cdc3f5e",{"version":"1f4fc6905c4c3ae701838f89484f477b8d9b3ef39270e016b5488600d247d9a5","affectsGlobalScope":true},"d206b4baf4ddcc15d9d69a9a2f4999a72a2c6adeaa8af20fa7a9960816287555","93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5",{"version":"70731d10d5311bd4cf710ef7f6539b62660f4b0bfdbb3f9fbe1d25fe6366a7fa","affectsGlobalScope":true},{"version":"6b19db3600a17af69d4f33d08cc7076a7d19fb65bb36e442cac58929ec7c9482","affectsGlobalScope":true},"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","137c2894e8f3e9672d401cc0a305dc7b1db7c69511cf6d3970fb53302f9eae09","3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","235bfb54b4869c26f7e98e3d1f68dbfc85acf4cf5c38a4444a006fbf74a8a43d","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633",{"version":"bb715efb4857eb94539eafb420352105a0cff40746837c5140bf6b035dd220ba","affectsGlobalScope":true},"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb",{"version":"fdedf82878e4c744bc2a1c1e802ae407d63474da51f14a54babe039018e53d8f","affectsGlobalScope":true},{"version":"27d8987fd22d92efe6560cf0ce11767bf089903ffe26047727debfd1f3bf438b","affectsGlobalScope":true},"578d8bb6dcb2a1c03c4c3f8eb71abc9677e1a5c788b7f24848e3138ce17f3400","4f029899f9bae07e225c43aef893590541b2b43267383bf5e32e3a884d219ed5","ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9",{"version":"5b566927cad2ed2139655d55d690ffa87df378b956e7fe1c96024c4d9f75c4cf","affectsGlobalScope":true},{"version":"bce947017cb7a2deebcc4f5ba04cead891ce6ad1602a4438ae45ed9aa1f39104","affectsGlobalScope":true},"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","e2c72c065a36bc9ab2a00ac6a6f51e71501619a72c0609defd304d46610487a4","d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c",{"version":"616075a6ac578cf5a013ee12964188b4412823796ce0b202c6f1d2e4ca8480d7","affectsGlobalScope":true},"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","9091e564b81e7b4c382a33c62de704a699e10508190547d4f7c1c3e039d2db2b","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","d78e5898c8de5e0f934eee83f680262de005caa268d137101b833fd932f95e07","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"56cbe80e6c42d7e6e66b6f048add8b01c663797b843a074d9f19c4a3d63a269a","9bbb0e9c08a0d81ca1068daf26c4ceb17a66450af5f6d7dabaae45210fe890cb","420ab1af26cd5bbbdce787413bd70c26220ace1af828d8b8d88ad0a9f13d89d5","ccc442b8bb7b6af5fe5007d63148bc83743eee8c37180849889095f60ffffae8",{"version":"17cc094401d1760f6ee0d3f100e40ab3e946e8eea2a7e81cc0dc37e3e475d880","affectsGlobalScope":true},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","3adc8ac088388fd10b0e9cd3fa08abbebed9172577807394a241466ccb98f411","5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","963d59066dd6742da1918a6213a209bcc205b8ee53b1876ee2b4e6d80f97c85e","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba",{"version":"271cde49dfd9b398ccc91bb3aaa43854cf76f4d14e10fed91cbac649aa6cbc63","affectsGlobalScope":true},"2bcecd31f1b4281710c666843fc55133a0ee25b143e59f35f49c62e168123f4b","a6273756fa05f794b64fe1aff45f4371d444f51ed0257f9364a8b25f3501915d","9c4e644fe9bf08d93c93bd892705842189fe345163f8896849d5964d21b56b78","25d91fb9ed77a828cc6c7a863236fb712dafcd52f816eec481bd0c1f589f4404","4cd14cea22eed1bfb0dc76183e56989f897ac5b14c0e2a819e5162eafdcfe243","8d32432f68ca4ce93ad717823976f2db2add94c70c19602bf87ee67fe51df48b","ee65fe452abe1309389c5f50710f24114e08a302d40708101c4aa950a2a7d044","c1d5cc0286eef54f6246a972ec1720efbba6b7b0a53a303e1f2067ca229ecd16","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e",{"version":"e9b76bb505b61fdb2b4347398776a0c3d081877cee7669f7ca09846aeb325c63","affectsGlobalScope":true},"ba600bf38b5c1a5dffa1b99dd7a783549082bbba3b4fe9497eaaf5e4c1764b20","ae8cd6af37275eac75f5369cdb5f01063bcf1f48d74cb434303ee50ec446acfe","2518830a2fda9c272ba48798d0e7b857037443b06594db8e42c87e86944ee9e4","95c1cf650d16b197525b5bfdf8dd7abba0a49d99ddb12a4ba66466a8a6903e49","1fe0aabe758d56ad72495d6e6c7b6ae75619faaeaaf03f0ddf1948eea4cfac84","bbc57966c8c48ee78fd58aadb893784025be056ae538ae22d1e83c502a987e68","5e5d6f6697e378b0660b567866bf67d099d0ea754f8810c0dabe737805f5cf03","99ab49d4732fdc98cf5c495925e65e796544cb4086fe42afc235dfc02bcf2351","af8339d509c40da075088e544c28ed37b519876e5c4d36a48644ebfb3c6ae6c8","d393adc32e520d4274bb4c3dfdcdb342b806a230b66ef0f82b35bffbc4aa2590","c26af7eaedb4f710984634e419ab15e54e5bb99a0b3cae71188c2fff572276de","38b58ef018d0aeee42ef74c42978bb5805503233fdeeb82cd2aed2199fb0d013","3b6040253231d44e6778eb6861cc86c1758562e77783d21b7ecbc73322ded539","03c258e060b7da220973f84b89615e4e9850e9b5d30b3a8e4840b3e3268ae8eb","fd0589ca571ad090b531d8c095e26caa53d4825c64d3ff2b2b1ab95d72294175",{"version":"669843ecafb89ae1e944df06360e8966219e4c1c34c0d28aa2503272cdd444a7","affectsGlobalScope":true},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","90ac19cb97ae85c7ccfd0c04322b02ce088bda9de7b42cc081cbb3674fe5446d","ed721c06ad2310a5009990954b21d9fde5f21c240c7b01ea029eb8de5fecea99","6c362c5d50652957065cf52f282a2bf0a456ed3713738d0ee1a9089dbb5b5fe7","8017277c3843df85296d8730f9edf097d68d7d5f9bc9d8124fcacf17ecfd487e","a370e617fd7ec5ff8c99f3582001f7c9ebf03e3c5be4113d3a504d321aff48fd","30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","c3052485f32a96bfde75a2976c1238995522584ba464f04ff16a8a40af5e50d1","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","5e8db4872785292074b394d821ae2fc10e4f8edc597776368aebbe8aefb24422","8baa5d0febc68db886c40bf341e5c90dc215a90cd64552e47e8184be6b7e3358","199f9ead0daf25ae4c5632e3d1f42570af59685294a38123eef457407e13f365","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","acebfe99678cf7cddcddc3435222cf132052b1226e902daac9fbb495c321a9b5","7d2a0ba1297be385a89b5515b88cd31b4a1eeef5236f710166dc1b36b1741e1b","82b1f9a6eefef7386aebe22ac49f23b806421e82dbf35c6e5b7132d79e4165da","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","49c972b1c491933723861f15cba6ae694466abfd0938ca4f366621127bb51962",{"version":"910199067bfd07a4605bf51001677680e1691f8d403e9d410c0fe33a6079cd58","affectsGlobalScope":true},{"version":"401845ce10d4d9848a8e39f5004446eef7c3db2de5e9341b8a17c9b00aefcc0a","affectsGlobalScope":true},"b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","4a46f9eea0ece14b97102b39a3a60870e39882005f05a9c819a099b99c571b81","74d5a87c3616cd5d8691059d531504403aa857e09cbaecb1c64dfb9ace0db185"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"experimentalDecorators":true,"module":1,"outDir":"./","sourceMap":true,"strict":true,"target":2},"fileIdsList":[[270,282,325],[282,325],[43,44,282,325],[43,282,325],[57,282,325],[45,155,282,325],[161,262,282,325],[58,282,325],[44,282,325],[282,325,411],[270,271,272,273,274,282,325],[270,272,282,325],[282,325,340,374,375],[282,325,331,374],[282,325,367,374,380],[282,325,340,374],[282,325,383],[282,325,382],[282,325,386,387,388],[282,325,337,340,374,378,379],[282,325,376,379,380,392],[282,325,337,338,374,394],[282,325,338,374],[282,325,403],[282,325,397,403],[282,325,398,399,400,401,402],[282,325,337,340,342,345,356,367,374],[282,325,406],[282,325,407],[282,325,413,416],[282,325,412],[282,325,337,370,374,431,432,434],[282,325,433],[282,325,435,437,438,439,440,441,442,443,444,445,446,447],[282,325,435,436,438,439,440,441,442,443,444,445,446,447],[282,325,436,437,438,439,440,441,442,443,444,445,446,447],[282,325,435,436,437,439,440,441,442,443,444,445,446,447],[282,325,435,436,437,438,440,441,442,443,444,445,446,447],[282,325,435,436,437,438,439,441,442,443,444,445,446,447],[282,325,435,436,437,438,439,440,442,443,444,445,446,447],[282,325,435,436,437,438,439,440,441,443,444,445,446,447],[282,325,435,436,437,438,439,440,441,442,444,445,446,447],[282,325,435,436,437,438,439,440,441,442,443,445,446,447],[282,325,435,436,437,438,439,440,441,442,443,444,446,447],[282,325,435,436,437,438,439,440,441,442,443,444,445,447],[282,325,435,436,437,438,439,440,441,442,443,444,445,446],[282,325,391],[282,325,390],[282,322,325],[282,324,325],[282,325,330,359],[282,325,326,331,337,338,345,356,367],[282,325,326,327,337,345],[277,278,279,282,325],[282,325,328,368],[282,325,329,330,338,346],[282,325,330,356,364],[282,325,331,333,337,345],[282,324,325,332],[282,325,333,334],[282,325,337],[282,325,335,337],[282,324,325,337],[282,325,337,338,339,356,367],[282,325,337,338,339,352,356,359],[282,320,325,372],[282,325,333,337,340,345,356,367],[282,325,337,338,340,341,345,356,364,367],[282,325,340,342,356,364,367],[282,325,337,343],[282,325,344,367,372],[282,325,333,337,345,356],[282,325,346],[282,325,347],[282,324,325,348],[282,322,323,324,325,326,327,328,329,330,331,332,333,334,335,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373],[282,325,350],[282,325,351],[282,325,337,352,353],[282,325,352,354,368,370],[282,325,337,356,357,358,359],[282,325,356,358],[282,325,356,357],[282,325,359],[282,325,360],[282,322,325,356],[282,325,337,362,363],[282,325,362,363],[282,325,330,345,356,364],[282,325,365],[325],[280,281,282,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373],[282,325,345,366],[282,325,340,351,367],[282,325,330,368],[282,325,356,369],[282,325,344,370],[282,325,371],[282,325,330,337,339,348,356,367,370,372],[282,325,356,373],[282,325,356,373,374],[56,282,325],[56,57,282,325],[56,282,325,403,451],[56,282,325,403],[56,282,325,454],[282,325,454,455,456,457,458],[52,53,54,55,282,325],[282,325,338,393],[282,325,340,374,391],[282,325,418,467],[282,325,337,340,342,356,364,367,373,374],[282,325,471],[282,325,337,356,374],[282,325,409,415],[282,325,413],[282,325,410,414],[282,325,420],[282,325,419,420],[282,325,419],[282,325,419,420,421,423,424,427,428,429,430],[282,325,420,424],[282,325,419,420,421,423,424,425,426],[282,325,419,424],[282,325,424,428],[282,325,420,421,422],[282,325,421],[282,325,419,420,424],[282,292,296,325,367],[282,292,325,356,367],[282,287,325],[282,289,292,325,364,367],[282,325,345,364],[282,325,374],[282,287,325,374],[282,289,292,325,345,367],[282,284,285,288,291,325,337,356,367],[282,292,299,325],[282,284,290,325],[282,292,313,314,325],[282,288,292,325,359,367,374],[282,313,325,374],[282,286,287,325,374],[282,292,325],[282,286,287,288,289,290,291,292,293,294,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,314,315,316,317,318,319,325],[282,292,307,325],[282,292,299,300,325],[282,290,292,300,301,325],[282,291,325],[282,284,287,292,325],[282,292,296,300,301,325],[282,296,325],[282,290,292,295,325,367],[282,284,289,292,299,325],[282,325,356],[282,287,292,313,325,372,374],[46,48,269,282,325],[46,269,282,325],[62,269,282,325],[46,60,61,269,282,325],[46,72,269,282,325],[46,48,74,269,282,325],[46,47,59,64,65,66,77,269,282,325],[72,269,282,325],[46,60,269,282,325],[46,48,59,269,282,325],[46,48,60,83,84,155,269,282,325],[46,90,98,99,100,269,282,325],[46,87,269,282,325],[46,90,91,269,282,325],[46,48,88,89,92,95,96,97,269,282,325],[46,74,93,94,269,282,325],[46,74,94,269,282,325],[46,91,269,282,325],[103,269,282,325],[46,48,106,269,282,325],[76,269,282,325],[46,48,64,76,86,269,282,325],[46,48,59,77,94,110,111,269,282,325],[46,48,116,269,282,325],[46,118,269,282,325],[46,155,269,282,325],[45,46,47,48,49,50,51,60,61,62,63,72,73,74,75,77,78,79,80,81,82,83,84,85,86,88,89,90,91,94,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,119,120,121,122,123,124,125,126,127,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,151,153,154,282,325],[46,59,269,282,325],[46,76,269,282,325],[46,64,155,269,282,325],[46,67,269,282,325],[46,68,69,70,269,282,325],[46,47,59,64,65,66,269,282,325],[46,81,269,282,325],[46,71,269,282,325],[46,67,77,129,130,269,282,325],[46,48,60,74,78,111,269,282,325],[46,47,93,269,282,325],[46,87,282,325],[46,48,77,89,111,136,155,269,282,325],[46,67,77,269,282,325],[46,114,269,282,325],[46,90,98,99,100,135,269,282,325],[46,75,127,269,282,325],[46,77,269,282,325],[46,47,148,269,282,325],[46,93,269,282,325],[46,129,269,282,325],[46,65,269,282,325],[46,48,60,127,269,282,325],[46,48,114,127,152,269,282,325],[46,48,127,155,269,282,325],[46,48,120,121,269,282,325],[162,163,269,282,325],[162,269,282,325],[169,269,282,325],[162,167,168,269,282,325],[162,179,269,282,325],[162,163,181,269,282,325],[47,162,171,172,173,184,269,282,325],[179,269,282,325],[162,167,269,282,325],[162,163,167,190,191,262,269,282,325],[162,197,205,206,207,269,282,325],[162,194,269,282,325],[162,197,198,269,282,325],[162,163,195,196,199,202,203,204,269,282,325],[162,181,200,201,269,282,325],[162,181,201,269,282,325],[162,198,269,282,325],[210,269,282,325],[162,163,213,269,282,325],[183,269,282,325],[162,163,171,183,193,269,282,325],[162,163,184,201,217,218,269,282,325],[162,163,223,269,282,325],[162,225,269,282,325],[162,262,269,282,325],[47,161,162,163,164,165,166,167,168,169,170,179,180,181,182,184,185,186,187,188,189,190,191,192,193,195,196,197,198,201,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,226,227,228,229,230,231,232,233,234,235,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,256,257,258,260,261,282,325],[162,183,269,282,325],[162,171,262,269,282,325],[162,174,269,282,325],[162,175,176,177,269,282,325],[47,162,171,172,173,269,282,325],[162,188,269,282,325],[162,178,269,282,325],[162,174,184,236,237,269,282,325],[162,163,167,181,185,218,269,282,325],[47,162,200,269,282,325],[162,194,282,325],[162,163,184,196,218,243,262,269,282,325],[162,174,184,269,282,325],[162,221,269,282,325],[162,197,205,206,207,242,269,282,325],[162,182,234,269,282,325],[162,184,269,282,325],[47,162,255,269,282,325],[162,200,269,282,325],[162,236,269,282,325],[162,172,269,282,325],[162,163,167,234,269,282,325],[162,163,221,234,259,269,282,325],[162,163,234,262,269,282,325],[162,163,227,228,269,282,325],[46,48],[46],[62],[46,60,61],[46,72],[46,48,74],[46,65,77],[72],[46,60],[46,48,60,83,84],[46,90,98,100],[46,90,91],[46,48,88,89,92,95,96,97],[46,93],[46,94],[46,91],[103],[76],[46,48,76,86],[46,48,77,94,110,111],[46,48,116],[46,118],[46,155],[45,46,48,49,50,51,60,61,62,63,72,73,74,75,77,78,79,80,81,82,83,84,85,86,88,89,90,91,94,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,119,120,121,122,123,124,125,126,127,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,151,153,154,155],[46,76],[46,64,155],[46,67],[46,68,69,70],[46,65],[46,71],[46,67,77,129],[46,48,60,74,78,111],[46,48,77,89,111,136],[46,67,77],[46,114],[46,90,98,100,135],[46,75,127],[46,77],[46,148],[48],[46,129],[46,48,60,127],[46,48,127,152],[46,48,127,155],[46,48,120],[162,163],[162],[169],[162,167,168],[162,179],[162,163,181],[162,172,184],[179],[162,167],[162,163,167,190,191],[162,197,205,207],[162,197,198],[162,163,195,196,199,202,203,204],[162,200],[162,201],[162,198],[210],[183],[162,163,183,193],[162,163,184,201,217,218],[162,163,223],[162,225],[162,262],[161,162,163,164,165,166,167,168,169,170,179,180,181,182,184,185,186,187,188,189,190,191,192,193,195,196,197,198,201,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,226,227,228,229,230,231,232,233,234,235,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,256,257,258,260,261,262],[162,183],[162,171,262],[162,174],[162,175,176,177],[162,171,172],[162,178],[162,174,184,236],[162,163,167,181,185,218],[162,163,184,196,218,243],[162,174,184],[162,221],[162,197,205,207,242],[162,182,234],[162,184],[162,255],[162,236],[162,172],[162,163,167,234],[162,163,234,259],[162,163,234,262],[162,163,227]],"referencedMap":[[272,1],[270,2],[45,3],[43,2],[161,4],[58,5],[44,2],[46,6],[162,7],[59,8],[47,9],[409,2],[412,10],[411,2],[275,11],[271,1],[273,12],[274,1],[276,2],[376,13],[377,14],[381,15],[375,16],[382,2],[384,17],[385,18],[383,2],[386,2],[389,19],[387,2],[380,20],[393,21],[395,22],[396,23],[397,2],[401,24],[402,24],[398,25],[399,25],[400,25],[403,26],[404,2],[405,27],[406,2],[407,28],[408,29],[418,30],[417,31],[433,32],[434,33],[388,2],[436,34],[437,35],[435,36],[438,37],[439,38],[440,39],[441,40],[442,41],[443,42],[444,43],[445,44],[446,45],[447,46],[390,47],[391,48],[394,2],[322,49],[323,49],[324,50],[325,51],[326,52],[327,53],[277,2],[280,54],[278,2],[279,2],[328,55],[329,56],[330,57],[331,58],[332,59],[333,60],[334,60],[336,61],[335,62],[337,63],[338,64],[339,65],[321,66],[340,67],[341,68],[342,69],[343,70],[344,71],[345,72],[346,73],[347,74],[348,75],[349,76],[350,77],[351,78],[352,79],[353,79],[354,80],[355,2],[356,81],[358,82],[357,83],[359,84],[360,85],[361,86],[362,87],[363,88],[364,89],[365,90],[282,91],[281,2],[374,92],[366,93],[367,94],[368,95],[369,96],[370,97],[371,98],[372,99],[373,100],[448,2],[449,101],[54,2],[379,2],[378,2],[450,102],[57,103],[452,104],[451,105],[453,102],[455,106],[457,102],[454,102],[456,106],[458,2],[459,107],[52,2],[56,108],[460,2],[461,2],[462,2],[55,2],[463,109],[392,110],[464,2],[465,16],[466,2],[468,111],[467,2],[432,2],[469,2],[470,112],[471,2],[472,113],[473,114],[283,2],[410,2],[53,2],[416,115],[414,116],[413,31],[415,117],[421,118],[430,119],[419,2],[420,120],[431,121],[426,122],[427,123],[425,124],[429,125],[423,126],[422,127],[428,128],[424,119],[8,2],[9,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[34,2],[31,2],[32,2],[33,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[1,2],[299,129],[309,130],[298,129],[319,131],[290,132],[289,133],[318,134],[312,135],[317,136],[292,137],[306,138],[291,139],[315,140],[287,141],[286,134],[316,142],[288,143],[293,144],[294,2],[297,144],[284,2],[320,145],[310,146],[301,147],[302,148],[304,149],[300,150],[303,151],[313,134],[295,152],[296,153],[305,154],[285,155],[308,146],[307,144],[311,2],[314,156],[49,157],[50,158],[51,157],[63,159],[62,160],[73,161],[75,162],[78,163],[79,158],[80,164],[81,158],[82,165],[60,166],[85,167],[48,158],[86,157],[101,168],[88,169],[102,166],[92,170],[98,171],[95,172],[96,173],[97,174],[104,175],[99,158],[105,158],[107,176],[108,177],[109,178],[112,179],[113,158],[114,158],[115,158],[83,157],[116,158],[117,180],[118,157],[119,181],[74,158],[120,158],[103,158],[121,158],[122,158],[123,182],[124,158],[155,183],[76,184],[77,185],[87,158],[156,186],[68,187],[69,158],[70,157],[157,157],[71,188],[158,158],[67,189],[64,158],[65,158],[66,158],[159,158],[125,190],[126,164],[127,158],[128,158],[72,191],[89,158],[131,192],[100,158],[132,191],[106,182],[133,157],[134,184],[135,193],[94,194],[93,195],[137,196],[110,158],[111,197],[138,198],[139,185],[140,158],[141,158],[61,157],[142,158],[143,158],[136,199],[144,157],[145,200],[146,158],[90,201],[147,184],[149,202],[148,203],[150,177],[84,157],[91,169],[130,204],[129,205],[160,206],[151,206],[153,207],[152,208],[154,209],[164,210],[165,211],[166,210],[170,212],[169,213],[180,214],[182,215],[185,216],[186,211],[187,217],[188,211],[189,218],[167,210],[192,219],[163,211],[193,210],[208,220],[195,221],[209,210],[199,222],[205,223],[202,224],[203,225],[204,226],[211,227],[206,211],[212,211],[214,228],[215,229],[216,230],[219,231],[220,211],[221,211],[222,211],[190,210],[223,211],[224,232],[225,210],[226,233],[181,211],[227,211],[210,211],[228,211],[229,211],[230,234],[231,211],[262,235],[183,211],[184,236],[194,211],[263,237],[175,238],[176,211],[177,210],[264,210],[178,239],[265,211],[174,240],[171,211],[172,211],[173,211],[266,211],[232,241],[233,217],[234,211],[235,211],[179,242],[196,211],[238,243],[207,211],[239,242],[213,234],[240,210],[241,211],[242,244],[201,245],[200,246],[244,247],[217,211],[218,248],[245,249],[246,236],[247,211],[248,211],[168,210],[249,211],[250,211],[243,250],[251,210],[252,251],[253,211],[197,252],[254,211],[256,253],[255,254],[257,229],[191,210],[198,221],[237,255],[236,256],[267,257],[258,257],[260,258],[259,259],[261,260],[268,102],[269,2]],"exportedModulesMap":[[272,1],[270,2],[45,3],[43,2],[161,4],[58,5],[44,2],[46,6],[162,7],[59,8],[47,9],[409,2],[412,10],[411,2],[275,11],[271,1],[273,12],[274,1],[276,2],[376,13],[377,14],[381,15],[375,16],[382,2],[384,17],[385,18],[383,2],[386,2],[389,19],[387,2],[380,20],[393,21],[395,22],[396,23],[397,2],[401,24],[402,24],[398,25],[399,25],[400,25],[403,26],[404,2],[405,27],[406,2],[407,28],[408,29],[418,30],[417,31],[433,32],[434,33],[388,2],[436,34],[437,35],[435,36],[438,37],[439,38],[440,39],[441,40],[442,41],[443,42],[444,43],[445,44],[446,45],[447,46],[390,47],[391,48],[394,2],[322,49],[323,49],[324,50],[325,51],[326,52],[327,53],[277,2],[280,54],[278,2],[279,2],[328,55],[329,56],[330,57],[331,58],[332,59],[333,60],[334,60],[336,61],[335,62],[337,63],[338,64],[339,65],[321,66],[340,67],[341,68],[342,69],[343,70],[344,71],[345,72],[346,73],[347,74],[348,75],[349,76],[350,77],[351,78],[352,79],[353,79],[354,80],[355,2],[356,81],[358,82],[357,83],[359,84],[360,85],[361,86],[362,87],[363,88],[364,89],[365,90],[282,91],[281,2],[374,92],[366,93],[367,94],[368,95],[369,96],[370,97],[371,98],[372,99],[373,100],[448,2],[449,101],[54,2],[379,2],[378,2],[450,102],[57,103],[452,104],[451,105],[453,102],[455,106],[457,102],[454,102],[456,106],[458,2],[459,107],[52,2],[56,108],[460,2],[461,2],[462,2],[55,2],[463,109],[392,110],[464,2],[465,16],[466,2],[468,111],[467,2],[432,2],[469,2],[470,112],[471,2],[472,113],[473,114],[283,2],[410,2],[53,2],[416,115],[414,116],[413,31],[415,117],[421,118],[430,119],[419,2],[420,120],[431,121],[426,122],[427,123],[425,124],[429,125],[423,126],[422,127],[428,128],[424,119],[8,2],[9,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[34,2],[31,2],[32,2],[33,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[1,2],[299,129],[309,130],[298,129],[319,131],[290,132],[289,133],[318,134],[312,135],[317,136],[292,137],[306,138],[291,139],[315,140],[287,141],[286,134],[316,142],[288,143],[293,144],[294,2],[297,144],[284,2],[320,145],[310,146],[301,147],[302,148],[304,149],[300,150],[303,151],[313,134],[295,152],[296,153],[305,154],[285,155],[308,146],[307,144],[311,2],[314,156],[49,261],[50,262],[51,261],[63,263],[62,264],[73,265],[75,266],[78,267],[79,262],[80,268],[81,262],[82,269],[60,261],[85,270],[48,262],[86,261],[101,271],[88,262],[102,261],[92,272],[98,273],[95,274],[96,275],[97,276],[104,277],[99,262],[105,262],[107,261],[108,278],[109,279],[112,280],[113,262],[114,262],[115,262],[83,261],[116,262],[117,281],[118,261],[119,282],[74,262],[120,262],[103,262],[121,262],[122,262],[123,283],[124,262],[155,284],[76,262],[77,285],[87,262],[156,286],[68,287],[69,262],[70,261],[157,261],[71,288],[158,262],[67,289],[64,262],[65,262],[66,262],[159,262],[125,262],[126,268],[127,262],[128,262],[72,290],[89,262],[131,291],[100,262],[132,290],[106,283],[133,261],[134,262],[135,292],[94,274],[93,262],[137,293],[110,262],[111,294],[138,295],[139,285],[140,262],[141,262],[61,261],[142,262],[143,262],[136,296],[144,261],[145,297],[146,262],[90,298],[147,262],[149,299],[148,262],[150,278],[84,300],[91,262],[130,301],[129,289],[160,302],[151,302],[153,303],[152,304],[154,305],[164,306],[165,307],[166,306],[170,308],[169,309],[180,310],[182,311],[185,312],[186,307],[187,313],[188,307],[189,314],[167,306],[192,315],[163,307],[193,306],[208,316],[195,307],[209,306],[199,317],[205,318],[202,319],[203,320],[204,321],[211,322],[206,307],[212,307],[214,306],[215,323],[216,324],[219,325],[220,307],[221,307],[222,307],[190,306],[223,307],[224,326],[225,306],[226,327],[181,307],[227,307],[210,307],[228,307],[229,307],[230,328],[231,307],[262,329],[183,307],[184,330],[194,307],[263,331],[175,332],[176,307],[177,306],[264,306],[178,333],[265,307],[174,334],[171,307],[172,307],[173,307],[266,307],[232,307],[233,313],[234,307],[235,307],[179,335],[196,307],[238,336],[207,307],[239,335],[213,328],[240,306],[241,307],[242,337],[201,319],[200,307],[244,338],[217,307],[218,339],[245,340],[246,330],[247,307],[248,307],[168,306],[249,307],[250,307],[243,341],[251,306],[252,342],[253,307],[197,343],[254,307],[256,344],[255,307],[257,323],[191,306],[198,307],[237,345],[236,346],[267,347],[258,347],[260,348],[259,349],[261,350],[268,102],[269,2]],"semanticDiagnosticsPerFile":[272,270,45,43,161,58,44,46,162,59,47,409,412,411,275,271,273,274,276,376,377,381,375,382,384,385,383,386,389,387,380,393,395,396,397,401,402,398,399,400,403,404,405,406,407,408,418,417,433,434,388,436,437,435,438,439,440,441,442,443,444,445,446,447,390,391,394,322,323,324,325,326,327,277,280,278,279,328,329,330,331,332,333,334,336,335,337,338,339,321,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,358,357,359,360,361,362,363,364,365,282,281,374,366,367,368,369,370,371,372,373,448,449,54,379,378,450,57,452,451,453,455,457,454,456,458,459,52,56,460,461,462,55,463,392,464,465,466,468,467,432,469,470,471,472,473,283,410,53,416,414,413,415,421,430,419,420,431,426,427,425,429,423,422,428,424,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,34,31,32,33,35,7,36,41,42,37,38,39,40,1,299,309,298,319,290,289,318,312,317,292,306,291,315,287,286,316,288,293,294,297,284,320,310,301,302,304,300,303,313,295,296,305,285,308,307,311,314,49,50,51,63,62,73,75,78,79,80,81,82,60,85,48,86,101,88,102,92,98,95,96,97,104,99,105,107,108,109,112,113,114,115,83,116,117,118,119,74,120,103,121,122,123,124,155,76,77,87,156,68,69,70,157,71,158,67,64,65,66,159,125,126,127,128,72,89,131,100,132,106,133,134,135,94,93,137,110,111,138,139,140,141,61,142,143,136,144,145,146,90,147,149,148,150,84,91,130,129,160,151,153,152,154,164,165,166,170,169,180,182,185,186,187,188,189,167,192,163,193,208,195,209,199,205,202,203,204,211,206,212,214,215,216,219,220,221,222,190,223,224,225,226,181,227,210,228,229,230,231,262,183,184,194,263,175,176,177,264,178,265,174,171,172,173,266,232,233,234,235,179,196,238,207,239,213,240,241,242,201,200,244,217,218,245,246,247,248,168,249,250,243,251,252,253,197,254,256,255,257,191,198,237,236,267,258,260,259,261,268,269]},"version":"4.9.3"}