{"version":3,"sources":["../../../c3/components/c3-component-interstitial/src/InterstitialHeader/styles.module.cssi.ts","../../../c3/components/c3-component-interstitial/src/InterstitialWithBodyScroll/styles.module.cssi.ts","../../../c3/components/c3-component-interstitial/src/InterstitialHeader/index.tsx","../../../c3/components/c3-component-interstitial/src/InterstitialWithInnerScroll/styles.module.cssi.ts","../../../c3/components/c3-component-interstitial/src/InterstitialWithBodyScroll/index.tsx","../../../c3/components/c3-component-interstitial/src/InterstitialWithInnerScroll/index.tsx","../../../c3/components/c3-component-interstitial/src/Interstitial.module.cssi.ts","../../../c3/components/c3-component-interstitial/src/InterstitialManager.tsx","../../../c3/components/c3-component-interstitial/src/Interstitial.tsx","../../../c3/components/c3-component-interstitial/src/index.ts","../../../c3/components/c3-component-paypal-logo/src/PayPalLogo.tsx","../../../c3/components/c3-component-paypal-logo/src/index.properties","../../../c3/components/c3-component-paypal-logo/src/logo.svg","../../../c3/components/c3-component-interstitial/src sync //.module/.css$","../../../c3/components/c3-component-interstitial/src/Interstitial.module.css","../../../c3/components/c3-component-interstitial/src/InterstitialHeader/styles.module.css","../../../c3/components/c3-component-interstitial/src/InterstitialWithBodyScroll/styles.module.css","../../../c3/components/c3-component-interstitial/src/InterstitialWithInnerScroll/styles.module.css"],"names":["InterstitialHeaderCssStyles","InterstitialWithBodyScrollCssStyles","CssStyles","displayName","_ref","_ref$name","name","onClose","showCloseBtn","_ref$type","type","_ref$action","action","_ref$headerTitle","headerTitle","_ref$headerIconType","headerIconType","_ref$hideHeaderBorder","hideHeaderBorder","IconComponent","logo","monogram","none","createElement","className","onClick","event","preventDefault","fpti","from","to","closeIcon","InterstitialWithInnerScrollCssStyles","_ref2","_ref$animated","animated","_ref$dataTestId","dataTestId","children","_ref$hidden","hidden","id","_ref$interstitialInne","interstitialInnerContainerStyleOverrides","_ref$interstitialStyl","interstitialStyleOverrides","_ref$interstitialWrap","interstitialWrapperStyleOverrides","_ref$overlayClassName","overlayClassNames","payload","_ref$showCloseBtn","wrapperRef","_useState","isClosing","setIsClosing","handleClose","setTimeout","isSheet","useClickAway","backgroundStyle","backgroundColor","bottom","left","position","height","portalContainer","document","getElementById","backgroundStyleOverrides","withoutHeader","closeOnEsc","containerClassNames","useBodyScroll","open","sheet","ref","_setPrototypeOf","o","p","Object","setPrototypeOf","__proto__","InterstitialCssStyles","_React$Component","subClass","superClass","InterstitialWithInnerScroll","props","_this","call","this","_isMounted","timer","interstitialInnerContainerRef","setScrollHeight","scrollContentHeight","gdprContainer","interstitialInnerContainer","cal","info","windowSize","window","outerHeight","style","gdprContainerHeight","offsetHeight","interstitialInnerContainerHeight","setHandleClose","onBeforeClose","onBeforeCloseFn","visible","then","handleRef","state","prototype","create","constructor","_proto","componentDidMount","componentWillUnmount","clearTimeout","componentDidUpdate","prevProps","setState","render","_this2","_this$props","_this$props$showClose","_this$props$type","_this$props$dataTestI","e","stopPropagation","InterstitialContext","createContext","undefined","stack","setStack","Provider","value","current","length","register","concat","unregister","idx","indexOf","splice","_extends","assign","target","i","arguments","source","key","hasOwnProperty","apply","_Component","Interstitial","_len","args","Array","_key","context","overlayStyleOverrides","rest","excluded","sourceKeys","keys","_objectWithoutPropertiesLoose","north","contextType","theme","width","src","alt","paypal","defaultProps","_get","getContent","require","module","exports","options","map","webpackContext","req","webpackContextResolve","__webpack_require__","Error","code","resolve"],"mappings":"okBAGWA,E,wDAEX,SAAWA,GACTA,EAAuC,UAAI,YAC3CA,EAA4B,sBAAwB,qBACpDA,EAA8C,iBAAI,mBAClDA,EAAmC,MAAI,QACvCA,EAAsC,SAAI,WAC1CA,EAAuC,UAAI,YAC3CA,EAAoC,OAAI,SACxCA,EAAmC,MAAI,QACvCA,EAAkC,KAAI,OACtCA,EAAkC,KAAI,OACtCA,EAAkC,KAAI,OACtCA,EAAmC,MAAI,QAZzC,CAaGA,IAAgCA,EAA8B,KAE1D,ICjBIC,EDiBAC,EAAYF,EACR,yBAAa,qBAAW,CACrCG,YAAa,uBACXD,G,SEJO,EAAqB,SAA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D,MAAQ,0CAA0C,eAAiB,mDAAmD,eAAiB,mDAAmD,QAAU","file":"js/main~5d923156.e741e993.js","sourcesContent":["//DO NOT MODIFY generated by the ts-emeth script.\nimport { styleFactory, themeClass } from 'ts-emeth';\nexport { adopt } from 'ts-emeth';\nexport var InterstitialHeaderCssStyles;\n\n(function (InterstitialHeaderCssStyles) {\n InterstitialHeaderCssStyles[\"container\"] = \"container\";\n InterstitialHeaderCssStyles[\"hide-header-border\"] = \"hide-header-border\";\n InterstitialHeaderCssStyles[\"hideHeaderBorder\"] = \"hideHeaderBorder\";\n InterstitialHeaderCssStyles[\"right\"] = \"right\";\n InterstitialHeaderCssStyles[\"closeBtn\"] = \"closeBtn\";\n InterstitialHeaderCssStyles[\"closeIcon\"] = \"closeIcon\";\n InterstitialHeaderCssStyles[\"header\"] = \"header\";\n InterstitialHeaderCssStyles[\"title\"] = \"title\";\n InterstitialHeaderCssStyles[\"logo\"] = \"logo\";\n InterstitialHeaderCssStyles[\"full\"] = \"full\";\n InterstitialHeaderCssStyles[\"tall\"] = \"tall\";\n InterstitialHeaderCssStyles[\"sheet\"] = \"sheet\";\n})(InterstitialHeaderCssStyles || (InterstitialHeaderCssStyles = {}));\n\nexport var CssStyles = InterstitialHeaderCssStyles;\nexport default styleFactory(themeClass({\n displayName: \"InterstitialHeader\"\n}), CssStyles);","//DO NOT MODIFY generated by the ts-emeth script.\nimport { styleFactory, themeClass } from 'ts-emeth';\nexport { adopt } from 'ts-emeth';\nexport var InterstitialWithBodyScrollCssStyles;\n\n(function (InterstitialWithBodyScrollCssStyles) {\n InterstitialWithBodyScrollCssStyles[\"container\"] = \"container\";\n InterstitialWithBodyScrollCssStyles[\"modal-container\"] = \"modal-container\";\n InterstitialWithBodyScrollCssStyles[\"modalContainer\"] = \"modalContainer\";\n InterstitialWithBodyScrollCssStyles[\"inner-container\"] = \"inner-container\";\n InterstitialWithBodyScrollCssStyles[\"innerContainer\"] = \"innerContainer\";\n InterstitialWithBodyScrollCssStyles[\"wrapper\"] = \"wrapper\";\n InterstitialWithBodyScrollCssStyles[\"sheet-container\"] = \"sheet-container\";\n InterstitialWithBodyScrollCssStyles[\"sheetContainer\"] = \"sheetContainer\";\n InterstitialWithBodyScrollCssStyles[\"sheet\"] = \"sheet\";\n InterstitialWithBodyScrollCssStyles[\"sheet-overlay\"] = \"sheet-overlay\";\n InterstitialWithBodyScrollCssStyles[\"sheetOverlay\"] = \"sheetOverlay\";\n InterstitialWithBodyScrollCssStyles[\"tall-container\"] = \"tall-container\";\n InterstitialWithBodyScrollCssStyles[\"tallContainer\"] = \"tallContainer\";\n InterstitialWithBodyScrollCssStyles[\"open\"] = \"open\";\n InterstitialWithBodyScrollCssStyles[\"isClosing\"] = \"isClosing\";\n InterstitialWithBodyScrollCssStyles[\"close\"] = \"close\";\n})(InterstitialWithBodyScrollCssStyles || (InterstitialWithBodyScrollCssStyles = {}));\n\nexport var CssStyles = InterstitialWithBodyScrollCssStyles;\nexport default styleFactory(themeClass({\n displayName: \"InterstitialWithBodyScroll\"\n}), CssStyles);","/* eslint-disable react/prop-types */\nimport { Close } from '@paypalcorp/c3-component-icons';\nimport { logger, TRANSITION_PAYLOAD } from '@paypalcorp/c3-util-logger';\nimport { PayPalMonogram } from '@checkout/react-components';\nimport React from 'react';\nimport styles from './styles.module.cssi';\nimport { PayPalLogo } from '@paypalcorp/c3-component-paypal-logo';\n\n/**\n * @param {Object} options\n * @param {String} options.name | The name of the overall InterstitialContainer component\n * @param {String} options.showCloseBtn | Boolean flag to show close button or not\n * @param {String} options.action | Current InterstitialContainer instance name for triggering closing\n * Interstitial action. (Ex, `cancelAddShipping`, `cancelAddCard` and etc)\n * @param {String} options.headerTitle | String representing the title of the interstitial\n * @param {Boolean} options.headerIconType | String to show PayPal Monogram | Logo | None for header icon\n * @returns {ReactElement} | Returns the InterstitialHeader component which will be consumed by\n * InterstitialContainer component as part of the InterstitialContainer implementation\n */\nexport var InterstitialHeader = function InterstitialHeader(_ref) {\n var _ref$name = _ref.name,\n name = _ref$name === void 0 ? '' : _ref$name,\n onClose = _ref.onClose,\n showCloseBtn = _ref.showCloseBtn,\n _ref$type = _ref.type,\n type = _ref$type === void 0 ? 'full' : _ref$type,\n _ref$action = _ref.action,\n action = _ref$action === void 0 ? \"cancel-\" + name : _ref$action,\n _ref$headerTitle = _ref.headerTitle,\n headerTitle = _ref$headerTitle === void 0 ? '' : _ref$headerTitle,\n _ref$headerIconType = _ref.headerIconType,\n headerIconType = _ref$headerIconType === void 0 ? 'monogram' : _ref$headerIconType,\n _ref$hideHeaderBorder = _ref.hideHeaderBorder,\n hideHeaderBorder = _ref$hideHeaderBorder === void 0 ? false : _ref$hideHeaderBorder;\n var IconComponent = {\n logo: PayPalLogo,\n monogram: PayPalMonogram,\n none: function none() {\n return null;\n }\n }[headerIconType];\n return /*#__PURE__*/React.createElement(\"div\", {\n \"data-testid\": \"interstitial-header\",\n className: styles(styles[type], 'container', {\n hideHeaderBorder: hideHeaderBorder\n })\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles('header')\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: styles('logo')\n }, /*#__PURE__*/React.createElement(IconComponent, null)), headerTitle ? /*#__PURE__*/React.createElement(\"div\", {\n \"data-testid\": \"interstitial-title\",\n className: styles('title')\n }, headerTitle) : null), showCloseBtn ? /*#__PURE__*/React.createElement(\"button\", {\n className: styles('closeBtn'),\n \"data-testid\": action + \"-interstitial\",\n onClick: function onClick(event) {\n event === null || event === void 0 ? void 0 : event.preventDefault();\n logger.fpti(action, TRANSITION_PAYLOAD({\n from: name,\n to: action\n }));\n onClose(event);\n }\n }, /*#__PURE__*/React.createElement(Close, {\n className: styles.closeIcon\n })) : null);\n};","//DO NOT MODIFY generated by the ts-emeth script.\nimport { styleFactory, themeClass } from 'ts-emeth';\nexport { adopt } from 'ts-emeth';\nexport var InterstitialWithInnerScrollCssStyles;\n\n(function (InterstitialWithInnerScrollCssStyles) {\n InterstitialWithInnerScrollCssStyles[\"container\"] = \"container\";\n InterstitialWithInnerScrollCssStyles[\"full\"] = \"full\";\n InterstitialWithInnerScrollCssStyles[\"tall\"] = \"tall\";\n InterstitialWithInnerScrollCssStyles[\"compact\"] = \"compact\";\n InterstitialWithInnerScrollCssStyles[\"full-Overlay\"] = \"full-Overlay\";\n InterstitialWithInnerScrollCssStyles[\"fullOverlay\"] = \"fullOverlay\";\n InterstitialWithInnerScrollCssStyles[\"tall-Overlay\"] = \"tall-Overlay\";\n InterstitialWithInnerScrollCssStyles[\"tallOverlay\"] = \"tallOverlay\";\n InterstitialWithInnerScrollCssStyles[\"compact-Overlay\"] = \"compact-Overlay\";\n InterstitialWithInnerScrollCssStyles[\"compactOverlay\"] = \"compactOverlay\";\n InterstitialWithInnerScrollCssStyles[\"modal-Overlay\"] = \"modal-Overlay\";\n InterstitialWithInnerScrollCssStyles[\"modalOverlay\"] = \"modalOverlay\";\n InterstitialWithInnerScrollCssStyles[\"modal\"] = \"modal\";\n InterstitialWithInnerScrollCssStyles[\"InnerContainer\"] = \"InnerContainer\";\n InterstitialWithInnerScrollCssStyles[\"innerContainer\"] = \"innerContainer\";\n InterstitialWithInnerScrollCssStyles[\"wrapper\"] = \"wrapper\";\n})(InterstitialWithInnerScrollCssStyles || (InterstitialWithInnerScrollCssStyles = {}));\n\nexport var CssStyles = InterstitialWithInnerScrollCssStyles;\nexport default styleFactory(themeClass({\n displayName: \"InterstitialWithInnerScroll\"\n}), CssStyles);","/* eslint-disable react/prop-types */\nimport React, { useRef, useState } from 'react';\nimport { useClickAway } from 'react-use';\nimport { Interstitial as CommonInterstitial } from '@checkout/react-components/dist/legacy/components/Interstitial';\nimport { PageAlert as PageLevelAlert } from '@paypalcorp/c3-component-alert';\nimport { logger, TRANSITION_PAYLOAD } from '@paypalcorp/c3-util-logger';\nimport { isNorthstar } from '@paypalcorp/c3-util-store';\nimport { InterstitialHeader } from '../InterstitialHeader';\nimport styles, { adopt } from './styles.module.cssi';\nexport var InterstitialWithBodyScroll = function InterstitialWithBodyScroll(_ref) {\n var _ref2;\n\n var _ref$animated = _ref.animated,\n animated = _ref$animated === void 0 ? false : _ref$animated,\n _ref$dataTestId = _ref.dataTestId,\n dataTestId = _ref$dataTestId === void 0 ? '' : _ref$dataTestId,\n children = _ref.children,\n headerTitle = _ref.headerTitle,\n _ref$headerIconType = _ref.headerIconType,\n headerIconType = _ref$headerIconType === void 0 ? 'monogram' : _ref$headerIconType,\n _ref$hidden = _ref.hidden,\n hidden = _ref$hidden === void 0 ? false : _ref$hidden,\n _ref$hideHeaderBorder = _ref.hideHeaderBorder,\n hideHeaderBorder = _ref$hideHeaderBorder === void 0 ? isNorthstar() : _ref$hideHeaderBorder,\n id = _ref.id,\n _ref$interstitialInne = _ref.interstitialInnerContainerStyleOverrides,\n interstitialInnerContainerStyleOverrides = _ref$interstitialInne === void 0 ? '' : _ref$interstitialInne,\n _ref$interstitialStyl = _ref.interstitialStyleOverrides,\n interstitialStyleOverrides = _ref$interstitialStyl === void 0 ? '' : _ref$interstitialStyl,\n _ref$interstitialWrap = _ref.interstitialWrapperStyleOverrides,\n interstitialWrapperStyleOverrides = _ref$interstitialWrap === void 0 ? '' : _ref$interstitialWrap,\n onClose = _ref.onClose,\n _ref$overlayClassName = _ref.overlayClassNames,\n overlayClassNames = _ref$overlayClassName === void 0 ? '' : _ref$overlayClassName,\n payload = _ref.payload,\n _ref$showCloseBtn = _ref.showCloseBtn,\n showCloseBtn = _ref$showCloseBtn === void 0 ? true : _ref$showCloseBtn,\n _ref$type = _ref.type,\n type = _ref$type === void 0 ? 'full' : _ref$type;\n // ref on the wrapper\n var wrapperRef = useRef(null); // manage an `isClosing` state to animate out\n\n var _useState = useState(false),\n isClosing = _useState[0],\n setIsClosing = _useState[1];\n\n function handleClose(event) {\n // useful check to prevent timeouts in tests which could cause flakiness\n if (animated) {\n setIsClosing(true);\n setTimeout(function () {\n return onClose(event);\n }, 500);\n } else {\n onClose(event);\n }\n }\n\n var isSheet = type === 'sheet'; // useClickAway to close the interstitial when the user clicks/taps outside of the wrapper\n // https://github.com/streamich/react-use/blob/master/docs/useClickAway.md\n\n useClickAway(wrapperRef, function (event) {\n if (!hidden && showCloseBtn && isSheet) {\n var action = \"cancel-\" + id;\n logger.fpti(action, TRANSITION_PAYLOAD({\n from: id,\n to: action\n }));\n handleClose(event);\n }\n }, ['mouseup', 'touchend'] // events to listen on\n );\n var backgroundStyle = isSheet ? (_ref2 = {\n backgroundColor: 'rgba(0, 0, 0, 0.4)',\n bottom: 0,\n left: 0,\n position: 'absolute',\n height: '100% !important'\n }, _ref2[\"@media (max-width: 560px)\"] = {\n position: 'fixed'\n }, _ref2) : null;\n var portalContainer = isSheet ? document.getElementById('northstar-container') : null;\n return /*#__PURE__*/React.createElement(CommonInterstitial, {\n backgroundStyleOverrides: backgroundStyle,\n withoutHeader: true,\n onClose: handleClose,\n closeOnEsc: showCloseBtn,\n containerClassNames: styles('container', styles[type + \"-container\"], adopt(interstitialStyleOverrides)),\n overlayClassNames: styles(styles[type + \"-overlay\"], adopt(overlayClassNames)),\n animated: false,\n useBodyScroll: true,\n portalContainer: portalContainer\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles('wrapper', adopt(interstitialWrapperStyleOverrides), {\n open: animated\n }, {\n sheet: isSheet\n }, {\n isClosing: isClosing\n }),\n \"data-testid\": dataTestId,\n ref: wrapperRef\n }, /*#__PURE__*/React.createElement(InterstitialHeader, {\n name: id,\n payload: payload,\n onClose: handleClose,\n showCloseBtn: showCloseBtn,\n headerIconType: headerIconType,\n hideHeaderBorder: hideHeaderBorder,\n type: type,\n headerTitle: headerTitle\n }), /*#__PURE__*/React.createElement(PageLevelAlert, null), /*#__PURE__*/React.createElement(\"div\", {\n className: styles('innerContainer', adopt(interstitialInnerContainerStyleOverrides))\n }, children)));\n};","function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport { Interstitial as CommonInterstitial } from '@checkout/react-components/dist/legacy/components/Interstitial';\nimport { PageAlert as PageLevelAlert } from '@paypalcorp/c3-component-alert';\nimport { isFunction } from '@paypalcorp/c3-util-lang';\nimport { logger } from '@paypalcorp/c3-util-logger';\nimport { updateFeature } from '@paypalcorp/c3-util-store';\nimport * as React from 'react';\nimport { InterstitialHeader } from '../InterstitialHeader';\nimport styles from './styles.module.cssi';\n/**\n * @description `InterstitialContainer` component encapsulates all common Interstitial functionalities\n * into a single `render prop` component for cross-cutting concerns.\n *\n * @example See `AddFIInterstitial` implementation from `@/components/AddFI/AddFIInterstitial/index.js`\n * @example See `AddShippingInterstitial` implementation from `@/components/ShipTo/AddShippingInterstitial/index.js`\n *\n * @param {Object} options\n * @param {String} options.name | The name of the Interstitial container component and this is being\n * used within `InterstitialHeader` component, so when close action being triggered, it will trigger\n * the correct FPTI logs.\n * @param {Function} options.payload | The function to be executed for figuring out what FPTI payload logs\n * should be. Check out `@/logger/fpti.js` and you will see different payload functions for determining\n * different `state_name` and `transition_name` (Ex, REVIEW_PAYLOAD, ADD_CARD_PAYLOAD and etc)\n * @param {Boolean} options.closeOnEsc | A boolean flag to control whether you can close the Interstitial by using keyboard `ESC`\n * @param {Boolean} options.showCloseBtn | A boolean flag to control show exit button on the InterstitialHeader section or not\n * @param {String} options.type | The type of interstitial (one of `full`, `tall`, `compact`, `modal`)\n * @param {Function} options.children | The render prop function that consumer component will use\n * @param {String} options.headerTitle | String representing the title of the interstitial\n * @returns {ReactElement} | Returns the InterstitialContainer wrapper component\n */\n// interstitial which is based on fixed positioning and inner container scrolling\n\nexport var InterstitialWithInnerScroll = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(InterstitialWithInnerScroll, _React$Component);\n\n function InterstitialWithInnerScroll(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this._isMounted = void 0;\n _this.timer = void 0;\n _this.handleClose = void 0;\n _this.interstitialInnerContainerRef = void 0;\n\n _this.setScrollHeight = function () {\n var gdprContainer = document.getElementById('gdprCookieBanner');\n var interstitialInnerContainer = _this.interstitialInnerContainerRef;\n var scrollContentHeight;\n\n if (gdprContainer && interstitialInnerContainer) {\n logger.cal.info('GDPR_COOKIE_BANNER_IN_WINDOW');\n var windowSize = window.outerHeight;\n interstitialInnerContainer.style.height = 'auto';\n var gdprContainerHeight = gdprContainer.offsetHeight || 0;\n var interstitialInnerContainerHeight = interstitialInnerContainer.offsetHeight || 0;\n scrollContentHeight = gdprContainerHeight + interstitialInnerContainerHeight + 30;\n\n if (windowSize < gdprContainerHeight + interstitialInnerContainerHeight) {\n logger.cal.info('INTERSTITIAL_CONTAINER_RESIZED');\n interstitialInnerContainer.style.height = scrollContentHeight + 'px';\n }\n }\n };\n\n _this.setHandleClose = function (handleClose) {\n _this.handleClose = handleClose;\n };\n\n _this.onBeforeClose = function () {\n var onBeforeCloseFn = _this.props.onBeforeCloseFn; // clear page alert notification\n\n updateFeature('PAGE_ALERT', {\n visible: false\n }).then(function () {\n isFunction(onBeforeCloseFn) && onBeforeCloseFn();\n });\n };\n\n _this.handleRef = function (ref) {\n _this.interstitialInnerContainerRef = ref;\n };\n\n _this.state = {\n visible: _this.props.visible\n };\n return _this;\n }\n\n var _proto = InterstitialWithInnerScroll.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isMounted = false;\n clearTimeout(this.timer);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (!prevProps.visible && this.props.visible) {\n if (this._isMounted) {\n this.setState({\n visible: true\n });\n }\n }\n\n if (prevProps.visible && !this.props.visible) {\n this.onBeforeClose();\n this.handleClose && this.handleClose();\n\n if (this._isMounted) {\n this.setState({\n visible: false\n });\n }\n } // Set a default container height for the value to always return back to\n\n\n this.setScrollHeight();\n };\n\n _proto.render = function render() {\n var _this2 = this;\n\n var _this$props = this.props,\n id = _this$props.id,\n payload = _this$props.payload,\n _this$props$showClose = _this$props.showCloseBtn,\n showCloseBtn = _this$props$showClose === void 0 ? true : _this$props$showClose,\n _this$props$type = _this$props.type,\n type = _this$props$type === void 0 ? 'full' : _this$props$type,\n children = _this$props.children,\n headerTitle = _this$props.headerTitle,\n _this$props$dataTestI = _this$props.dataTestId,\n dataTestId = _this$props$dataTestI === void 0 ? '' : _this$props$dataTestI;\n\n var onClose = function onClose(e) {\n e === null || e === void 0 ? void 0 : e.preventDefault();\n e === null || e === void 0 ? void 0 : e.stopPropagation();\n updateFeature(id, {\n visible: false\n });\n };\n\n return this.state.visible ? /*#__PURE__*/React.createElement(CommonInterstitial, {\n withoutHeader: true,\n onClose: onClose,\n closeOnEsc: showCloseBtn,\n onBeforeClose: this.onBeforeClose,\n containerClassNames: styles('container', type),\n overlayClassNames: styles(styles[type + \"-Overlay\"])\n }, function (handleClose) {\n _this2.setHandleClose(handleClose);\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles('wrapper'),\n \"data-testid\": dataTestId\n }, /*#__PURE__*/React.createElement(InterstitialHeader, {\n name: id,\n payload: payload,\n onClose: onClose,\n showCloseBtn: showCloseBtn,\n type: type,\n headerTitle: headerTitle\n }), /*#__PURE__*/React.createElement(PageLevelAlert, null), /*#__PURE__*/React.createElement(\"div\", {\n ref: _this2.handleRef,\n className: styles('InnerContainer')\n }, children));\n }) : null;\n };\n\n return InterstitialWithInnerScroll;\n}(React.Component);","//DO NOT MODIFY generated by the ts-emeth script.\nimport { styleFactory, themeClass } from 'ts-emeth';\nexport { adopt } from 'ts-emeth';\nexport var InterstitialCssStyles;\n\n(function (InterstitialCssStyles) {\n InterstitialCssStyles[\"hidden\"] = \"hidden\";\n})(InterstitialCssStyles || (InterstitialCssStyles = {}));\n\nexport var CssStyles = InterstitialCssStyles;\nexport default styleFactory(themeClass({\n displayName: \"Interstitial\"\n}), CssStyles);","import React, { useState } from 'react';\nexport var InterstitialContext = /*#__PURE__*/React.createContext(undefined); // eslint-disable-next-line react/prop-types\n\nexport var InterstitialManager = function InterstitialManager(_ref) {\n var children = _ref.children;\n\n var _useState = useState([]),\n stack = _useState[0],\n setStack = _useState[1];\n\n function register(id) {\n setStack([].concat(stack, [id]));\n }\n\n function unregister(id) {\n var idx = stack.indexOf(id);\n\n if (idx > -1) {\n stack.splice(idx, 1);\n setStack([].concat(stack));\n }\n }\n\n return /*#__PURE__*/React.createElement(InterstitialContext.Provider, {\n value: {\n // Show the top-most interstitial (last to register)\n current: stack.length === 0 ? null : stack[stack.length - 1],\n register: register,\n unregister: unregister\n }\n }, children);\n};","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport { InterstitialContext } from './InterstitialManager';\nimport { InterstitialWithBodyScroll } from './InterstitialWithBodyScroll';\nimport { isFunction } from '@paypalcorp/c3-util-lang';\nimport { isNorthstar, updateFeature } from '@paypalcorp/c3-util-store';\nimport { isTesting } from '@paypalcorp/c3-shared-globals';\nimport React, { Component } from 'react';\nimport styles, { adopt } from './Interstitial.module.cssi';\nexport var Interstitial = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Interstitial, _Component);\n\n function Interstitial() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n\n _this.onClose = function (e) {\n // Prevent the ESC key event from propagating\n e === null || e === void 0 ? void 0 : e.preventDefault();\n e === null || e === void 0 ? void 0 : e.stopPropagation(); // Update the global feature visibility\n\n updateFeature(_this.props.id, {\n visible: false\n });\n };\n\n return _this;\n }\n\n var _proto = Interstitial.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n // Register with the interstitial manager\n this.context.register(this.props.id);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var onBeforeCloseFn = this.props.onBeforeCloseFn; // Clear page alert notification\n\n updateFeature('PAGE_ALERT', {\n visible: false\n }).then(function () {\n isFunction(onBeforeCloseFn) && onBeforeCloseFn();\n }); // Unregister from the interstitial manager\n\n this.context.unregister(this.props.id);\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n id = _this$props.id,\n children = _this$props.children,\n overlayStyleOverrides = _this$props.overlayStyleOverrides,\n rest = _objectWithoutPropertiesLoose(_this$props, [\"id\", \"children\", \"overlayStyleOverrides\"]);\n\n var animated = false;\n\n if (isNorthstar()) {\n animated = true;\n }\n\n if (isTesting) {\n animated = false;\n }\n\n var hidden = this.context.current !== id;\n return /*#__PURE__*/React.createElement(InterstitialWithBodyScroll, _extends({\n id: id,\n overlayClassNames: styles(adopt(overlayStyleOverrides), {\n hidden: hidden,\n north: isNorthstar()\n }),\n onClose: this.onClose,\n animated: animated,\n hidden: hidden\n }, rest), children);\n };\n\n return Interstitial;\n}(Component);\nInterstitial.contextType = InterstitialContext;","import { themer } from '@paypalcorp/c3-react-base';\nexport var theme = themer(require.context('.', true, /\\.module\\.css$/));\nexport * from './InterstitialHeader';\nexport * from './InterstitialWithBodyScroll';\nexport * from './InterstitialWithInnerScroll';\nexport * from './InterstitialManager';\nexport * from './Interstitial';\nexport { InterstitialScrollProps } from './types';\nexport { Interstitial as default } from './Interstitial';","import * as React from 'react';\nimport i18n from './index.properties';\nimport logoImg from './logo.svg';\nexport var PayPalLogo = function PayPalLogo(_ref) {\n var width = _ref.width,\n height = _ref.height;\n return /*#__PURE__*/React.createElement(\"img\", {\n \"data-testid\": \"header-logo\",\n src: logoImg,\n width: width,\n height: height,\n alt: i18n.paypal()\n });\n};\nPayPalLogo.defaultProps = {\n width: 112,\n height: 29\n};","\nconst {getContent} = require('pp-react-l10n');\n\nconst _get = getContent({\"path\":\"base\"});\nmodule.exports.paypal = (options) => _get(\"paypal\", void(0) , options)","module.exports = __webpack_public_path__ + \"media/logo.7e5b43e3.svg\";","var map = {\n\t\"./Interstitial.module.css\": 629,\n\t\"./InterstitialHeader/styles.module.css\": 630,\n\t\"./InterstitialWithBodyScroll/styles.module.css\": 631,\n\t\"./InterstitialWithInnerScroll/styles.module.css\": 632\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 628;","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {\"hidden\":\"src_hidden_3EBYr\"};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {\"container\":\"InterstitialHeader_container_LbgrC\",\"hide-header-border\":\"InterstitialHeader_hide-header-border_AZeYW\",\"hideHeaderBorder\":\"InterstitialHeader_hide-header-border_AZeYW\",\"right\":\"InterstitialHeader_right_1s9ip\",\"closeBtn\":\"InterstitialHeader_closeBtn_1subs\",\"closeIcon\":\"InterstitialHeader_closeIcon_1Yqgl\",\"header\":\"InterstitialHeader_header_3SODV\",\"title\":\"InterstitialHeader_title_3YxRP\",\"logo\":\"InterstitialHeader_logo_3WbV_\",\"full\":\"InterstitialHeader_full_CtxUI\",\"tall\":\"InterstitialHeader_tall_3K2TF\",\"sheet\":\"InterstitialHeader_sheet_1H_zK\"};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {\"container\":\"InterstitialWithBodyScroll_container_1R5yY\",\"modal-container\":\"InterstitialWithBodyScroll_modal-container_w541k\",\"modalContainer\":\"InterstitialWithBodyScroll_modal-container_w541k\",\"inner-container\":\"InterstitialWithBodyScroll_inner-container_3Bjvx\",\"innerContainer\":\"InterstitialWithBodyScroll_inner-container_3Bjvx\",\"wrapper\":\"InterstitialWithBodyScroll_wrapper_2U7zy\",\"sheet-container\":\"InterstitialWithBodyScroll_sheet-container_3pxiG\",\"sheetContainer\":\"InterstitialWithBodyScroll_sheet-container_3pxiG\",\"sheet\":\"InterstitialWithBodyScroll_sheet_1ERM_\",\"sheet-overlay\":\"InterstitialWithBodyScroll_sheet-overlay_uQ4f3\",\"sheetOverlay\":\"InterstitialWithBodyScroll_sheet-overlay_uQ4f3\",\"tall-container\":\"InterstitialWithBodyScroll_tall-container_3cw6N\",\"tallContainer\":\"InterstitialWithBodyScroll_tall-container_3cw6N\",\"open\":\"InterstitialWithBodyScroll_open_1Q0Ck\",\"isClosing\":\"InterstitialWithBodyScroll_isClosing_3QILh\",\"close\":\"InterstitialWithBodyScroll_close_2fjEe\"};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {\"container\":\"InterstitialWithInnerScroll_container_mWUlg\",\"full\":\"InterstitialWithInnerScroll_full_57lR_\",\"tall\":\"InterstitialWithInnerScroll_tall_31Lu7\",\"compact\":\"InterstitialWithInnerScroll_compact_2Vqjb\",\"full-Overlay\":\"InterstitialWithInnerScroll_full-Overlay_Ox_N5\",\"fullOverlay\":\"InterstitialWithInnerScroll_full-Overlay_Ox_N5\",\"tall-Overlay\":\"InterstitialWithInnerScroll_tall-Overlay_1wlpp\",\"tallOverlay\":\"InterstitialWithInnerScroll_tall-Overlay_1wlpp\",\"compact-Overlay\":\"InterstitialWithInnerScroll_compact-Overlay_W4eyv\",\"compactOverlay\":\"InterstitialWithInnerScroll_compact-Overlay_W4eyv\",\"modal-Overlay\":\"InterstitialWithInnerScroll_modal-Overlay_10UVj\",\"modalOverlay\":\"InterstitialWithInnerScroll_modal-Overlay_10UVj\",\"modal\":\"InterstitialWithInnerScroll_modal_258DW\",\"InnerContainer\":\"InterstitialWithInnerScroll_InnerContainer_1ervO\",\"innerContainer\":\"InterstitialWithInnerScroll_InnerContainer_1ervO\",\"wrapper\":\"InterstitialWithInnerScroll_wrapper_1SlRq\"};"],"sourceRoot":""}