{"version":3,"sources":["webpack:///./guest-payment-components/DonateGiftAidHowItWorksOverlay.js","webpack:///./guest-payment-components/DonateGiftAid.js","webpack:///./components/amount/calculator.js","webpack:///./components/amount/PresetAmountButton.js","webpack:///./components/amount/PresetAmountButtons.js","webpack:///./components/amount/AmountCondensed.js","webpack:///./components/amount/PresetAmountRow.js","webpack:///./components/amountWrapper.js","webpack:///./components/amount/SingleAmount.js","webpack:///./react-card-security-code/index.js","webpack:///./components/recurring-checkbox/RecurringInfo.js","webpack:///./components/recurring-checkbox/recurring-checkbox.js","webpack:///./utility/fixPpReactToolTip.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/lodash/now.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/react-portal/es/utils.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/react-portal/es/Portal.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/react-portal/es/LegacyPortal.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/react-portal/es/PortalCompat.js","webpack:///./components/threeDS/ThreeDSSpinner.js","webpack:///./components/threeDS/ThreeDSDeviceDataCollection.js","webpack:///./components/threeDS/ThreeDSIframe.js","webpack:///./components/threeDS/ThreeDSContainer.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/lodash/debounce.js","webpack:///./components/guest/WithDonate.js","webpack:///./utility/card-utils.js","webpack:///./components/NoteFieldError.js","webpack:///./components/note.js","webpack:///./components/amount/amountValidationError.js","webpack:///./utility/bootstrap.js","webpack:///./components/nextButton.js","webpack:///./components/landing/OneTouchNextButton.js","webpack:///./components/guestButton.js","webpack:///./components/programs/Programs.js","webpack:///./components/programs/ProgramsContainer.js","webpack:///./components/recurring-checkbox/RecurringOverlay.js","webpack:///./components/NotTaxDeductibleLegalText.js","webpack:///./components/coverFee/coverFeeCheckbox.js","webpack:///./components/anonymousDonation/anonymousCheckbox.js","webpack:///./pages/landing/landing.js","webpack:///./components/currencyConversion/CurrencyConversionModal.js","webpack:///./containers/cvv-component.js","webpack:///./pages/guest/crossBorder.js","webpack:///./pages/guest/confirmation.js","webpack:///./pages/error/paymentError.js","webpack:///./pages/error/UnilateralError.js","webpack:///./pages/error/threeDSError.js","webpack:///./components/CaptureOrder.js","webpack:///./components/CancelAndRedirectOrder.js","webpack:///./routes/router.js","webpack:///./utility/lazyLoader.js","webpack:////donatenodeweb-ci-2793/workspace/donate-gro-release/node_modules/prop-validators/dist/index.js","webpack:///./styles/colors.js"],"names":["styles","StyleSheet","create","modalContent","maxWidth","margin","okButton","marginTop","msgMargin","DonateGiftAidHowItWorksOverlay","props","content","className","overpanel","title","isOpen","onClose","closeOverlay","hideLogo","closeOnBackgroundClick","id","css","size","howitworks","modalp1","modalp2","modalp3","modalp4","onClick","ok","propTypes","PropTypes","object","bool","func","centered","display","justifyContent","toolCheckbox","overflow","helpIcon","position","color","cursor","textDecoration","top","giftaidit","padding","border","borderRadius","width","imgWrapper","showHelp","marginLeft","textAlign","giftaidNote","marginBottom","fontSize","pTag","showAddres","borderBottom","paddingBottom","listUnstyled","listStyle","liTag","successIcon","paddingRight","background","boxShadow","modalHeader","alreadyEnabled","updateGiftAidDeclaration","borderTop","paddingTop","DonateGiftAid","event","preventDefault","setState","isHowItWorksOverlayOpen","linkWithIcon","focus","label","handleTipClick","href","ref","el","name","state","showhelp","isAlreadyEnrolled","isChecked","handleGiftAidOption","bind","ev","target","checked","this","__html","contentMsg","src","appendCdnHostName","alt","extraCost","createLabel","alreadyDone","isMember","optGiftaid","onChange","applyGiftAid","showAddress","strong","taxpayer","addressData","fullName","address1","address2","city","zip","confirmNote","openOverlay","openHowItWorksOverlay","closeHowItWorksOverlay","React","Component","any","messages","localsMessages","STYLES","container","zIndex","calcRow","verticalAlign","calcRowLeft","calcRowRight","calcLabel","inputCol","input","outlineOffset","paddingLeft","inputLeft","inputRight","fromCode","right","height","borderRight","toCode","lineHeight","conversion","disabled","opacity","inputCurrencyLeft","hasError","Calculator","symbol","currencySymbols","fromSymbol","length","document","getElementById","style","callback","val","value","match","validateAmount","handleFromChange","handleToChange","handleFromCurrencyChange","setFromSymbol","handleAmountFocus","amount","replace","decimalPoint","youDonate","charityGet","youDonateLabel","charityGetLabel","conversionLabel","placeholder","getLocalizedAmount","fromAmount","toAmount","conversionRate","calcLabelStyle","toError","fromDisabled","type","onFocus","availableCurrencies","map","c","key","toDisabled","charityAmountSymbol","errorString","toErrorMessage","errorSourceField","donationAmount","array","isRequired","string","buttonStyles","amountBtn","defaultColor","backgroundColor","colors","primaryLightBlue","primaryBlue","borderColor","highlightedColor","defaultBtn","highlightedBtn","currencyStyle","whiteSpace","currencyCodeStyle","PresetAmountButton","trackLinkClick","LINK_NAME","PRESET_AMOUNT","additionalData","FPTI_TAGS","SELECTED_PRESET_BUTTON_ID","AMOUNT","AppActions","handleAmountBtnClick","rightSymbol","formatAmountFromServerDNW","charityAmountCode","amountDisplayValue","getCurrencyParts","$","selected","btnClasses","classNames","formattedAmount","getAmountDisplayValue","amountFontSize","getAmountFontSize","handleClick","data-testid","oneOfType","number","PresetAmountButtons","handlePresetAmountClick","_map","amounts","index","normalizedAmount","getNormalizedNumber","selectedAmount","currencyString","black","left","amountCondensed","moneyInput","inputField","minimumError","AmountCondensed","handleAmount","amountUtils","code","displayValue","moveCursorToTheEnd","charCode","stringValue","getDisplayValue","firstParts","amountBeforeFee","AppStore","getAmountBeforeFee","shouldSelectPresetAmount","isOptInCoverFee","getAmountPlaceHolder","nextProps","node","setTimeout","setSelectionRange","isExternalFlow","externalOtherAmount","placeholderOtherAmount","showValidationError","displayedAmount","inputStyles","autoComplete","onKeyPress","handleKeyPress","handleChange","handleFocus","onBlur","handleBlur","isEditable","validationErrorMessage","errorContainer","PresetAmountRow","presetAmounts","templateData","page","window","location","indexOf","isPresetAmountSelected","donationAmountType","getDonationAmountType","parseFloat","getDonationAmount","hideValidationError","handleAmountChange","checkValue","clearSuggestedAmountSelection","amountFieldValue","charityAmount","isInContext","isAmountEditable","errorCode","validationErrorCode","AmountWrapper","AppDispatcher","unregister","dispatcherCharityAmount","pathname","includes","undefined","getParameterByName","isNaN","exchangeRate","base_currency_code","userAmountCode","quote_amount","toFixed","params","getConversionRequest","_debounce","st","par","fn","queryParams","fromCountry","userCountry","fromCurrency","toCurrency","normalizeAmount","conversionStatus","Promise","resolve","fetcher","method","body","JSON","stringify","then","response","json","result","catch","source","exchange_rate","isCalculator","setAppAmount","isAtLandingPage","setFeeAmountInStore","updateFeeAmount","optOutCoverFee","snapshot","userAmount","charityDisabled","getConversion","getConversionRate","currencyCode","userDisabled","TemplateData","enablePresetAmounts","isGuestReviewPage","validateDonationAmount","parse","innerHTML","currencyLists","currencies","symbols","donorIpCountry","US","getDonationCode","donationAmountEditable","getDonationSymbol","donationDecimalPoint","register","payload","action","actionType","item","shouldShowPresetAmounts","renderPresetAmounts","handleUserAmountChange","handleUserCurrencyChange","handleCharityAmountChange","SingleAmount","singleAmountInput","addShake","inputWidth","e","inputFontSize","updateAmountField","inputResize","aria-label","readOnly","pattern","CardSecurityCode","showIsRequiredError","securityCode","handleCheckForValue","handleChangeSecurityCode","cardSpec","fields","csc","required","cscSpecs","errorMessage","maxLength","maxlength","errorText","dir","helperText","cardSpecPropType","getRecurringInfoContent","getContent","RecurringInfo","orgName","useHTML","orgname","donationName","isLTR","isLeftToRight","texts","isContinue","wrapper","toolWrapper","toolCheckboxWrapper","toolBlurb","tipIcon","fontWeight","helpWrapper","helpTxt","helpP","helpP2","perMonth","splitterDiv","splitterP","columnLeft","float","columnRight","animationWrapper","animationContainer","transform","recurringButton","borderOnly","divider","dividerContent","verticalCentered","alignItems","RecurringCheckBox","continue","dispatcherToken","currency","formatedAmount","formatAmount","chkBxStatus","loadAnimation","recurring","RECURRING_CHECKBOX","CHECKBOX","status","tooltipButton","updateAmount","getElementsByClassName","Object","values","btn","loadBodyMovin","isAnimating","animationData","heartsAnimationData","bodymovinLibrary","bodymovin","renderer","loop","autoplay","destroy","rp","recurring_label","shouldLeftAlignRecurringCheckbox","coverFeeEnabled","anonymousEnabled","description","tooltipp2","tooltipp1","sanitizeOrgName","hasRecurringHelp","defaultProps","root","module","exports","Date","now","canUseDOM","createElement","_createClass","defineProperties","i","descriptor","enumerable","configurable","writable","defineProperty","Constructor","protoProps","staticProps","prototype","_classCallCheck","instance","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_React$Component","Portal","__proto__","getPrototypeOf","apply","arguments","subClass","superClass","constructor","setPrototypeOf","_inherits","defaultNode","removeChild","appendChild","createPortal","children","renderPortal","unmountComponentAtNode","portal","cloneElement","unstable_renderSubtreeIntoContainer","LegacyPortal","threeDSText","LOADING_GIF_SOURCE","spinnerAlign","cardImg","ThreeDSSpinner","fundingOptions","getFundingOptions","_get","network","getPaymentCardNetwork","myData","getAllData","_isEmpty","cardType","toLowerCase","hideSpinnerOverlay","setNetworkDetails","confirmingWith","RegExp","ThreeDSDeviceDataCollection","data","exception","onDDCComplete","onThreeDSDDCComplete","contingencies","_find","addEventListener","handleDDCEvent","threeDS2ReferenceId","getThreeDSParams","three_ds_reference_id","refs","submit","console","log","removeEventListener","deviceDataCollectionUrl","device_data_collection_url","jwt","withRouter","ThreeDSIframe","handleIframeMessage","confirmationStatus","error","trackErrorIM","fieldName","CHALLENGE_STATUS","trackThreeDSIframeIM","threeDSRespDuration","CHALLENGE_END_TIME","getTime","onStepUpAuthComplete","hideModal","element","formRef","threeDS2Contingency","getThreeDSContingency","redirectLink","md","redirectMethod","requestText","frameBorder","setFormRef","submitForm","CHALLENGE_START_TIME","getModalBody","icon","ThreeDSContainer","showThreeDSDeviceDataCollection","threeDSDCCEndTime","updateGlobalRespDuration","THREE_DS_DCC_START_TIME","threeDSDCCStartTime","THREE_DS_DCC_END_TIME","THREE_DS_SPINNER_START_TIME","THREE_DS_SPINNER_END_TIME","resolveThreeDSContingency","lookup_start_time","THREE_DS_LOOKUP_START_TIME","THREE_DS_LOOKUP_END_TIME","threeDSContingency","hideThreeDSSpinner","onThreeDSStepUpAuthNotRequired","showThreeDSIframe","hideThreeDSIframe","onThreeDSFailure","onThreeDSStepUpAuthSuccess","onThreeDSStepUpAuthFailure","showThreeDSSpinner","onRef","startTime","handleThreeDSDDCComplete","handleThreeDSStepUpAuthComplete","toggleSpinner","isObject","toNumber","nativeMax","Math","max","nativeMin","min","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","clearTimeout","cancel","flush","initialData","getInitialData","serviceErrorMessages","ERROR_ELEMENT_SELECTOR","join","withDonate","WrappedComponent","country","DonateAppActions","CHANGE_COUNTRY","COUNTRY","token","signUp","url","handleGuestCountryChange","isSpinner","showSpinnerOverlay","scrollElementIntoView","language","note","getDonationNote","fundingOptionId","email","getEmail","billingAddress","getBillingAddress","giftAidItFlag","getGiftaidItFlagStatus","card","history","push","clientState","encodeURIComponent","confirmationData","startCustomCPLTrackingForConfirmationPage","objectOrArrayToQueryString","confirmation","isOfacPending","isEmpty","cartUrl","orderToken","donateToken","payerID","selectedCountry","getFormData","formData","getParametersFromUrl","showErrorOnLoad","errorMsgs","serverErrors","handleCountryChange","handleScrollToError","getDonateGuestUrl","getInitialFormData","saveFormData","doFulfilment","captureOrder","createOrder","fundingTypes","defaultCardSpec","ccNumber","expirationDate","minlength","getSpecificCardSpec","cardNumber","cardTypes","autodetect","test","PAYMENT_CARDS","NoteFieldError","role","NoteComponent","lengthLimit","providedLabel","charityNoteEnabled","charityNoteLabel","useState","donationNote","setDonationNote","initialNoteLabel","showLabel","setShowLabel","showError","setShowError","noteLabel","setNoteLabel","textAreaEl","useRef","useEffect","current","isNotePreview","directionality","contextLocalityDir","htmlFor","NOTE_PAD","eventName","EVENT_NAME","DW_GIVING_DONATE_SETUP_COMMENT_PRESSED","iconName","aria-hidden","maxRows","minRows","showCharacterCounter","maxCharacters","addClass","removeClass","trim","grey700","criticalIcon","marginRight","AmountValidationError","getElementsByTagName","setAttribute","NextButtonComponent","buttonnext","button","next","handleNext","OneTouchNextButton","GuestButton","debitorcredit","secondary","handleGuest","Programs","programNames","isDisabled","selectedIdx","handleSelect","getProgramOptions","forEach","programName","primaryText","programOption","findIndex","program","appStore","getSelectedProgram","programs","optional","selectedItemIndex","onSelection","selectedProgram","PROGRAM_SELECTED","CAMPAIGN","ProgramsContainer","RecurringOverlay","closeRecurringOverlay","onMakeOneTimeDonation","onContinue","signupHeader","dialogp1","dialogp2","dialogp3","continueBtn","noThanksBtn","handleClose","noThanks_closeModal","disclaimerWrapper","disclaimer","disclaimerCaptionText","NotTaxDeductibleLegalText","landing","mayNotBeTaxDeductible","CoverFeeCheckbox","handleCoverFeeChange","optInStatus","formatedFeeAmount","checkboxStatus","coverFee","AnonymousCheckbox","handleAnonymousDonationChange","tooltip","anonymousStatus","labelIcon","onOpen","ANONYMOUS_TOOLTIP","DW_GIVING_DONATE_SETUP_TOOLTIP_PRESSED","errorMessages","LandingPageComponent","trackDonateWithCardClick","noteFieldDisplayed","shouldShowNote","recurringModalStatus","recurringStatus","memberMandatory","openRecurringOverlay","validateAmountAndNavigateToGuestPage","PAYPAL","analytics","startCPLTracking","uicomp","uitype","trackDonateWithPayPalClick","handleLogIn","trackNextClickForCheckout","orderParams","prepareOrderParams","feeAmount","getFeeAmount","computeAmountAfterFee","updateDonationAmount","validationResult","donateDisabled","rpContinue","anonymousOptInStatus","trackAnonymousCheckboxClick","coverFeeOptInStatus","trackCoverFeeCheckboxClick","getFormatedFeeAmount","isRecurringOverlayOpen","isOldButtonFactory","isCheckoutRail","handleNextForCheckout","isAuthenticated","personalizedMessages","getPersonalizedMessages","GN_CONTENT_TOUCHPOINT","bannerUrl","shouldShowUserBanner","isMobileOrInContext","getCoverFeeOptInStatus","anonymousStatusInStore","getAnonymousStatus","hasLogo","subHeaderLabel","charityName","donationId","guestRedirectUrl","recurringEnabled","recurringHelpText","recurringLabel","isAuthenticatedUser","donateContext","program_names","isVoucherFlow","offerProgram","feePayer","hasDisclaimer","hasPersonalizedMessages","getPPCCStatus","onload","cpl","CPL_PAGE_SPEC","LANDING_PAGE","currentPage","paymentStatus","getDonationRecurring","restoreDonationAmount","trackLandingPageIM","isLoggedInUser","registerAppDispatcherMessages","dispatcherMessages","showUserBanner","receiverCountryEligible","landingClass","UserDetailsBanner","userDetails","CloseButton","DonateHeader","updateConversionSataus","renderProgramsDropdown","handleRecurringChange","showNote","getPersonalizedAnonymousContent","getPersonalizedNoteToPayeeLabel","success","renderDonateButtons","hasPartnerSource","getPPCCConfirmation","handleRecurringOverlayContinue","handleRecurringOverlayMakeOneTimeDonation","Disclaimer","getPersonalizedContent","organizationName","returnUrl","charityReturnUrl","LandingPage","Landing","displayLanding","currentState","business","hostedButtonId","search","handleTokenReuse","addTokenToUrlIfMissing","modal","modalDialog","modalTitle","optionTitle","linkBlue","optionDetails","bodyText","boldText","closeBtn","iconCustom","conversionOption","outline","SuccessCheckmarkIcon","CurrencyConversionOption","isSelected","handleOptionSelection","illustration","Illustration","rate","as","CurrencyConversionModal","option","selectedOption","isPayPalSelected","CURRENCY_CONVERSION_OPTIONS","modalSubTitle","withPaypal","withPayPal","message","ISSUER","withCard","data-tabindex","data-role","data-backdrop","renderCloseButton","guestMessages","guestLocalsMessages","CVVComponent","getCardSpec","errorMessageCSC","handleSecurityCodeChange","fieldRequired","fieldInvalid","newErrorState","validateInputValue","cscLen","cscMax","guestLabels","cscplaceholder","cscLabel","cscnote","handleFieldFocus","handleFieldBlur","giftAidText","donateGiftPercentage","getGiftAidItExtraAmount","giftAidTextObj","giftAidIt","donateBtnContainer","donateBtn","centralFormWrapper","donationSeparator","formTopLabelBold","formLabelLeft","formLabelRight","formLabelLeftConv","formLabelRightConv","formLabelCenter","formLabelRateLeft","formLabelRateRight","policyMsg","labelFont","link","currencyConversionOptionsLink","CrossBorder","spinnerOverlay","endCPLTracking","observeUntilEventObserved","attributes","observer","disconnect","formatCurrencyAsString","CURRENCY_CONVERSION","pageSpec","PAGE_SPEC","CROSS_BORDER_PAGE","showCurrencyConversionModal","isCurrencyConversionModalOpen","showCVVField","cvv","childCVVInfo","processDonation","threeDSContainer","initializeThreeDS","giftAidState","extraCostText","outSymbol","outAmount","extraAmount","beforeOption","currencyConversionOption","hideCurrencyConversionModal","finally","lastFundingSource","getLastFundingSource","tags","_includes","isRecurring","stateConversionWithPayPal","getStateForConversionWithPayPal","amountDecimalPoint","endCustomCPLTracking","sources","fundingSources","paymentNetwork","payment_card","charAt","toUpperCase","slice","paymentDigits","last_4","currency_conversion","toString","fundsIn","funds_in","fundsOut","funds_out","paymentCard","inAmount","inCurrency","inSymbol","outCurrency","getStateForConversionWithIssuer","paymentCardId","currencyConversionType","normalizeNumber","preferences","payment_card_id","validity","consentShareAddress","getShareAddress","hasCvvContingency","isCvvContingencyResolved","showCVVComponent","hideCVVComponent","updateFundingOptionsState","getUserCountry","Fragment","spread","fee","handleCurrencyConversionClick","currencyConversionOptions","getLocalizedCurrency","exchangeRateDecimalPoints","donateNowRecurring","formattedDonationAmount","giftaidFlag","updateGiftAidComponent","cscwarning","BackButton","isGiftaiditEnabled","donatingFrom","youllDonate","convertsTo","renderConversionRateInfo","shouldShowCurrencyConversionOptions","renderCurrencyConversionOptionsLink","handleDonateClick","donatenow","handleThreeDSStepUpAuthSuccess","handleThreeDSFailure","GuestConfirmationPending","withPageTrack","withPostTransactionRequest","PendingView","GuestConfirmationSuccess","SuccessView","PaymentError","ERROR_CODE","getPaymentError","trackErrorPageIM","GUEST_FAILURE_PAGE","WSM_CANNOT_PAY_SELF","WENT_WRONG","TEMP_GLITCH","tryagain","DID_NOT_WORK","DIFF_CREDIT_DEBIT","trydiffcard","L2","WSM_CANNOT_PAY_SELF_H","AmountLimitBreachError","customerServiceLink","ConfirmationTitle","ConfirmationBody","handleTryAgain","noAccountErrorMessage","UnilateralError","UNILATERAL_ERROR_PAGE","ThreeDSError","tryAgain","tryCard","CaptureOrder","getOrderStatus","orderStatus","isMemberFlow","isOneTouchUser","handlePaymentSuccess","handleConfirmation","flow","trackCaptureOrderPageIM","accessToken","isSubmitted","backBtnVisible","responseData","wTransactionEntry","requestError","timerCount","locality","setShouldRTL","currentUserState","isUnilateralAccount","GuestPage","reactLazyPreload","FallbackSpinner","userCookied","isOneTouch","onboardingEnabled","preload","parseUrlQuery","signup","getPageToRender","ReactDOM","render","fallback","exact","path","component","waitForXProps","xprops","close","charityCancelUrl","MemberConfirmationSuccess","MemberConfirmationPending","all","loadScript","loadSlickProgressiveOnboarding","scriptPath","reject","nonce","script","onerror","importStatement","lazyComponent","reactLazy","genericPropType","propName","componentName","Error","cardSpecsPropType","cardSpecs","keys","stateListPropType","stateList","Array","isArray","$id","secondaryBlue","gray1","lightestGray"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qeAKMA,EAASC,aAAWC,OAAO,CAChCC,aAAc,CACbC,SAAU,IACVC,OAAQ,UAETC,SAAU,CACTC,UAAW,IAEZC,UAAW,CACVD,UAAW,UAIE,SAASE,EAA+BC,GACtD,IACCC,EACGD,EADHC,QAGD,OACC,uBACCC,UAAU,+BACVC,WAAS,EACTC,MAAM,GACNC,OAAQL,EAAMK,OACdC,QAASN,EAAMO,aACfC,UAAQ,EACRC,wBAAwB,GAExB,yBAAKP,UAAU,aAAaQ,GAAG,kBAC9B,yBAAKR,UAAU,IACd,yBAAKA,UAAS,UAAKS,cAAIrB,EAAOG,cAAhB,mBACb,yBAAKS,UAAU,YACd,yBAAKA,UAAU,2BACd,uBAAaU,KAAK,MAAMX,EAAQY,cAGlC,yBAAKX,UAAU,YACd,yBAAKA,UAAU,eACd,uBAAUA,UAAWS,cAAIrB,EAAOQ,YAAaG,EAAQa,WAGvD,yBAAKZ,UAAU,YACd,yBAAKA,UAAU,eACd,uBAAUA,UAAWS,cAAIrB,EAAOQ,YAAaG,EAAQc,WAGvD,yBAAKb,UAAU,YACd,yBAAKA,U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MAAM,kBAAoBF,EAAW,2BAA6BC,EAAgB,qEACvF,IAAKryB,EAASC,SAAWD,EAAShO,KACxC,OAAO,IAAIsgC,MAAM,iBAAmBF,EAAW,kBAAoBC,EAAgB,qEAEpF,OAAO,MApDR5sB,EAAQitB,kBA8DR,SAA2B1rC,EAAOorC,EAAUC,GAC3C,IAAIM,EAAY3rC,EAAMorC,GAGtB,IAAKO,EACJ,OAAO,IAAIL,MAAM,kBAAoBF,EAAW,2BAA6BC,EAAgB,+EACvF,IAAKO,MAAMC,QAAQF,IAAcA,EAAUziC,SAAWyiC,EAAU,GAAGG,IACzE,OAAO,IAAIR,MAAM,iBAAmBF,EAAW,kBAAoBC,EAAgB,+EAEpF,OAAO,O;;;;;yDCnEOl/B,IAZA,CACbE,YAAa,UACbD,iBAAkB,UAClB2/B,cAAe,UACfvQ,SAAU,UAEVwQ,MAAO,UACPC,aAAc,UAEdh9B,MAAO,a","file":"donate.f4aabf03f244d7f9cab0.bundle.js","sourcesContent":["import React from 'react';\nimport { Modal, BodyText, Button, HeadingText } from '@paypalcorp/pp-react';\nimport { StyleSheet, css } from 'aphrodite';\nimport PropTypes from 'prop-types';\n\nconst styles = StyleSheet.create({\n\tmodalContent: {\n\t\tmaxWidth: 600,\n\t\tmargin: '0 auto'\n\t},\n\tokButton: {\n\t\tmarginTop: 36\n\t},\n\tmsgMargin: {\n\t\tmarginTop: '24px'\n\t}\n});\n\nexport default function DonateGiftAidHowItWorksOverlay(props) {\n\tconst {\n\t\tcontent\n\t} = props;\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{content.howitworks}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{content.modalp1}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{content.modalp2}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{content.modalp3}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{content.modalp4}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n\nDonateGiftAidHowItWorksOverlay.propTypes = {\n\tcontent: PropTypes.object,\n\tisOpen: PropTypes.bool,\n\tcloseOverlay: PropTypes.func\n}\n","import PropTypes from 'prop-types';\nimport React from 'react';\nimport { StyleSheet, css } from 'aphrodite';\nimport { Checkbox, CaptionText, Link, Icon } from '@paypalcorp/pp-react';\nimport DonateGiftAidHowItWorksOverlay from './DonateGiftAidHowItWorksOverlay';\nimport { appendCdnHostName } from '../utility/geoUtils';\n\nconst styles = StyleSheet.create({\n\tcentered: {\n\t\tdisplay: 'flex',\n\t\tjustifyContent: 'center'\n\t},\n\ttoolCheckbox: {\n\t\t':before': {\n\t\t\toverflow: 'hidden',\n\t\t},\n\t},\n\thelpIcon: {\n\t\tposition: 'relative',\n\t\tcolor: '#005EA6',\n\t\tcursor: 'pointer',\n\t\ttextDecoration: 'none',\n\t\ttop: 3\n\t},\n\tgiftaidit: {\n\t\tpadding: '25px 35px',\n\t\tborder: '1px solid #ccc',\n\t\tborderRadius: 8,\n\t\twidth: '100%',\n\t\tmargin: '10px auto 15px auto',\n\t\tmaxWidth: 400\n\t},\n\timgWrapper: {\n\t\tdisplay: 'block',\n\t\tmargin: '0px auto 8px auto'\n\t},\n\tshowHelp: {\n\t\tcolor: '#848b8e',\n\t\tmarginTop: 15,\n\t\tmarginLeft: 42,\n\t\ttextAlign: 'left'\n\t},\n\t\tgiftaidNote: {\n\t\tmarginBottom: 20,\n\t\tfontSize: 14,\n\t\ttextAlign: 'left' \n\t},\n\tpTag: {\n\t\tfontSize: 14,\n\t\tmarginBottom: 15,\n\t\ttextAlign: 'left'\n\t},\n\tshowAddres: {\n\t\tmarginTop: 15,\n\t\tmarginLeft: 42,\n\t\tcolor: '#2c2e2f',\n\t\tborderBottom: '1px solid #ccc',\n\t\tpaddingBottom: 13,\n\t\ttextAlign: 'left'\n\t},\n\tlistUnstyled: {\n\t\tmargin: 0,\n\t\tlistStyle: 'none'\n\t},\n\tliTag: {\n\t\tmarginBottom: 2\n\t},\n\tsuccessIcon: {\n\t\tmarginLeft: -5,\n\t\tpaddingRight: 5,\n\t\tcolor: '#00cf92'\n\t},\n\tmodalContent: {\n\t\tbackground: 'none',\n\t\tboxShadow: 'none'\n\t},\n\tmodalHeader: {\n\t\ttextAlign: 'right'\n\t},\n\talreadyEnabled: {\n\t\ttextAlign: 'left',\n\t\tfontSize: 14,\n\t\tdisplay: 'flex'\n\t},\n\tupdateGiftAidDeclaration: {\n\t\tborderTop: '1px solid #ccc',\n\t\tpaddingTop: 15,\n\t\tfontSize: 14\n\t}\n});\n\nclass DonateGiftAid extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tshowhelp: this.props.isAlreadyEnrolled ? false : this.props.isChecked,\n\t\t\tisChecked: this.props.isChecked || false,\n\t\t\tisHowItWorksOverlayOpen: false\n\t\t};\n\t\tthis.handleGiftAidOption = this.handleGiftAidOption.bind(this);\n\t}\t\n\n\thandleGiftAidOption(ev) {\n\t\tlet isChecked = ev.target.checked;\n\t\tthis.setState({\n\t\t\tshowhelp: isChecked,\n\t\t\tisChecked: isChecked\n\t\t});\n\t\tthis.props.handleGiftAidOption(isChecked);\n\t}\n\n\tcreateMarkup(content) {\n\t\treturn {\n\t\t\t__html: content\n\t\t};\n\t}\n\n\thandleTipClick = () => {\n\t\tevent.preventDefault();\n\t\tthis.setState({\n\t\t\tisHowItWorksOverlayOpen: true\n\t\t});\n\t\tthis.linkWithIcon.focus();\n\t}\n\n\tcreateLabel = (label) => {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\t{label}\n\t\t\t\t\t \n\t\t\t\t\t\t {this.linkWithIcon = el}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t);\n\t}\n\n\topenHowItWorksOverlay = () => {\n\t\tthis.setState({\n\t\t\tisHowItWorksOverlayOpen: true\n\t\t})\n\t}\n\n\tcloseHowItWorksOverlay = () => {\n\t\tthis.setState({\n\t\t\tisHowItWorksOverlayOpen: false\n\t\t})\n\t}\n\n\trender () {\n\n\t\tlet contentMsg = this.props.contentMsg;\n\n\t\treturn (\n
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\"giftaidit\"\n\t\t\t\t\t\t\t/\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{contentMsg.extraCost}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t{(this.props.isAlreadyEnrolled) &&
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{this.createLabel(contentMsg.alreadyDone)}\n\t\t\t\t\t\t\t\t{this.props.isMember && {contentMsg.updateGiftAidDeclaration}}\n\t\t\t\t\t\t\t
}\n\n\t\t\t\t\t\t\t{(!this.props.isAlreadyEnrolled) &&\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t{this.state.showhelp &&
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{contentMsg.applyGiftAid}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{this.props.showAddress &&
\n\t\t\t\t\t\t\t\t\t{contentMsg.taxpayer}\n\t\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t
  • {this.props.addressData.fullName}
  • \n\t\t\t\t\t\t\t\t\t
  • {this.props.addressData.address1}
  • \n\t\t\t\t\t\t\t\t\t
  • {this.props.addressData.address2}
  • \n\t\t\t\t\t\t\t\t\t
  • {this.props.addressData.city}
  • \n\t\t\t\t\t\t\t\t\t
  • {this.props.addressData.state}, {this.props.addressData.zip}
  • \n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{contentMsg.confirmNote}\n\t\t\t\t\t\t\t\t{this.props.isMember && {contentMsg.updateGiftAidDeclaration}}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
}\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t
\n );\n\t}\n}\n\nDonateGiftAid.propTypes = {\t\n\tisAlreadyEnrolled: PropTypes.bool,\n\tshowAddress: PropTypes.bool,\n\taddressData: PropTypes.any,\n\tisChecked: PropTypes.bool,\n\thandleGiftAidOption: PropTypes.func,\n\tcontentMsg: PropTypes.object,\n\tisMember: PropTypes.bool,\n};\n\nexport default DonateGiftAid;","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport AmountValidationError from './amountValidationError.js';\n\nconst messages = localsMessages('guest/crossBorder');\n\nconst STYLES = {\n container: {\n padding: '30px 0 30px 0',\n zIndex: 1,\n },\n calcRow: {\n display: 'inline-block',\n width: '40%',\n verticalAlign: 'top',\n },\n calcRowLeft: {\n margin: '0 1% 0 9%',\n },\n calcRowRight: {\n margin: '0 9% 0 1%',\n },\n calcLabel: {\n padding: '0 0 8px 5px',\n },\n inputCol: {\n position: 'relative',\n },\n input: {\n outlineOffset: '-1px',\n fontSize: 14,\n paddingLeft: 20,\n },\n inputLeft: {\n paddingRight: '100px',\n },\n inputRight: {\n paddingRight: '60px',\n },\n fromCode: {\n position: 'absolute',\n right: '1px',\n top: '1px',\n height: '40px',\n width: '90px',\n borderTop: 0,\n borderRight: 0,\n borderBottom: 0,\n },\n toCode: {\n position: 'absolute',\n right: '15px',\n top: 0,\n lineHeight: '42px',\n },\n conversion: {\n textAlign: 'center',\n paddingTop: '30px',\n },\n disabled: {\n opacity: '0.5',\n },\n inputCurrencyLeft: {\n position: 'absolute',\n marginTop: 12,\n marginLeft: 10,\n fontSize: 14,\n },\n hasError: {\n color: 'red',\n },\n};\n\nclass Calculator extends React.Component {\n constructor() {\n super();\n const { label: { youDonate, charityGet, conversion } = {} } =\n messages || {};\n this.state = {\n youDonateLabel: youDonate,\n charityGetLabel: charityGet,\n conversionLabel: conversion,\n };\n }\n\n componentDidMount() {\n this.setFromSymbol(this.props.toCode);\n }\n\n setFromSymbol = (toCode) => {\n const symbol =\n (this.props.currencySymbols && this.props.currencySymbols[toCode]) || '';\n this.setState({\n fromSymbol: symbol,\n });\n\n let padding = symbol.length * 10 + 10;\n document.getElementById('fromAmount').style.paddingLeft = `${padding}px`;\n };\n\n validateAmount = (ev, callback) => {\n let val = ev.target.value;\n let rgx = /^[0-9]*[.|,]?[0-9]?[0-9]?$/;\n\n if (val === '.' || val === ',' || !val.match(rgx)) {\n return;\n }\n callback(val);\n };\n\n handleFromChange = (ev) => {\n this.validateAmount(ev, this.props.handleFromChange);\n };\n\n handleToChange = (ev) => {\n this.validateAmount(ev, this.props.handleToChange);\n };\n\n handleFromCurrencyChange = (ev) => {\n let val = ev.target.value;\n this.props.handleFromCurrencyChange(val);\n this.setFromSymbol(val);\n };\n\n handleAmountFocus = (event) => {\n this.props.handleAmountFocus(event);\n };\n\n getLocalizedAmount = (amount) => {\n return `${amount}`.replace(/[.|,]/i, this.props.decimalPoint);\n };\n\n render() {\n const placeholder = this.getLocalizedAmount('0.00');\n const fromAmount = this.getLocalizedAmount(this.props.fromAmount);\n const toAmount = this.getLocalizedAmount(this.props.toAmount);\n const conversionRate = `${this.getLocalizedAmount('1.00')} ${\n this.props.fromCode\n } = ${this.getLocalizedAmount(this.props.conversionRate)} ${\n this.props.toCode\n }`;\n\n const calcLabelStyle = {\n ...STYLES.calcLabel,\n ...(this.props.toError ? STYLES.hasError : {}),\n };\n\n return (\n \n
\n \n
{this.state.youDonateLabel}
\n
\n
\n \n {this.state.fromSymbol}\n \n \n
\n \n {this.props.availableCurrencies.map((c) => (\n \n ))}\n \n
\n
\n \n
{this.state.charityGetLabel}
\n
\n
\n \n {this.props.charityAmountSymbol}\n \n \n
\n {this.props.toCode}\n
\n {this.props.toError && (\n \n )}\n \n \n\n {this.props.conversionRate && (\n \n {this.state.conversionLabel} {conversionRate}\n \n )}\n \n );\n }\n}\n\nCalculator.propTypes = {\n availableCurrencies: PropTypes.array.isRequired,\n currencySymbols: PropTypes.object.isRequired,\n decimalPoint: PropTypes.string.isRequired,\n conversionRate: PropTypes.string.isRequired,\n fromAmount: PropTypes.string.isRequired,\n fromCode: PropTypes.string.isRequired,\n fromDisabled: PropTypes.bool.isRequired,\n toAmount: PropTypes.string.isRequired,\n toCode: PropTypes.string.isRequired,\n toDisabled: PropTypes.bool.isRequired,\n handleFromChange: PropTypes.func.isRequired,\n handleFromCurrencyChange: PropTypes.func.isRequired,\n handleToChange: PropTypes.func.isRequired,\n charityAmountSymbol: PropTypes.string,\n handleAmountFocus: PropTypes.func,\n toError: PropTypes.bool,\n toErrorMessage: PropTypes.string,\n};\n\nexport default Calculator;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { StyleSheet, css } from '../../utility/paypalAphrodite';\nimport colors from '../../styles/colors';\nimport { formatAmountFromServerDNW } from './amountUtils';\nimport { getCurrencyParts } from '../../utility/formator';\nimport { Button } from '@paypalcorp/pp-react';\nimport * as AppActions from '../../actions/AppActions';\nimport { trackLinkClick } from '../../fpti/fpti';\nimport { FPTI_TAGS, LINK_NAME } from '../../fpti/fptiConstants';\n\nconst buttonStyles = {\n amountBtn: {\n height: '48px',\n padding: 0,\n borderRadius: '5px',\n border: '1px solid #0070BA',\n fontSize: '16px',\n textDecoration: 'none',\n },\n defaultColor: {\n backgroundColor: 'white',\n color: colors.primaryLightBlue,\n ':hover': {\n color: colors.primaryBlue,\n borderColor: colors.primaryBlue,\n boxShadow: `0 0 0 1px ${colors.primaryBlue} inset`,\n },\n ':active': {\n color: colors.primaryBlue,\n borderColor: colors.primaryBlue,\n boxShadow: `0 0 0 1px ${colors.primaryBlue} inset`,\n },\n ':focus': {\n color: colors.primaryBlue,\n borderColor: colors.primaryBlue,\n boxShadow: `0 0 0 1px ${colors.primaryBlue} inset`,\n ':after': {\n borderRadius: '5px',\n },\n },\n },\n highlightedColor: {\n backgroundColor: colors.primaryLightBlue,\n color: 'white',\n ':focus:after': {\n borderRadius: '5px',\n },\n },\n};\n\nconst STYLES = StyleSheet.create({\n defaultBtn: {\n ...buttonStyles.amountBtn,\n ...buttonStyles.defaultColor,\n },\n highlightedBtn: {\n ...buttonStyles.amountBtn,\n ...buttonStyles.highlightedColor,\n },\n currencyStyle: {\n whiteSpace: 'nowrap', // Do not wrap amount to next line\n },\n currencyCodeStyle: {\n fontSize: 11,\n marginTop: -4,\n },\n});\n\nclass PresetAmountButton extends React.Component {\n constructor(props) {\n super(props);\n const [firstParts = {}] = getCurrencyParts();\n const rightSymbol = firstParts.$ !== 'symbol';\n this.state = {\n rightSymbol,\n };\n }\n\n handleClick = (event, value) => {\n trackLinkClick(LINK_NAME.PRESET_AMOUNT, {\n additionalData: {\n [FPTI_TAGS.SELECTED_PRESET_BUTTON_ID]: this.props.id,\n [FPTI_TAGS.AMOUNT]: value,\n },\n });\n AppActions.updateSelectedPresetButtonId(this.props.id);\n this.props.handleAmountBtnClick(event, value);\n };\n\n getAmountDisplayValue = () => {\n let amountDisplayValue;\n if (this.state.rightSymbol) {\n amountDisplayValue = this.props.symbol\n ? `${formatAmountFromServerDNW(\n this.props.value,\n this.props.charityAmountCode\n )} ${this.props.symbol}`\n : `${formatAmountFromServerDNW(\n this.props.value,\n this.props.charityAmountCode\n )}`;\n } else {\n amountDisplayValue = this.props.symbol\n ? `${this.props.symbol}${formatAmountFromServerDNW(\n this.props.value,\n this.props.charityAmountCode\n )}`\n : `${formatAmountFromServerDNW(\n this.props.value,\n this.props.charityAmountCode\n )}`;\n }\n return amountDisplayValue;\n };\n\n getAmountFontSize = (amountDisplayValue) => {\n if (amountDisplayValue.length < 11) {\n return '15px';\n }\n return '12px';\n };\n\n render() {\n const { selected } = this.props;\n const btnClasses = classNames({\n [css(STYLES.highlightedBtn)]: selected,\n [css(STYLES.defaultBtn)]: !selected,\n });\n const formattedAmount = formatAmountFromServerDNW(\n this.props.value,\n this.props.charityAmountCode\n );\n const amountDisplayValue = this.getAmountDisplayValue();\n const amountFontSize = this.getAmountFontSize(amountDisplayValue);\n\n return (\n this.handleClick(event, formattedAmount)}\n >\n \n {amountDisplayValue}\n \n
\n {this.props.charityAmountCode}\n
\n \n );\n }\n}\n\nPresetAmountButton.propTypes = {\n id: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n selected: PropTypes.bool,\n symbol: PropTypes.string,\n handleAmountBtnClick: PropTypes.func.isRequired,\n charityAmountCode: PropTypes.string,\n};\n\nexport default PresetAmountButton;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport _map from 'lodash/map';\nimport PresetAmountButton from './PresetAmountButton';\nimport { getNormalizedNumber } from './amountUtils';\n\nclass PresetAmountButtons extends React.Component {\n handleClick(event, value) {\n this.props.handlePresetAmountClick(event, value);\n }\n\n render() {\n return (\n
\n
\n {_map(this.props.amounts, (amount, index) => {\n const normalizedAmount =\n '' + getNormalizedNumber(this.props.selectedAmount);\n const isSelected = amount === normalizedAmount;\n return (\n \n );\n })}\n
\n
\n );\n }\n}\n\nPresetAmountButtons.propTypes = {\n amounts: PropTypes.array,\n handlePresetAmountClick: PropTypes.func,\n selectedAmount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n symbol: PropTypes.string,\n charityAmountCode: PropTypes.string,\n};\n\nexport default PresetAmountButtons;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getCurrencyParts, getAmountPlaceHolder } from '../../utility/formator';\nimport { StyleSheet, css } from '../../utility/paypalAphrodite';\nimport colors from '../../styles/colors';\nimport * as amountUtils from './amountUtils';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport { TextInput } from '@paypalcorp/pp-react';\nimport AppStore from '../../stores/AppStore';\nimport {\n isOptInCoverFee,\n shouldSelectPresetAmount,\n} from '../coverFee/feeUtils';\nimport { isExternalFlow } from '../../utility/externalIntegrationUtils';\n\nlet messages = localsMessages('common/amount');\n\nconst STYLES = StyleSheet.create({\n currencyString: {\n position: 'absolute',\n 'font-size': '16px',\n 'line-height': '1',\n color: colors.black,\n zIndex: 1,\n top: '14px',\n left: '8px',\n },\n amountCondensed: {\n display: 'inline-block',\n margin: '0 auto',\n width: '100%',\n },\n moneyInput: {\n width: '142px',\n maxWidth: '282px',\n margin: '0 0 0 10px',\n\n '@media (max-width: 736px)': {\n width: '100%',\n margin: '0 auto',\n },\n },\n inputField: {\n fontSize: '13px',\n height: '3.1rem',\n width: '140px',\n },\n\n minimumError: {\n ':nth-child(1n) > input': {\n border: `2px solid #d20000`,\n },\n },\n});\n\nclass AmountCondensed extends React.Component {\n constructor(props) {\n super(props);\n const [firstParts = {}] = getCurrencyParts(),\n // In case user opts in for cover fee and goes back to\n // landing page from guest page, we need to restore back\n // user's original entered amount\n amountBeforeFee = AppStore.getAmountBeforeFee(),\n isCustomAmount = !shouldSelectPresetAmount(amountBeforeFee),\n shouldRestoreAmount =\n isCustomAmount && amountBeforeFee && isOptInCoverFee(),\n amount = shouldRestoreAmount ? amountBeforeFee : this.props.amount,\n displayValue = this.getDisplayValue(amount);\n\n this.state = {\n displayValue,\n amount: amount || '',\n symbol: this.props.symbol || '',\n code: this.props.code || '',\n rightSymbol: firstParts.$ !== 'symbol',\n placeholder: getAmountPlaceHolder(),\n };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (this.state.amount !== nextProps.amount) {\n this.setState({\n amount: nextProps.amount,\n });\n\n if (!nextProps.amount) {\n this.setState({\n displayValue: '',\n });\n }\n }\n }\n\n /**\n * Returns amount converted to readable format\n * Converts \"1.00\"\n * @return {[type]} [description]\n */\n getDisplayValue(amount) {\n // let amount = inputAmount || this.state.amount;\n if (!amount) {\n return '';\n }\n let displayValue;\n if (this.props.symbol) {\n displayValue = `${this.props.symbol}${amount} ${this.props.code}`;\n } else {\n displayValue = `${amount} ${this.props.code}`;\n }\n return displayValue;\n }\n\n moveCursorToTheEnd(node) {\n if (node) {\n setTimeout(() => {\n const { length } = node.value;\n node.setSelectionRange(length, length);\n });\n }\n }\n\n handleFocus = (event) => {\n if (!this.state.amount) {\n this.props.handleAmount(amountUtils.formatAmount('', this.props.code));\n }\n this.setState({\n displayValue: '',\n });\n this.props.handleAmountFocus();\n this.moveCursorToTheEnd(event.target);\n };\n\n handleKeyPress = (event) => {\n if (!amountUtils.isKeyAllowed(event.charCode)) {\n return;\n }\n };\n\n handleChange = (event) => {\n const { value } = event.target;\n if (!amountUtils.amountLengthValid(value)) {\n return;\n }\n const stringValue = amountUtils.formatAmount(value, this.props.code);\n this.setState({ amount: stringValue });\n this.props.handleAmount(stringValue);\n };\n\n handleBlur = (event) => {\n const amount = this.state.amount;\n this.setState({\n displayValue: this.getDisplayValue(amount),\n });\n };\n\n handleClick = ({ target }) => this.moveCursorToTheEnd(target);\n\n render() {\n const placeholder = isExternalFlow()\n ? messages.amount.externalOtherAmount\n : messages.amount.placeholderOtherAmount;\n const amount = `${this.state.amount}`;\n const hasError = !!this.props.showValidationError;\n const displayedAmount = this.state.displayValue\n ? this.state.displayValue\n : amount;\n\n const inputStyles = css(\n STYLES.inputField,\n STYLES.moneyInput,\n hasError && STYLES.minimumError\n );\n\n return (\n \n );\n }\n}\n\nAmountCondensed.propTypes = {\n name: PropTypes.string,\n label: PropTypes.string,\n value: PropTypes.string,\n amount: PropTypes.string,\n symbol: PropTypes.string,\n code: PropTypes.string,\n decimalPoint: PropTypes.string,\n isEditable: PropTypes.bool,\n handleAmount: PropTypes.func,\n showValidationError: PropTypes.bool,\n validationErrorMessage: PropTypes.string,\n handleAmountFocus: PropTypes.func,\n};\n\nexport default AmountCondensed;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PresetAmountButtons from './PresetAmountButtons';\nimport AmountCondensed from './AmountCondensed';\nimport AmountValidationError from './amountValidationError.js';\nimport templateData from '../../utility/getTemplateData';\nimport * as AppActions from '../../actions/AppActions';\nimport AppStore from '../../stores/AppStore';\nimport { StyleSheet, css } from 'aphrodite';\nimport {\n isOptInCoverFee,\n shouldSelectPresetAmount,\n} from '../coverFee/feeUtils';\nimport { isInContext } from '../../utility/inContextDonation';\nimport { trackLinkClick } from '../../fpti/fpti';\nimport { FPTI_TAGS, LINK_NAME } from '../../fpti/fptiConstants';\n\nconst STYLES = StyleSheet.create({\n errorContainer: {\n 'text-align': 'center',\n 'margin-top': '5px',\n },\n});\n\nclass PresetAmountRow extends React.Component {\n constructor(props) {\n super(props);\n this.presetAmounts = templateData.presetAmounts;\n this.page =\n window.location.href.indexOf('guest') > -1 ? 'guest' : 'landing';\n this.state = {\n presetAmounts: this.presetAmounts,\n isPresetAmountSelected: templateData.donationAmountType === 'preset',\n selectedAmount:\n AppStore.getDonationAmountType() === 'preset'\n ? parseFloat(AppStore.getDonationAmount(), 10)\n : '',\n };\n }\n\n componentDidMount() {\n // In case user opts in for cover fee and goes back to\n // landing page from guest page, we need to restore back\n // user's original entered amount\n const amountBeforeFee = AppStore.getAmountBeforeFee();\n if (amountBeforeFee && isOptInCoverFee()) {\n if (shouldSelectPresetAmount(amountBeforeFee)) {\n this.handlePresetAmountClick({}, amountBeforeFee);\n }\n }\n }\n\n handlePresetAmountClick(event, value) {\n const presetAmounts = this.presetAmounts;\n const selectedAmount = value;\n\n // Highlight the selected button\n this.setState({\n isPresetAmountSelected: true,\n presetAmounts,\n selectedAmount,\n });\n // Clear the errors from amount field\n this.props.hideValidationError();\n\n AppActions.updateDonationAmountType('preset');\n this.props.handleAmountChange(`${selectedAmount}`);\n }\n\n clearSuggestedAmountSelection() {\n this.setState({\n selectedAmount: '',\n });\n }\n\n handleAmountChange(amount) {\n let checkValue = parseFloat(amount.replace(',', '.').replace(' ', ''));\n\n if (AppStore.getDonationAmountType() === 'preset' && checkValue > 0) {\n this.clearSuggestedAmountSelection();\n AppActions.updateSelectedPresetButtonId('other');\n AppActions.updateDonationAmountType('userinput');\n this.props.handleAmountChange('0.00');\n trackLinkClick(LINK_NAME.PRESET_AMOUNT, {\n additionalData: {\n [FPTI_TAGS.SELECTED_PRESET_BUTTON_ID]: 'other',\n },\n });\n }\n if (checkValue > 0) {\n this.props.handleAmountChange(amount);\n }\n }\n\n handleAmountFocus() {\n this.props.handleAmountFocus();\n }\n\n render() {\n const isPresetAmountSelected =\n AppStore.getDonationAmountType() === 'preset';\n const amountFieldValue = isPresetAmountSelected\n ? ''\n : this.props.charityAmount;\n\n return (\n \n
\n
\n
\n \n
\n
\n \n
\n
\n {this.props.showValidationError ? (\n \n \n
\n ) : (\n  \n )}\n \n \n );\n }\n}\n\nPresetAmountRow.propTypes = {\n hideValidationError: PropTypes.func,\n handleAmountChange: PropTypes.func,\n handleAmountFocus: PropTypes.func,\n charityAmount: PropTypes.string,\n showValidationError: PropTypes.bool,\n charityAmountSymbol: PropTypes.string,\n charityAmountCode: PropTypes.string,\n decimalPoint: PropTypes.string,\n isAmountEditable: PropTypes.bool,\n validationErrorMessage: PropTypes.string,\n validationErrorCode: PropTypes.string,\n};\nexport default PresetAmountRow;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport _debounce from 'lodash/debounce';\nimport AppStore from '../stores/AppStore';\nimport * as AppActions from '../actions/AppActions';\nimport TemplateData from '../utility/getTemplateData';\nimport { fetcher } from '../utility/domUtils';\nimport SingleAmount from '../components/amount/SingleAmount';\nimport Calculator from '../components/amount/calculator';\nimport PresetAmountRow from './amount/PresetAmountRow';\nimport {\n setFeeAmountInStore,\n optOutCoverFee,\n isAtLandingPage,\n isOptInCoverFee,\n} from './coverFee/feeUtils';\nimport AppDispatcher from '../dispatcher/AppDispatcher';\nimport { getParameterByName } from '../utility/queryStringHelper';\n\nclass AmountWrapper extends React.Component {\n constructor(props) {\n super(props);\n\n const currencyObj = JSON.parse(\n document.getElementById('currencyLists').innerHTML || {}\n );\n const { currencies: currencyLists, symbols: currencySymbols } =\n currencyObj || {};\n\n let userCountry = TemplateData.donorIpCountry;\n let availableCurrencies = currencyLists[userCountry] || currencyLists.US;\n let userAmountCode = availableCurrencies[0];\n let charityAmountCode = AppStore.getDonationCode();\n let isEditable = !!TemplateData.donationAmountEditable;\n // let showCBCalculator = TemplateData.pxp && TemplateData.pxp.calculator && TemplateData.pxp.calculator.experiment || false;\n\n let isCalculator = false;\n // Disabled Calculator\n // let isCalculator =\n // \tisEditable &&\n // \tuserAmountCode !== charityAmountCode &&\n // \t(showCBCalculator || TemplateData.isCorpIp);\n\n this.state = {\n charityAmountCode,\n charityAmount: AppStore.getDonationAmount() || '',\n charityAmountSymbol: AppStore.getDonationSymbol(),\n charityDisabled: false,\n\n userCountry,\n userAmountCode,\n userAmount: '',\n userDisabled: false,\n\n availableCurrencies,\n currencySymbols,\n isCalculator,\n decimalPoint: TemplateData.donationDecimalPoint || '.',\n conversionRate: '',\n isAmountEditable: isEditable,\n\n showValidationError: props.showValidationError || false,\n validationErrorMessage: props.validationErrorMessage || '',\n validationErrorCode: props.validationErrorCode || '',\n };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (this.state.showValidationError !== nextProps.showValidationError) {\n this.setState({\n showValidationError: nextProps.showValidationError,\n validationErrorMessage: nextProps.validationErrorMessage,\n validationErrorCode: nextProps.validationErrorCode,\n });\n }\n }\n\n componentDidMount() {\n // Watch for amount change for the case that donor opts in to cover fee\n // and clicks back button to go back to landing page\n // as we need to restore donor's original entered amount\n this.dispatcherCharityAmount = AppDispatcher.register((payload) => {\n if (payload.action && payload.action.actionType === 'CHANGE_AMOUNT') {\n const { action: { item: { amount = 0 } = {} } = {} } = payload;\n this.setState({\n charityAmount: amount,\n });\n }\n });\n }\n\n componentWillUnmount = () => {\n AppDispatcher.unregister(this.dispatcherCharityAmount);\n };\n\n isGuestReviewPage = () => {\n return (\n window.location.pathname.includes('guest') ||\n ![undefined, null].includes(getParameterByName('signup'))\n );\n };\n\n normalizeAmount = (amount) => {\n return isNaN(amount) ? 0 : amount;\n };\n\n setAppAmount = (amount) => {\n AppActions.changeAmount({\n amount,\n });\n };\n\n getConversionRate = (state, exchangeRate) => {\n let rate =\n exchangeRate.base_currency_code === state.userAmountCode\n ? exchangeRate.quote_amount\n : 1 / exchangeRate.quote_amount;\n return rate.toFixed(2);\n };\n\n getConversionRequest = (state, params, callback) => {\n this.getConversionRequest = _debounce((st, par, fn) => {\n const queryParams = {\n fromCountry: st.userCountry,\n fromCurrency: st.userAmountCode,\n toCurrency: st.charityAmountCode,\n ...par,\n };\n\n if (queryParams.fromAmount) {\n queryParams.fromAmount = this.normalizeAmount(queryParams.fromAmount);\n } else {\n queryParams.toAmount = this.normalizeAmount(queryParams.toAmount);\n }\n const url = '/donate/calculate-foreign-exchange';\n this.props.conversionStatus(true);\n Promise.resolve(\n fetcher(url, {\n method: 'POST',\n body: JSON.stringify(queryParams),\n })\n )\n .then((response) => response.json())\n .then(({ result }) => {\n this.props.conversionStatus(false);\n fn(result);\n })\n .catch(() => {\n this.props.conversionStatus(false);\n let amount = queryParams.fromAmount || queryParams.toAmount || '';\n amount += '';\n fn({\n target: { value: amount },\n source: { value: amount },\n exchange_rate: {\n base_currency_code: queryParams.userAmountCode,\n quote_amount: 1,\n },\n });\n });\n }, 500);\n\n this.getConversionRequest(state, params, callback);\n };\n\n /*\n * getConversion\n * Getting conversion rate for calculator\n */\n getConversion = (state, params, fn) => {\n // Conversion is only required for calculator\n if (state.isCalculator) {\n this.getConversionRequest(state, params, fn);\n } else {\n const amount = params.fromAmount || params.toAmount || '';\n fn({\n target: { value: amount },\n source: { value: amount },\n exchange_rate: {\n base_currency_code: state.userAmountCode,\n quote_amount: 1,\n },\n });\n }\n };\n\n handleAmountChange = (amount) => {\n this.setState({ charityAmount: amount });\n this.setAppAmount(amount);\n\n // let recurringStatus = AppStore.getDonationRecurring() === 'checked';\n // if (recurringStatus) {\n // if (isAmountGreaterThanZero(amount)) {\n // $('#donateNowAmt').html(this.state.charityAmountSymbol + amount);\n // } else {\n // $('#donateNowAmt').html(' ');\n // }\n // }\n\n if (isAtLandingPage()) {\n // Compute fee amount and update store\n setFeeAmountInStore();\n // Let landing page know that fee amount displayed needs to be updated\n this.props.updateFeeAmount();\n } else {\n // Since user updates the amount in the guest page\n // we should opt user out for cover the fee in case\n // they go back to landing page\n if (isOptInCoverFee()) {\n optOutCoverFee();\n }\n\n // In case user selects a preset button but update the amount\n // in review page, the donation amount type should now be\n // \"userinput\"\n if (AppStore.getDonationAmountType() === 'preset') {\n AppActions.updateDonationAmountType('userinput');\n }\n }\n };\n\n handleAmountFocus() {\n this.props.onFocus();\n }\n\n handleUserAmountChange = (amount) => {\n let snapshot = {\n userAmount: amount,\n charityDisabled: true,\n };\n let state = { ...this.state, ...snapshot };\n this.setState(snapshot);\n\n this.getConversion(\n state,\n {\n fromAmount: state.userAmount,\n },\n ({ target, exchange_rate }) => {\n this.setState({\n conversionRate: this.getConversionRate(state, exchange_rate),\n charityAmount: target.value,\n charityDisabled: false,\n });\n this.setAppAmount(target.value);\n }\n );\n };\n\n handleUserCurrencyChange = (currencyCode) => {\n let snapshot = {\n userAmountCode: currencyCode,\n charityDisabled: true,\n };\n let state = { ...this.state, ...snapshot };\n this.setState(snapshot);\n\n this.getConversion(\n state,\n {\n fromAmount: state.userAmount,\n },\n ({ target, exchange_rate }) => {\n state.charityAmount = target.value;\n this.setState({\n conversionRate: this.getConversionRate(state, exchange_rate),\n charityAmount: state.charityAmount,\n charityDisabled: false,\n });\n this.setAppAmount(target.value);\n }\n );\n };\n\n handleCharityAmountChange = (amount) => {\n let snapshot = {\n charityAmount: amount,\n userDisabled: true,\n };\n let state = { ...this.state, ...snapshot };\n this.setState(snapshot);\n\n this.getConversion(\n state,\n {\n toAmount: state.charityAmount,\n },\n ({ source, exchange_rate }) => {\n this.setState({\n conversionRate: this.getConversionRate(state, exchange_rate),\n userAmount: source.value,\n userDisabled: false,\n });\n this.setAppAmount(state.charityAmount);\n }\n );\n };\n\n shouldShowPresetAmounts = () => {\n // Should only show preset amount options in landing\n // page not review page to make the experience consistent\n // with member flow. It works better for cover the fees as well\n return (\n TemplateData.enablePresetAmounts &&\n !this.state.isCalculator &&\n !this.isGuestReviewPage()\n );\n };\n\n renderPresetAmounts = () => {\n return (\n \n );\n };\n\n render() {\n if (this.shouldShowPresetAmounts()) {\n return
{this.renderPresetAmounts()}
;\n }\n\n return (\n
\n {this.state.isCalculator ? (\n \n ) : (\n \n )}\n
\n );\n }\n}\n\nAmountWrapper.propTypes = {\n conversionStatus: PropTypes.func,\n showValidationError: PropTypes.bool,\n hideValidationError: PropTypes.func,\n validationErrorMessage: PropTypes.string,\n validationErrorCode: PropTypes.string,\n validateDonationAmount: PropTypes.func,\n onFocus: PropTypes.func,\n updateFeeAmount: PropTypes.func,\n};\n\nexport default AmountWrapper;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { getCurrencyParts, getAmountPlaceHolder } from '../../utility/formator';\nimport { addShake } from '../../utility/helper';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport AmountValidationError from './amountValidationError.js';\nimport * as amountUtils from './amountUtils';\nimport { moveCursorToTheEnd } from '../../utility/domUtils';\nimport AppStore from '../../stores/AppStore';\nimport { isAtLandingPage, isOptInCoverFee } from '../coverFee/feeUtils';\n\nlet messages = localsMessages('common/amount');\n\nclass SingleAmount extends React.Component {\n constructor(props) {\n super(props);\n const [firstParts = {}] = getCurrencyParts();\n const { amount = '', symbol = '', code = '' } = this.props;\n const rightSymbol = firstParts.$ !== 'symbol';\n this.state = {\n amount,\n symbol,\n code,\n rightSymbol,\n placeholder: getAmountPlaceHolder(),\n inputWidth: amountUtils.MIN_INPUT_WIDTH,\n inputFontSize: amountUtils.DEFAULT_INPUT_FONTSIZE,\n };\n }\n\n componentDidMount() {\n if (this.props.isEditable && this.singleAmountInput) {\n setTimeout(() => {\n if (this.singleAmountInput) {\n this.singleAmountInput.focus();\n }\n // Placeholder does not work good in IE\n // So call update to show value - 0.00(US)\n if (this.state.amount === '') {\n this.updateAmountField();\n }\n }, 500);\n }\n this.inputResize();\n\n // In case user opts in for cover fee and goes back to\n // landing page from guest page, we need to restore back\n // user's original entered amount\n const amountBeforeFee = AppStore.getAmountBeforeFee();\n if (amountBeforeFee && isOptInCoverFee() && isAtLandingPage()) {\n this.updateAmountField(amountBeforeFee);\n }\n }\n\n handleFocus = (event) => {\n moveCursorToTheEnd(this.singleAmountInput);\n this.props.handleAmountFocus();\n };\n\n handleClick = (eventName) => {\n moveCursorToTheEnd(this.singleAmountInput);\n };\n\n handleKeyPress = (event) => {\n if (!amountUtils.isKeyAllowed(event.charCode)) {\n addShake();\n return;\n }\n };\n\n inputResize = () => {\n let inputWidth;\n\n try {\n inputWidth = amountUtils.getInputWidth(\n this.singleAmountInput,\n this.state.amount\n );\n } catch (e) {\n inputWidth = amountUtils.MIN_INPUT_WIDTH;\n }\n // \"Fixed\" amount is rendered before the CSS is loaded and hence the\n // reported width is lesser than actual. Add a few pixels to fix that.\n if (!this.props.isEditable) {\n inputWidth += 20;\n }\n\n this.setState({\n inputWidth,\n inputFontSize: amountUtils.getFontSize(this.state.amount),\n });\n };\n\n handleChange = (event) => {\n let val = event.target.value;\n this.updateAmountField(val);\n };\n\n updateAmountField = (val) => {\n if (!amountUtils.amountLengthValid(val)) {\n addShake();\n return;\n }\n\n const stringValue = amountUtils.formatAmount(val, this.props.code);\n\n this.setState({ amount: stringValue }, () => {\n this.inputResize();\n });\n this.props.handleAmount(stringValue);\n };\n\n render() {\n const label = (messages.amount && messages.amount.label) || '';\n\n return (\n
\n
\n
\n {!this.state.rightSymbol && (\n
\n \n {this.state.symbol}\n \n
\n )}\n (this.singleAmountInput = input)}\n name=\"donationAmount\"\n autoComplete=\"off\"\n id=\"currencyAmount\"\n data-testid=\"currencyAmount\"\n placeholder={this.state.placeholder}\n pattern=\"[0-9]*\"\n value={this.state.amount}\n onKeyPress={this.handleKeyPress}\n onChange={this.handleChange}\n onClick={this.handleClick}\n onFocus={this.handleFocus}\n className=\"amount_number validate\"\n />\n {this.state.rightSymbol && (\n
\n \n {this.state.symbol}\n \n
\n )}\n
\n
\n

\n {this.state.code}\n

\n {this.props.showValidationError && (\n
\n \n
\n )}\n
\n );\n }\n}\n\nSingleAmount.propTypes = {\n name: PropTypes.string,\n label: PropTypes.string,\n value: PropTypes.string,\n amount: PropTypes.string,\n symbol: PropTypes.string,\n code: PropTypes.string,\n decimalPoint: PropTypes.string,\n isEditable: PropTypes.bool,\n handleAmount: PropTypes.func,\n showValidationError: PropTypes.bool,\n validationErrorMessage: PropTypes.string,\n validationErrorCode: PropTypes.string,\n handleAmountFocus: PropTypes.func,\n};\n\nexport default SingleAmount;\n","/**\n * Card security code input used for adding a card\n */\nimport React from 'react';\nimport { TextInput } from '@paypalcorp/pp-react';\nimport PropTypes from 'prop-types';\n\nimport { cardSpecPropType } from 'prop-validators';\n\nclass CardSecurityCode extends React.Component {\n static propTypes = {\n cardSpec: cardSpecPropType,\n label: PropTypes.string.isRequired,\n errorMessage: PropTypes.string,\n handleChangeSecurityCode: PropTypes.func.isRequired,\n handleFocus: PropTypes.func,\n handleBlur: PropTypes.func,\n dir: PropTypes.string,\n helperText: PropTypes.string,\n };\n\n static defaultProps = {\n handleFocus: () => {},\n handleBlur: () => {},\n };\n\n state = { value: '', showIsRequiredError: false };\n\n /**\n * Handle changing the csc\n * @param {String} securityCode - the csc\n * @return {String} securityCode - numbers only\n */\n handleChangeSecurityCode = ({ target: { value: securityCode } }) => {\n securityCode = securityCode.replace(/\\D+/g, '');\n this.setState({ value: securityCode });\n this.handleCheckForValue(securityCode);\n this.props.handleChangeSecurityCode(securityCode);\n return securityCode;\n };\n\n /**\n * Check for a security code value\n * If the field is required, we should show that this field needs a value\n * @param {String} securityCode - the csc\n */\n handleCheckForValue = (securityCode) => {\n const cscSpecs = this.props.cardSpec.fields.csc;\n const isRequired = cscSpecs.required;\n this.setState({ showIsRequiredError: isRequired && !securityCode });\n };\n\n /**\n * Call parent's handleFocus\n * @param {String} securityCode - the csc\n */\n handleFocus = (securityCode) => {\n this.props.handleFocus(securityCode);\n };\n\n /**\n * Check for a security code value and call parent's handleBlur\n * @param {String} securityCode - the csc\n */\n handleBlur = ({ target: { value: securityCode } }) => {\n this.handleCheckForValue(securityCode);\n this.props.handleBlur(securityCode);\n };\n\n render() {\n const cscSpecs = this.props.cardSpec.fields.csc;\n // let helpText = '●'.repeat(cscSpecs.maxlength)\n let { errorMessage } = this.props;\n\n return (\n
\n \n
\n );\n }\n}\n\nexport default CardSecurityCode;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { CaptionText, Alert } from '@paypalcorp/pp-react';\nimport getContent from 'pp-react-l10n';\n\nconst getRecurringInfoContent = getContent('locals')(\n 'common/recurring-checkbox'\n);\n\nexport default function RecurringInfo({ orgName, amount }) {\n return (\n \n \n {getRecurringInfoContent(\n 'rp.helpText1',\n { orgName: orgName, amount: amount },\n { useHTML: true }\n )}\n \n {getRecurringInfoContent('rp.helpText2')}\n \n \n );\n}\n\nRecurringInfo.propTypes = {\n orgName: PropTypes.string,\n amount: PropTypes.string,\n};\n","/* eslint-disable */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { StyleSheet, css } from '../../utility/paypalAphrodite';\nimport * as AppActions from '../../actions/AppActions';\nimport AppStore from '../../stores/AppStore';\nimport AppDispatcher from '../../dispatcher/AppDispatcher';\nimport TemplateData, { localsMessages } from '../../utility/getTemplateData';\nimport { isLTR as isLeftToRight } from '../../utility/helper';\nimport { loadBodyMovin } from '../../utility/lazyLoader';\nimport { formatAmount } from '../../utility/formator';\nimport { sanitizeOrgName } from '../../utility/domUtils';\nimport RecurringInfo from './RecurringInfo';\nimport { Checkbox, Tooltip, Modal } from '@paypalcorp/pp-react';\nimport { preventFormSubmitOnTooltipClick } from '../../utility/fixPpReactToolTip';\nimport { trackLinkClick } from '../../fpti/fpti';\nimport { FPTI_TAGS, LINK_NAME } from '../../fpti/fptiConstants';\n\nconst orgname = TemplateData.donationName ? TemplateData.donationName : '';\nconst isLTR = isLeftToRight();\nlet texts = localsMessages('common/recurring-checkbox');\nlet textsOr = localsMessages('common/orLine');\nlet isContinue = false;\n\nconst styles = StyleSheet.create({\n wrapper: {},\n centered: {\n display: 'flex',\n justifyContent: 'center',\n },\n toolWrapper: {\n display: 'inline-block',\n position: 'relative',\n margin: '0',\n paddingBottom: '10px',\n },\n toolCheckboxWrapper: {\n position: 'absolute',\n width: 'inherit',\n display: 'inline',\n },\n toolCheckbox: {\n ':before': {\n overflow: 'hidden',\n },\n },\n toolBlurb: {\n fontSize: '15px',\n lineHeight: '20px',\n marginLeft: '40px',\n position: 'relative',\n zIndex: 2,\n },\n tipIcon: {\n position: 'relative',\n color: '#005EA6',\n cursor: 'pointer',\n textDecoration: 'none',\n },\n helpIcon: {\n textDecoration: 'none',\n color: '#50c7f9',\n fontWeight: 600,\n },\n helpWrapper: {},\n helpTxt: {\n border: '1px solid #50c7f9',\n lineHeight: '1.8',\n textAlign: 'left',\n borderRadius: 6,\n padding: '15px 10px 5px',\n display: 'flex',\n width: '100%',\n maxWidth: 460,\n margin: '0 auto 25px auto',\n },\n helpP: {\n fontSize: 14,\n },\n helpP2: {\n fontSize: 14,\n },\n perMonth: {\n fontSize: 15,\n position: 'relative',\n top: '-5px',\n },\n splitterDiv: {\n width: '100%',\n overflow: 'hidden',\n padding: '8px',\n },\n splitterP: {\n fontSize: 15,\n marginBottom: 15,\n display: 'inline',\n },\n columnLeft: {\n width: 20,\n float: 'left',\n },\n columnRight: {\n maxWidth: 360, // container 400px, padding 8 + 8 px, leftMargin 20px\n width: '90%',\n marginLeft: 30,\n marginBottom: 8,\n lineHeight: 1.3,\n },\n animationWrapper: {\n width: '100%',\n position: 'absolute',\n height: 125,\n marginTop: -125,\n },\n animationContainer: {\n transform: isLTR ? 'scaleX(1)' : 'scaleX(-1)',\n height: 250,\n width: 250,\n marginLeft: -35,\n },\n recurringButton: {\n width: '100%',\n padding: 20,\n borderRadius: '3rem',\n fontSize: 15,\n marginBottom: 0,\n },\n borderOnly: {\n background: 'transparent',\n color: '#0070ba',\n },\n divider: {\n position: 'relative',\n borderBottom: '1px solid #ccc',\n textAlign: 'center',\n margin: '0 0 20px',\n },\n dividerContent: {\n position: 'relative',\n textAlign: 'center',\n backgroundColor: '#fff',\n display: 'inline-block',\n margin: 0,\n top: 9,\n padding: '0 10px',\n fontSize: 18,\n },\n verticalCentered: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\nclass RecurringCheckBox extends React.Component {\n constructor(props) {\n super(props);\n const amount = AppStore.getDonationAmount() || '';\n const currency = AppStore.getDonationCode() || '';\n this.state = {\n showhelp: this.props.status,\n formatedAmount: formatAmount({ currency: currency, value: amount }),\n };\n }\n\n componentDidMount() {\n this.dispatcherToken = AppDispatcher.register((payload) => {\n if (payload.action && payload.action.actionType === 'CHANGE_AMOUNT') {\n const { action: { item: { amount = 0 } = {} } = {} } = payload;\n this.updateAmount(amount);\n }\n });\n\n preventFormSubmitOnTooltipClick();\n }\n\n componentWillUnmount = () => {\n isContinue = this.props.continue;\n AppDispatcher.unregister(this.dispatcherToken);\n };\n\n loadAnimation(display) {\n if (!display) {\n return;\n }\n loadBodyMovin().then(() => {\n // Animation is displayed after bodymovin files are downloaded\n // On slow connections, user may click the checkbox a few times before\n // the JS files are downloaded\n if (this.state.isAnimating) {\n return;\n }\n const animationData = window.heartsAnimationData;\n const bodymovinLibrary = window.bodymovin;\n if (!bodymovinLibrary || !animationData) {\n return;\n }\n this.setState({\n isAnimating: true,\n });\n\n bodymovinLibrary.loadAnimation({\n // eslint-disable-line\n container: document.getElementById('animationContainer'),\n renderer: 'svg',\n loop: 1,\n autoplay: true,\n animationData,\n });\n // Destroying with timeout\n setTimeout(() => {\n bodymovinLibrary.destroy(); // eslint-disable-line\n this.setState({\n isAnimating: false,\n });\n }, 1000);\n });\n }\n\n updateAmount = (value) => {\n const currency = AppStore.getDonationCode() || '';\n this.setState({ formatedAmount: formatAmount({ currency, value }) });\n };\n\n handleChange = (ev) => {\n let { showhelp } = this.state;\n let isChecked = ev.target.checked;\n let chkBxStatus = isChecked ? 'checked' : 'unchecked';\n\n this.loadAnimation(isChecked);\n\n AppActions.changeRecurring({\n recurring: chkBxStatus,\n });\n trackLinkClick(LINK_NAME.RECURRING_CHECKBOX, {\n additionalData: {\n [FPTI_TAGS.CHECKBOX]: chkBxStatus,\n },\n });\n\n this.props.handleChange(isChecked);\n\n this.setState({ showhelp: (showhelp = !showhelp) });\n };\n\n createMarkup = (content) => {\n return { __html: content };\n };\n\n render() {\n let { recurring_label, perMonth } = texts.rp;\n\n const checked = { checked: false };\n if (this.props.status) {\n checked.checked = true;\n }\n\n const shouldLeftAlignRecurringCheckbox =\n TemplateData.coverFeeEnabled || TemplateData.anonymousEnabled;\n\n return (\n \n \n {isContinue ? (\n
\n {perMonth}\n
\n ) : (\n \n
\n \n
\n \n
\n \n \n
\n \n \n )}\n \n {this.props.status && !isContinue && (\n
\n \n
\n )}\n \n );\n }\n}\n\nRecurringCheckBox.propTypes = {\n handleChange: PropTypes.func,\n hasRecurringHelp: PropTypes.bool,\n status: PropTypes.bool,\n continue: PropTypes.bool,\n};\n\nRecurringCheckBox.defaultProps = {\n handleChange: () => {},\n};\n\nexport default RecurringCheckBox;\n","export function preventFormSubmitOnTooltipClick() {\n let tooltipButton = document.getElementsByClassName('ppvx_tooltip__icon');\n Object.values(tooltipButton).map((btn) => {\n btn.type = 'button';\n });\n}\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","export var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport { canUseDOM } from './utils';\n\nvar Portal = function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n\n _createClass(Portal, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.defaultNode) {\n document.body.removeChild(this.defaultNode);\n }\n this.defaultNode = null;\n }\n }, {\n key: 'render',\n value: function render() {\n if (!canUseDOM) {\n return null;\n }\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement('div');\n document.body.appendChild(this.defaultNode);\n }\n return ReactDOM.createPortal(this.props.children, this.props.node || this.defaultNode);\n }\n }]);\n\n return Portal;\n}(React.Component);\n\nPortal.propTypes = {\n children: PropTypes.node.isRequired,\n node: PropTypes.any\n};\n\nexport default Portal;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// This file is a fallback for a consumer who is not yet on React 16\n// as createPortal was introduced in React 16\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\n\nvar Portal = function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n\n _createClass(Portal, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.renderPortal();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(props) {\n this.renderPortal();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n ReactDOM.unmountComponentAtNode(this.defaultNode || this.props.node);\n if (this.defaultNode) {\n document.body.removeChild(this.defaultNode);\n }\n this.defaultNode = null;\n this.portal = null;\n }\n }, {\n key: 'renderPortal',\n value: function renderPortal(props) {\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement('div');\n document.body.appendChild(this.defaultNode);\n }\n\n var children = this.props.children;\n // https://gist.github.com/jimfb/d99e0678e9da715ccf6454961ef04d1b\n if (typeof this.props.children.type === 'function') {\n children = React.cloneElement(this.props.children);\n }\n\n this.portal = ReactDOM.unstable_renderSubtreeIntoContainer(this, children, this.props.node || this.defaultNode);\n }\n }, {\n key: 'render',\n value: function render() {\n return null;\n }\n }]);\n\n return Portal;\n}(React.Component);\n\nexport default Portal;\n\n\nPortal.propTypes = {\n children: PropTypes.node.isRequired,\n node: PropTypes.any\n};","import ReactDOM from 'react-dom';\n\nimport Portalv4 from './Portal';\nimport LegacyPortal from './LegacyPortal';\n\nvar Portal = void 0;\n\nif (ReactDOM.createPortal) {\n Portal = Portalv4;\n} else {\n Portal = LegacyPortal;\n}\n\nexport default Portal;","import React, { Component } from 'react';\nimport AppStore from '../../stores/AppStore';\nimport _get from 'lodash/get';\nimport { getPaymentCardNetwork } from '../../utility/card-utils';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport { StyleSheet, css } from 'aphrodite';\nimport _isEmpty from 'lodash/isEmpty';\nimport { hideSpinnerOverlay } from '../../utility/helper';\nimport { appendCdnHostName } from '../../utility/geoUtils';\n\nlet threeDSText = localsMessages('common/threeDSecure');\n\nconst LOADING_GIF_SOURCE = appendCdnHostName(\n '/ui-web/money-icons/partnerships/mbLoader_256_sm.gif'\n);\n\nconst STYLES = StyleSheet.create({\n spinnerAlign: {\n margin: '30px auto 30px',\n },\n cardImg: {\n marginTop: '24px',\n },\n});\n\nclass ThreeDSSpinner extends Component {\n constructor(props) {\n super(props);\n this.state = {\n cardImg: null,\n network: null,\n };\n }\n\n setNetworkDetails = () => {\n const fundingOptions = AppStore.getFundingOptions();\n let cardImg = _get(\n fundingOptions,\n 'sources[0].payment_card.issuer.thumbnail_logo_url'\n );\n let network = getPaymentCardNetwork(\n _get(fundingOptions, 'sources[0].payment_card')\n );\n let myData = AppStore.getAllData() || {};\n if (\n cardImg === null ||\n _isEmpty(cardImg) ||\n typeof cardImg === 'undefined'\n ) {\n const cardType = _get(myData, 'cardSpec.cardSpec.type', '')\n .replace(/[.,_]|\\s\\(.*\\)/g, '')\n .replace(/[\\s_]/g, '-')\n .toLowerCase();\n cardImg = appendCdnHostName(\n `/digitalassets/c/consumer/p2p/funding-sources/${cardType}.png`\n );\n }\n if (\n network === null ||\n _isEmpty(network) ||\n typeof network === 'undefined'\n ) {\n network = myData.cardSpec.cardSpec.type.replace(/[_]/g, ' ');\n }\n this.setState({ cardImg, network });\n };\n\n componentDidMount() {\n // Hide the donate spinner in the background\n // to prevent double spinners\n hideSpinnerOverlay();\n this.setNetworkDetails();\n }\n\n render() {\n let confirmingWithText = _get(\n threeDSText,\n 'confirmingWith',\n \"We're confirming your info with {network}\"\n );\n const confirmingWith = confirmingWithText.replace(\n new RegExp('{network}', 'g'),\n this.state.network\n );\n\n return (\n
\n
\n
\n {/*
*/}\n
\n \n
\n

{confirmingWith}

\n
\n {this.state.cardImg ? (\n \"Card\n ) : (\n ''\n )}\n
\n

\n
\n
\n
\n );\n }\n}\n\nexport default ThreeDSSpinner;\n","import React, { Component } from 'react';\nimport AppStore from '../../stores/AppStore';\nimport { withRouter } from 'react-router-dom';\nimport PropTypes from 'prop-types';\nimport _get from 'lodash/get';\nimport _find from 'lodash/find';\n\nclass ThreeDSDeviceDataCollection extends Component {\n static propTypes = {\n onThreeDSDDCComplete: PropTypes.func,\n };\n\n getThreeDSParams() {\n const fundingOptions = AppStore.getFundingOptions();\n const contingencies = _get(fundingOptions, 'contingencies') || [];\n const threeDSContingency =\n _find(contingencies, { action: '3D_SECURE_DATA_COLLECTION_REQUIRED' }) ||\n {};\n\n return threeDSContingency;\n }\n\n componentDidMount() {\n // 'message' is passed after 3DS Submit is completed\n window.addEventListener('message', this.handleDDCEvent);\n\n const { three_ds_reference_id: threeDS2ReferenceId } =\n this.getThreeDSParams();\n\n if (this.refs[threeDS2ReferenceId]) {\n try {\n this.refs[threeDS2ReferenceId].submit();\n } catch (e) {\n console.log('e ', e);\n }\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('message', this.handleDDCEvent);\n }\n\n handleDDCEvent = (event) => {\n const eventOrigin = _get(event, 'origin', '');\n if (eventOrigin.includes('cardinalcommerce.com')) {\n let data = null;\n try {\n data = JSON.parse(event.data);\n } catch (exception) {\n // Error handler incase parsing goes wrong\n data = {};\n }\n if (_get(data, 'MessageType', '') === 'profile.completed') {\n this.onDDCComplete(event);\n }\n }\n };\n\n onDDCComplete = (event) => {\n this.props.onThreeDSDDCComplete(event);\n };\n\n render() {\n const {\n device_data_collection_url: deviceDataCollectionUrl,\n jwt,\n three_ds_reference_id: threeDS2ReferenceId,\n } = this.getThreeDSParams();\n\n if (!deviceDataCollectionUrl) {\n return null;\n }\n\n return (\n
\n \n
\n \n );\n };\n\n render() {\n return (\n \n {this.getModalBody()}\n \n );\n }\n}\n\nThreeDSIframe.propTypes = {\n onStepUpAuthComplete: PropTypes.func,\n icon: PropTypes.string,\n hideModal: PropTypes.func,\n isOpen: PropTypes.bool,\n onClose: PropTypes.func,\n};\nexport default ThreeDSIframe;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { Portal } from 'react-portal';\nimport ThreeDSSpinner from './ThreeDSSpinner';\nimport ThreeDSDeviceDataCollection from './ThreeDSDeviceDataCollection';\nimport ThreeDSIframe from './ThreeDSIframe';\nimport * as AppActions from '../../actions/AppActions';\nimport _get from 'lodash/get';\nimport { fetcher } from '../../utility/domUtils';\nimport { updateGlobalRespDuration } from '../../fpti/helper';\nimport { FPTI_TAGS } from '../../fpti/fptiConstants';\n\nclass ThreeDSContainer extends Component {\n constructor(props) {\n super(props);\n this.state = {\n showThreeDSIframe: false,\n showThreeDSSpinner: false,\n showThreeDSDeviceDataCollection: false,\n threeDSDCCStartTime: null,\n };\n }\n\n componentDidMount() {\n this.props.onRef(this);\n }\n\n componentWillUnmount() {\n this.props.onRef(undefined);\n }\n\n initializeThreeDS() {\n let startTime = new Date().getTime();\n this.setState({\n showThreeDSDeviceDataCollection: true,\n showThreeDSSpinner: true,\n threeDSDCCStartTime: startTime,\n });\n\n updateGlobalRespDuration({\n [FPTI_TAGS.THREE_DS_DCC_START_TIME]: startTime,\n [FPTI_TAGS.THREE_DS_SPINNER_START_TIME]: startTime,\n });\n }\n\n handleThreeDSDDCComplete = () => {\n this.setState({\n showThreeDSDeviceDataCollection: false,\n });\n\n const threeDSDCCEndTime = new Date().getTime();\n updateGlobalRespDuration({\n [FPTI_TAGS.THREE_DS_DCC_START_TIME]: this.state.threeDSDCCStartTime,\n [FPTI_TAGS.THREE_DS_DCC_END_TIME]: threeDSDCCEndTime,\n [FPTI_TAGS.THREE_DS_SPINNER_START_TIME]: this.state.threeDSDCCStartTime,\n [FPTI_TAGS.THREE_DS_SPINNER_END_TIME]: threeDSDCCEndTime,\n });\n\n this.resolveThreeDSContingency();\n };\n\n resolveThreeDSContingency = () => {\n const lookup_start_time = new Date().getTime();\n\n fetcher('/donate/guest/resolve-threeds-contingency', {\n method: 'POST',\n })\n .then((response) => response.json())\n .then((result) => {\n updateGlobalRespDuration({\n [FPTI_TAGS.THREE_DS_LOOKUP_START_TIME]: lookup_start_time,\n [FPTI_TAGS.THREE_DS_LOOKUP_END_TIME]: new Date().getTime(),\n });\n\n const threeDSContingency = _get(result, 'data.threeDSContingency');\n\n this.hideThreeDSSpinner();\n if (_get(threeDSContingency, 'threeDSContingencyResolved')) {\n // 3DS Contingency resolved without StepUp Auth\n this.props.onThreeDSStepUpAuthNotRequired();\n\n return;\n }\n // Save threeDS data and show 3DS iframe\n AppActions.updateThreeDSData(threeDSContingency);\n this.showThreeDSIframe();\n })\n .catch((e) => {\n // Clear 3DS data\n AppActions.updateThreeDSData({});\n this.hideThreeDSIframe();\n this.props.onThreeDSFailure();\n });\n };\n\n handleThreeDSStepUpAuthComplete = ({ confirmationStatus = false, error }) => {\n if (confirmationStatus && confirmationStatus === 'threeDS-success') {\n this.props.onThreeDSStepUpAuthSuccess();\n } else {\n this.props.onThreeDSStepUpAuthFailure();\n return;\n }\n };\n\n showThreeDSIframe = () => {\n this.setState({\n showThreeDSIframe: true,\n });\n };\n\n hideThreeDSIframe = () => {\n this.setState({\n showThreeDSIframe: false,\n });\n };\n\n showThreeDSSpinner = () => {\n this.setState({\n showThreeDSSpinner: true,\n });\n };\n hideThreeDSSpinner = () => {\n this.setState({\n showThreeDSSpinner: false,\n });\n };\n\n render() {\n return (\n
\n {this.state.showThreeDSSpinner && (\n \n \n \n )}\n\n {this.state.showThreeDSDeviceDataCollection && (\n \n )}\n\n {this.state.showThreeDSIframe && (\n \n )}\n
\n );\n }\n}\n\nThreeDSContainer.propTypes = {\n onThreeDSStepUpAuthNotRequired: PropTypes.func,\n onThreeDSStepUpAuthSuccess: PropTypes.func,\n onThreeDSStepUpAuthFailure: PropTypes.func,\n onThreeDSFailure: PropTypes.func,\n onRef: PropTypes.func,\n toggleSpinner: PropTypes.func,\n};\n\nexport default ThreeDSContainer;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import React, { Component } from 'react';\nimport templateData, { localsMessages } from '../../utility/getTemplateData';\nimport {\n handleGuestCountryChange,\n hideSpinnerOverlay,\n showSpinnerOverlay,\n} from '../../utility/helper';\nimport * as DonateAppActions from '../../actions/AppActions';\nimport { getInitialData } from '../../utility/formator';\nimport AppStore from '../../stores/AppStore';\nimport { getParametersFromUrl } from '../../utility/queryStringHelper';\nimport PropTypes from 'prop-types';\nimport { startCustomCPLTrackingForConfirmationPage } from '../../utility/cpl';\nimport {\n fetcher,\n scrollElementIntoView,\n objectOrArrayToQueryString,\n} from '../../utility/domUtils';\nimport isEmpty from 'lodash/isEmpty';\nimport { trackLinkClick } from '../../fpti/fpti';\nimport { FPTI_TAGS, LINK_NAME } from '../../fpti/fptiConstants';\n\nconst initialData = getInitialData();\nconst serviceErrorMessages = localsMessages('errors/service');\n\nconst ERROR_ELEMENT_SELECTOR = [\n '.vx_has-error-with-message',\n '.service_error_holder',\n].join();\n\nfunction withDonate(WrappedComponent) {\n return class extends Component {\n static propTypes = {\n history: PropTypes.object,\n };\n\n constructor(props) {\n super(props);\n this.country = initialData.selectedCountry;\n }\n\n handleCountryChange = (country) => {\n if (country !== this.country) {\n this.toggleSpinner(true);\n DonateAppActions.changeCountry({\n country: country,\n });\n this.country = country;\n\n // Beacons for country change\n trackLinkClick(LINK_NAME.CHANGE_COUNTRY, {\n additionalData: {\n [FPTI_TAGS.COUNTRY]: country,\n },\n });\n\n let { token, signUp = false } = templateData;\n let url = signUp\n ? `/donate?token=${token}&signup=true&country.x=${country}&locale.x=${country}`\n : `/donate?token=${token}&country.x=${country}&locale.x=${country}&countryChange=true&clientState=/donate/guest?token=${token}`;\n\n handleGuestCountryChange(url);\n }\n };\n\n /*\n * showing and hiding spinner\n */\n toggleSpinner = (isSpinner = false) => {\n if (isSpinner) {\n showSpinnerOverlay();\n } else {\n hideSpinnerOverlay();\n }\n };\n\n // handles scrolling screen to the error\n handleScrollToError = () => {\n scrollElementIntoView(ERROR_ELEMENT_SELECTOR);\n return;\n };\n\n getDonateGuestUrl = () => {\n const { token, country, language } = templateData;\n\n let url = `/donate/guest?token=${token}`;\n if (country) {\n url = url + `&country.x=${country}`;\n }\n\n if (country && language) {\n url = url + `&locale.x=${country}_${language}`;\n }\n\n return url;\n };\n\n getFormData() {\n return AppStore.getFormData();\n }\n\n saveFormData(formData) {\n DonateAppActions.saveFormData(formData);\n }\n\n showErrorOnLoad() {\n const url = window.location.href;\n let params = getParametersFromUrl(url);\n\n if (params.showErrorOnLoad) {\n if (params.showErrorOnLoad === 'fulfillment') {\n // TODO: update error code to the actual fullfilment error code\n let errorCode = 'WSM_TRANSACTION_FAILED_DUE_TO_INVALID_CARD_DATA';\n let errorMsgs = [\n {\n key: 0,\n value: serviceErrorMessages[errorCode],\n },\n ];\n\n // adding delay to wait for the dispatcher to get registered in ServerErrors\n setTimeout(\n () =>\n DonateAppActions.updateServerErrors({ serverErrors: errorMsgs }),\n 250\n );\n }\n // delete params.showErrorOnLoad;\n\n // const query = $.param(params);\n // const cleanedUrl = `/donate/guest/?${query}`;\n // window.history.replaceState({}, document.title, cleanedUrl);\n }\n }\n\n doFulfilment = (params = {}) => {\n const { securityCode } = params;\n this.toggleSpinner(true);\n\n fetcher('/donate/guest/fullfilment', {\n method: 'POST',\n body: JSON.stringify({\n note: AppStore.getDonationNote(),\n fundingOptionId: AppStore.getFundingOptions().id,\n email: AppStore.getEmail(),\n billingAddress: AppStore.getBillingAddress(),\n giftAidItFlag: AppStore.getGiftaidItFlagStatus() || false,\n card: { securityCode },\n }),\n })\n .then((response) => response.json())\n .then((result) => {\n if (result.code === 'WSM_PAYMENT_DENIED') {\n this.toggleSpinner(false);\n this.props.history.push('/donate/error/payment');\n return;\n } else if (result.status === 'redirect') {\n this.toggleSpinner(false);\n window.location.href = result.url;\n return;\n } else if (\n result.code === 'WSM_TRANSACTION_FAILED_DUE_TO_INVALID_CARD_DATA'\n ) {\n // fulfillment error\n const { token, country } = templateData;\n\n let clientState = encodeURIComponent(\n `/donate/guest?token=${token}&showErrorOnLoad=fulfillment`\n );\n window.location.href = `/donate?token=${token}&country.x=${country}&locale.x=${country}&clientState=${clientState}`;\n return;\n } else if (result.data && result.data.confirmationData) {\n startCustomCPLTrackingForConfirmationPage();\n this.toggleSpinner(false);\n const { token } = templateData;\n const queryParams = objectOrArrayToQueryString({ token });\n let confirmationData = result.data.confirmationData || {};\n DonateAppActions.updateConfirmation({\n confirmation: confirmationData,\n });\n if (confirmationData.isOfacPending) {\n this.props.history.push(`/donate/guest/pending?${queryParams}`);\n } else {\n this.props.history.push(\n `/donate/guest/confirmation?${queryParams}`\n );\n }\n } else {\n this.toggleSpinner(false);\n this.props.history.push('/donate/error/payment');\n }\n })\n .catch(() => {\n this.toggleSpinner(false);\n this.props.history.push('/donate/error/payment');\n });\n };\n\n createOrder = (params) => {\n const token = templateData.token;\n\n fetcher(`/donate/orders?dtoken=${token}`, {\n method: 'POST',\n body: JSON.stringify(params),\n })\n .then((response) => response.json())\n .then((result) => {\n console.log('result ', result);\n\n if (!isEmpty(result.cartUrl)) {\n window.location.href = result.cartUrl;\n } else {\n this.props.history.push('/donate/error/payment');\n }\n })\n .catch(() => {\n this.toggleSpinner(false);\n this.props.history.push('/donate/error/payment');\n });\n };\n\n captureOrder = (orderToken, donateToken, payerID) => {\n return fetcher(\n `/donate/orders/${orderToken}/capture?dtoken=${donateToken}&PayerID=${payerID}`,\n {\n method: 'POST',\n }\n );\n };\n\n render() {\n return (\n \n );\n }\n };\n}\n\nexport default withDonate;\n","/**\n * Card Utilities\n * For use with linking a card\n *\n * - get card type [visa, mastercard, amex, discover, maestro, unionpay] based on the card number\n */\nimport { localsMessages } from './getTemplateData';\nimport _get from 'lodash/get';\n\nconst fundingTypes = localsMessages('common/fundingTypes');\n\nexport const defaultCardSpec = {\n type: 'card',\n fields: {\n ccNumber: {\n required: true,\n pattern: '4[0-9]{12}(?:[0-9]{3})?',\n maxlength: 19,\n },\n expirationDate: {\n required: true,\n pattern: '(0[1-9]|1[012])[/]((20)[0-9]{2}|[0-9]{2})',\n maxlength: 7,\n },\n csc: {\n required: true,\n pattern: '[0-9]*',\n maxlength: 3,\n minlength: 3,\n },\n },\n};\n\n/**\n * Get the card type based on the card number\n * @param {Object} cardSpecs - the card specifications based on user's locale\n * @param {String} cardNumber - the valid card number (numbers only)\n * @return {Object} cardType - the card type specs for a specific card\n */\nexport function getSpecificCardSpec({ cardTypes }, cardNumber) {\n cardNumber = cardNumber.replace(/\\D+/g, '');\n\n for (let card in cardTypes) {\n let cardSpec = cardTypes[card];\n if (\n new RegExp(`^${cardSpec.fields.ccNumber.autodetect}$`).test(cardNumber)\n ) {\n return cardSpec;\n }\n }\n return defaultCardSpec;\n}\n\nconst PAYMENT_CARDS = {\n VISA: 'VISA',\n MASTERCARD: 'MASTERCARD',\n MASTER_CARD: 'MASTER_CARD',\n MAESTRO: 'MAESTRO',\n AMEX: 'AMEX',\n DISCOVER: 'DISCOVER',\n JCB: 'JCB',\n CHINA_UNION_PAY: 'CHINA_UNION_PAY',\n};\n\nexport function getPaymentCardNetwork(source) {\n switch (source.network) {\n case PAYMENT_CARDS.VISA:\n return _get(fundingTypes, 'fundingType.visa');\n case PAYMENT_CARDS.MASTERCARD:\n case PAYMENT_CARDS.MASTER_CARD:\n return _get(fundingTypes, 'fundingType.mastercard');\n case PAYMENT_CARDS.MAESTRO:\n return _get(fundingTypes, 'fundingType.maestro');\n case PAYMENT_CARDS.AMEX:\n return _get(fundingTypes, 'fundingType.amex');\n case PAYMENT_CARDS.DISCOVER:\n return _get(fundingTypes, 'fundingType.discover');\n case PAYMENT_CARDS.CHINA_UNION_PAY:\n return _get(fundingTypes, 'fundingType.china_union_pay');\n default:\n return source.network;\n }\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Icon } from '@paypalcorp/pp-react';\n\nexport default function NoteFieldError(props) {\n const errorText = props.errorText;\n\n if (!errorText) {\n return null;\n }\n return (\n
\n \n \n \n {errorText}\n \n \n
\n );\n}\n\nNoteFieldError.propTypes = {\n errorText: PropTypes.string,\n};\n","import React, { useState, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport templateData, { localsMessages } from '../utility/getTemplateData';\nimport * as AppActions from '../actions/AppActions';\nimport AppStore from '../stores/AppStore';\nimport { addClass, removeClass } from '../utility/domUtils';\nimport { isExternalFlow } from '../utility/externalIntegrationUtils';\nimport isEmpty from 'lodash/isEmpty';\nimport { EVENT_NAME } from '../utility/constants';\nimport { IconButton, TextArea, Divider } from '@paypalcorp/pp-react';\nimport NoteFieldError from './NoteFieldError';\nimport { trackLinkClick } from '../fpti/fpti';\nimport { LINK_NAME } from '../fpti/fptiConstants';\n\nlet messages = localsMessages('common/note');\nconst MAX_CHAR_LIMIT = 250;\n\nfunction NoteComponent(props) {\n let { label = '', error: { lengthLimit = '' } = {} } = messages.note;\n\n let providedLabel = label;\n if (templateData.charityNoteEnabled && templateData.charityNoteLabel) {\n providedLabel = templateData.charityNoteLabel;\n }\n\n if (props.label) {\n providedLabel = props.label;\n }\n\n const [donationNote, setDonationNote] = useState(\n AppStore.getDonationNote() || templateData.donationNote || ''\n );\n const initialNoteLabel = isEmpty(donationNote) ? providedLabel : donationNote;\n\n const [showLabel, setShowLabel] = useState(true);\n const [showError, setShowError] = useState(false);\n const [noteLabel, setNoteLabel] = useState(initialNoteLabel);\n const textAreaEl = useRef(null);\n\n useEffect(() => {\n if (!showLabel && !isEmpty(textAreaEl)) {\n textAreaEl.current.focus();\n }\n }, [showLabel]);\n\n useEffect(() => {\n if (props.isNotePreview) {\n setNoteLabel(initialNoteLabel);\n }\n }, [initialNoteLabel]);\n\n const directionality = templateData.contextLocalityDir;\n\n const handleClick = () => {\n trackLinkClick(LINK_NAME.NOTE_PAD, {\n eventName: isExternalFlow()\n ? EVENT_NAME.DW_GIVING_DONATE_SETUP_COMMENT_PRESSED\n : '',\n });\n setShowLabel(false);\n };\n\n const handleBlur = (event) => {\n const note = event.target.value;\n\n // Remove all whitespaces\n if (!isEmpty(note) && !isEmpty(note.trim())) {\n AppActions.changeNote({ note });\n setNoteLabel(note);\n } else {\n AppActions.changeNote({ note: '' });\n setNoteLabel(providedLabel);\n }\n setShowLabel(true);\n };\n\n const showNoteFieldError = () => {\n setShowError(true);\n };\n\n const hideNoteFieldError = () => {\n setShowError(false);\n };\n\n const handleOnChange = (event) => {\n const value = event.target.value;\n setDonationNote(value);\n\n if (value && value.length >= MAX_CHAR_LIMIT) {\n addClass('.note_wrap', ['animated', 'shake']);\n setTimeout(() => {\n removeClass('.note_wrap', ['animated', 'shake']);\n }, 1000);\n showNoteFieldError();\n } else {\n hideNoteFieldError();\n }\n };\n\n return (\n
\n \n {showLabel ? (\n \n ) : (\n
\n \n
\n )}\n\n {showError && showLabel && }\n
\n {isExternalFlow() && }\n \n );\n}\n\nNoteComponent.propTypes = {\n label: PropTypes.string,\n isNotePreview: PropTypes.bool,\n};\n\nexport default NoteComponent;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { Icon } from '@paypalcorp/pp-react-icons';\nimport { grey700 } from '@paypalcorp/pp-react-colors';\nimport { trackErrorIM } from '../../fpti/fpti';\n\nconst STYLES = {\n error: {\n color: grey700,\n fontSize: '13px',\n },\n criticalIcon: {\n color: '#D20000',\n position: 'relative',\n fontSize: 'unset',\n marginRight: '5px',\n },\n};\n\n/**\n * Component for displaying amount validation error message\n */\nclass AmountValidationError extends Component {\n componentDidMount() {\n const { errorSourceField, errorString, errorCode } = this.props;\n\n trackErrorIM({\n errorCode: errorCode || 'DONATION_AMOUNT_VALIDATION_ERROR',\n errorMessage: errorString,\n fieldName: errorSourceField,\n });\n }\n render() {\n const { errorString } = this.props;\n\n if (!errorString) {\n return null;\n }\n\n return (\n \n \n \n {errorString}\n \n \n );\n }\n}\n\nAmountValidationError.propTypes = {\n errorString: PropTypes.string,\n errorSourceField: PropTypes.string,\n errorCode: PropTypes.string,\n donationAmount: PropTypes.string,\n};\n\nexport default AmountValidationError;\n","function setDonateLoaded() {\n document.getElementsByTagName('body')[0].setAttribute('donate-loaded', true);\n}\n\nsetDonateLoaded();\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { localsMessages } from '../utility/getTemplateData';\nimport { Button } from '@paypalcorp/pp-react';\nconst messages = localsMessages('common/nextButton');\n\nclass NextButtonComponent extends React.Component {\n render() {\n const buttonnext = messages.button && messages.button.next;\n\n return (\n
\n \n {buttonnext}\n \n
\n );\n }\n}\n\nNextButtonComponent.propTypes = {\n label: PropTypes.string,\n disabled: PropTypes.bool,\n handleNext: PropTypes.func,\n};\n\nexport default NextButtonComponent;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport { Button } from '@paypalcorp/pp-react';\nconst messages = localsMessages('common/oneTouch');\n\nclass OneTouchNextButton extends React.Component {\n render() {\n const buttonnext = messages.button && messages.button.next;\n\n return (\n
\n \n {buttonnext}\n \n
\n );\n }\n}\n\nOneTouchNextButton.propTypes = {\n label: PropTypes.string,\n disabled: PropTypes.bool,\n handleNext: PropTypes.func,\n};\n\nexport default OneTouchNextButton;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { localsMessages } from '../utility/getTemplateData';\nimport { Button } from '@paypalcorp/pp-react';\nconst messages = localsMessages('guest/guestButton');\n\nclass GuestButton extends React.Component {\n render() {\n const { label: { debitorcredit = '' } = {} } = messages;\n return (\n
\n \n {debitorcredit}\n \n
\n );\n }\n}\n\nGuestButton.propTypes = {\n label: PropTypes.string,\n disabled: PropTypes.bool,\n handleGuest: PropTypes.func,\n};\n\nexport default GuestButton;\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport { DropdownMenu } from '@paypalcorp/pp-react-dropdown-menu';\nimport * as AppActions from '../../actions/AppActions';\nimport appStore from '../../stores/AppStore';\nimport { trackLinkClick } from '../../fpti/fpti';\nimport { FPTI_TAGS, LINK_NAME } from '../../fpti/fptiConstants';\nconst messages = localsMessages('common/programs');\n\nconst Programs = ({ programNames, isDisabled }) => {\n const [selectedIdx, handleSelect] = useState(0);\n\n const getProgramOptions = () => {\n const options = [];\n programNames.forEach((programName) => {\n options.push({\n primaryText: programName,\n });\n });\n\n return options;\n };\n\n const updateProgramId = (index) => {\n handleSelect(index);\n const selectedProgram = index === -1 ? '' : programNames[index];\n AppActions.updateSelectedProgram(selectedProgram);\n trackLinkClick(LINK_NAME.PROGRAM_SELECTED, {\n additionalData: {\n [FPTI_TAGS.CAMPAIGN]: selectedProgram,\n },\n });\n };\n\n useEffect(() => {\n let programOption = getProgramOptions().findIndex(\n (program) => program.primaryText === appStore.getSelectedProgram()\n );\n programOption = programOption === -1 ? 0 : programOption;\n handleSelect(programOption);\n AppActions.updateSelectedProgram(programNames[programOption]);\n }, []);\n\n return (\n \n );\n};\n\nPrograms.propTypes = {\n programNames: PropTypes.array,\n isDisabled: PropTypes.bool,\n};\n\nexport default Programs;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Programs from './Programs';\n\nclass ProgramsContainer extends Component {\n static propTypes = {\n programNames: PropTypes.array,\n };\n\n render() {\n return (\n
\n
\n \n
\n
\n );\n }\n}\nexport default ProgramsContainer;\n","import React, { Component } from 'react';\nimport { Button, Modal, HeadingText, BodyText } from '@paypalcorp/pp-react';\nimport TemplateData, { localsMessages } from '../../utility/getTemplateData';\nimport PropTypes from 'prop-types';\nimport { appendCdnHostName } from '../../utility/geoUtils';\nimport { sanitizeOrgName } from '../../utility/domUtils';\nlet texts = localsMessages('common/recurring-checkbox');\n\nconst orgname = TemplateData.donationName ? TemplateData.donationName : '';\n\nexport class RecurringOverlay extends Component {\n handleClose = () => {\n this.props.closeRecurringOverlay();\n };\n\n noThanks_closeModal = (event) => {\n this.props.onMakeOneTimeDonation();\n };\n\n onContinue = (event) => {\n this.props.onContinue();\n };\n\n render() {\n let {\n rp: {\n signupHeader,\n dialogp1,\n dialogp2,\n dialogp3,\n continueBtn,\n noThanksBtn,\n } = {},\n } = texts || {};\n\n dialogp1 =\n dialogp1 && dialogp1.replace('{orgName}', sanitizeOrgName(orgname));\n\n return (\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n {signupHeader}\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n {dialogp1}\n
\n
\n
\n {dialogp2}\n
\n
\n
\n {dialogp3}\n
\n
\n
\n
\n\n
\n
\n
\n \n
\n
\n\n
\n
\n \n {noThanksBtn}\n \n
\n
\n
\n
\n
\n \n );\n }\n}\n\nRecurringOverlay.propTypes = {\n closeRecurringOverlay: PropTypes.func,\n onMakeOneTimeDonation: PropTypes.func,\n onContinue: PropTypes.func,\n isOpen: PropTypes.bool,\n};\n\nexport default RecurringOverlay;\n","import React from 'react';\nimport { CaptionText } from '@paypalcorp/pp-react';\nimport { StyleSheet, css } from 'aphrodite';\nimport { localsMessages } from '../utility/getTemplateData';\n\nconst messages = localsMessages('buttons/partner') || {};\n\nconst styles = StyleSheet.create({\n disclaimerWrapper: {\n maxWidth: 350,\n margin: 'auto',\n '.ppvx_accordion__row': { border: 'none' },\n },\n disclaimer: {\n margin: 'auto',\n },\n disclaimerCaptionText: {\n marginTop: 12,\n color: '#687173',\n textAlign: 'center',\n },\n});\n\nexport default function NotTaxDeductibleLegalText() {\n return (\n
\n \n {messages.landing.mayNotBeTaxDeductible}\n \n
\n );\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as AppActions from '../../actions/AppActions';\nimport getContent from 'pp-react-l10n';\nimport { Checkbox } from '@paypalcorp/pp-react';\n\nconst CoverFeeCheckbox = ({\n handleCoverFeeChange,\n optInStatus,\n formatedFeeAmount,\n isDisabled,\n}) => {\n const handleChange = (event) => {\n const isChecked = event.target.checked,\n checkboxStatus = isChecked ? 'checked' : 'unchecked';\n\n AppActions.changeCoverFee({\n coverFee: checkboxStatus,\n });\n\n handleCoverFeeChange(isChecked);\n };\n\n return (\n
\n \n
\n );\n};\n\nCoverFeeCheckbox.propTypes = {\n handleCoverFeeChange: PropTypes.func,\n optInStatus: PropTypes.bool,\n formatedFeeAmount: PropTypes.string,\n isDisabled: PropTypes.bool,\n};\n\nexport default CoverFeeCheckbox;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as AppActions from '../../actions/AppActions';\nimport { Checkbox, Tooltip } from '@paypalcorp/pp-react';\nimport { EVENT_NAME } from '../../utility/constants';\nimport { trackLinkClick } from '../../fpti/fpti';\nimport { LINK_NAME } from '../../fpti/fptiConstants';\n\nconst AnonymousCheckbox = ({\n content,\n optInStatus,\n handleAnonymousDonationChange,\n}) => {\n const handleChange = (event) => {\n const isChecked = event.target.checked,\n checkboxStatus = isChecked ? 'checked' : 'unchecked';\n\n AppActions.changeAnonymousStatus({\n anonymousStatus: checkboxStatus,\n });\n\n handleAnonymousDonationChange(isChecked);\n };\n\n const trackTooltipOpen = () => {\n trackLinkClick(LINK_NAME.ANONYMOUS_TOOLTIP, {\n eventName: EVENT_NAME.DW_GIVING_DONATE_SETUP_TOOLTIP_PRESSED,\n });\n };\n\n return (\n \n \n )\n }\n />\n \n );\n};\n\nAnonymousCheckbox.propTypes = {\n content: PropTypes.object,\n optInStatus: PropTypes.bool,\n handleAnonymousDonationChange: PropTypes.func,\n};\n\nexport default AnonymousCheckbox;\n","import React from 'react';\nimport '../../utility/csrf';\nimport AmountWrapper from '../../components/amountWrapper';\nimport NextButton from '../../components/nextButton';\nimport OneTouchNextButton from '../../components/landing/OneTouchNextButton';\nimport CancelAndReturn from '../../components/cancelAndReturn';\nimport GuestButton from '../../components/guestButton';\nimport RecurringCheckBox from '../../components/recurring-checkbox/recurring-checkbox';\nimport UserDetailsBanner from '../../components/onetouch/UserDetailsBanner';\nimport OfferDetail from '../../components/offerDetail';\nimport Disclaimer from '../../components/Disclaimer';\nimport VoucherFlowDisclaimer from '../../components/voucherFlowDisclaimer';\nimport CloseButton from '../../components/CloseButton';\nimport ReceiverEligibilityErrorTile from '../error/receiverEligibilityError';\nimport {\n isInContext,\n isMobileOrInContext,\n} from '../../utility/inContextDonation';\nimport DonateHeader from '../../components/common/DonateHeader';\n\nimport templateData from '../../utility/getTemplateData';\nimport {\n hasPersonalizedMessages,\n getPersonalizedMessages,\n} from '../../utility/personalizedMessages';\n\nimport AppStore from '../../stores/AppStore';\nimport * as AppActions from '../../actions/AppActions';\nimport AppDispatcher from '../../dispatcher/AppDispatcher';\nimport * as cpl from '../../utility/cpl';\nimport { GN_CONTENT_TOUCHPOINT } from '../../utility/constants';\n\nimport {\n handleLogIn,\n addShake,\n handleTokenReuse,\n hideSpinnerOverlay,\n getPPCCStatus,\n showSpinnerOverlay,\n} from '../../utility/helper';\nimport {\n isAuthenticatedUser,\n shouldShowUserBanner,\n isLoggedInUser,\n} from '../../utility/authUtils';\nimport * as amountUtils from '../../components/amount/amountUtils';\n\nimport { withRouter } from 'react-router-dom';\nimport {\n localsMessages,\n isOldButtonFactory,\n hasPartnerSource,\n} from '../../utility/getTemplateData';\nimport { loadBodyMovin } from '../../utility/lazyLoader';\nimport _isEmpty from 'lodash/isEmpty';\nimport ProgramsContainer from '../../components/programs/ProgramsContainer';\nimport RecurringOverlay from '../../components/recurring-checkbox/RecurringOverlay';\nimport _get from 'lodash/get';\nimport NotTaxDeductibleLegalText from '../../components/NotTaxDeductibleLegalText';\nimport { getParameterByName } from '../../utility/queryStringHelper';\nimport CoverFeeCheckbox from '../../components/coverFee/coverFeeCheckbox';\nimport {\n computeAmountAfterFee,\n isOptInCoverFee,\n restoreDonationAmount,\n updateDonationAmount,\n setFeeAmountInStore,\n} from '../../components/coverFee/feeUtils';\nimport withDonate from '../../components/guest/WithDonate';\nimport AnonymousCheckbox from '../../components/anonymousDonation/anonymousCheckbox';\nimport {\n getPersonalizedAnonymousContent,\n getPersonalizedNoteToPayeeLabel,\n isCheckoutRail,\n isExternalFlow,\n prepareOrderParams,\n} from '../../utility/externalIntegrationUtils';\nimport NoteComponent from '../../components/note';\nimport isEmpty from 'lodash/isEmpty';\nimport {\n trackAnonymousCheckboxClick,\n trackCoverFeeCheckboxClick,\n trackDonateWithCardClick,\n trackDonateWithPayPalClick,\n trackLandingPageIM,\n trackNextClickForCheckout,\n} from '../../fpti/fpti';\nimport { CPL_PAGE_SPEC } from '../../fpti/fptiConstants';\n\nconst messages = localsMessages('common/amount');\nconst errorMessages = localsMessages('errors/landingerror');\nconst MERCHANT_PPCC_CONFIRMED_STATUS = 'CONFIRMED';\n\nclass LandingPageComponent extends React.Component {\n constructor(props) {\n super(props);\n const optInStatus = AppStore.getCoverFeeOptInStatus();\n const anonymousStatusInStore = AppStore.getAnonymousStatus();\n const anonymousOptInStatus = !isEmpty(anonymousStatusInStore)\n ? anonymousStatusInStore === 'checked'\n : templateData.anonymousStatus || false;\n\n this.state = {\n hasLogo: templateData.hasLogo,\n subHeaderLabel: templateData.donationName,\n orgName: templateData.charityName,\n donationId: templateData.donationId,\n guestRedirectUrl: templateData.guestRedirectUrl,\n donateDisabled: false,\n recurringEnabled: templateData.recurringEnabled,\n recurringStatus: templateData.recurringStatus === 'checked',\n recurringHelpText: '',\n recurringLabel: 'Make this a monthly donation',\n rpContinue: false,\n isAuthenticated: isAuthenticatedUser(),\n memberMandatory: templateData.memberMandatory,\n programNames: templateData.donateContext.program_names,\n isRecurringOverlayOpen: false,\n isVoucherFlow: templateData.isVoucherFlow,\n offerProgram: templateData.offerProgram,\n coverFeeEnabled: templateData.coverFeeEnabled,\n coverFeeOptInStatus:\n optInStatus !== undefined\n ? optInStatus === 'checked'\n : templateData.feePayer === 'consumer',\n feeAmount: '',\n formatedFeeAmount: '',\n anonymousEnabled: templateData.anonymousEnabled,\n anonymousOptInStatus,\n hasDisclaimer: hasPersonalizedMessages(GN_CONTENT_TOUCHPOINT),\n };\n }\n\n getPPCCConfirmation() {\n return getPPCCStatus() === MERCHANT_PPCC_CONFIRMED_STATUS;\n }\n\n componentDidMount() {\n window.onload = function () {\n setTimeout(function () {\n cpl.logPerformance(CPL_PAGE_SPEC.LANDING_PAGE);\n }, 0);\n };\n\n AppActions.updateCurrentPage({ currentPage: 'landing' });\n\n // Do not hide spinner if coming to page with already completed payment token\n if (templateData.paymentStatus !== 'complete') {\n hideSpinnerOverlay();\n }\n\n // Checking for recurring status if coming from guest page\n if (AppStore.getDonationRecurring() === 'checked') {\n this.setState({ recurringStatus: true });\n }\n\n // Checking for cover fee preference if coming from guest page\n if (isOptInCoverFee()) {\n this.setState({ coverFeeOptInStatus: true });\n restoreDonationAmount();\n }\n\n setFeeAmountInStore();\n this.updateFeeAmount();\n\n trackLandingPageIM({ noteFieldDisplayed: this.shouldShowNote() });\n\n // Pre-load bodyMovin\n if (templateData.recurringEnabled) {\n loadBodyMovin();\n }\n\n if (!isLoggedInUser()) {\n AppActions.showLanguageSelector(true);\n }\n\n // Register for App Dispatcher Messages\n this.registerAppDispatcherMessages();\n }\n\n componentWillUnmount() {\n AppDispatcher.unregister(this.dispatcherMessages);\n }\n\n registerAppDispatcherMessages() {\n this.dispatcherMessages = AppDispatcher.register((payload) => {\n if (payload.action && payload.action.actionType === 'CHANGE_RECURRING') {\n const checked = _get(payload.action, 'item', 'unchecked');\n this.setState({\n recurringStatus: checked === 'checked',\n });\n }\n });\n }\n\n getFPTDATA = () => {\n return {\n amount: AppStore.getDonationAmount(),\n code: AppStore.getDonationCode(),\n symbol: AppStore.getDonationSymbol(),\n };\n };\n\n validateAmountAndNavigateToGuestPage = () => {\n let donationAmount = AppStore.getDonationAmount();\n\n if (amountUtils.isAmountGreaterThanZero(donationAmount)) {\n trackDonateWithCardClick({ noteFieldDisplayed: this.shouldShowNote() });\n this.props.history.push(`/donate/guest?token=${templateData.token}`);\n } else {\n addShake();\n }\n };\n\n handleGuest = (event) => {\n event.preventDefault();\n AppActions.changeRecurringModalStatus({\n recurringModalStatus: 'notclosed',\n });\n let donationAmount = this.getDonationAmount();\n if (!this.validateDonationAmount()) {\n return;\n }\n\n if (amountUtils.isAmountGreaterThanZero(donationAmount)) {\n const isRecurringChecked = this.state.recurringStatus;\n\n if (isRecurringChecked && !this.state.memberMandatory) {\n this.openRecurringOverlay();\n } else {\n this.validateAmountAndNavigateToGuestPage();\n }\n\n // Start CPL tracking to get measurements to load guest form\n window.PAYPAL.analytics.startCPLTracking({\n page: 'main:donate:wps:guest:guestform:guestFormComponent:web::',\n action: 'guest_form_loaded',\n uicomp: 'guestForm',\n uitype: 'component',\n });\n }\n };\n\n handleNext = (event) => {\n event.preventDefault();\n if (!this.validateDonationAmount()) {\n return;\n }\n\n let donationAmount = this.getDonationAmount();\n if (amountUtils.isAmountGreaterThanZero(donationAmount)) {\n trackDonateWithPayPalClick({ noteFieldDisplayed: this.shouldShowNote() });\n handleLogIn();\n }\n };\n\n handleNextForCheckout = (event) => {\n event.preventDefault();\n if (!this.validateDonationAmount()) {\n return;\n }\n\n trackNextClickForCheckout({ noteFieldDisplayed: this.shouldShowNote() });\n showSpinnerOverlay();\n const orderParams = prepareOrderParams();\n this.props.createOrder(orderParams);\n };\n\n getDonationAmount = () => {\n let donationAmount = AppStore.getDonationAmount();\n\n if (isOptInCoverFee()) {\n const feeAmount = AppStore.getFeeAmount();\n // backup user's original entered amount in store\n AppActions.changeAmountBeforeFee({ amountBeforeFee: donationAmount });\n\n if (feeAmount) {\n donationAmount = computeAmountAfterFee(donationAmount, feeAmount);\n updateDonationAmount(donationAmount);\n }\n }\n\n return donationAmount;\n };\n\n hideValidationError = () => {\n this.setState({\n showValidationError: false,\n });\n };\n\n validateDonationAmount = () => {\n let validationResult = amountUtils.validateMinimumDonationAmount(messages);\n if (validationResult?.showValidationError) {\n this.setState(validationResult);\n addShake();\n return false;\n }\n\n validationResult = amountUtils.validateMaximumDonationAmount();\n if (validationResult?.showValidationError) {\n this.setState(validationResult);\n addShake();\n return false;\n }\n\n this.setState(validationResult);\n return true;\n };\n\n handleAmountFocus = () => {\n if (this.state.showValidationError) {\n this.hideValidationError();\n }\n };\n\n updateConversionSataus = (status = false) => {\n this.setState({ donateDisabled: status });\n };\n\n handleRecurringChange = (status = false) => {\n this.setState({ recurringStatus: status });\n console.log('status ', status);\n };\n\n handleRecurringOverlayContinue = () => {\n this.setState({ rpContinue: true });\n this.validateAmountAndNavigateToGuestPage();\n };\n\n handleRecurringOverlayMakeOneTimeDonation = () => {\n AppActions.changeRecurring({\n recurring: 'unchecked',\n });\n this.validateAmountAndNavigateToGuestPage();\n };\n\n handleAnonymousDonationChange = (status = false) => {\n this.setState({ anonymousOptInStatus: status });\n trackAnonymousCheckboxClick(status);\n };\n\n handleCoverFeeChange = (status = false) => {\n this.setState({ coverFeeOptInStatus: status });\n trackCoverFeeCheckboxClick(status);\n };\n\n updateFeeAmount = () => {\n this.setState({\n feeAmount: AppStore.getFeeAmount(),\n formatedFeeAmount: AppStore.getFormatedFeeAmount(),\n });\n };\n\n openRecurringOverlay = () => {\n this.setState({\n isRecurringOverlayOpen: true,\n });\n };\n\n closeRecurringOverlay = () => {\n this.setState({\n isRecurringOverlayOpen: false,\n });\n };\n\n renderProgramsDropdown = () => {\n if (isOldButtonFactory() || _isEmpty(this.state.programNames)) {\n return null;\n }\n\n return ;\n };\n\n renderDonateButtons = () => {\n if (isCheckoutRail()) {\n return (\n \n );\n }\n\n if (this.state.isAuthenticated) {\n return (\n \n );\n }\n\n return (\n
\n
\n \n
\n \n
\n );\n };\n\n /**\n * Should show note on landing page when charityNote is enabled\n * and recurring is disabled for 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 getPersonalizedContent = () => {\n if (isExternalFlow()) {\n const personalizedMessages = getPersonalizedMessages(\n GN_CONTENT_TOUCHPOINT\n );\n return personalizedMessages?.disclaimer;\n }\n };\n\n landingClass = () => {\n let className = '';\n if (templateData.bannerUrl) {\n className = 'gn_donate_wrapper ';\n } else {\n className = 'donate_wrapper ';\n }\n if (isInContext()) {\n className += 'context_gn_wrapper ';\n }\n if (shouldShowUserBanner()) {\n className += 'user-banner ';\n }\n if (isMobileOrInContext()) {\n className += 'mobile_view ';\n }\n\n return className;\n };\n\n render() {\n const showUserBanner = shouldShowUserBanner();\n\n if (!templateData.receiverCountryEligible) {\n return (\n \n \n \n );\n }\n\n return (\n
\n
\n {showUserBanner ? (\n \n ) : null}\n {isExternalFlow() && }\n \n
\n \n {this.renderProgramsDropdown()}\n {this.state.recurringEnabled && (\n \n )}\n {this.state.anonymousEnabled && (\n \n )}\n {this.shouldShowNote() && (\n \n )}\n {this.state.coverFeeEnabled && (\n \n )}\n {this.state.isVoucherFlow && (\n \n )}\n {this.renderDonateButtons()}\n {this.state.isVoucherFlow && }\n {hasPartnerSource() &&\n !this.getPPCCConfirmation() &&\n !this.state.isVoucherFlow && }\n \n {this.state.hasDisclaimer && (\n \n \n
\n )}\n
\n
\n \n \n );\n }\n}\n\nconst LandingPage = withRouter(withDonate(LandingPageComponent));\n\nclass Landing extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n displayLanding: !templateData.currentState,\n };\n }\n\n /**\n * For DIRECT(nonWebscr) and POST integrations, there will not be a token in the URL\n * This will break page refresh.\n * Hence adding token here\n */\n addTokenToUrlIfMissing() {\n const token = getParameterByName('token');\n const business = getParameterByName('business');\n const hostedButtonId = getParameterByName('hosted_button_id');\n\n if (!token && !business && !hostedButtonId) {\n this.props.history.replace({\n pathname: '/donate',\n search: `?token=${templateData.token}`,\n });\n }\n }\n\n componentDidMount() {\n if (!this.state.displayLanding) {\n this.props.history.push(templateData.currentState);\n } else {\n handleTokenReuse();\n }\n this.addTokenToUrlIfMissing();\n }\n\n render() {\n return
{this.state.displayLanding ? : null}
;\n }\n}\n\nexport default withRouter(Landing);\n","import React, { Component } from 'react';\nimport { StyleSheet, css } from '../../utility/paypalAphrodite';\nimport colors from '../../styles/colors';\nimport PropTypes from 'prop-types';\nimport { CURRENCY_CONVERSION_OPTIONS } from '../../pages/guest/crossBorder';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport { Icon, Modal, Container, CaptionText } from '@paypalcorp/pp-react';\nimport Illustration from '../illustrations/Illustration';\nimport { appendCdnHostName } from '../../utility/geoUtils';\nconst messages = localsMessages('guest/crossBorder');\n\nconst styles = StyleSheet.create({\n modal: {\n background: '#f4f6f9',\n height: '100%',\n },\n modalDialog: {\n background: 'white',\n height: '100%',\n marginTop: 0,\n marginBottom: 0,\n width: 696,\n '@media (max-width: 767px)': {\n width: '100%',\n },\n },\n // Currency Conversion\n modalTitle: {\n marginTop: 0,\n fontSize: 30,\n fontWeight: 300,\n marginBottom: 14,\n },\n optionTitle: {\n color: colors.linkBlue,\n fontSize: '15px',\n fontWeight: 500,\n lineHeight: 1.33,\n textAlign: 'center',\n },\n\n optionDetails: {\n textAlign: 'center',\n },\n bodyText: {\n fontSize: '15px',\n color: '#2c2e2f',\n margin: 0,\n },\n boldText: {\n fontWeight: 500,\n },\n icon: {\n height: 34,\n width: 34,\n },\n closeBtn: {\n fontSize: 32,\n color: '#444444',\n },\n iconCustom: {\n ':before': {\n fontSize: '4rem',\n },\n color: '#00c99c',\n },\n conversionOption: {\n opacity: 0,\n position: 'absolute',\n ':focus + label': {\n outline: [\n 'hsl(216, 91%, 69%) auto 5px',\n '-webkit-focus-ring-color auto 5px',\n ],\n },\n },\n});\n\nconst SuccessCheckmarkIcon = (props) => {\n return (\n
\n \n
\n );\n};\n\nconst CurrencyConversionOption = (props) => {\n return (\n
\n props.handleOptionSelection(props.type)}\n />\n
\n \n
\n \n );\n};\n\nCurrencyConversionOption.propTypes = {\n isSelected: PropTypes.bool,\n type: PropTypes.string,\n icon: PropTypes.string,\n illustration: PropTypes.string,\n title: PropTypes.string,\n rate: PropTypes.string,\n description: PropTypes.string,\n src: PropTypes.string,\n};\n\nclass CurrencyConversionModal extends Component {\n handleOptionSelection = (option) => {\n this.props.handleOptionSelection(option);\n };\n\n handleClose = () => {\n this.props.hideModal();\n };\n\n render() {\n const { label } = messages;\n const { selectedOption, exchangeRate } = this.props;\n const isPayPalSelected =\n selectedOption === CURRENCY_CONVERSION_OPTIONS.PAYPAL;\n\n return (\n \n
\n \n
\n
\n
\n

\n {label.modalTitle}\n

\n
\n
\n
\n
\n

\n {label.modalSubTitle}\n

\n
\n
\n
\n
\n \n \n
\n
\n
\n \n );\n }\n\n render2() {\n const { label } = messages;\n const { selectedOption, exchangeRate } = this.props;\n const isPayPalSelected =\n selectedOption === CURRENCY_CONVERSION_OPTIONS.PAYPAL;\n\n return (\n \n
\n
\n {this.renderCloseButton()}\n
\n\n
\n

\n {label.modalTitle}\n

\n

\n {label.modalSubTitle}\n

\n
\n\n
\n \n \n
\n
\n
\n
\n \n );\n }\n}\n\nCurrencyConversionModal.propTypes = {\n handleOptionSelection: PropTypes.func.isRequired,\n hideModal: PropTypes.func,\n selectedOption: PropTypes.string,\n exchangeRate: PropTypes.string,\n isOpen: PropTypes.bool,\n};\n\nexport default CurrencyConversionModal;\n","import React from 'react';\nimport CardSecurityCode from '../react-card-security-code';\nimport AppStore from '../stores/AppStore';\nimport * as AppActions from '../actions/AppActions';\nimport {\n localsMessages,\n guestLocalsMessages,\n} from '../utility/getTemplateData';\n\nconst guestMessages = guestLocalsMessages('guest/guestForm');\nconst errorMessages = localsMessages('errors/service');\n\nclass CVVComponent extends React.Component {\n constructor() {\n super();\n this.state = {\n securityCode: '',\n cardSpec: AppStore.getCardSpec().cardSpec,\n // cardSpec: {\n // \"name\": \"Visa\",\n // \"type\": \"visa\",\n // \"fields\": {\n // \"ccNumber\": {\n // \"required\": true,\n // \"editable\": false,\n // \"pattern\": \"[0-9]+\",\n // \"autodetect\": \"4[0-9]*\",\n // \"maxlength\": 16,\n // \"minlength\": 13\n // },\n // \"expirationDate\": {\n // \"required\": true,\n // \"pattern\": \"(0[1-9]|1[012])[/]((20)[0-9]{2}|[0-9]{2})\",\n // \"maxlength\": 7\n // },\n // \"csc\": {\n // \"required\": true,\n // \"pattern\": \"[0-9]{3}\",\n // \"maxlength\": 3,\n // \"minlength\": 3\n // }\n // },\n // \"logoUrl\": \"https://www.paypalobjects.com/en_US/i/logo/logo_ccVisa.gif\"\n // },\n errorMessageCSC: '',\n };\n }\n\n componentDidMount() {\n this.props.onRef(this);\n }\n\n componentWillUnmount() {\n this.props.onRef(undefined);\n }\n\n handleChangeSecurityCode(securityCode) {\n this.setState({ securityCode: securityCode });\n this.props.handleSecurityCodeChange(securityCode);\n }\n\n handleFieldFocus(fieldName) {\n this.setState({ [fieldName]: '' });\n }\n\n /*\n * Handle error message for selected field\n */\n handleFieldBlur(value, fieldName, fieldRequired, fieldInvalid) {\n let newErrorState = {};\n\n if (value) {\n newErrorState = {\n [fieldName]: this.validateInputValue(value, fieldName, fieldInvalid),\n };\n } else {\n newErrorState = { [fieldName]: errorMessages[fieldRequired] };\n }\n\n this.setState(newErrorState);\n }\n\n /*\n * Validate input\n */\n validateInputValue(value, fieldName, fieldInvalid) {\n let {\n cardSpec: {\n fields: { csc = {} },\n },\n } = this.state;\n\n if (fieldName === 'errorMessageCSC') {\n let cscLen = value && value.length;\n let cscMax = csc.maxlength;\n let cscMin = csc.minlength || cscMax;\n\n if (!(cscLen >= cscMin && cscLen <= cscMax)) {\n return errorMessages[fieldInvalid];\n }\n }\n\n return '';\n }\n\n render() {\n let { cscplaceholder, csc: cscLabel, cscnote } = guestMessages.guestLabels;\n cscnote = cscnote && cscnote.replace('{csc}', cscLabel.toLowerCase());\n\n return (\n
\n
\n \n this.handleChangeSecurityCode(value)\n }\n handleFocus={(value) => this.handleFieldFocus('errorMessageCSC')}\n handleBlur={(value) =>\n this.handleFieldBlur(\n value,\n 'errorMessageCSC',\n 'REQUIRED_SECURITY_CODE',\n 'INVALID_SECURITY_CODE'\n )\n }\n cardSpec={this.state.cardSpec}\n helperText={cscnote}\n />\n
\n
\n );\n }\n}\n\nexport default CVVComponent;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport AppStore from '../../stores/AppStore';\nimport * as AppActions from '../../actions/AppActions';\nimport TemplateData, {\n localsMessages,\n guestLocalsMessages,\n} from '../../utility/getTemplateData';\nimport { showSpinnerOverlay, hideSpinnerOverlay } from '../../utility/helper';\nimport SingleAmount from '../../components/amount/SingleAmount';\nimport CancelAndReturn from '../../components/cancelAndReturn';\nimport _get from 'lodash/get';\nimport _includes from 'lodash/includes';\nimport _isEmpty from 'lodash/isEmpty';\nimport _find from 'lodash/find';\nimport DonateGiftAid from '../../guest-payment-components/DonateGiftAid';\nimport CurrencyConversionModal from '../../components/currencyConversion/CurrencyConversionModal';\nimport {\n normalizeNumber,\n formatCurrencyAsString,\n exchangeRateDecimalPoints,\n} from '../../utility/formator';\nimport { withRouter } from 'react-router-dom';\nimport { StyleSheet, css } from '../../utility/paypalAphrodite';\nimport {\n setCountryAndLocale,\n parseErrorResponse,\n observeUntilEventObserved,\n} from '../../utility/helper';\nimport { fetcher } from '../../utility/domUtils';\nimport CVVComponent from '../../containers/cvv-component';\nimport withDonate from '../../components/guest/WithDonate';\nimport ThreeDSContainer from '../../components/threeDS/ThreeDSContainer';\nimport {\n Alert,\n Button,\n CaptionText,\n BodyText,\n grey600,\n} from '@paypalcorp/pp-react';\nimport getContent from 'pp-react-l10n';\nimport CloseButton from '../../components/CloseButton';\nimport BackButton from '../../components/BackButton';\nimport DonateHeader from '../../components/common/DonateHeader';\nimport { isExternalFlow } from '../../utility/externalIntegrationUtils';\nimport { isInContext } from '../../utility/inContextDonation';\nimport { trackErrorIM, trackLinkClick } from '../../fpti/fpti';\nimport { LINK_NAME, PAGE_SPEC } from '../../fpti/fptiConstants';\n\nlet giftAidText = localsMessages('common/giftAidIt');\nconst donateGiftPercentage = AppStore.getGiftAidItExtraAmount();\nlet giftAidTextObj = (giftAidText && giftAidText.giftAidIt) || {};\nlet { extraCost } = giftAidTextObj;\nconst guestMessages = guestLocalsMessages('guest/guestForm');\nconst messages = localsMessages('guest/crossBorder');\nconst errorMessages = localsMessages('errors/service');\n\nconst STYLES = StyleSheet.create({\n donateBtnContainer: {\n maxWidth: '360px',\n margin: '20px auto 0px',\n },\n donateBtn: {\n marginBottom: 0,\n },\n centralFormWrapper: {\n maxWidth: '500px',\n width: '100%',\n margin: '0 auto',\n padding: '0 18px',\n },\n donationSeparator: {\n marginBottom: '25px',\n },\n formTopLabelBold: {\n fontWeight: 'bold',\n marginTop: 31,\n fontSize: 15,\n },\n formLabelLeft: {\n width: '70%',\n fontSize: 15,\n textAlign: 'left',\n },\n formLabelRight: {\n width: '30%',\n fontSize: 15,\n textAlign: 'right',\n },\n formLabelLeftConv: {\n width: '70%',\n fontSize: 12,\n textAlign: 'left',\n },\n formLabelRightConv: {\n width: '30%',\n fontSize: 12,\n textAlign: 'right',\n },\n formLabelCenter: {\n width: '100%',\n marginTop: '10px',\n textAlign: 'center',\n },\n\n formLabelRateLeft: {\n width: '70%',\n fontSize: 12,\n textAlign: 'left',\n },\n formLabelRateRight: {\n width: '30%',\n fontSize: 12,\n textAlign: 'right',\n },\n conversionRate: {\n maxWidth: '500px',\n width: '100%',\n padding: '0 18px',\n margin: '12px auto 0',\n },\n policyMsg: {\n fontSize: '0.85em',\n textAlign: 'center',\n color: '#848B8E',\n },\n labelFont: {\n fontSize: 12,\n },\n link: {\n color: '#0270ba',\n },\n currencyConversionOptionsLink: {\n paddingLeft: '12px',\n },\n});\n\nconst DYNAMIC_CURRENCY_CONVERSION_TAG = 'DYNAMIC_CURRENCY_CONVERSION';\nexport const CURRENCY_CONVERSION_OPTIONS = {\n PAYPAL: 'PAYPAL',\n ISSUER: 'ISSUER',\n};\n\nclass CrossBorder extends React.Component {\n constructor(props) {\n super(props);\n\n let isRecurring = AppStore.getDonationRecurring() === 'checked';\n const stateConversionWithPayPal = this.getStateForConversionWithPayPal();\n\n this.state = {\n subHeaderLabel: TemplateData.donationName,\n donationId: AppStore.getSelectedProgram() || TemplateData.donationId,\n orgName: TemplateData.charityName,\n amountDecimalPoint: TemplateData.donationDecimalPoint || '.',\n decimalPoint: TemplateData.donationDecimalPoint || '.',\n isRecurring,\n ...stateConversionWithPayPal,\n showCVVField: false,\n securityCode: '',\n isCurrencyConversionModalOpen: false,\n };\n }\n\n endCustomCPLTracking = () => {\n const spinnerOverlay = document.getElementById('spinnerOverlay');\n\n if (spinnerOverlay.style.display === 'none') {\n // From tesla flow we don't have the spinner\n window.PAYPAL.analytics.endCPLTracking({\n page: 'main:donate:wps:guest:crossBorder:web::',\n action: 'crossborder_page_loaded',\n uicomp: 'crossBorder',\n uitype: 'page',\n });\n } else {\n // From guest form we need to wait for the spinner to disappear\n observeUntilEventObserved(\n spinnerOverlay,\n { attributes: true },\n (observer) => {\n if (spinnerOverlay.style.display === 'none') {\n window.PAYPAL.analytics.endCPLTracking({\n page: 'main:donate:wps:guest:crossBorder:web::',\n action: 'crossborder_page_loaded',\n uicomp: 'crossBorder',\n uitype: 'page',\n });\n\n observer.disconnect();\n return;\n }\n }\n );\n }\n };\n\n componentDidMount() {\n this.endCustomCPLTracking();\n }\n\n getStateForConversionWithPayPal() {\n let fundingOptions = AppStore.getFundingOptions();\n let [fundingSources] = fundingOptions ? fundingOptions.sources : [];\n let paymentNetwork = fundingSources.payment_card.network.toLowerCase();\n paymentNetwork =\n paymentNetwork.charAt(0).toUpperCase() + paymentNetwork.slice(1);\n let paymentDigits = fundingSources.payment_card.last_4;\n let exchangeRate = parseFloat(\n fundingOptions.currency_conversion.exchange_rate\n ).toString();\n let fundsIn = fundingOptions.currency_conversion.funds_in;\n let fundsOut = fundingOptions.currency_conversion.funds_out;\n\n return {\n exchangeRate,\n paymentCard: `${paymentNetwork} x-${paymentDigits}`,\n inAmount: fundsIn.value,\n inCurrency: fundsIn.currency,\n inSymbol: fundsIn.symbol,\n outAmount: fundsOut.value,\n outCurrency: fundsOut.currency,\n outSymbol: fundsOut.symbol,\n currencyConversionOption: CURRENCY_CONVERSION_OPTIONS.PAYPAL,\n };\n }\n\n getStateForConversionWithIssuer() {\n let amount = AppStore.getDonationAmount();\n let symbol = AppStore.getDonationSymbol();\n let currency = AppStore.getDonationCode();\n\n // No currency_conversion. fundsIn and fundsOut will not be available.\n return {\n amount,\n symbol,\n currency,\n currencyConversionOption: CURRENCY_CONVERSION_OPTIONS.ISSUER,\n };\n }\n\n updateFundingOptionsState() {\n let fundingOptions = AppStore.getFundingOptions();\n if (!fundingOptions.currency_conversion) {\n this.setState(this.getStateForConversionWithIssuer());\n } else {\n this.setState(this.getStateForConversionWithPayPal());\n }\n }\n\n getLocalizedCurrency = (amount, currency) => {\n let formatedAmount = {\n value: parseFloat(amount).toFixed(2),\n currency: currency,\n };\n let newAmount = formatCurrencyAsString(formatedAmount);\n return newAmount;\n };\n\n handleCurrencyConversionClick = () => {\n trackLinkClick(LINK_NAME.CURRENCY_CONVERSION, {\n pageSpec: PAGE_SPEC.CROSS_BORDER_PAGE,\n });\n this.showCurrencyConversionModal();\n };\n\n showCurrencyConversionModal = () => {\n this.setState({\n isCurrencyConversionModalOpen: true,\n });\n };\n\n hideCurrencyConversionModal = () => {\n this.setState({\n isCurrencyConversionModalOpen: false,\n });\n };\n\n handleDonateClick = () => {\n if (this.state.showCVVField) {\n const cvv = document.getElementById('securityCode').value;\n this.childCVVInfo.handleFieldBlur(\n cvv,\n 'errorMessageCSC',\n 'REQUIRED_SECURITY_CODE',\n 'INVALID_SECURITY_CODE'\n );\n\n let hasError =\n document.getElementsByClassName('vx_has-error-with-message').length > 0;\n if (!cvv || hasError) {\n return;\n }\n }\n const fundingOptions = AppStore.getFundingOptions();\n const contingencies = _get(fundingOptions, 'contingencies') || [];\n const threeDSContingency =\n _find(contingencies, { action: '3D_SECURE_DATA_COLLECTION_REQUIRED' }) ||\n {};\n\n if (!_isEmpty(threeDSContingency)) {\n this.threeDSContainer.initializeThreeDS();\n return;\n }\n\n // All contingencies resolved\n this.processDonation();\n };\n\n processDonation = () => {\n showSpinnerOverlay();\n\n return this.props.doFulfilment({\n securityCode: this.state.securityCode,\n });\n };\n\n handleGiftAidOption = (giftAidState) => {\n AppActions.updateGiftaidItFlag({ giftAidItFlag: giftAidState });\n };\n\n updateGiftAidComponent = (state) => {\n const extraCostText = getContent('locals')('common/giftAidIt')(\n 'giftAidIt.extraCost',\n {\n currency: state.outSymbol,\n amount: state.outAmount,\n extraAmount: (donateGiftPercentage * state.outAmount).toFixed(2),\n },\n {\n useHTML: true,\n }\n );\n\n let modalp1 = (giftAidTextObj && giftAidTextObj.modalp1) || '',\n modalp2 = (giftAidTextObj && giftAidTextObj.modalp2) || '',\n applyGiftAid = (giftAidTextObj && giftAidTextObj.applyGiftAid) || '';\n\n modalp1 = modalp1 && modalp1.replace('{orgName}', state.subHeaderLabel);\n modalp2 = modalp2 && modalp2.replace('{orgName}', state.subHeaderLabel);\n applyGiftAid =\n applyGiftAid && applyGiftAid.replace('{orgName}', state.subHeaderLabel);\n\n giftAidTextObj.extraCost = extraCostText;\n giftAidTextObj.modalp1 = modalp1;\n giftAidTextObj.modalp2 = modalp2;\n giftAidTextObj.applyGiftAid = applyGiftAid;\n };\n\n handleOptionSelection = (option) => {\n const beforeOption = this.state.currencyConversionOption;\n this.setState(\n {\n currencyConversionOption: option,\n },\n () => {\n // Do Planning if the option has changed\n if (beforeOption !== option) {\n this.hideCurrencyConversionModal();\n showSpinnerOverlay();\n this.getFundingOptions().finally(() => {\n hideSpinnerOverlay();\n });\n } else {\n setTimeout(() => {\n this.hideCurrencyConversionModal();\n }, 300);\n }\n }\n );\n };\n\n showCVVComponent() {\n this.setState({\n showCVVField: true,\n });\n }\n\n hideCVVComponent() {\n this.setState({\n showCVVField: false,\n });\n }\n\n getFundingOptions() {\n const lastFundingSource = this.getLastFundingSource();\n const paymentCardId = _get(lastFundingSource, 'payment_card.id');\n\n const currencyConversionType = this.state.currencyConversionOption;\n\n return fetcher('/donate/guest/fundingOptions', {\n method: 'POST',\n body: JSON.stringify({\n amount: normalizeNumber(AppStore.getDonationAmount()),\n code: AppStore.getDonationCode(),\n fundingOptionId: AppStore.getFundingOptions().id,\n preferences: {\n currency_conversion: [\n {\n payment_card_id: paymentCardId,\n type: currencyConversionType,\n validity: 'TRANSACTION',\n },\n ],\n },\n consentShareAddress: AppStore.getShareAddress(),\n }),\n })\n .then((response) => response.json())\n .then((result) => {\n console.log('getFundingOptions result :: ', result);\n\n let fundingOptions;\n // The funding options data format returned by the server is\n // different for ISSUER and PAYPAL. Handle it appropriately.\n\n // For conversion with 'ISSUER'\n if (currencyConversionType === CURRENCY_CONVERSION_OPTIONS.ISSUER) {\n fundingOptions = _get(result, 'data.fundingOpt[0]');\n } else {\n // For conversion with 'PAYPAL'\n fundingOptions = _get(result, 'fundingOpts[0]');\n }\n\n // Handle error case where fundingOptions call succeeds\n // but no data is returned\n if (_isEmpty(fundingOptions)) {\n trackErrorIM({\n errorCode: currencyConversionType,\n errorMessage: 'FUNDING_OPTIONS_EMPTY_CROSSBORDER',\n });\n this.props.history.push('/donate/error/payment');\n return;\n }\n\n // If CVV contingencies are present and has not been resolved,\n // then display cvv component\n const contingencies = _get(fundingOptions, 'contingencies');\n const hasCvvContingency = _find(contingencies, {\n action: 'CVV_REQUIRED',\n });\n const isCvvContingencyResolved = _get(\n result,\n 'data.contingencyResolutionStatus.cvvContingencyResolved',\n false\n );\n\n if (hasCvvContingency && !isCvvContingencyResolved) {\n this.showCVVComponent();\n } else {\n this.hideCVVComponent();\n }\n\n // Updating store with funding options\n AppActions.updateFundingOptions({ fundingOptions });\n\n this.updateFundingOptionsState();\n\n console.log(result);\n })\n .catch(() => {\n console.log('FAILED');\n this.props.history.push('/donate/error/payment');\n })\n .finally(() => {\n hideSpinnerOverlay();\n });\n }\n\n renderConversionRateInfo(exchangeRate, fundsOut) {\n const label = _get(messages, 'label', {});\n return (\n
\n
\n
\n \n {label.conversion} {exchangeRate}\n \n
\n
\n {fundsOut}\n
\n
\n
\n );\n }\n\n getLastFundingSource() {\n let fundingOptions = AppStore.getFundingOptions();\n const fundingSources = fundingOptions.sources || [];\n return fundingSources[fundingSources.length - 1];\n }\n\n /**\n * Returns true if currency conversion options should be displayed\n * @param {Array} fundingSources Funding Sources\n * @return {Boolean} True if currency conversion options should be displayed\n */\n shouldShowCurrencyConversionOptions = () => {\n const lastFundingSource = this.getLastFundingSource();\n const tags = _get(lastFundingSource, 'tags');\n return _includes(tags, DYNAMIC_CURRENCY_CONVERSION_TAG);\n };\n\n renderCurrencyConversionOptionsLink(label) {\n const userCountry = AppStore.getUserCountry();\n\n return (\n \n
\n
\n {this.state.currencyConversionOption ===\n CURRENCY_CONVERSION_OPTIONS.PAYPAL ? (\n
\n \n {userCountry === 'US' ? label.spread : label.fee}\n \n
\n ) : null}\n
\n
\n\n
\n
\n
\n \n {label.currencyConversionOptions}\n \n
\n
\n
\n
\n );\n }\n\n handleSecurityCodeChange = (securityCode) => {\n this.setState({\n securityCode: securityCode,\n });\n };\n\n handleThreeDSStepUpAuthSuccess = () => {\n this.props.toggleSpinner(true);\n this.props.doFulfilment({\n securityCode: this.state.securityCode,\n });\n };\n handleThreeDSStepUpAuthFailure = () => {\n // Unrecoverable error !!\n this.props.history.push('/donate/error/payment');\n };\n\n handleThreeDSFailure = () => {\n // Unrecoverable error !!\n this.props.history.push('/donate/error/threeDS');\n };\n\n render() {\n const inAmount = this.getLocalizedCurrency(\n this.state.inAmount,\n this.state.inCurrency\n );\n const outAmount = this.getLocalizedCurrency(\n this.state.outAmount,\n this.state.outCurrency\n );\n const fundsIn = _includes(inAmount, this.state.inCurrency)\n ? `${inAmount}`\n : `${inAmount} ${this.state.inCurrency}`;\n const fundsOut = _includes(outAmount, this.state.outCurrency)\n ? `${outAmount}`\n : `${outAmount} ${this.state.outCurrency}`;\n const exchangeRate = `${this.getLocalizedCurrency(\n '1.00',\n this.state.inCurrency\n )} = ${exchangeRateDecimalPoints(\n this.state.exchangeRate,\n this.state.amountDecimalPoint,\n this.state.inSymbol\n )} ${this.state.outCurrency}`;\n const { label = {} } = messages || {};\n let donateNowRecurring = _get(guestMessages, 'guestLabels.donatenowrec');\n donateNowRecurring =\n donateNowRecurring && donateNowRecurring.replace('{amount}', fundsOut);\n\n const formattedDonationAmount = `${\n this.state.symbol ? this.state.symbol : ''\n }${this.state.amount} ${this.state.currency}`;\n\n let giftaidFlag = AppStore.getGiftaidItFlagStatus();\n this.updateGiftAidComponent(this.state);\n\n let { csc: cscLabel, cscwarning } = guestMessages.guestLabels;\n cscwarning =\n cscwarning && cscwarning.replace('{csc}', cscLabel.toLowerCase());\n\n const { showCVVField } = this.state;\n\n return (\n \n {showCVVField && (\n
\n
\n {cscwarning}\n
\n
\n )}\n\n \n {isExternalFlow() && (\n <>\n \n \n \n )}\n\n
\n {/* */}\n\n {TemplateData.isGiftaiditEnabled && (\n \n )}\n\n
\n
\n
\n \n {label.donatingFrom}\n \n
\n
\n
\n
\n
\n {this.state.paymentCard}\n
\n
\n {this.state.currencyConversionOption ===\n CURRENCY_CONVERSION_OPTIONS.PAYPAL\n ? fundsIn\n : formattedDonationAmount}\n
\n
\n
\n\n
\n
\n {showCVVField && (\n (this.childCVVInfo = ref)}\n handleSecurityCodeChange={this.handleSecurityCodeChange}\n />\n )}\n
\n
\n
\n\n {this.state.currencyConversionOption ===\n CURRENCY_CONVERSION_OPTIONS.PAYPAL ? (\n
\n
\n
\n
\n
\n
\n {label.youllDonate}\n
\n
\n {fundsIn}\n
\n
\n
\n\n
\n
\n
\n {label.convertsTo}\n
\n
\n {fundsOut}\n
\n
\n
\n
\n
\n
\n ) : (\n
\n
\n
\n
\n {label.youllDonate}\n
\n
\n \n {formattedDonationAmount}\n \n
\n
\n
\n
\n )}\n\n
\n {this.state.currencyConversionOption ===\n CURRENCY_CONVERSION_OPTIONS.PAYPAL &&\n this.renderConversionRateInfo(exchangeRate, fundsOut)}\n {this.shouldShowCurrencyConversionOptions() &&\n this.renderCurrencyConversionOptionsLink(label)}\n
\n\n
\n
\n {getContent('locals')('guest/crossBorder')(\n 'label.policies',\n { country: TemplateData.country },\n { useHTML: true }\n )}\n
\n
\n\n
\n
\n\n
\n
\n \n {this.state.isRecurring ? donateNowRecurring : label.donatenow}\n \n
\n
\n
\n\n \n \n\n (this.threeDSContainer = ref)}\n />\n
\n
\n );\n }\n}\n\nexport default withRouter(withDonate(CrossBorder));\n","import withPageTrack from '../../confirmation/withPageTrack';\nimport withPostTransactionRequest from '../../confirmation/withPostTransactionRequest';\nimport PendingView from '../../confirmation/PendingView';\nimport SuccessView from '../../confirmation/SuccessView';\n\nconst FLOW = 'guest';\nconst POST_TRANSACTION_URL = '/donate/guest/postTransaction';\n\nexport const GuestConfirmationPending = withPageTrack(\n withPostTransactionRequest(PendingView, POST_TRANSACTION_URL),\n FLOW,\n 'pending'\n);\n\nexport const GuestConfirmationSuccess = withPageTrack(\n withPostTransactionRequest(SuccessView, POST_TRANSACTION_URL),\n FLOW,\n 'success'\n);\n","import React from 'react';\nimport getContent from 'pp-react-l10n';\nimport AppStore from '../../stores/AppStore';\nimport { withRouter } from 'react-router-dom';\nimport templateData, { localsMessages } from '../../utility/getTemplateData';\nimport { hideSpinnerOverlay } from '../../utility/helper';\nimport { Button } from '@paypalcorp/pp-react';\nimport Illustration from '../../components/illustrations/Illustration';\nimport ConfirmationTitle from '../../confirmation/ConfirmationTitle';\nimport ConfirmationBody from '../../confirmation/ConfirmationBody';\nimport { isMobileOrInContext } from '../../utility/inContextDonation';\nimport { isExternalFlow } from '../../utility/externalIntegrationUtils';\nimport CloseButton from '../../components/CloseButton';\nimport { trackErrorPageIM } from '../../fpti/fpti';\nimport { PAGE_SPEC } from '../../fpti/fptiConstants';\n\nclass PaymentError extends React.Component {\n constructor() {\n super();\n this.state = {};\n }\n\n componentDidMount = () => {\n hideSpinnerOverlay();\n const ERROR_CODE = AppStore.getPaymentError() || '';\n trackErrorPageIM({\n pageSpec: PAGE_SPEC.GUEST_FAILURE_PAGE,\n errorCode: ERROR_CODE,\n });\n };\n\n handleTryAgain = () => {\n this.props.history.push(`/donate?token=${templateData.token}`);\n };\n\n render() {\n const { error = {}, label = {} } = localsMessages('errors/paymentError');\n const ERROR_CODE = AppStore.getPaymentError() || '';\n\n let { WSM_CANNOT_PAY_SELF = '', WENT_WRONG, TEMP_GLITCH } = error;\n let { tryagain } = label;\n\n switch (ERROR_CODE) {\n case 'WSM_PAYMENT_DENIED':\n WENT_WRONG = error.DID_NOT_WORK;\n TEMP_GLITCH = error.DIFF_CREDIT_DEBIT;\n tryagain = label.trydiffcard;\n break;\n case 'WSM_CANNOT_PAY_SELF':\n const L2 =\n WSM_CANNOT_PAY_SELF &&\n WSM_CANNOT_PAY_SELF.replace(\n '{data.dataMerchant.name}',\n templateData.donationName\n );\n WENT_WRONG = error.WSM_CANNOT_PAY_SELF_H;\n TEMP_GLITCH = L2;\n break;\n case 'WSM_PAYER_LIMIT_EXCEEDED':\n WENT_WRONG = error.AmountLimitBreachError;\n TEMP_GLITCH = getContent('locals')('errors/paymentError')(\n 'error.CustomerCareMessage',\n {\n customerServiceLink: '/selfhelp/home',\n },\n {\n useHTML: true,\n }\n );\n break;\n default:\n break;\n }\n\n return (\n
\n \n {isExternalFlow() && }\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n\n
\n
\n \n {tryagain}\n \n
\n
\n
\n
\n );\n }\n}\n\nexport default withRouter(PaymentError);\n","import React from 'react';\nimport { withRouter } from 'react-router-dom';\nimport { localsMessages } from '../../utility/getTemplateData';\nimport { hideSpinnerOverlay } from '../../utility/helper';\nimport Illustration from '../../components/illustrations/Illustration';\nimport ConfirmationBody from '../../confirmation/ConfirmationBody';\nimport _get from 'lodash/get';\nimport { isMobileOrInContext } from '../../utility/inContextDonation';\nimport { trackErrorPageIM } from '../../fpti/fpti';\nimport { PAGE_SPEC } from '../../fpti/fptiConstants';\n\nconst messages = localsMessages('errors/paymentError');\nconst noAccountErrorMessage = _get(\n messages,\n 'noAccountError',\n \"We can't complete this donation. The receiver doesn't have a valid PayPal account.\"\n);\n\nclass UnilateralError extends React.Component {\n constructor() {\n super();\n this.state = {};\n }\n\n componentDidMount = () => {\n hideSpinnerOverlay();\n\n trackErrorPageIM({\n pageSpec: PAGE_SPEC.UNILATERAL_ERROR_PAGE,\n errorCode: 'UNILATERAL_ERROR',\n });\n };\n\n render() {\n return (\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n );\n }\n}\n\nexport default withRouter(UnilateralError);\n","import React from 'react';\nimport { withRouter } from 'react-router-dom';\nimport templateData, { localsMessages } from '../../utility/getTemplateData';\nimport { hideSpinnerOverlay } from '../../utility/helper';\nimport { Button } from '@paypalcorp/pp-react';\nimport Illustration from '../../components/illustrations/Illustration';\nimport ConfirmationTitle from '../../confirmation/ConfirmationTitle';\nimport ConfirmationBody from '../../confirmation/ConfirmationBody';\nimport { isMobileOrInContext } from '../../utility/inContextDonation';\nimport { isExternalFlow } from '../../utility/externalIntegrationUtils';\nimport CloseButton from '../../components/CloseButton';\n\nclass ThreeDSError extends React.Component {\n componentDidMount = () => {\n hideSpinnerOverlay();\n };\n\n handleTryAgain = () => {\n this.props.history.push(`/donate?token=${templateData.token}`);\n };\n\n render() {\n const error = localsMessages('errors/threeDSError');\n\n return (\n
\n \n {isExternalFlow() && }\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n\n
\n
\n \n {error.tryCard}\n \n
\n
\n
\n \n );\n }\n}\n\nexport default withRouter(ThreeDSError);\n","import { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { getParameterByName } from '../utility/queryStringHelper';\nimport withDonate from './guest/WithDonate';\nimport * as AppActions from '../actions/AppActions';\nimport AppStore from '../stores/AppStore';\nimport _get from 'lodash/get';\nimport templateData from '../utility/getTemplateData';\nimport { isLoggedInUser, isOneTouchUser } from '../utility/authUtils';\nimport { trackCaptureOrderPageIM } from '../fpti/fpti';\n\nclass CaptureOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n token: '',\n accessToken: '',\n isSubmitted: false,\n backBtnVisible: false,\n responseData: '',\n wTransactionEntry: '',\n requestError: '',\n };\n }\n\n componentDidMount() {\n this.props.toggleSpinner(true);\n const donateToken = getParameterByName('dtoken');\n const orderToken = getParameterByName('token');\n const payerID = getParameterByName('PayerID');\n\n this.captureOrder(orderToken, donateToken, payerID);\n }\n\n captureOrder = (orderToken, donateToken, payerID) => {\n const { orderStatus } = AppStore.getOrderStatus() || {};\n if (orderStatus === 'COMPLETED') {\n window.location.href = '/donate/paymentComplete';\n return;\n }\n\n this.props\n .captureOrder(orderToken, donateToken, payerID)\n .then((response) => response.json())\n .then((result) => {\n const confirmationNumber =\n _get(result, 'data.confirmationData.confirmationNumber') ||\n _get(result, 'data.confirmationData.postBackData.txn_id');\n if (!confirmationNumber) {\n this.props.history.push('/donate/error/payment');\n return;\n }\n\n AppActions.updateOrderStatus({ orderStatus: 'COMPLETED' });\n\n const isMemberFlow = isLoggedInUser() || isOneTouchUser();\n const confirmationData = _get(result, 'data.confirmationData', {});\n this.handlePaymentSuccess(confirmationData, isMemberFlow);\n })\n .catch(() => {\n this.props.history.push('/donate/error/payment');\n });\n };\n\n handlePaymentSuccess = (response, isMemberFlow) => {\n AppActions.updateConfirmation({ confirmation: response });\n this.handleConfirmation(response, isMemberFlow);\n };\n\n handleConfirmation = (response, isMemberFlow) => {\n const { token } = templateData;\n const flow = isMemberFlow ? 'member' : 'guest';\n const page = response.isOfacPending ? 'pending' : 'confirmation';\n const url = token\n ? `/donate/${flow}/${page}/?token=${token}`\n : `/donate/${flow}/${page}`;\n\n trackCaptureOrderPageIM({\n flow,\n confirmationData: response,\n });\n\n this.props.history.push(url);\n };\n\n render() {\n return null;\n }\n}\n\nCaptureOrder.propTypes = {\n toggleSpinner: PropTypes.func,\n captureOrder: PropTypes.func,\n history: PropTypes.object,\n};\n\nexport default withDonate(CaptureOrder);\n","import { useEffect } from 'react';\nimport templateData from '../utility/getTemplateData';\n\nlet timerCount = 0;\nexport default function CancelAndReturnOrder() {\n const redirectToCancelUrl = () => {\n const { charityCancelUrl } = templateData;\n if (charityCancelUrl) {\n window.location.href = charityCancelUrl;\n }\n };\n\n useEffect(() => {\n // xprops takes a few miliseconds to be populated\n // because it has to set up the communication with host window\n // Wait a maximum of 2 seconds for the value\n waitForXProps(() => {\n // No xprops for 2 seconds\n // Maybe we are not inContext?\n // Redirect to cancel url\n redirectToCancelUrl();\n });\n }, []);\n\n function waitForXProps(callback) {\n timerCount++;\n if (timerCount > 10) {\n callback();\n return;\n }\n if (!window.xprops) {\n setTimeout(() => {\n waitForXProps(callback);\n }, 200);\n } else {\n window.xprops.close();\n }\n }\n\n return null;\n}\n","import './publicPath';\n\nimport 'consumerweb-shim';\nimport 'core-js/stable';\nimport 'regenerator-runtime/runtime';\nimport '../utility/bootstrap';\nimport React, { Component, Suspense, useEffect } from 'react';\nimport ReactDOM from 'react-dom';\nimport { Route, Switch, Router } from 'react-router-dom';\nimport history from './configureHistory';\nimport CookiedUserPage from './../pages/landing/landing';\nimport CrossBorder from './../pages/guest/crossBorder';\nimport {\n GuestConfirmationPending,\n GuestConfirmationSuccess,\n} from '../pages/guest/confirmation';\nimport PaymentError from './../pages/error/paymentError';\nimport UnilateralError from '../pages/error/UnilateralError';\nimport templateData from './../utility/getTemplateData';\nimport { isOneTouchUser, isAuthenticatedUser } from 'utility/authUtils';\nimport { parseUrlQuery } from '../utility/urlUtils';\nimport { setShouldRTL } from '../utility/paypalAphrodite';\nimport { showSpinnerOverlay, hideSpinnerOverlay } from '../utility/helper';\nimport ThreeDSError from '../pages/error/threeDSError';\nimport { reactLazyPreload } from '../utility/lazyLoader';\nimport CaptureOrder from '../components/CaptureOrder';\nimport CancelAndRedirectOrder from '../components/CancelAndRedirectOrder';\nimport {\n MemberConfirmationPending,\n MemberConfirmationSuccess,\n} from '../pages/member/confirmation';\nimport Footer from '../components/footer/footer';\n\nimport '../../css/ppvx.less';\nimport '../../css/ppvx-app.less';\nimport '../../css/portable-onboarding.less';\n\n// set the direction for styles (whether to convert them to RTL)\nconst { locality: { directionality = 'ltr' } = {} } = templateData;\nsetShouldRTL(directionality !== 'rtl');\n\nconst { currentUserState, isUnilateralAccount, paymentStatus } = templateData;\n\nconst GuestPage = reactLazyPreload(() =>\n import(/* webpackChunkName: \"GuestPage\" */ './../pages/guest/guest')\n);\n\nfunction FallbackSpinner() {\n useEffect(() => {\n showSpinnerOverlay();\n }, []);\n\n return <>;\n}\n\nclass LandingPage extends Component {\n constructor(props) {\n super(props);\n this.state = {\n userCookied: currentUserState === 'cookied',\n isOneTouch: isOneTouchUser(),\n };\n }\n\n componentDidMount() {\n if (isUnilateralAccount) {\n history.push('/donate/error/noaccount');\n return;\n }\n // Only hiding spinner for cookied user and if payment token status is not complete\n if (this.state.userCookied && paymentStatus !== 'complete') {\n // In case of onboarding, guest.js will hide the spinner\n if (!templateData.onboardingEnabled) {\n hideSpinnerOverlay();\n }\n }\n\n if (!isAuthenticatedUser()) {\n GuestPage.preload();\n }\n }\n\n getPageToRender() {\n // If `signup` param is present, render GuestPage\n const isSignupRoute = !!parseUrlQuery().signup;\n if (isSignupRoute) {\n return ;\n }\n return ;\n }\n\n render() {\n return
{this.getPageToRender()}
;\n }\n}\n\nReactDOM.render(\n \n }>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n