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AI,GACtCpI,OAAQF,EAAAA,EAASG,qBAAuB,EACxCJ,SAAUC,EAAAA,EAASuC,oBACnBiI,aAAcxK,EAAAA,EAASC,kBACvBwK,qBAAsBzK,EAAAA,EAAS0K,8BAKvC7N,IAAAA,cAAC8N,EAAS,MACTlN,KAAKmN,iBAAmB/N,IAAAA,cAACgO,EAAAA,EAAI,MAAM,KACpChO,IAAAA,cAACM,EAAY,OAEfN,IAAAA,cAACiO,EAAAA,SAAQ,CAACC,SAAUlO,IAAAA,cAACyC,EAAe,OAClCzC,IAAAA,cAAC8C,GAAkB,CACjBqL,uBAAwBvN,KAAKuN,uBAC7BzB,uBAAwB9L,KAAK8L,uBAC7B0B,qBAAsBxN,KAAKwN,qBAC3BC,qBAAsBzN,KAAKyN,qBAC3BC,oBAAqB1N,KAAK0N,uBAG7B1N,KAAKF,MAAMkK,eACV5K,IAAAA,cAACuO,EAAAA,EAAU,CAACzB,QAASlM,KAAK4N,6BAIhCxO,IAAAA,cAACyO,EAAAA,EAAe,CAACC,SAAS,IAGhC,IAAC,CA9aQ,CAAS1O,IAAAA,WAibpBgD,GAAMT,UAAY,CAChBiF,cAAehF,IAAAA,KACf8E,QAAS9E,IAAAA,OACT0G,gBAAiB1G,IAAAA,MAGnB,UAAemM,EAAAA,EAAAA,IAAWC,EAAAA,GAAAA,IAAeC,EAAAA,EAAAA,IAAWC,EAAAA,EAAAA,GAAU9L,uGClgBjDkF,EAAe,SAACvC,EAAQsC,GAAU,OAC7CtC,IAAWoJ,EAAAA,OAAOzG,OAAO0G,SACzBD,EAAAA,OAAOE,oBAAoB3K,SAAS2D,EAAW,EAIpCiH,EAAiB,SAACvJ,EAAQsC,GAAU,OAC/CtC,IAAWoJ,EAAAA,OAAOzG,OAAO6G,SACzBJ,EAAAA,OAAOK,oBAAoB9K,SAAS2D,EAAW","sources":["webpack:///./components/lineDiv.js","webpack:///./components/ServerErrors.js","webpack:///./pages/common/FallbackSpinner.js","webpack:///./pages/guest/guest.js","webpack:///./utility/crsUtils.js"],"sourcesContent":["import React from 'react';\n\nclass LineDiv extends React.Component {\n render() {\n return (\n \n );\n }\n}\n\nexport default LineDiv;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { Alert } from '@paypalcorp/pp-react';\nimport AppDispatcher from '../dispatcher/AppDispatcher';\nimport _isEmpty from 'lodash/isEmpty';\nimport _get from 'lodash/get';\nimport { scrollElementIntoView } from '../utility/domUtils';\nimport { Container, Row, Col } from '@paypalcorp/pp-react-grid';\n\nexport class ServerErrors extends Component {\n constructor(props) {\n super(props);\n this.state = {\n errorMessages: [],\n };\n }\n componentDidMount() {\n // Register for App Dispatcher Messages\n this.registerAppDispatcherMessages();\n }\n\n registerAppDispatcherMessages() {\n this.dispatcherMessages = AppDispatcher.register((payload) => {\n if (_get(payload, 'action.actionType') === 'UPDATE_SERVER_ERRORS') {\n const errorMessages = _get(payload, 'action.item.serverErrors', []);\n this.setState(\n {\n errorMessages,\n },\n () => {\n if (this.state.errorMessages.length > 0) {\n scrollElementIntoView('.service_error_holder');\n }\n }\n );\n }\n });\n }\n\n componentWillUnmount() {\n AppDispatcher.unregister(this.dispatcherMessages);\n }\n\n render() {\n const { errorMessages } = this.state;\n if (_isEmpty(errorMessages)) {\n return null;\n }\n\n return (\n \n {errorMessages.map((message, index) => {\n return (\n \n \n \n \n \n \n \n );\n })}\n \n );\n }\n}\n\nServerErrors.propTypes = {\n errorMessages: PropTypes.array,\n};\n\nexport default ServerErrors;\n","// eslint-disable-next-line no-unused-vars\nimport React, { useEffect } from 'react';\nimport { showSpinnerOverlay } from '../../utility/helper';\n\nexport default function FallbackSpinner() {\n useEffect(() => {\n showSpinnerOverlay();\n }, []);\n\n return <>;\n}\n","// Overhead\nimport React, { Suspense } from 'react';\nimport PropTypes from 'prop-types';\nimport { withRouter } from 'react-router-dom';\nimport _get from 'lodash/get';\nimport _isEmpty from 'lodash/isEmpty';\n\n// Components\nimport LinnerDiv from '../../components/lineDiv';\nimport Note from '../../components/note';\nimport ServerErrors from '../../components/ServerErrors';\nimport AmountWrapper from '../../components/amountWrapper';\nimport DonateHeader from '../../components/common/DonateHeader';\nimport CloseButton from '../../components/CloseButton';\nimport { Alert } from '@paypalcorp/pp-react-alert';\n\n// App Store/Flux\nimport AppStore from '../../stores/AppStore';\nimport AppDispatcher from '../../dispatcher/AppDispatcher';\nimport * as DonateAppActions from '../../actions/AppActions';\nimport * as AppConstants from '../../utility/constants';\n// Utility\nimport '../../utility/csrf';\nimport * as amountUtils from '../../components/amount/amountUtils';\nimport {\n handleTokenReuse,\n addShake,\n updateDonation,\n observeUntilEventObserved,\n getInitialDataInDom,\n} from '../../utility/helper';\nimport templateData from '../../utility/getTemplateData';\nimport { formatAmount } from '../../utility/formator';\nimport DonateGiftAid from '../../guest-payment-components/DonateGiftAid';\nimport withDonate from '../../components/guest/WithDonate';\nimport withTheme from '../../components/withTheme';\nimport * as cpl from '../../utility/cpl';\nimport { CPL_PAGE_SPEC, FPTI_TAGS } from '../../fpti/fptiConstants';\n\nimport CancelAndReturn from '../../components/cancelAndReturn';\nimport Disclaimer from '../../components/Disclaimer';\nimport { PPGF_DISCLAIMER_TOUCHPOINT } from '../../utility/constants';\nimport {\n getPersonalizedMessages,\n hasPersonalizedMessages,\n} from '../../utility/personalizedMessages';\nimport {\n scrollElementIntoView,\n objectOrArrayToQueryString,\n removeClass,\n} from '../../utility/domUtils';\nimport {\n isExternalFlow,\n isCampaigns,\n} from '../../utility/productIntegrationUtils';\nimport {\n isInContext,\n isMobileOrInContext,\n isMobileOrTablet,\n} from '../../utility/inContextDonation';\nimport BackButton from '../../components/BackButton';\nimport { reactLazyPreload } from '../../utility/lazyLoader';\nimport FallbackSpinner from '../common/FallbackSpinner';\nimport { getParameterByName } from '../../utility/queryStringHelper';\nimport { isCrsAborted } from '../../utility/crsUtils';\nimport { updateGlobalFPTI } from '../../fpti/helper';\nimport AnonymousCheckbox from '../../components/anonymousDonation/anonymousCheckbox';\nimport { trackAnonymousCheckboxClick } from '../../fpti/fpti';\nimport withWorldReady from '../../components/withWorldReady';\nimport { Message } from '@paypalcorp/worldready-react';\n\nconst initialData = getInitialDataInDom();\n\nconst TeslaFormContainer = reactLazyPreload(() =>\n import(/* webpackChunkName: \"TeslaFormContainer\" */ './teslaFormContainer')\n);\n\nclass Guest extends React.Component {\n constructor(props) {\n super(props);\n\n this.props.showErrorOnLoad();\n\n const anonymousStatusInStore = AppStore.getAnonymousStatus();\n const anonymousOptInStatus = !_isEmpty(anonymousStatusInStore)\n ? anonymousStatusInStore === 'checked'\n : templateData.anonymousStatus || false;\n\n this.state = {\n formattedAmount: this.getFormattedAmount(),\n hasLogo: templateData.hasLogo,\n subHeaderLabel: templateData.donationName,\n orgName: templateData.charityName,\n donationId: templateData.donationId,\n guestRedirectUrl: templateData.guestRedirectUrl,\n donateDisabled: false,\n showServiceErrors: false,\n errorMessages: [],\n recurringEnabled: templateData.recurringEnabled,\n recurringStatus: AppStore.getDonationRecurring() === 'checked' || false,\n country: initialData.selectedCountry,\n selectedCountry: initialData.selectedCountry,\n memberMandatory: templateData.memberMandatory || false,\n accountCreationTriggered: false,\n isDonating: false,\n isShipping: templateData.isShipping || false,\n shareAddress: {},\n progressiveComponentLoaded: false,\n paymentProcessing: false,\n programNames: templateData.donateContext.program_names,\n hasDisclaimer: hasPersonalizedMessages(PPGF_DISCLAIMER_TOUCHPOINT),\n showAuCrsBanner: false,\n showCaAmlBanner: false,\n anonymousEnabled: templateData.anonymousEnabled,\n anonymousOptInStatus,\n selectedRecurringFrequency: AppStore.getSelectedRecurringFrequency(),\n };\n }\n\n getFormattedAmount = () => {\n const currency = AppStore.getDonationCode() || '';\n const amount = AppStore.getDonationAmount();\n let formattedAmount = '';\n if (amount) {\n formattedAmount = formatAmount({ currency, value: amount });\n }\n return formattedAmount;\n };\n\n logCPLData = (logData) => {\n const spinnerOverlay = document.getElementById('spinnerOverlay');\n\n if (spinnerOverlay.style.display === 'none') {\n logData();\n } else {\n observeUntilEventObserved(\n spinnerOverlay,\n { attributes: true },\n (observer) => {\n logData();\n observer.disconnect();\n return;\n }\n );\n }\n };\n\n endCustomCPLTracking = () => {\n const cplSpec = CPL_PAGE_SPEC.TESLA_GUEST_FORM;\n if (\n document.referrer.includes('token=') ||\n performance.navigation.type === performance.navigation.TYPE_RELOAD\n ) {\n // on page refresh or country change\n window.onload = () => {\n setTimeout(() => {\n // Without these, loadEventStart and loadEventEnd would be 0\n // and thus tt would be a negative value\n // We need this because componentDidMount runs before\n // the page has completely loaded all content\n this.logCPLData(() => {\n cpl.logPerformance({\n ...cplSpec,\n uitype: 'page',\n });\n });\n }, 0);\n };\n } else {\n this.logCPLData(() => {\n window.PAYPAL.analytics.endCPLTracking({\n ...cplSpec,\n uitype: 'component',\n });\n });\n }\n };\n\n componentDidMount() {\n removeClass('#mainWrapper header.donate_global_nav', ['hide-header']);\n removeClass('#donateWrapper', ['is-landing']);\n this.props.toggleSpinner(true);\n this.setShouldShowAuCrsBanner();\n this.setShouldShowCaAmlBanner();\n\n // Checking token status\n handleTokenReuse();\n\n // Register for App Dispatcher Messages\n this.registerAppDispatcherMessages();\n\n // Show language selector in the footer\n DonateAppActions.showLanguageSelector(true);\n\n // startCPLTracking is initiated in landing page\n this.endCustomCPLTracking();\n }\n\n registerAppDispatcherMessages = () => {\n this.dispatcherMessages = AppDispatcher.register((payload) => {\n const actionType = _get(payload, 'action.actionType');\n\n if (actionType === 'CHANGE_AMOUNT') {\n const amount = _get(payload, 'action.item.amount', 0);\n this.updateAmount(amount);\n }\n if (actionType === AppConstants.CHANGE_RECURRING) {\n const recurringStatus =\n _get(payload, 'action.item.recurring', '') === 'checked';\n this.setState({ recurringStatus: recurringStatus });\n }\n });\n };\n\n componentWillUnmount() {\n AppDispatcher.unregister(this.dispatcherMessages);\n }\n\n getFPTDATA = () => {\n return {\n amount: AppStore.getDonationAmount(),\n code: AppStore.getDonationCode(),\n symbol: AppStore.getDonationSymbol(),\n };\n };\n\n updateConversionStatus = (status = false) => {\n this.setState({ donateDisabled: status });\n };\n\n /**\n * Display validation error\n */\n displayValidationError = () => {\n const errorMessage =\n amountUtils.getMinimumDonationErrorMessage('common.amount');\n this.setState({\n showValidationError: true,\n validationErrorMessage: errorMessage,\n });\n addShake();\n };\n\n hideValidationError = () => {\n this.setState({ showValidationError: false });\n };\n\n /**\n * Validates donation amount and displays the validation error if any\n */\n validateDonationAmount = () => {\n let validationResult =\n amountUtils.validateMinimumDonationAmount('common.amount');\n if (validationResult?.showValidationError) {\n this.setState(validationResult);\n addShake();\n scrollElementIntoView('.money_input');\n return false;\n }\n\n validationResult = amountUtils.validateMaximumDonationAmount();\n if (validationResult?.showValidationError) {\n this.setState(validationResult);\n addShake();\n scrollElementIntoView('.money_input');\n return false;\n }\n\n this.setState(validationResult);\n return true;\n };\n\n /**\n * Clear the validation error onFocus\n */\n handleAmountFocus = () => {\n if (this.state.showValidationError) {\n this.hideValidationError();\n }\n };\n\n /*\n * handlePaymentSuccess\n */\n handlePaymentSuccess = (response) => {\n const { token } = templateData;\n const queryParams = objectOrArrayToQueryString({ token });\n const isPending =\n response?.data?.confirmationData?.postBackData?.payment_status ===\n 'Pending';\n const path = `/donate/guest/${\n response?.data?.confirmationData?.isOfacPending || isPending\n ? 'pending'\n : 'confirmation'\n }?${queryParams}`;\n\n return this.props.history.push(path);\n };\n\n /*\n * handlePaymentFailure\n */\n handlePaymentFailure = () => {\n this.props.toggleSpinner(false);\n return this.props.history.push(\n `/donate/error/payment?token=${templateData.token}`\n );\n };\n\n /*\n * handleMemberFailure\n * Redirect all member failure to donate/member\n * Known case\n * Case 1 :- WSM_PAYER_FUNDING_INSTRUMENTS_UNAVAILABLE\n * Case 2 :- WSM_VALIDATION_ERROR\n */\n handleMemberFailure = () => {\n updateDonation(`/donate/member?token=${templateData.token}`);\n };\n\n updateAmount(amount) {\n const currency = AppStore.getDonationCode() || '';\n this.setState({\n formattedAmount: formatAmount({ currency, value: amount }),\n });\n if (!this.state.recurringStatus && !this.state.memberMandatory) {\n this.setShouldShowCaAmlBanner();\n }\n }\n\n handleGiftAidOption(giftAidState) {\n DonateAppActions.updateGiftaidItFlag({ giftAidItFlag: giftAidState });\n }\n\n /**\n * Should show note when charityNote is enabled and recurring is disabled for non-client flows\n * @return {Boolean} true to show note field\n */\n shouldShowNote = () => {\n return (\n templateData.charityNoteEnabled &&\n !this.state.recurringStatus &&\n !isExternalFlow()\n );\n };\n\n createMarkup = (str) => {\n return {\n __html: str,\n };\n };\n\n getPersonalizedContent = () => {\n return getPersonalizedMessages(PPGF_DISCLAIMER_TOUCHPOINT, { merge: true });\n };\n\n setShouldShowAuCrsBanner = () => {\n const status = getParameterByName('status'),\n statusCode = getParameterByName('statusCode');\n\n if (isCrsAborted(status, statusCode)) {\n this.setState({\n showAuCrsBanner: true,\n });\n updateGlobalFPTI({\n [FPTI_TAGS.STATUS]: status,\n [FPTI_TAGS.STATUS_CODE]: statusCode,\n });\n }\n };\n\n setShouldShowCaAmlBanner = () => {\n if (templateData.enforceSenderCaAml && AppStore.getDonationAmount() > 999) {\n this.setState({\n showCaAmlBanner: true,\n });\n } else {\n this.setState({\n showCaAmlBanner: false,\n });\n }\n };\n\n handleAnonymousDonationChange = (status = false) => {\n this.setState({ anonymousOptInStatus: status });\n trackAnonymousCheckboxClick(status);\n };\n\n getAnonymousContent = () => {\n return {\n label:\n ['BR'].includes(this.state.country) && isCampaigns() ? (\n \n ) : (\n \n ),\n tooltip: ,\n };\n };\n\n render() {\n return (\n <>\n \n {isExternalFlow() && templateData.ismobile && }\n {(isInContext() || isExternalFlow()) && (\n \n )}\n {this.state.showAuCrsBanner && (\n \n \n \n )}\n {this.state.showCaAmlBanner && (\n \n \n \n )}\n \n
\n \n \n\n {this.state.anonymousEnabled && (\n \n )}\n\n {templateData.isGiftaiditEnabled && (\n \n \n
\n )}\n \n {this.shouldShowNote() ? : null}\n \n \n }>\n \n \n {this.state.hasDisclaimer && (\n \n )}\n \n \n \n \n );\n }\n}\n\nGuest.propTypes = {\n toggleSpinner: PropTypes.func,\n history: PropTypes.object,\n showErrorOnLoad: PropTypes.func,\n};\n\nexport default withRouter(withWorldReady(withDonate(withTheme(Guest))));\n","import { AU_CRS } from './constants';\n\nexport const isCrsAborted = (status, statusCode) =>\n status === AU_CRS.STATUS.ABORTED &&\n AU_CRS.ABORTED_STATUS_CODE.includes(statusCode);\nexport const isCrsFailure = (status, statusCode) =>\n status === AU_CRS.STATUS.FAILURE &&\n AU_CRS.FAILURE_STATUS_CODE.includes(statusCode);\nexport const isCrsSucceeded = (status, statusCode) =>\n status === AU_CRS.STATUS.SUCCESS &&\n AU_CRS.SUCCESS_STATUS_CODE.includes(statusCode);\n"],"names":["_React$Component","LineDiv","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","React","className","style","maxWidth","marginRight","marginLeft","ServerErrors","_Component","props","_this","state","errorMessages","this","registerAppDispatcherMessages","_this2","dispatcherMessages","AppDispatcher","register","payload","_get","setState","length","scrollElementIntoView","unregister","_isEmpty","Container","form","xxl","map","message","index","Row","Col","sm","_Alert","type","dangerouslySetInnerHTML","__html","Component","propTypes","PropTypes","FallbackSpinner","useEffect","showSpinnerOverlay","initialData","getInitialDataInDom","TeslaFormContainer","reactLazyPreload","Guest","_defineProperty","currency","AppStore","getDonationCode","amount","getDonationAmount","formattedAmount","formatAmount","logData","spinnerOverlay","document","getElementById","display","observeUntilEventObserved","attributes","observer","disconnect","cplSpec","CPL_PAGE_SPEC","TESLA_GUEST_FORM","referrer","includes","performance","navigation","TYPE_RELOAD","window","onload","setTimeout","logCPLData","cpl","_objectSpread","uitype","PAYPAL","analytics","endCPLTracking","actionType","updateAmount","AppConstants","recurringStatus","code","symbol","getDonationSymbol","status","undefined","donateDisabled","errorMessage","amountUtils","showValidationError","validationErrorMessage","addShake","_validationResult","_validationResult2","validationResult","hideValidationError","response","_response$data","_response$data2","token","templateData","queryParams","objectOrArrayToQueryString","isPending","data","confirmationData","postBackData","payment_status","path","concat","isOfacPending","history","push","toggleSpinner","updateDonation","charityNoteEnabled","isExternalFlow","str","getPersonalizedMessages","PPGF_DISCLAIMER_TOUCHPOINT","merge","getParameterByName","statusCode","isCrsAborted","showAuCrsBanner","updateGlobalFPTI","FPTI_TAGS","STATUS","STATUS_CODE","enforceSenderCaAml","showCaAmlBanner","anonymousOptInStatus","trackAnonymousCheckboxClick","label","country","isCampaigns","Message","id","tooltip","showErrorOnLoad","anonymousStatusInStore","getAnonymousStatus","anonymousStatus","getFormattedAmount","hasLogo","subHeaderLabel","donationName","orgName","charityName","donationId","guestRedirectUrl","showServiceErrors","recurringEnabled","getDonationRecurring","selectedCountry","memberMandatory","accountCreationTriggered","isDonating","isShipping","shareAddress","progressiveComponentLoaded","paymentProcessing","programNames","donateContext","program_names","hasDisclaimer","hasPersonalizedMessages","anonymousEnabled","selectedRecurringFrequency","getSelectedRecurringFrequency","removeClass","setShouldShowAuCrsBanner","setShouldShowCaAmlBanner","handleTokenReuse","DonateAppActions","endCustomCPLTracking","giftAidState","giftAidItFlag","_templateData$donatio","hasBanner","isMobileOrInContext","isInContext","isMobileOrTablet","charityCancelUrl","ismobile","CloseButton","inverse","BackButton","Alert","maximumAllowedDonation","DonateHeader","noValidate","AmountWrapper","conversionStatus","updateConversionStatus","validateDonationAmount","onFocus","handleAmountFocus","AnonymousCheckbox","content","getAnonymousContent","optInStatus","handleAnonymousDonationChange","isGiftaiditEnabled","marginTop","DonateGiftAid","isAlreadyEnrolled","showAddress","addressData","isChecked","handleGiftAidOption","giftaidInfo","donationCode","donateGiftPercentage","getGiftAidItExtraAmount","LinnerDiv","shouldShowNote","Note","Suspense","fallback","displayValidationError","handlePaymentSuccess","handlePaymentFailure","handleMemberFailure","Disclaimer","getPersonalizedContent","CancelAndReturn","isGuest","withRouter","withWorldReady","withDonate","withTheme","AU_CRS","ABORTED","ABORTED_STATUS_CODE","isCrsSucceeded","SUCCESS","SUCCESS_STATUS_CODE"],"sourceRoot":""}