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oB,KAAU,CACxD2F,YAAaT,EACbC,OAAQA,EACRG,gBAAiBA,EACjB,YAAa,SACZ,SAAkBnZ,GACnB,OAAoB,mBAAoB4Z,IAAiB,QAAS,CAAC,EAAG5Z,EAAOqZ,EAAgB,CAC3F,YAAa,SAEjB,IACII,EAAeL,GAAgBA,EAAa7U,QAEhD,OAAO+U,GAAa,kBAAsBzF,EAAU4F,GAAgBxV,SAASsH,KAC/E,C,uECt7BIqP,EAAkB,SAAyBzZ,GAC7C,IAAI0Z,EAAgB1Z,EAAK2Z,SACvBA,OAA6B,IAAlBD,GAAmCA,EAC9Cja,EAAWO,EAAKP,SAChBma,EAAiB5Z,EAAKU,UACtBA,OAA+B,IAAnBkZ,OAA4BtZ,EAAYsZ,EACtD,OAAoB,gBAAoB,OAAO,OAAS,CAAC,GAAG,OAAW,MAAuBD,GAAW,CACvGjZ,UAAWA,IACTjB,EACN,EACAga,EAAgBI,UAIZ,CAAC,EACL,K,wBCpBO,SAASC,EAAYtK,GAC1BuE,WAAWvE,EAAQ,EACrB,C,gFACO,IAAIuK,EAAa,SAAoBpZ,EAAM1B,GAChD,IAAI+a,EAAM,CAAC,EAEX,OADAA,EAAIrZ,GAAQ1B,EACL+a,CACT,EACWC,EAAa,SAAoBnb,GAC1C,OAAOA,GAAO,YAAaA,EAAMA,EAAIsE,QAAUtE,CACjD,C","sources":["webpack://nocodenodeweb/./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js","webpack://nocodenodeweb/./node_modules/@emotion/react/dist/emotion-react.browser.esm.js","webpack://nocodenodeweb/./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","webpack://nocodenodeweb/./node_modules/@paypalcorp/pp-react-modal/dist/@paypalcorp/pp-react-modal.esm.js","webpack://nocodenodeweb/./node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js","webpack://nocodenodeweb/./node_modules/react-focus-lock/dist/es2015/util.js"],"sourcesContent":["import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar isBrowser = \"object\" !== 'undefined';\nvar hasOwn = {}.hasOwnProperty;\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nif (process.env.NODE_ENV !== 'production') {\n EmotionCacheContext.displayName = 'EmotionCacheContext';\n}\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n // $FlowFixMe\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nif (!isBrowser) {\n withEmotionCache = function withEmotionCache(func) {\n return function (props) {\n var cache = useContext(EmotionCacheContext);\n\n if (cache === null) {\n // yes, we're potentially creating this on every render\n // it doesn't actually matter though since it's only on the server\n // so there will only every be a single render\n // that could change in the future because of suspense and etc. but for now,\n // this works and i don't want to optimise for a future thing that we aren't sure about\n cache = createCache({\n key: 'css'\n });\n return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {\n value: cache\n }, func(props, cache));\n } else {\n return func(props, cache);\n }\n };\n };\n}\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'EmotionThemeContext';\n}\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n if (process.env.NODE_ENV !== 'production' && (mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) {\n throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!');\n }\n\n return mergedTheme;\n }\n\n if (process.env.NODE_ENV !== 'production' && (theme == null || typeof theme !== 'object' || Array.isArray(theme))) {\n throw new Error('[ThemeProvider] Please make your theme prop a plain object');\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n\n var render = function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n }; // $FlowFixMe\n\n\n var WithTheme = /*#__PURE__*/React.forwardRef(render);\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar getLastPart = function getLastPart(functionName) {\n // The match may be something like 'Object.createEmotionProps' or\n // 'Loader.prototype.render'\n var parts = functionName.split('.');\n return parts[parts.length - 1];\n};\n\nvar getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {\n // V8\n var match = /^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(line);\n if (match) return getLastPart(match[1]); // Safari / Firefox\n\n match = /^([A-Za-z0-9$.]+)@/.exec(line);\n if (match) return getLastPart(match[1]);\n return undefined;\n};\n\nvar internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS\n// identifiers, thus we only need to replace what is a valid character for JS,\n// but not for CSS.\n\nvar sanitizeIdentifier = function sanitizeIdentifier(identifier) {\n return identifier.replace(/\\$/g, '-');\n};\n\nvar getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {\n if (!stackTrace) return undefined;\n var lines = stackTrace.split('\\n');\n\n for (var i = 0; i < lines.length; i++) {\n var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just \"Error\"\n\n if (!functionName) continue; // If we reach one of these, we have gone too far and should quit\n\n if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an\n // uppercase letter\n\n if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);\n }\n\n return undefined;\n};\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration\n props.css.indexOf(':') !== -1) {\n throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`\" + props.css + \"`\");\n }\n\n var newProps = {};\n\n for (var key in props) {\n if (hasOwn.call(props, key)) {\n newProps[key] = props[key];\n }\n }\n\n newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when\n // the label hasn't already been computed\n\n if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {\n var label = getLabelFromStackTrace(new Error().stack);\n if (label) newProps[labelPropName] = label;\n }\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {\n var labelFromStack = props[labelPropName];\n\n if (labelFromStack) {\n serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);\n }\n }\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var key in props) {\n if (hasOwn.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {\n newProps[key] = props[key];\n }\n }\n\n newProps.ref = ref;\n newProps.className = className;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Emotion.displayName = 'EmotionCssPropInternal';\n}\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwn as h, isBrowser as i, useTheme as u, withEmotionCache as w };\n","import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isBrowser$1 } from './emotion-element-43c6fea0.browser.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-43c6fea0.browser.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport 'hoist-non-react-statics';\n\nvar pkg = {\n\tname: \"@emotion/react\",\n\tversion: \"11.11.4\",\n\tmain: \"dist/emotion-react.cjs.js\",\n\tmodule: \"dist/emotion-react.esm.js\",\n\tbrowser: {\n\t\t\"./dist/emotion-react.esm.js\": \"./dist/emotion-react.browser.esm.js\"\n\t},\n\texports: {\n\t\t\".\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./dist/emotion-react.worker.esm.js\",\n\t\t\t\tbrowser: \"./dist/emotion-react.browser.esm.js\",\n\t\t\t\t\"default\": \"./dist/emotion-react.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./dist/emotion-react.cjs.mjs\",\n\t\t\t\"default\": \"./dist/emotion-react.cjs.js\"\n\t\t},\n\t\t\"./jsx-runtime\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js\",\n\t\t\t\tbrowser: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n\t\t},\n\t\t\"./_isolated-hnrs\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js\",\n\t\t\t\tbrowser: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n\t\t},\n\t\t\"./jsx-dev-runtime\": {\n\t\t\tmodule: {\n\t\t\t\tworker: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js\",\n\t\t\t\tbrowser: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js\"\n\t\t\t},\n\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\"./macro\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t},\n\t\t\t\"default\": \"./macro.js\"\n\t\t}\n\t},\n\ttypes: \"types/index.d.ts\",\n\tfiles: [\n\t\t\"src\",\n\t\t\"dist\",\n\t\t\"jsx-runtime\",\n\t\t\"jsx-dev-runtime\",\n\t\t\"_isolated-hnrs\",\n\t\t\"types/*.d.ts\",\n\t\t\"macro.*\"\n\t],\n\tsideEffects: false,\n\tauthor: \"Emotion Contributors\",\n\tlicense: \"MIT\",\n\tscripts: {\n\t\t\"test:typescript\": \"dtslint types\"\n\t},\n\tdependencies: {\n\t\t\"@babel/runtime\": \"^7.18.3\",\n\t\t\"@emotion/babel-plugin\": \"^11.11.0\",\n\t\t\"@emotion/cache\": \"^11.11.0\",\n\t\t\"@emotion/serialize\": \"^1.1.3\",\n\t\t\"@emotion/use-insertion-effect-with-fallbacks\": \"^1.0.1\",\n\t\t\"@emotion/utils\": \"^1.2.1\",\n\t\t\"@emotion/weak-memoize\": \"^0.3.1\",\n\t\t\"hoist-non-react-statics\": \"^3.3.1\"\n\t},\n\tpeerDependencies: {\n\t\treact: \">=16.8.0\"\n\t},\n\tpeerDependenciesMeta: {\n\t\t\"@types/react\": {\n\t\t\toptional: true\n\t\t}\n\t},\n\tdevDependencies: {\n\t\t\"@definitelytyped/dtslint\": \"0.0.112\",\n\t\t\"@emotion/css\": \"11.11.2\",\n\t\t\"@emotion/css-prettifier\": \"1.1.3\",\n\t\t\"@emotion/server\": \"11.11.0\",\n\t\t\"@emotion/styled\": \"11.11.0\",\n\t\t\"html-tag-names\": \"^1.1.2\",\n\t\treact: \"16.14.0\",\n\t\t\"svg-tag-names\": \"^1.1.1\",\n\t\ttypescript: \"^4.5.5\"\n\t},\n\trepository: \"https://github.com/emotion-js/emotion/tree/main/packages/react\",\n\tpublishConfig: {\n\t\taccess: \"public\"\n\t},\n\t\"umd:main\": \"dist/emotion-react.umd.min.js\",\n\tpreconstruct: {\n\t\tentrypoints: [\n\t\t\t\"./index.js\",\n\t\t\t\"./jsx-runtime.js\",\n\t\t\t\"./jsx-dev-runtime.js\",\n\t\t\t\"./_isolated-hnrs.js\"\n\t\t],\n\t\tumdName: \"emotionReact\",\n\t\texports: {\n\t\t\tenvConditions: [\n\t\t\t\t\"browser\",\n\t\t\t\t\"worker\"\n\t\t\t],\n\t\t\textra: {\n\t\t\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\t\t\"./macro\": {\n\t\t\t\t\ttypes: {\n\t\t\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t\t\t},\n\t\t\t\t\t\"default\": \"./macro.js\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar jsx = function jsx(type, props) {\n var args = arguments;\n\n if (props == null || !hasOwn.call(props, 'css')) {\n // $FlowFixMe\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n } // $FlowFixMe\n\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\nvar warnedAboutCssPropForGlobal = false; // maintain place over rerenders.\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is\n // probably using the custom createElement which\n // means it will be turned into a className prop\n // $FlowFixMe I don't really want to add it to the type since it shouldn't be used\n props.className || props.css)) {\n console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\");\n warnedAboutCssPropForGlobal = true;\n }\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n\n if (!isBrowser$1) {\n var _ref;\n\n var serializedNames = serialized.name;\n var serializedStyles = serialized.styles;\n var next = serialized.next;\n\n while (next !== undefined) {\n serializedNames += ' ' + next.name;\n serializedStyles += next.styles;\n next = next.next;\n }\n\n var shouldCache = cache.compat === true;\n var rules = cache.insert(\"\", {\n name: serializedNames,\n styles: serializedStyles\n }, cache.sheet, shouldCache);\n\n if (shouldCache) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"style\", (_ref = {}, _ref[\"data-emotion\"] = cache.key + \"-global \" + serializedNames, _ref.dangerouslySetInnerHTML = {\n __html: rules\n }, _ref.nonce = cache.sheet.nonce, _ref));\n } // yes, i know these hooks are used conditionally\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false; // $FlowFixMe\n\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Global.displayName = 'EmotionGlobal';\n}\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nvar keyframes = function keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name; // $FlowFixMe\n\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n};\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n if (process.env.NODE_ENV !== 'production' && arg.styles !== undefined && arg.name !== undefined) {\n console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from component.');\n }\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n useInsertionEffectAlwaysWithSyncFallback(function () {\n\n for (var i = 0; i < serializedArr.length; i++) {\n insertStyles(cache, serializedArr[i], false);\n }\n });\n\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\nif (process.env.NODE_ENV !== 'production') {\n ClassNames.displayName = 'EmotionClassNames';\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var isBrowser = \"object\" !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked\n\n var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';\n\n if (isBrowser && !isTestEnv) {\n // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later\n var globalContext = // $FlowIgnore\n typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef\n : isBrowser ? window : global;\n var globalKey = \"__EMOTION_REACT_\" + pkg.version.split('.')[0] + \"__\";\n\n if (globalContext[globalKey]) {\n console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');\n }\n\n globalContext[globalKey] = true;\n }\n}\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';\nimport { css, useTheme, jsx } from '@emotion/react';\nimport { math, stripUnit, remToPx } from 'polished';\nimport { textStyles } from '@paypalcorp/pp-react-text';\nimport { devWarning, utilStyles, ZINDEX_MODAL, isDocumentRTL, hasWindow, uniqueId, isTouchDevice } from '@paypalcorp/pp-react-utils';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport React, { useState, useRef, useMemo, useEffect } from 'react';\nimport ReactDOM from 'react-dom';\nimport { Animator } from '@paypalcorp/pp-react-animator';\nimport _regeneratorRuntime from '@babel/runtime/regenerator';\nimport _asyncToGenerator from '@babel/runtime/helpers/esm/asyncToGenerator';\nimport { FocusOn, AutoFocusInside } from 'react-focus-on';\nimport { IconButton } from '@paypalcorp/pp-react-icon-button';\nimport { CloseIcon } from '@paypalcorp/pp-react-icons';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46;\nfunction styles(tokens) {\n /* istanbul ignore next */\n if (!Object.keys(tokens).length) {\n devWarning('Missing Emotion theme. Use ThemeProvider from @emotion/react to pass a valid theme from pp-react.');\n return {};\n }\n\n var sysSpaceLg = tokens.sysSpaceLg,\n sysTypographyDisplaySize = tokens.sysTypographyDisplaySize,\n sysSizeIconLg = tokens.sysSizeIconLg,\n sysSizeTapTargetDefault = tokens.sysSizeTapTargetDefault,\n sysSpaceXl = tokens.sysSpaceXl,\n sysSpaceSm = tokens.sysSpaceSm,\n sysSizeMediaMd = tokens.sysSizeMediaMd,\n sysSizeMediaSm = tokens.sysSizeMediaSm,\n sysColorBackgroundSurface = tokens.sysColorBackgroundSurface,\n sysSizeMediaLg = tokens.sysSizeMediaLg,\n sysMotionDurationDepart = tokens.sysMotionDurationDepart,\n sysSpaceMd = tokens.sysSpaceMd,\n sysSpaceXs = tokens.sysSpaceXs,\n sysMotionDurationArrive = tokens.sysMotionDurationArrive,\n sysSizeIconSm = tokens.sysSizeIconSm,\n sysSizeIconMd = tokens.sysSizeIconMd,\n sysColorOverlayMainHover = tokens.sysColorOverlayMainHover,\n sysSizeIndicatorMd = tokens.sysSizeIndicatorMd,\n sysSizeIconXl = tokens.sysSizeIconXl,\n sysSpaceJumbo = tokens.sysSpaceJumbo,\n sysSizeMediaXl = tokens.sysSizeMediaXl,\n sysColorBackgroundMediumContrast = tokens.sysColorBackgroundMediumContrast,\n sysBorderRadiusLg = tokens.sysBorderRadiusLg,\n sysSizeIndicatorSm = tokens.sysSizeIndicatorSm;\n\n var _utilStyles = utilStyles(tokens),\n elevationStyles = _utilStyles.elevationStyles,\n variables = _utilStyles.variables,\n screenReader = _utilStyles.screenReader;\n\n var ppuiEaseInOut = variables.ppuiEaseInOut;\n\n var _textStyles = textStyles(tokens),\n textBody = _textStyles.body;\n\n var lightboxMinHeight = math(\"8 * \".concat(sysSpaceLg));\n var modalHeaderMinHeight = sysTypographyDisplaySize;\n var modalHeaderZoneMinWidth = sysSizeIconLg;\n var dialogWidth = '75%'; // 8 columns in a 12 column grid\n\n var dialogMaxWidth = math(\"\".concat(sysSizeMediaXl, \" * 0.75\")); // 75% of XL screen grid max width\n\n var mdMarginDelta = math(\"\".concat(sysSpaceXl, \" * 2\"));\n var smMarginDelta = math(\"\".concat(sysSpaceLg, \" * 2\"));\n var sheetHeaderHeightMobile = math(\"\".concat(sysSizeIconLg, \" + (2 * \").concat(sysSpaceXs, \")\"));\n var sheetHeaderHeightDesktop = math(\"\".concat(sysSizeIconXl, \" + (2 * \").concat(sysSpaceXs, \")\"));\n var sheetWidthSm = '100vw';\n var sheetButtonSize = sysSizeIconSm + sysSpaceMd * 2;\n var modalBorderRadius = sysBorderRadiusLg;\n\n var containerCenter = function () {\n var valign = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'center';\n return css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n label: container_center;\\n display: flex;\\n align-items: \", \";\\n justify-content: space-around;\\n \"])), valign);\n };\n\n var containerMiddle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n label: container_middle;\\n \", \";\\n width: \", \";\\n max-width: \", \";\\n\\n @media screen and (max-width: \", \") {\\n width: calc(100% - \", \");\\n }\\n\\n @media screen and (max-width: \", \") {\\n width: calc(100% - \", \");\\n }\\n \"])), containerCenter(), dialogWidth, dialogMaxWidth, sysSizeMediaMd, mdMarginDelta, sysSizeMediaSm, smMarginDelta);\n var containerBottom = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n label: container_bottom;\\n \", \";\\n width: \", \";\\n\\n @media screen and (max-width: \", \") {\\n width: \", \";\\n }\\n @media screen and (max-width: \", \") {\\n width: \", \";\\n }\\n \"])), containerCenter('flex-end'), sysSizeMediaMd, sysSizeMediaLg, sysSizeMediaSm, sysSizeMediaMd, sheetWidthSm);\n var base = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n label: base;\\n background-color: \", \";\\n display: grid;\\n grid-template-rows: auto 1fr auto;\\n position: relative;\\n flex-basis: 100%;\\n \"])), sysColorBackgroundSurface);\n var modalNoContainer = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n label: modal_no_container;\\n width: \", \";\\n max-width: \", \";\\n \"])), dialogWidth, dialogMaxWidth);\n var modalDialog = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n label: modal_dialog;\\n min-height: \", \";\\n border-radius: \", \";\\n max-height: \", \";\\n \", \";\\n opacity: 0;\\n will-change: opacity;\\n transition: opacity \", \" \", \";\\n \"])), lightboxMinHeight, modalBorderRadius, '75dvh', elevationStyles.level3, sysMotionDurationDepart, ppuiEaseInOut);\n var modalTopBorder = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n label: modal_top_border;\\n border-top-left-radius: \", \";\\n border-top-right-radius: \", \";\\n \"])), modalBorderRadius, modalBorderRadius);\n var modalSheet = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n label: modal_sheet;\\n height: 100dvh;\\n width: auto;\\n \", \";\\n will-change: transform;\\n transition: transform \", \" \", \",\\n height \", \" \", \";\\n transform: translateZ(0) translateY(100%);\\n\\n @media screen and (max-width: \", \") {\\n width: \", \";\\n height: auto;\\n min-height: \", \";\\n max-height: \", \"; /* Fallback for browsers that do not support Custom Properties */\\n \", \"\\n }\\n \"])), elevationStyles.level3, sysMotionDurationDepart, ppuiEaseInOut, sysMotionDurationDepart, ppuiEaseInOut, sysSizeMediaMd, sheetWidthSm, sysSizeTapTargetDefault, '90dvh', modalTopBorder);\n var modalSheetShow = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([\"\\n label: modal_sheet_show;\\n transform: translateZ(0) translateY(0);\\n \"])));\n var modalBackdrop = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral([\"\\n label: modal_backdrop;\\n position: fixed;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n z-index: \", \";\\n visibility: hidden;\\n opacity: 0;\\n will-change: opacity;\\n transition: opacity \", \" ease-in-out,\\n visibility \", \" \", \";\\n background-color: \", \";\\n \", \";\\n box-shadow: none;\\n\\n &[aria-hidden='false'] {\\n transition-duration: \", \";\\n }\\n\\n &[aria-hidden='true'] {\\n transition-duration: \", \";\\n }\\n \"])), ZINDEX_MODAL, sysMotionDurationDepart, sysMotionDurationDepart, sysMotionDurationDepart, sysColorOverlayMainHover, containerCenter('center'), sysMotionDurationArrive, sysMotionDurationArrive);\n var modalBackdropShow = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([\"\\n label: modal_backdrop_show;\\n visibility: visible;\\n opacity: 1;\\n transition: opacity \", \" ease-in-out;\\n \"])), sysMotionDurationDepart);\n var modalBackdropShowDialog = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([\"\\n label: modal_backdrop_show_dialog;\\n opacity: 1;\\n transition: opacity \", \" ease-in-out\\n \", \";\\n \"])), sysMotionDurationDepart, sysMotionDurationDepart);\n var scrim = css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral([\"\\n label: scrim;\\n position: fixed;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n z-index: \", \";\\n visibility: hidden;\\n transition: visibility \", \" \", \";\\n \", \";\\n\\n &::before {\\n content: ' ';\\n position: absolute;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n opacity: 0;\\n will-change: opacity;\\n transition: opacity \", \" ease-in-out;\\n background-color: \", \";\\n }\\n \"])), ZINDEX_MODAL, sysMotionDurationDepart, sysMotionDurationDepart, containerCenter('flex-end'), sysMotionDurationDepart, sysColorOverlayMainHover);\n var scrimShow = css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral([\"\\n label: scrim_show;\\n visibility: visible;\\n transition: none; /* visibility should not be animated when coming in */\\n\\n &::before {\\n opacity: 1;\\n transition-duration: \", \";\\n }\\n \"])), sysMotionDurationArrive);\n var showGripper = css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral([\"\\n label: show_gripper;\\n &::before {\\n content: ' ';\\n position: absolute;\\n top: \", \";\\n left: 0;\\n right: 0;\\n margin: auto;\\n width: \", \";\\n height: \", \";\\n background-color: \", \";\\n border-radius: \", \";\\n display: none;\\n @media screen and (max-width: \", \") {\\n display: block;\\n }\\n }\\n \"])), sysSpaceSm, sysSizeTapTargetDefault, sysSizeIndicatorSm, sysColorBackgroundMediumContrast, modalBorderRadius, sysSizeMediaMd);\n var modalContents = css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([\"\\n label: modal_contents;\\n flex: 1 1 auto;\\n overflow: auto;\\n\\n position: relative;\\n border-radius: inherit;\\n \", \";\\n\\n @media screen and (max-width: \", \") {\\n padding: 0 \", \" \", \";\\n }\\n \"])), textBody(), sysSizeMediaMd, sysSpaceXl, sysSpaceXl);\n var modalContentWithHeader = css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral([\"\\n label: modal_content_with_header;\\n @media screen and (max-width: \", \") {\\n border-radius: 0;\\n }\\n \"])), sysSizeMediaMd);\n var modalContentsSheet = css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral([\"\\n label: modal_content_sheet;\\n padding: 0 \", \";\\n\\n @media screen and (max-width: \", \") {\\n padding: 0 \", \";\\n }\\n @media screen and (max-width: \", \") {\\n padding: 0 \", \" \", \";\\n }\\n \"])), '8.5rem', sysSizeMediaLg, '5rem', sysSizeMediaMd, sysSpaceLg, sysSpaceLg);\n var modalContentsDialog = css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral([\"\\n label: modal_content_dialog;\\n max-height: \", \";\\n padding: 0 \", \";\\n \"])), '70dvh', sysSpaceJumbo);\n var modalContentsNoPadding = css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral([\"\\n label: modal_content_no_padding;\\n padding: 0;\\n @media screen and (max-width: \", \") {\\n padding: 0;\\n }\\n \"])), sysSizeMediaLg);\n var modalContentDialogPadding = css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral([\"\\n label: modal_content_dialog_no_padding;\\n @media screen and (max-width: \", \") {\\n padding: 0 \", \" \", \";\\n }\\n \"])), sysSizeMediaSm, sysSpaceLg, sysSpaceXl);\n var modalContentsCenter = css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral([\"\\n label: modal_content_center;\\n text-align: center;\\n \"])));\n var modalHeader = css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([\"\\n label: modal_header;\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n flex-wrap: wrap;\\n position: relative;\\n flex: 0 0 auto;\\n z-index: 1;\\n min-height: \", \";\\n padding: \", \";\\n \"])), modalHeaderMinHeight, sysSpaceMd);\n var modalHeaderSheet = css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral([\"\\n label: modal_header_sheet;\\n min-height: \", \";\\n\\n @media screen and (max-width: \", \") {\\n min-height: \", \";\\n \", \"\\n }\\n \"])), sheetHeaderHeightDesktop, sysSizeMediaMd, sheetHeaderHeightMobile, modalTopBorder);\n var modalHeaderSheetAction = css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral([\"\\n label: modal_header_sheet_action;\\n min-height: \", \";\\n padding: \", \";\\n margin: 0;\\n\\n @media screen and (max-width: \", \") {\\n min-height: \", \";\\n padding: \", \";\\n margin: 0;\\n }\\n \"])), sheetHeaderHeightDesktop, sysSpaceMd, sysSizeMediaMd, sheetHeaderHeightMobile, sysSpaceSm);\n var modalHeaderScrolled = css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral([\"\\n label: modal_header_scrolled;\\n \", \"\\n \"])), elevationStyles.level3);\n var modalHeaderAction = css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral([\"\\n label: modal_header_action;\\n flex: 0 0 \", \";\\n flex-basis: \", \";\\n \"])), modalHeaderZoneMinWidth, sheetButtonSize);\n var modalHeaderTitle = css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral([\"\\n label: modal_header_title;\\n flex: 1 1 3rem;\\n margin: \", \";\\n text-align: center;\\n \", \";\\n \"])), sysSpaceSm, textBody());\n var modalHeaderClose = css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral([\"\\n label: modal_header_close;\\n flex: 0 0 \", \";\\n text-align: right;\\n flex-basis: \", \";\\n \"])), modalHeaderZoneMinWidth, sheetButtonSize);\n var modalHeaderWorkArea = css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral([\"\\n label: modal_header_work_area;\\n flex: 0 0 100%;\\n padding: \", \" \", \";\\n \"])), sysSpaceSm, sysSpaceLg);\n var modalHeaderLogo = css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral([\"\\n label: modal_header_logo;\\n display: flex;\\n flex: 1 1 3rem;\\n justify-content: center;\\n margin-top: \", \";\\n \"])), sysSpaceSm);\n var modalHeaderLogoImage = css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral([\"\\n label: modal_header_logo_image;\\n width: \", \";\\n height: \", \";\\n \"])), sysSizeIconMd, sysSizeIconMd);\n var modalContentsClose = css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral([\"\\n label: modal_content_close;\\n position: absolute;\\n right: \", \";\\n top: \", \";\\n z-index: 2;\\n\\n [dir='rtl'] & {\\n left: \", \";\\n right: auto;\\n\\n @media screen and (min-width: \", \") {\\n left: \", \";\\n }\\n }\\n\\n @media screen and (min-width: \", \") {\\n right: \", \";\\n top: \", \";\\n }\\n \"])), sysSpaceXs, sysSpaceXs, sysSpaceXs, sysSizeMediaMd, sysSizeIndicatorMd, sysSizeMediaMd, sysSizeIndicatorMd, sysSpaceMd);\n var modalFooter = css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral([\"\\n label: modal_footer;\\n min-height: \", \";\\n padding: \", \";\\n position: relative;\\n flex: 1 0 auto;\\n \"])), modalHeaderMinHeight, sysSpaceLg);\n var modalFooterScrolled = css(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral([\"\\n label: modal_footer_scrolled;\\n \", \"\\n border-bottom-left-radius: inherit;\\n border-bottom-right-radius: inherit;\\n \"])), elevationStyles.level3Above);\n var modalFooterAlignCenter = css(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral([\"\\n label: modal_footer_align_center;\\n text-align: center;\\n \"])));\n var modalFooterAlignRight = css(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral([\"\\n label: modal_footer_align_right;\\n text-align: right;\\n \"])));\n var modalSheetHeight90 = css(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral([\"\\n label: modal_sheet_height_90;\\n @media screen and (max-width: \", \") {\\n height: 90dvh;\\n \", \"\\n }\\n \"])), sysSizeMediaMd, modalTopBorder);\n var modalSheetHeight100 = css(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral([\"\\n label: modal_sheet_height_100;\\n @media screen and (max-width: \", \") {\\n height: 100dvh;\\n max-height: 100dvh;\\n border-top-left-radius: 0;\\n border-top-right-radius: 0;\\n }\\n \"])), sysSizeMediaMd);\n var justifyRight = css(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral([\"\\n label: sheet_right_side;\\n @media screen and (min-width: \", \") {\\n justify-content: flex-end;\\n }\\n \"])), sysSizeMediaMd);\n var containerRightWidth = css(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral([\"\\n @media screen and (min-width: \", \") {\\n width: \", \";\\n }\\n \"])), sysSizeMediaMd, '35.5rem');\n var commonContainerStyles = css(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral([\"\\n label: container;\\n @media screen and (min-width: \", \") {\\n will-change: transform;\\n transition: transform \", \";\\n bottom: inherit;\\n\\n &[aria-hidden='false'] {\\n transform: translateZ(0) translateX(0);\\n }\\n }\\n \"])), sysSizeMediaMd, sysMotionDurationDepart);\n var containerRight = css(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral([\"\\n label: container_right;\\n \", \"\\n @media screen and (min-width: \", \") {\\n transform: translateZ(0) translateX(100%);\\n }\\n \"])), commonContainerStyles, sysSizeMediaMd);\n var containerLeft = css(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral([\"\\n label: container_left;\\n \", \"\\n @media screen and (min-width: \", \") {\\n transform: translateZ(0) translateX(-100%);\\n }\\n \"])), commonContainerStyles, sysSizeMediaMd);\n var drawerContainer = css(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral([\"\\n label: drawer_container;\\n @media screen and (min-width: \", \") {\\n padding-left: \", \";\\n padding-right: \", \";\\n }\\n \"])), sysSizeMediaMd, math(\"\".concat(sysSpaceXl, \" * 2\")), math(\"\".concat(sysSpaceXl, \" * 2\")));\n var modalSheetHeight50 = css(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral([\"\\n label: modal_sheet_height_50;\\n @media screen and (max-width: \", \") {\\n height: 50dvh; /* Fallback for browsers that do not support Custom Properties */\\n \", \"\\n }\\n \"])), sysSizeMediaMd, modalTopBorder);\n return {\n base: base,\n modalContents: modalContents,\n modalContentsCenter: modalContentsCenter,\n modalContentsNoPadding: modalContentsNoPadding,\n modalHeader: modalHeader,\n modalHeaderScrolled: modalHeaderScrolled,\n modalHeaderClose: modalHeaderClose,\n modalHeaderAction: modalHeaderAction,\n modalHeaderTitle: modalHeaderTitle,\n modalHeaderLogo: modalHeaderLogo,\n modalHeaderLogoImage: modalHeaderLogoImage,\n modalFooter: modalFooter,\n modalFooterScrolled: modalFooterScrolled,\n modalFooterAlignCenter: modalFooterAlignCenter,\n modalFooterAlignRight: modalFooterAlignRight,\n screenReader: screenReader,\n modalTopBorder: modalTopBorder,\n // Dialog specific styles\n modalDialog: modalDialog,\n modalBackdrop: modalBackdrop,\n modalBackdropShow: modalBackdropShow,\n modalBackdropShowDialog: modalBackdropShowDialog,\n modalContentsClose: modalContentsClose,\n modalContentsDialog: modalContentsDialog,\n containerMiddle: containerMiddle,\n modalContentDialogPadding: modalContentDialogPadding,\n // Sheet Specific\n modalSheet: modalSheet,\n modalSheetShow: modalSheetShow,\n modalSheetHeight100: modalSheetHeight100,\n modalSheetHeight90: modalSheetHeight90,\n modalSheetHeight50: modalSheetHeight50,\n modalNoContainer: modalNoContainer,\n modalHeaderSheet: modalHeaderSheet,\n modalHeaderSheetAction: modalHeaderSheetAction,\n modalHeaderWorkArea: modalHeaderWorkArea,\n modalContentsSheet: modalContentsSheet,\n modalContentWithHeader: modalContentWithHeader,\n scrim: scrim,\n scrimShow: scrimShow,\n showGripper: showGripper,\n containerBottom: containerBottom,\n justifyRight: justifyRight,\n containerRightWidth: containerRightWidth,\n containerRight: containerRight,\n containerLeft: containerLeft,\n drawerContainer: drawerContainer\n };\n}\n\nvar _excluded = [\"requestClose\", \"onBeforeClose\", \"className\", \"isHidden\", \"center\", \"noPadding\", \"closeButtonLabel\", \"noCloseButton\", \"closeButtonProps\", \"hideTitle\", \"showLogo\", \"mobileFixedHeight\", \"showGripper\", \"title\", \"id\", \"action\", \"headerContents\", \"footerContents\", \"footerAlign\", \"children\", \"returnFocusToTrigger\", \"headerClassName\", \"containerClassName\", \"contentContainerRef\", \"wrapperClassName\", \"footerClassName\", \"skipFormFocus\", \"contentScrollTop\", \"onContentScroll\", \"showDrawer\"];\n\nvar closeSheet = function () {\n return true;\n}; // eslint-disable-next-line complexity\n\n\nvar SheetComponent = function (_ref) {\n var requestClose = _ref.requestClose,\n _ref$onBeforeClose = _ref.onBeforeClose,\n onBeforeClose = _ref$onBeforeClose === void 0 ? closeSheet : _ref$onBeforeClose,\n className = _ref.className,\n isHidden = _ref.isHidden,\n center = _ref.center,\n noPadding = _ref.noPadding,\n _ref$closeButtonLabel = _ref.closeButtonLabel,\n closeButtonLabel = _ref$closeButtonLabel === void 0 ? 'close sheet' : _ref$closeButtonLabel,\n noCloseButton = _ref.noCloseButton,\n _ref$closeButtonProps = _ref.closeButtonProps,\n closeButtonProps = _ref$closeButtonProps === void 0 ? {} : _ref$closeButtonProps,\n hideTitle = _ref.hideTitle,\n showLogo = _ref.showLogo,\n mobileFixedHeight = _ref.mobileFixedHeight,\n _ref$showGripper = _ref.showGripper,\n showGripper = _ref$showGripper === void 0 ? false : _ref$showGripper,\n title = _ref.title,\n id = _ref.id,\n action = _ref.action,\n headerContents = _ref.headerContents,\n footerContents = _ref.footerContents,\n footerAlign = _ref.footerAlign,\n children = _ref.children,\n _ref$returnFocusToTri = _ref.returnFocusToTrigger,\n returnFocusToTrigger = _ref$returnFocusToTri === void 0 ? true : _ref$returnFocusToTri,\n headerClassName = _ref.headerClassName,\n containerClassName = _ref.containerClassName,\n contentContainerRef = _ref.contentContainerRef,\n wrapperClassName = _ref.wrapperClassName,\n footerClassName = _ref.footerClassName,\n skipFormFocus = _ref.skipFormFocus,\n _ref$contentScrollTop = _ref.contentScrollTop,\n contentScrollTop = _ref$contentScrollTop === void 0 ? 0 : _ref$contentScrollTop,\n onContentScroll = _ref.onContentScroll,\n _ref$showDrawer = _ref.showDrawer,\n showDrawer = _ref$showDrawer === void 0 ? false : _ref$showDrawer,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n headerScroll = _useState2[0],\n setHeaderScroll = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n footerScroll = _useState4[0],\n setFooterScroll = _useState4[1];\n\n var _useState5 = useState(0.5),\n _useState6 = _slicedToArray(_useState5, 2),\n dynamicHeight = _useState6[0],\n setDynamicHeight = _useState6[1];\n\n var sheetRef = useRef();\n var closeButtonRef = useRef();\n var actionZoneRef = useRef();\n var refContent = useRef();\n var contentRef = contentContainerRef || refContent;\n var headerContentRef = useRef();\n var isRtl = isDocumentRTL();\n var startX;\n var startY;\n var isDynamicHeight = mobileFixedHeight === 'dynamic' || showGripper; // If theme is not directly provided, get from themeContext\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var sysSizeMediaMd = tokens.sysSizeMediaMd;\n var MEDIUM_BREAKPOINT = stripUnit(remToPx(sysSizeMediaMd, '16px'));\n /* istanbul ignore next */\n\n var isMobile = hasWindow() ? window && window.innerWidth < MEDIUM_BREAKPOINT : false;\n var headerLogo = showLogo && !isMobile;\n var idBase = id !== null && id !== void 0 ? id : uniqueId();\n var showHeader = !!action || !noCloseButton || !hideTitle || !!headerContents || headerLogo; // jest has no way to test things like scrollTop or scrollHeight --BCC\n\n /* istanbul ignore next */\n\n var scrollCheck = function () {\n if (contentRef && contentRef.current) {\n var contents = contentRef.current;\n var newHeaderScroll = contents.scrollTop !== 0;\n\n if (newHeaderScroll !== headerScroll) {\n setHeaderScroll(newHeaderScroll);\n } // Footer is optional, may not be one to watch for!\n\n\n if (footerContents) {\n // Have we scrolled to the bottom?\n var newFooterScroll = contents.scrollTop + contents.offsetHeight !== contents.scrollHeight;\n\n if (newFooterScroll !== footerScroll) {\n setFooterScroll(newFooterScroll);\n }\n }\n }\n };\n\n /* istanbul ignore next */\n var setFixedHeight = function () {\n var sheetEl = sheetRef.current;\n\n if (sheetEl) {\n var height90Percent = window.innerHeight * 0.9;\n\n if (mobileFixedHeight === '100') {\n sheetEl.style.height = \"\".concat(window.innerHeight);\n } else if (mobileFixedHeight === '90') {\n sheetEl.style.height = \"\".concat(height90Percent, \"px\");\n } else if (mobileFixedHeight === '50') {\n sheetEl.style.height = \"\".concat(window.innerHeight * 0.5, \"px\");\n } else {\n sheetEl.style.maxHeight = \"\".concat(height90Percent, \"px\");\n }\n }\n };\n /* istanbul ignore next */\n\n\n var updateHeight = function () {\n var sheetEl = sheetRef.current;\n\n if (sheetEl) {\n sheetEl.style.height = \"\".concat(window.innerHeight * dynamicHeight, \"px\");\n sheetEl.style.maxHeight = 'fit-content';\n }\n };\n /* istanbul ignore next */\n\n\n var increaseHeight = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function (_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setDynamicHeight(0.9);\n\n case 1:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function () {\n return _ref2.apply(this, arguments);\n };\n }();\n /* istanbul ignore next */\n\n\n var decreaseHeight = function () {\n setDynamicHeight(0.5);\n };\n /* istanbul ignore next */\n\n\n var checkContentScroll = function () {\n var content = contentRef && contentRef.current;\n\n if (dynamicHeight === 0.5) {\n content.style.overflow = 'hidden';\n }\n\n if (dynamicHeight === 0.9) {\n content.style.overflow = 'scroll';\n }\n };\n\n useEffect(function () {\n if (!isHidden) {\n var _window;\n\n scrollCheck();\n /*eslint-disable */\n // istanbul ignore next\n // eslint-disable-next-line no-unused-expressions\n\n (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {\n /*eslint-enable */\n // HACK ALERT! react-on-focus fails at setting the focus\n // if we are transitioning opacity. This causes the sheet\n // to set the focus on the close button but NOT indicate\n // that fact to the user either visually or in the screen reader\n // So timeOut was needed\n var focused = false; // For combobox input on sheet header\n\n if (headerContentRef && headerContentRef.current) {\n //@ts-ignore\n var formElement = headerContentRef.current.querySelector('input');\n\n if (formElement) {\n formElement.focus();\n focused = true;\n }\n } // For Forms\n\n\n if (!focused && !skipFormFocus && contentRef && contentRef.current) {\n //@ts-ignore\n var focusableEls = contentRef.current.querySelectorAll('a, button, textarea, input, select');\n\n if (focusableEls.length > 0) {\n focusableEls[0].focus();\n focused = true;\n }\n } // Otherwise focus on action item or close button\n\n\n if (!focused && showHeader) {\n if (action && actionZoneRef && actionZoneRef.current) {\n //@ts-ignore\n var focusableActionEl = actionZoneRef.current.querySelectorAll('a, button, select');\n\n if (focusableActionEl.length > 0) {\n focusableActionEl[0].focus();\n }\n } else {\n var closeButtonCurrent = closeButtonRef.current;\n\n if (closeButtonCurrent) {\n //@ts-ignore\n closeButtonCurrent.focus();\n }\n }\n }\n }, 500);\n /* istanbul ignore next */\n\n if (isTouchDevice() && window.innerHeight) {\n window.addEventListener('resize', setFixedHeight, false);\n\n if (isDynamicHeight) {\n updateHeight();\n checkContentScroll();\n } else {\n setFixedHeight();\n }\n }\n }\n\n return function () {\n window.removeEventListener('resize', setFixedHeight, false);\n };\n }, [isHidden, dynamicHeight]);\n useEffect(function () {\n if (!isHidden && contentRef.current) {\n var contents = contentRef.current;\n contents.scrollTop = contentScrollTop;\n }\n }, [contentScrollTop, isHidden]);\n var wrapperCss = [_styles.scrim, !isHidden && _styles.scrimShow, showDrawer && _styles.justifyRight];\n var containerCss = [_styles.base, _styles.modalNoContainer, _styles.modalSheet, mobileFixedHeight === '100' && _styles.modalSheetHeight100, mobileFixedHeight === '90' && _styles.modalSheetHeight90, mobileFixedHeight === '50' && _styles.modalSheetHeight50, isDynamicHeight && _styles.modalSheetHeight50, !isHidden && _styles.modalSheetShow, showDrawer && !isRtl && _styles.containerRight, showDrawer && isRtl && _styles.containerLeft];\n var contentCss = [_styles.modalContents, _styles.modalContentsSheet, center && _styles.modalContentsCenter, noPadding && _styles.modalContentsNoPadding, showHeader && _styles.modalContentWithHeader, showDrawer && _styles.drawerContainer];\n var ariaHidden = isHidden ? 'true' : 'false';\n\n var handleClose = function (evt, closedBy) {\n var okToClose = onBeforeClose(closedBy);\n\n if (okToClose) {\n requestClose(evt, closedBy);\n startX = null;\n startY = null;\n }\n };\n\n var closeButtonTag = noCloseButton ? null : jsx(IconButton, _extends({\n svgIconComponent: CloseIcon,\n onClick: function onClick(evt) {\n handleClose(evt, 'closeButton');\n },\n ref: closeButtonRef,\n buttonType: \"tertiary\"\n }, closeButtonProps, {\n \"data-ppui\": \"true\"\n }), closeButtonLabel);\n\n /* istanbul ignore next */\n var mobileTouchEnd = function (evt, content) {\n var endTouch = evt.changedTouches[0];\n var endX = endTouch.pageX;\n var endY = endTouch.pageY;\n var xDiff = startX - endX;\n var yDiff = startY - endY; // means up/down is most significant\n\n if (Math.abs(yDiff) > Math.abs(xDiff)) {\n // swipe Down\n if (yDiff < 0 && (content ? content.scrollTop === 0 : true)) {\n if (isDynamicHeight) {\n decreaseHeight();\n\n if (yDiff < -150 || dynamicHeight === 0.5) {\n handleClose(evt, 'swipeDown');\n }\n } else {\n handleClose(evt, 'swipeDown');\n }\n } // swipe Up\n\n\n if (yDiff > 0 && isDynamicHeight) {\n increaseHeight();\n }\n }\n\n startX = null;\n startY = null;\n };\n /* istanbul ignore next */\n\n\n var handleTouchMove = function (evt) {\n // Prevent from scrolling\n evt.preventDefault();\n };\n /* istanbul ignore next */\n\n\n var handleTouchStart = function (evt) {\n /* istanbul ignore next */\n if (!startY && !startX) {\n var firstTouch = evt.changedTouches[0];\n startY = firstTouch.pageY;\n startX = firstTouch.pageX;\n }\n };\n /* istanbul ignore next */\n\n\n var titleId = \"header_\".concat(idBase);\n var ariaProps = {\n role: 'dialog',\n className: wrapperClassName,\n 'aria-modal': 'true',\n 'aria-hidden': ariaHidden\n };\n\n if (headerLogo || hideTitle) {\n ariaProps['aria-label'] = title;\n } else {\n ariaProps['aria-labelledby'] = titleId;\n } // If there's a close button, we need to have an action zone even if there's nothing in it\n // Same for close button. Need to have an empty div if there's something in the action\n // But if neither is present, we want to give the whole space to the title.\n\n\n var emptyCloseButtonZone = action ? jsx(\"div\", {\n css: [_styles.modalHeaderClose],\n \"data-ppui\": \"true\"\n }) : null;\n var emptyActionZone = closeButtonTag ? jsx(\"div\", {\n css: [_styles.modalHeaderAction],\n \"data-ppui\": \"true\"\n }) : null; // Now that we've decided what the empty states would look like, decide if they're actually empty or not\n\n var closeButtonZone = closeButtonTag ? jsx(\"div\", {\n css: [_styles.modalHeaderClose],\n \"data-ppui\": \"true\"\n }, closeButtonTag) : emptyCloseButtonZone;\n var actionZone = action ? jsx(\"div\", {\n css: [_styles.modalHeaderAction],\n ref: actionZoneRef,\n \"data-ppui\": \"true\"\n }, action) : emptyActionZone;\n var titleContentCss = [headerLogo ? _styles.modalHeaderLogo : _styles.modalHeaderTitle];\n var titleContentZone = jsx(\"div\", {\n css: titleContentCss,\n id: titleId,\n \"aria-live\": \"assertive\",\n \"data-ppui\": \"true\"\n }, function titleContents() {\n if (headerLogo) {\n return jsx(\"img\", {\n src: \"https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-mark-color.svg\",\n alt: \"paypal-logo\",\n css: _styles.modalHeaderLogoImage,\n \"data-ppui\": \"true\"\n });\n }\n\n return hideTitle ? null : title;\n }());\n var headerContentZone = headerContents ? jsx(\"div\", {\n css: _styles.modalHeaderWorkArea,\n ref: headerContentRef,\n \"data-ppui\": \"true\"\n }, headerContents) : null;\n var header = showHeader ? jsx(\"header\", {\n className: headerClassName,\n css: [_styles.modalHeader, _styles.modalHeaderSheet, headerScroll && _styles.modalHeaderScrolled, actionZone && _styles.modalHeaderSheetAction, showGripper && _styles.showGripper],\n onTouchStart: handleTouchStart,\n onTouchMove: handleTouchMove,\n onTouchEnd: function handleTouchEnd(evt) {\n mobileTouchEnd(evt, null);\n },\n \"data-ppui\": \"true\"\n }, actionZone, titleContentZone, closeButtonZone, headerContentZone) : null;\n var footer = footerContents ? jsx(\"footer\", {\n className: footerClassName,\n css: [_styles.modalFooter,\n /* istanbul ignore next */\n footerScroll && _styles.modalFooterScrolled, footerAlign === 'center' && _styles.modalFooterAlignCenter, footerAlign === 'right' && _styles.modalFooterAlignRight],\n \"data-ppui\": \"true\"\n }, footerContents) : null;\n return jsx(\"div\", _extends({}, ariaProps, {\n css: wrapperCss,\n \"data-ppui-info\": \"sheet_3.15.1\"\n }), jsx(FocusOn, {\n enabled: !isHidden // @ts-ignore: onEscapeKey() wants an Event, but the rest of this code wants SyntheticEvent<>\n ,\n onEscapeKey: function handleEscape(evt) {\n evt.preventDefault();\n handleClose(evt, 'ESC');\n },\n onClickOutside: function handleBackdropClick(evt) {\n handleClose(evt, 'backdropClick');\n },\n returnFocus: returnFocusToTrigger,\n css: [_styles.containerBottom, showDrawer && _styles.containerRightWidth],\n \"data-ppui\": \"true\"\n }, jsx(\"article\", _extends({\n css: containerCss,\n className: containerClassName\n }, rest, {\n ref: sheetRef,\n \"aria-hidden\": ariaHidden,\n \"data-ppui\": \"true\"\n }), header, jsx(\"section\", {\n css: contentCss,\n className: className,\n onScroll: function handleScroll() {\n /* istanbul ignore else */\n if (contentRef && contentRef.current) {\n var contents = contentRef.current;\n /* istanbul ignore else */\n\n if (onContentScroll) {\n onContentScroll(contents.scrollTop);\n }\n }\n\n scrollCheck();\n },\n ref: contentRef,\n onTouchStart: handleTouchStart,\n onTouchMove: handleTouchMove,\n onTouchEnd: function handleContentTouchEnd(evt) {\n var content = contentRef && contentRef.current;\n\n if (isDynamicHeight) {\n mobileTouchEnd(evt, content);\n }\n },\n \"data-ppui\": \"true\"\n }, children), footer)));\n};\n\nvar _excluded$1 = [\"isOpen\", \"onOpen\", \"onClose\", \"onCloseComplete\", \"containerRef\"];\n\nvar Sheet = function (_ref) {\n var isOpen = _ref.isOpen,\n onOpen = _ref.onOpen,\n onClose = _ref.onClose,\n _ref$onCloseComplete = _ref.onCloseComplete,\n onCloseComplete = _ref$onCloseComplete === void 0 ? onClose : _ref$onCloseComplete,\n containerRef = _ref.containerRef,\n componentProps = _objectWithoutProperties(_ref, _excluded$1);\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n isMounted = _useState2[0],\n setIsMounted = _useState2[1];\n\n useEffect(function () {\n setIsMounted(true);\n }, []);\n var contents = /*#__PURE__*/React.createElement(Animator, {\n shouldHide: !isOpen,\n onOpen: onOpen,\n onCloseComplete: onCloseComplete,\n \"data-ppui\": \"true\"\n }, function animatee(props) {\n return /*#__PURE__*/React.createElement(SheetComponent, _extends({}, props, componentProps, {\n \"data-ppui\": \"true\"\n }));\n });\n var containerElm = containerRef && containerRef.current; // Delay createPortal until component is mounted to fix server side rendering\n\n return isMounted && ReactDOM.createPortal(contents, containerElm || document.body);\n};\n\nvar _excluded$2 = [\"isFullView\", \"showInverseCloseButton\", \"requestClose\", \"className\", \"headerClassName\", \"footerClassName\", \"containerClassName\", \"isHidden\", \"center\", \"hideTitle\", \"closeButtonLabel\", \"closeButtonProps\", \"closeOnBackgroundClick\", \"onBeforeClose\", \"contentContainerRef\", \"title\", \"id\", \"action\", \"footerContents\", \"footerAlign\", \"children\", \"skipFormFocus\", \"showTitleInHeader\"];\n\nvar closeDialog = function () {\n return true;\n};\n\nvar DialogComponent = function (_ref) {\n var isFullView = _ref.isFullView,\n showInverseCloseButton = _ref.showInverseCloseButton,\n requestClose = _ref.requestClose,\n className = _ref.className,\n headerClassName = _ref.headerClassName,\n footerClassName = _ref.footerClassName,\n containerClassName = _ref.containerClassName,\n isHidden = _ref.isHidden,\n center = _ref.center,\n _ref$hideTitle = _ref.hideTitle,\n hideTitle = _ref$hideTitle === void 0 ? isFullView : _ref$hideTitle,\n _ref$closeButtonLabel = _ref.closeButtonLabel,\n closeButtonLabel = _ref$closeButtonLabel === void 0 ? 'Close Dialog' : _ref$closeButtonLabel,\n _ref$closeButtonProps = _ref.closeButtonProps,\n closeButtonProps = _ref$closeButtonProps === void 0 ? {} : _ref$closeButtonProps,\n closeOnBackgroundClick = _ref.closeOnBackgroundClick,\n _ref$onBeforeClose = _ref.onBeforeClose,\n onBeforeClose = _ref$onBeforeClose === void 0 ? closeDialog : _ref$onBeforeClose,\n contentContainerRef = _ref.contentContainerRef,\n title = _ref.title,\n id = _ref.id,\n action = _ref.action,\n footerContents = _ref.footerContents,\n footerAlign = _ref.footerAlign,\n children = _ref.children,\n skipFormFocus = _ref.skipFormFocus,\n _ref$showTitleInHeade = _ref.showTitleInHeader,\n showTitleInHeader = _ref$showTitleInHeade === void 0 ? false : _ref$showTitleInHeade,\n rest = _objectWithoutProperties(_ref, _excluded$2);\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n headerScroll = _useState2[0],\n setHeaderScroll = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n footerScroll = _useState4[0],\n setFooterScroll = _useState4[1];\n\n var refContent = useRef();\n var contentRef = contentContainerRef || refContent;\n var closeButtonRef = useRef();\n var actionZoneRef = useRef();\n var idBase = id || uniqueId(); // jest has no way to test things like scrollTop or scrollHeight --BCC\n\n /* istanbul ignore next */\n\n var scrollCheck = function () {\n if (contentRef && contentRef.current) {\n var contents = contentRef.current;\n var newHeaderScroll = contents.scrollTop !== 0;\n\n if (newHeaderScroll !== headerScroll) {\n setHeaderScroll(newHeaderScroll);\n } // Footer is optional, may not be one to watch for!\n\n\n if (footerContents) {\n // Have we scrolled to the bottom?\n var newFooterScroll = Math.ceil(contents.scrollTop + contents.getBoundingClientRect().height) < contents.scrollHeight;\n\n if (newFooterScroll !== footerScroll) {\n setFooterScroll(newFooterScroll);\n }\n }\n }\n };\n\n useEffect(function () {\n if (!isHidden) {\n scrollCheck(); // istanbul ignore next\n\n if (window && window.setTimeout) {\n // istanbul ignore next\n window.setTimeout(function () {\n // HACK ALERT! react-on-focus fails at setting the focus\n // if we are transitioning opacity. This causes the dialog\n // to set the focus on the close button but NOT indicate\n // that fact to the user either visually or in the screen reader\n // So timeOut was needed\n var focused = false; // For Forms\n\n if (!focused && !skipFormFocus && contentRef && contentRef.current) {\n //@ts-ignore\n var focusableEls = contentRef.current.querySelectorAll('a, button, textarea, input, select');\n\n if (focusableEls.length > 0) {\n focusableEls[0].focus();\n focused = true;\n }\n } // Otherwise focus on action item or close button\n\n\n if (!focused && (!!action || !hideTitle)) {\n if (action && actionZoneRef && actionZoneRef.current) {\n //@ts-ignore\n var focusableActionEl = actionZoneRef.current.querySelectorAll('a, button, select');\n\n if (focusableActionEl.length > 0) {\n focusableActionEl[0].focus();\n }\n } else {\n var closeButton = closeButtonRef.current;\n\n if (closeButton) {\n //@ts-ignore\n closeButton.focus();\n }\n }\n }\n }, 100);\n }\n }\n }, [isHidden]);\n /* istanbul ignore next */\n\n // If theme is not directly provided, get from themeContext\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var wrapperCss = [_styles.modalBackdrop, !isHidden && _styles.modalBackdropShow];\n var contentCss = [_styles.modalContents, _styles.modalContentsDialog, center && _styles.modalContentsCenter, isFullView && _styles.modalContentsNoPadding, !isFullView && _styles.modalContentDialogPadding];\n\n var handleClose = function (evt, closedBy) {\n var okToClose = onBeforeClose(closedBy);\n /* istanbul ignore next */\n\n if (okToClose) {\n requestClose(evt, closedBy);\n }\n };\n\n var titleId = \"header_\".concat(idBase);\n var titleElement = null;\n var ariaProps = {\n role: 'dialog',\n 'aria-modal': 'true',\n 'aria-hidden': isHidden ? 'true' : 'false'\n };\n\n if (hideTitle || showTitleInHeader) {\n ariaProps['aria-label'] = title;\n\n if (showTitleInHeader && !isFullView) {\n titleElement = jsx(\"span\", {\n id: titleId,\n \"aria-live\": \"assertive\",\n \"data-ppui\": \"true\"\n }, title);\n }\n } else {\n ariaProps['aria-labelledby'] = titleId;\n titleElement = jsx(\"h2\", {\n id: titleId,\n \"aria-live\": \"assertive\",\n \"data-ppui\": \"true\"\n }, title);\n }\n\n var closeButtonContainerCss = isFullView ? _styles.modalContentsClose : _styles.modalHeaderClose;\n var closeButtonTag = jsx(\"div\", {\n css: closeButtonContainerCss,\n \"data-ppui\": \"true\"\n }, jsx(IconButton, _extends({\n buttonType: \"tertiary\",\n svgIconComponent: CloseIcon,\n inverse: showInverseCloseButton,\n ref: closeButtonRef,\n onClick: function handleCloseButtonClick(evt) {\n handleClose(evt, 'closeButton');\n }\n }, closeButtonProps, {\n \"data-ppui\": \"true\"\n }), closeButtonLabel));\n var footer = footerContents ? jsx(\"footer\", {\n className: footerClassName,\n css: [_styles.modalFooter,\n /* istanbul ignore next */\n footerScroll && _styles.modalFooterScrolled, footerAlign === 'center' && _styles.modalFooterAlignCenter, footerAlign === 'right' && _styles.modalFooterAlignRight],\n \"data-ppui\": \"true\"\n }, footerContents) : null;\n var header = jsx(\"header\", {\n className: headerClassName,\n css: [_styles.modalHeader,\n /* istanbul ignore next */\n headerScroll && _styles.modalHeaderScrolled, _styles.modalTopBorder],\n \"data-ppui\": \"true\"\n }, jsx(\"div\", {\n css: _styles.modalHeaderAction,\n ref: actionZoneRef,\n \"data-ppui\": \"true\"\n }, action), jsx(\"div\", {\n css: _styles.modalHeaderTitle,\n \"data-ppui\": \"true\"\n }, showTitleInHeader && titleElement), closeButtonTag);\n return jsx(\"div\", _extends({}, ariaProps, {\n css: wrapperCss,\n \"data-ppui-info\": \"dialog_3.15.1\"\n }), jsx(FocusOn, {\n enabled: !isHidden // @ts-ignore: onEscapeKey() wants an Event, but the rest of this code wants SyntheticEvent<>\n ,\n onEscapeKey: function handleEscape(evt) {\n evt.preventDefault();\n handleClose(evt, 'ESC');\n },\n onClickOutside: function handleBackdropClick(evt) {\n if (closeOnBackgroundClick) {\n handleClose(evt, 'backdropClick');\n }\n },\n css: _styles.containerMiddle,\n \"data-ppui\": \"true\"\n }, jsx(\"article\", _extends({\n css: [_styles.base, _styles.modalDialog, !isHidden && _styles.modalBackdropShowDialog],\n className: containerClassName\n }, rest, {\n \"data-ppui\": \"true\"\n }), isFullView ? closeButtonTag : header, jsx(\"section\", {\n className: className,\n css: contentCss,\n onScroll: function scrollChecker() {\n return scrollCheck();\n },\n ref: contentRef,\n \"data-ppui\": \"true\"\n }, jsx(AutoFocusInside, {\n \"data-ppui\": \"true\"\n }, !showTitleInHeader && titleElement, children)), footer)));\n};\n\nvar _excluded$3 = [\"isOpen\", \"onOpen\", \"onClose\", \"onCloseComplete\", \"containerRef\"];\n\nvar Dialog = function (_ref) {\n var isOpen = _ref.isOpen,\n onOpen = _ref.onOpen,\n onClose = _ref.onClose,\n _ref$onCloseComplete = _ref.onCloseComplete,\n onCloseComplete = _ref$onCloseComplete === void 0 ? onClose : _ref$onCloseComplete,\n containerRef = _ref.containerRef,\n componentProps = _objectWithoutProperties(_ref, _excluded$3);\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n isMounted = _useState2[0],\n setIsMounted = _useState2[1];\n\n useEffect(function () {\n setIsMounted(true);\n }, []);\n var contents = /*#__PURE__*/React.createElement(Animator, {\n shouldHide: !isOpen,\n onOpen: onOpen,\n onCloseComplete: onCloseComplete,\n \"data-ppui\": \"true\"\n }, function animatee(props) {\n return /*#__PURE__*/React.createElement(DialogComponent, _extends({}, props, componentProps, {\n \"data-ppui\": \"true\"\n }));\n });\n var containerElm = containerRef && containerRef.current; // Delay createPortal until component is mounted to fix server side rendering\n\n return isMounted && ReactDOM.createPortal(contents, containerElm || document.body);\n};\n\nexport { Dialog, Sheet, styles as modalStyles };\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { inlineProp } from './util';\nvar AutoFocusInside = function AutoFocusInside(_ref) {\n var _ref$disabled = _ref.disabled,\n disabled = _ref$disabled === void 0 ? false : _ref$disabled,\n children = _ref.children,\n _ref$className = _ref.className,\n className = _ref$className === void 0 ? undefined : _ref$className;\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, inlineProp(constants.FOCUS_AUTO, !disabled), {\n className: className\n }), children);\n};\nAutoFocusInside.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node.isRequired,\n disabled: PropTypes.bool,\n className: PropTypes.string\n} : {};\nexport default AutoFocusInside;","export function deferAction(action) {\n setTimeout(action, 1);\n}\nexport var inlineProp = function inlineProp(name, value) {\n var obj = {};\n obj[name] = value;\n return obj;\n};\nexport var extractRef = function extractRef(ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};"],"names":["isBrowser","hasOwn","hasOwnProperty","EmotionCacheContext","HTMLElement","key","Provider","withEmotionCache","func","forwardRef","props","ref","cache","useContext","value","ThemeContext","useTheme","createCacheWithTheme","outerTheme","theme","getTheme","ThemeProvider","children","typePropName","createEmotionProps","type","newProps","call","Insertion","_ref","serialized","isStringTag","Emotion$1","cssProp","css","undefined","registered","WrappedComponent","registeredStyles","className","name","jsx","args","arguments","h","apply","argsLength","length","createElementArgArray","Array","E","c","i","Global","w","styles","T","serializedNames","serializedStyles","next","shouldCache","compat","rules","insert","sheet","dangerouslySetInnerHTML","__html","nonce","sheetRef","constructor","container","speedy","isSpeedy","rehydrating","node","document","querySelector","tags","before","setAttribute","hydrate","current","flush","sheetRefCurrent","element","nextElementSibling","_len","_key","keyframes","insertable","anim","toString","this","classnames","len","cls","arg","toAdd","isArray","k","serializedArr","ClassNames","push","content","cx","_len2","_key2","rawClassName","merge","ele","useInsertionEffect","useInsertionEffectAlwaysWithSyncFallback","create","useInsertionEffectWithLayoutFallback","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","_templateObject15","_templateObject16","_templateObject17","_templateObject18","_templateObject19","_templateObject20","_templateObject21","_templateObject22","_templateObject23","_templateObject24","_templateObject25","_templateObject26","_templateObject27","_templateObject28","_templateObject29","_templateObject30","_templateObject31","_templateObject32","_templateObject33","_templateObject34","_templateObject35","_templateObject36","_templateObject37","_templateObject38","_templateObject39","_templateObject40","_templateObject41","_templateObject42","_templateObject43","_templateObject44","_templateObject45","_templateObject46","tokens","Object","keys","sysSpaceLg","sysTypographyDisplaySize","sysSizeIconLg","sysSizeTapTargetDefault","sysSpaceXl","sysSpaceSm","sysSizeMediaMd","sysSizeMediaSm","sysColorBackgroundSurface","sysSizeMediaLg","sysMotionDurationDepart","sysSpaceMd","sysSpaceXs","sysMotionDurationArrive","sysSizeIconSm","sysSizeIconMd","sysColorOverlayMainHover","sysSizeIndicatorMd","sysSizeIconXl","sysSpaceJumbo","sysSizeMediaXl","sysColorBackgroundMediumContrast","sysBorderRadiusLg","sysSizeIndicatorSm","_utilStyles","elevationStyles","variables","screenReader","ppuiEaseInOut","textBody","body","lightboxMinHeight","concat","modalHeaderMinHeight","modalHeaderZoneMinWidth","dialogMaxWidth","mdMarginDelta","smMarginDelta","sheetHeaderHeightMobile","sheetHeaderHeightDesktop","sheetWidthSm","sheetButtonSize","modalBorderRadius","containerCenter","valign","containerMiddle","containerBottom","base","modalNoContainer","modalDialog","level3","modalTopBorder","modalSheet","modalSheetShow","modalBackdrop","modalBackdropShow","modalBackdropShowDialog","scrim","scrimShow","showGripper","modalContents","modalContentWithHeader","modalContentsSheet","modalContentsDialog","modalContentsNoPadding","modalContentDialogPadding","modalContentsCenter","modalHeader","modalHeaderSheet","modalHeaderSheetAction","modalHeaderScrolled","modalHeaderAction","modalHeaderTitle","modalHeaderClose","modalHeaderWorkArea","modalHeaderLogo","modalHeaderLogoImage","modalContentsClose","modalFooter","modalFooterScrolled","level3Above","modalFooterAlignCenter","modalFooterAlignRight","modalSheetHeight90","modalSheetHeight100","justifyRight","containerRightWidth","commonContainerStyles","containerRight","containerLeft","drawerContainer","modalSheetHeight50","_excluded","closeSheet","SheetComponent","startX","startY","requestClose","_ref$onBeforeClose","onBeforeClose","isHidden","center","noPadding","_ref$closeButtonLabel","closeButtonLabel","noCloseButton","_ref$closeButtonProps","closeButtonProps","hideTitle","showLogo","mobileFixedHeight","_ref$showGripper","title","id","action","headerContents","footerContents","footerAlign","_ref$returnFocusToTri","returnFocusToTrigger","headerClassName","containerClassName","contentContainerRef","wrapperClassName","footerClassName","skipFormFocus","_ref$contentScrollTop","contentScrollTop","onContentScroll","_ref$showDrawer","showDrawer","rest","_useState","useState","_useState2","headerScroll","setHeaderScroll","_useState3","_useState4","footerScroll","setFooterScroll","_useState5","_useState6","dynamicHeight","setDynamicHeight","useRef","closeButtonRef","actionZoneRef","refContent","contentRef","headerContentRef","isRtl","isDynamicHeight","u","_styles","useMemo","MEDIUM_BREAKPOINT","isMobile","window","innerWidth","headerLogo","idBase","showHeader","scrollCheck","contents","newHeaderScroll","scrollTop","newFooterScroll","offsetHeight","scrollHeight","setFixedHeight","sheetEl","height90Percent","innerHeight","style","height","maxHeight","increaseHeight","_ref2","_callee","_context","prev","stop","useEffect","_window","setTimeout","focused","formElement","focus","focusableEls","querySelectorAll","focusableActionEl","closeButtonCurrent","addEventListener","overflow","removeEventListener","wrapperCss","containerCss","contentCss","ariaHidden","handleClose","evt","closedBy","closeButtonTag","svgIconComponent","onClick","buttonType","mobileTouchEnd","endTouch","changedTouches","endX","pageX","endY","pageY","xDiff","yDiff","Math","abs","handleTouchMove","preventDefault","handleTouchStart","firstTouch","titleId","ariaProps","role","emptyCloseButtonZone","emptyActionZone","closeButtonZone","actionZone","titleContentCss","titleContentZone","src","alt","headerContentZone","header","onTouchStart","onTouchMove","onTouchEnd","footer","enabled","onEscapeKey","onClickOutside","returnFocus","onScroll","_excluded$1","Sheet","isOpen","onOpen","onClose","_ref$onCloseComplete","onCloseComplete","containerRef","componentProps","isMounted","setIsMounted","shouldHide","containerElm","_excluded$2","closeDialog","DialogComponent","isFullView","showInverseCloseButton","_ref$hideTitle","closeOnBackgroundClick","_ref$showTitleInHeade","showTitleInHeader","ceil","getBoundingClientRect","closeButton","titleElement","closeButtonContainerCss","inverse","A","_excluded$3","Dialog","AutoFocusInside","_ref$disabled","disabled","_ref$className","propTypes","deferAction","inlineProp","obj","extractRef"],"sourceRoot":""}